An application receives HTTP 200 from DynamoDB BatchWriteItem, but some requested items are missing. The response contains UnprocessedItems, and the application checks only the HTTP status. What should the developer change?
Show the answer
Correct answerB. Retry the unprocessed requests with exponential backoff
AWhy not this: Strongly consistent reads reflect completed writes but cannot perform unprocessed writes.
BWhy this is right: UnprocessedItems identifies requests that need retrying, and exponential backoff helps avoid repeated throttling.
CWhy not this: Increasing batch size does not resolve unprocessed writes and can exceed the operation's limits.
DWhy not this: HTTP 200 confirms a successful API response, not that every requested batch write completed.
BatchWriteItem can return HTTP 200 while leaving some writes unprocessed. Retry the requests returned in UnprocessedItems with exponential backoff; strongly consistent reads cannot complete writes that were never processed.