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 are some common causes of a 400 Bad Request error in API Gateway?
Open an interactive chat with Bash
How can a developer debug a 400 Bad Request error in AWS Lambda?
Open an interactive chat with Bash
What are the differences between client error and server error HTTP status codes?
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...
IT & Cybersecurity Package Join Premium for Full Access