A company is using Amazon DynamoDB with on-demand capacity. A developer notices that write requests are being throttled during peak hours. What is the MOST effective way to resolve this issue?
Reviewing the partition key design and considering adding a suffix to distribute writes is the correct approach because even with On-Demand capacity, Amazon DynamoDB enforces per-partition throughput limits. A 'hot partition' occurs when a single partition key value receives a disproportionately high volume of write requests, exceeding its individual throughput capacity and leading to throttling for operations targeting that specific key. By adding a random or time-based suffix to the partition key, writes are effectively spread across multiple logical partitions, thereby distributing the load more evenly and mitigating the impact of hot spots.
Why this answer
DynamoDB on-demand mode automatically scales to accommodate traffic, so throttling during peak hours usually indicates a hot partition caused by an unevenly distributed partition key. Adding a suffix (write sharding) distributes writes across more partitions, eliminating the hot partition and resolving throttling without changing capacity mode.
Exam trap
DVA-C02 often tests the misconception that on-demand mode eliminates all throttling, when in fact hot partitions can still throttle and require partition key redesign or write sharding.
How to eliminate wrong answers
Option A is wrong because switching to provisioned mode with auto-scaling does not fix a hot partition; auto-scaling reacts to overall table capacity, not per-partition skew. Option B is wrong because on-demand mode does not have write capacity units to increase, and even in provisioned mode, increasing WCU would not help if a single partition key is throttled. Option D is wrong because the issue is write throttling, not read throttling, so increasing read capacity units is irrelevant.