AWS Certified Developer Associate DVA-C02 Practice Question
A developer is tasked with setting up a serverless architecture for processing incoming data requests from web clients. The system should respond with a client error status code and a structured message when a submission does not conform to the expected input format. Which serverless components should the developer configure to ensure these requirements are met?
Implement AWS Step Functions to orchestrate input validation and construct an error document to be issued when an invalid request is detected.
Configure Amazon CloudFront custom error responses to intercept and reshape the return provided by the backend services.
Utilize a dedicated AWS Lambda function to perform input validation and shape the error return upon detecting non-conforming data.
Leverage Amazon API Gateway's request validation feature and tailor the integration response to deliver a structured message upon failure.
The developer should use Amazon API Gateway's built-in request validators for checking the conformity of incoming data structures. If a submission fails validation, API Gateway can be configured to transform and return a structured message by modifying the integration response. This directly fulfills the need to send a client error status and a specific message format without the need to write additional code in AWS Lambda. Other options either introduce unnecessary complexity or do not provide the means to send structured messages directly from the gateway.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon API Gateway's request validation feature?
Open an interactive chat with Bash
How does API Gateway modify the integration response for errors?
Open an interactive chat with Bash
Why is using AWS Lambda for input validation less efficient in this context?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access