ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 22 - DVA-C02 discussion

Report
Export

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.)

A.
Retry the batch operation immediately.
Answers
A.
Retry the batch operation immediately.
B.
Retry the batch operation with exponential backoff and randomized delay.
Answers
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.
Answers
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.
Answers
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.
Answers
E.
Increase the provisioned write capacity of the DynamoDB tables that the operation accesses.
Suggested answer: B, C

Explanation:

The UnprocessedKeys element indicates that the BatchGetItem operation did not process all of the requested items in the current response. This can happen if the response size limit is exceeded or if the table's provisioned throughput is exceeded. To handle this situation, the developer should retry the batch operation with exponential backoff and randomized delay to avoid throttling errors and reduce the load on the table. The developer should also use an AWS SDK to make the requests, as the SDKs automatically retry requests that return UnprocessedKeys.

Reference:

[BatchGetItem - Amazon DynamoDB]

[Working with Queries and Scans - Amazon DynamoDB]

[Best Practices for Handling DynamoDB Throttling Errors]

asked 16/09/2024
Khoi Le
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first