A document collaboration platform named DocuCollab tracks real-time document editing events and writes them to an Amazon DynamoDB table. The table is configured with provisioned write capacity and uses the DocumentId as the partition key. During peak hours, a small number of extremely popular shared documents experience heavy, concurrent editing activity. This results in ProvisionedThroughputExceededException errors and writes are dropped, even though the total consumed write capacity is well below the table's provisioned limit.
Which combination of actions will resolve this issue? (Select TWO.)
- Append a random numeric suffix to the partition key value before writing the items to distribute the write load.Cevap
- Configure the application SDK client to implement exponential backoff with jitter for retrying failed requests.Cevap
- CIncrease the provisioned Write Capacity Units (WCUs) on the DynamoDB table to distribute the capacity across all partition keys.
- DIncrease the visibility timeout of the Amazon SQS queue that buffers the writes to allow the consumer more time to retry without message duplication.
- EInitialize the DynamoDB SDK client using static credentials with administrative privileges to bypass partition write limits.
Cevap
To resolve the throttling issues, the developer should append a random numeric suffix to the partition key value before writing the items, and configure the application SDK client to implement exponential backoff with jitter for retrying failed requests.
The correct actions are appending a random numeric suffix to the partition key (sharding) and configuring the SDK to use exponential backoff with jitter. Appending a random suffix distributes the concurrent writes for a single popular document across multiple physical partitions, which prevents exceeding the 1,000 WCU physical partition limit. Implementing exponential backoff with jitter ensures that when throttling does occur, the application retries the requests at progressively longer, randomized intervals, preventing retry storms and allowing the writes to succeed without being dropped.
Adım Adım Çözüm
Anahtar Kavram
Resolving DynamoDB throttling issues by redesigning partition keys (sharding) and configuring SDK retry policies with backoff and jitter.
Tahmini Süre:2m 0s