AWS Certified Developer Associate DVA-C02 Practice Question
While debugging an AWS Lambda function triggered by an API Gateway, a developer finds that the HTTP client receives an error code indicating that the server cannot process the request due to a client error. Which HTTP status code is typically returned by the API Gateway when the request payload is formatted correctly but invalid?
The HTTP 400 Bad Request status code indicates that the server could not understand the request due to invalid syntax. When an API Gateway receives a request with a well-formed payload that does not meet the criteria or expected values, it responds with this error code. It suggests that the client should not repeat this request without modification. The 200 OK status code indicates that the request has succeeded, which is not appropriate in this context. A 500 Internal Server Error suggests a server-side issue, which would not be the correct response for a client error in formatting. Finally, 502 Bad Gateway implies that the server, while acting as a gateway or proxy, received an invalid response from the upstream server, which does not fit the scenario described.
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 the difference between a 400 Bad Request and a 500 Internal Server Error?
Open an interactive chat with Bash
What happens in an API Gateway when it receives a well-formed payload but invalid data?
Open an interactive chat with Bash
What are some common scenarios that can trigger a 400 Bad Request in API Gateway?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Troubleshooting and Optimization
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 .