AWS Certified Developer – Associate (DVA-C02) — Question 215
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
The correct answer is D because implementing exponential backoff allows the application to manage API call retries in a way that reduces the likelihood of repeated throttling. Options A, B, and C do not directly address the immediate issue of throttling; contacting support or changing the method of data retrieval may not be necessary if the calls can be retried effectively.