AWS Certified Developer – Associate — Question 335
An application that is deployed to Amazon EC2 is using Amazon DynamoDB. The application calls the DynamoDB REST API. Periodically, the application receives a ProvisionedThroughputExceededException error when the application writes to a DynamoDB table.
Which solutions will mitigate this error MOST cost-effectively? (Choose two.)
Answer options
- A. Modify the application code to perform exponential backoff when the error is received.
- B. Modify the application to use the AWS SDKs for DynamoDB.
- C. Increase the read and write throughput of the DynamoDB table.
- D. Create a DynamoDB Accelerator (DAX) cluster for the DynamoDB table.
- E. Create a second DynamoDB table. Distribute the reads and writes between the two tables.
Correct answer: A, B
Explanation
Utilizing the AWS SDKs for DynamoDB is highly cost-effective because the SDKs automatically implement retry logic and exponential backoff for transient errors like ProvisionedThroughputExceededException. If direct REST API calls must be kept, manually implementing exponential backoff in the application code is another zero-cost way to handle temporary spikes. Options C, D, and E introduce additional AWS infrastructure costs, making them less cost-effective solutions for handling transient throughput issues.