StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 4: Troubleshooting and Optimization

DynamoDB optimization: hot partitions, key design, on-demand vs provisioned capacity, adaptive capacity

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Amazon DynamoDB stores your data in many separate storage pieces called partitions. It decides which piece each item goes into by looking at the item's partition key, a bit like sorting mail into pigeonholes by the first letter of a surname. Each pigeonhole can only be filled so fast. If almost everyone's surname starts with the same letter, one pigeonhole is overwhelmed while the rest sit empty, even though the mail room as a whole has plenty of room. That overloaded pigeonhole is a "hot partition". The fix is choosing a key with lots of different, evenly used values. DynamoDB also lets you pick how you pay: per request, which adjusts automatically, or by reserving a set capacity, which is cheaper when traffic is steady.

Bluepine Sensors has 40,000 soil-moisture devices reporting to a DynamoDB table every minute. Every day around noon, when most farms water their fields, writes start failing with throttling errors, and the irrigation dashboard goes stale. Hana, the operations lead, sends you a CloudWatch screenshot: the table is provisioned for far more writes than it uses, and consumed capacity barely reaches a third of it. "We are paying for capacity we never use, and we are still being throttled. How is that possible?" You look at the table design and notice the partition key is the date. Is the problem how much capacity you bought, or where the traffic lands?

Amazon DynamoDB performance depends heavily on how your data and traffic spread across partitions. A table's data and throughput are divided among partitions by the hash of the partition key, and each partition has its own throughput limit: up to 3,000 read capacity units (RCUs) and 1,000 write capacity units (WCUs) per second. The consequence surprises many developers: a table can have plenty of total capacity and still throttle if requests concentrate on a few keys. The exam tests whether you can recognize this, fix it with key design, and choose the right capacity mode.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan