Choosing DynamoDB Capacity and Avoiding Hot Partitions
This lesson explains how a well-modelled DynamoDB table still needs the right capacity mode and keys that spread load, since tables throttle when requests concentrate on a few keys.
Learning outcomes
After completing this lesson, you will be able to:
- Choose a capacity mode and table class.
- Diagnose and fix hot partitions.
- Choose global table consistency modes.
Capacity modes and table classes
DynamoDB's capacity mode decides how throughput is paid for. On-demand mode charges per request and needs no capacity planning, which suits unknown, spiky or new workloads; a maximum throughput can be set per table to cap cost. Provisioned mode with auto scaling sets read and write capacity that adjusts within limits. It is cheaper per request for steady, predictable traffic, and reserved capacity reduces the cost further. Separately, the Standard-IA table class lowers storage prices at a higher cost per request, which suits tables where storage dominates the bill and data is rarely read. The following table summarises the options.
| Option | Best for |
|---|---|
| On-demand | Unknown, spiky or new workloads; pay per request, no planning; maximum throughput can be capped per table |
| Provisioned with auto scaling | Steady, predictable traffic; cheaper per request, and reserved capacity cuts cost further |
| Standard-IA table class | Tables where storage dominates cost and data is rarely read |
A table can switch between capacity modes, so a new workload can start on demand and move to provisioned capacity once its pattern is known.
DynamoDB capacity and cost
Hot partitions
DynamoDB spreads data across partitions by the partition key, and each partition serves up to 3,000 read units and 1,000 write units per second. Adaptive capacity shifts throughput towards busy partitions and isolates very hot items, but a single key that receives most of the traffic still throttles, even when the table's total capacity is largely unused. Throttling with spare total capacity is therefore the signature of a hot partition.
The fixes address the key. A higher-cardinality partition key, such as a customer ID rather than a country, spreads traffic naturally. Write sharding appends a random or calculated suffix, such as 2026-10-09#7, so writes for one logical key spread across several partitions, and reads query all suffixes in parallel. Read-hot items are served from DAX or another cache. CloudWatch Contributor Insights for DynamoDB lists the most accessed and most throttled keys, which identifies the hot partition directly.
The following diagram compares one hot key with the same writes sharded across four keys.

Global tables
Global tables replicate across Regions in an active-active configuration with last-writer-wins conflict resolution, or with multi-Region strong consistency where every Region must read the latest write. Write capacity must be sufficient in every replica Region, because every write is applied everywhere.
A game stores scores in a DynamoDB table keyed by gameId. During a launch, one new game receives 90% of writes, and the application sees ProvisionedThroughputExceededException although the table's total provisioned capacity is far from used.
Throttling below total capacity means a hot partition. Raising provisioned capacity or switching to on-demand does not lift the per-partition limit. Write sharding the partition key (for example gameId#0 to gameId#9) spreads the writes; leaderboards can be computed from the shards or maintained separately.
When should a table use the Standard-Infrequent Access table class?
Show answer
When storage is the largest part of its cost, because the class lowers storage prices while raising the price of reads and writes.
Exam Tips
Remember for the exam
- On-demand for unpredictable traffic; provisioned with auto scaling and reserved capacity for steady traffic.
- Throttling while total capacity is unused means a hot partition: improve the key or shard writes.
- Find hot keys with CloudWatch Contributor Insights.
- Standard-IA table class suits storage-heavy, rarely read tables.
- Global tables need write capacity in every replica Region.