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?
Configure Amazon CloudFront custom error responses to intercept and reshape the return provided by the backend services.
Leverage Amazon API Gateway's request validation feature and tailor the integration response to deliver a structured message upon failure.
Implement AWS Step Functions to orchestrate input validation and construct an error document to be issued when an invalid request is detected.
Utilize a dedicated AWS Lambda function to perform input validation and shape the error return upon detecting non-conforming data.
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.
How does Amazon API Gateway's request validation feature work?
Open an interactive chat with Bash
What are integration responses in Amazon API Gateway?
Open an interactive chat with Bash
Why not use AWS Lambda for input validation instead of API Gateway?
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...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .