AWS Certified Developer – Associate (DVA-C02) — Question 172
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
Option A is correct because implementing exponential backoff allows the application to retry after a delay, reducing the chances of further throughput errors. Option B is also correct as utilizing AWS SDKs can optimize interactions with DynamoDB, automatically handling some error cases. Options C, D, and E are not the most cost-effective solutions; increasing throughput incurs higher costs, DAX adds complexity and cost, and creating another table could unnecessarily complicate management.