AWS Certified Developer – Associate (DVA-C02) — Question 547
A developer has an application that makes batch requests directly to Amazon DynamoDB by using the BatchGetItem low-level API operation. The responses frequently return values in the UnprocessedKeys element.
Which actions should the developer take to increase the resiliency of the application when the batch response includes values in UnprocessedKeys? (Choose two.)
Answer options
- A. Retry the batch operation immediately.
- B. Retry the batch operation with exponential backoff and randomized delay.
- C. Update the application to use an AWS software development kit (AWS SDK) to make the requests.
- D. Increase the provisioned read capacity of the DynamoDB tables that the operation accesses.
- E. Increase the provisioned write capacity of the DynamoDB tables that the operation accesses.
Correct answer: B, D
Explanation
When Amazon DynamoDB returns UnprocessedKeys, it indicates that some read requests in the batch failed due to throttling or temporary issues. To handle this resiliently, retrying with exponential backoff and randomized delay (jitter) prevents overwhelming the database, while increasing the provisioned read capacity directly addresses the throughput limitation of the BatchGetItem operation.