AWS Certified Developer Associate DVA-C02 Practice Question
A developer has configured an Amazon API Gateway to trigger an AWS Lambda function. After a recent deployment, API logs indicate that API Gateway is failing to invoke the function due to a misconfigured integration. The error suggests that while the API Gateway endpoint exists, it cannot get a valid response from the upstream Lambda function it's configured to proxy to. Which HTTP status code is the client most likely receiving?
A 502 Bad Gateway error indicates that the server, while acting as a gateway or proxy, received an invalid response from the upstream server. In this scenario, API Gateway is the proxy, and the Lambda function is the upstream server. A misconfigured integration, such as incorrect permissions or if the function doesn't exist, prevents API Gateway from getting a valid response, resulting in a 502 error. A 404 Not Found error would typically mean the API Gateway endpoint itself could not be found, not that the backend integration failed. A 400 Bad Request would indicate a client-side error, like a malformed request. A 500 Internal Server Error is a generic server error, but 502 is more specific to gateway or proxy problems.
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 reasons a 502 Bad Gateway error occurs in API Gateway?
Open an interactive chat with Bash
How does API Gateway act as a proxy for a Lambda function?
Open an interactive chat with Bash
How can you troubleshoot a 502 error in Amazon 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 .