AWS Certified Developer Associate DVA-C02 Practice Question
An AWS Lambda function is designed to retrieve data from an external API using the Amazon API Gateway. Upon deploying the changes, users report they are receiving an error when attempting to use the function. The error code received by users suggests that the API Gateway cannot find the specified Lambda function. Which HTTP status code are the users most likely encountering?
The HTTP status code 502 Bad Gateway is likely to be encountered in scenarios where the API Gateway serves as a proxy and receives an invalid response or no response from the upstream server, which in this case is the Lambda function. This can happen if the Lambda function is not configured correctly in API Gateway or if it does not exist. The 404 Not Found status code indicates that the requested resource (such as a URL) could not be found, but in the context of API Gateway and Lambda, it is more typical for a 502 Bad Gateway to occur due to misconfiguration. Status codes 400 Bad Request and 500 Internal Server Error represent different categories of errors and are not directly associated with the specific 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 roles do API Gateway and Lambda play in this scenario?
Open an interactive chat with Bash
What could cause a Lambda function to not be found by API Gateway?
Open an interactive chat with Bash
How can I troubleshoot a 502 Bad Gateway error in AWS?
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