DVA-C02 Question 344
Single answerYou are developing an application that uses Amazon API Gateway to expose RESTful APIs. During testing, you notice that some API calls are failing, and you receive an HTTP 429 error. What is the most likely cause of this error?
- A
The requested resource could not be found.
- B
The API Gateway request rate limit has been exceeded.
- C
The server is currently unable to handle the request due to temporary overload or maintenance.
- D
The client is not authorized to access the requested resource.
Show answer and explanation
Correct answer: B
Explanation
HTTP 429 errors are returned when the client exceeds the request rate limit configured in Amazon API Gateway. To resolve this issue, you can increase the throttling limit in API Gateway, implement retries with exponential backoff, or optimize your application to send fewer requests.
- A. Incorrect.
An HTTP 404 error indicates that the requested resource could not be found. This is unrelated to rate limiting.
- B. Correct.
An HTTP 429 error specifically indicates 'Too Many Requests,' meaning the API Gateway's request rate limit has been exceeded.
- C. Incorrect.
An HTTP 503 error indicates that the server is temporarily overloaded or undergoing maintenance, not a rate limit issue.
- D. Incorrect.
An HTTP 403 error indicates that the client does not have the appropriate permissions to access the requested resource, which is unrelated to rate limiting.