AWS Certified Developer – Associate — Question 404
A developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved.
What best practice should first be applied to address this issue?
Answer options
- A. Contact AWS Support for a limit increase.
- B. Use the AWS CLI to get the metrics.
- C. Analyze the applications and remove the API call.
- D. Retry the call with exponential backoff.
Correct answer: D
Explanation
When encountering intermittent ThrottlingException errors from the Amazon CloudWatch API, the standard first-line best practice is to implement retries with exponential backoff, which helps space out requests and avoids overwhelming the service. Requesting a limit increase from AWS Support should only be considered if throttling persists after optimizing request rates, while switching to the AWS CLI or deleting the API call does not solve the root concurrency issue.