AWS Certified Developer – Associate — Question 212
A developer has an application that makes batch requests directly to Amazon DynamoDB by using the BatchGetltem 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
Option B is correct because using exponential backoff and randomized delay helps to avoid throttling by spreading out the retries, improving the chances of success. Option D is also correct as increasing the provisioned read capacity can help accommodate more requests, reducing the likelihood of unprocessed keys. Options A, C, and E do not address the underlying issue of unprocessed keys effectively in this context.