Quick revision
The short answer
I would review key designs for uniform distribution now, while the data is still small, because changing a partition key later means migrating data. Capacity would come from on-demand mode or autoscaling with pre-warming before known events, proven by load tests with realistic key skew. Caching for read hot spots and write sharding for write hot spots would become standard building blocks, per-key monitoring such as CloudWatch Contributor Insights or nodetool toppartitions would alert before throttling, and capacity budgets and data model reviews would be part of launch readiness for every big event.
What to remember
In this answer, we saw that growth multiplies the load on every key while the capacity of one key stays fixed, so a 20x forecast with seasonal spikes is mainly a key design problem. We reviewed keys now while migration is cheap, provided capacity through on-demand or autoscaling with pre-warming and load tests with realistic skew, standardised caching and write sharding, monitored per key with alerts before throttling, and made budgets and data model reviews part of launch readiness.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
I would review key designs for uniform distribution now, while the data is still small, because changing a partition key later means migrating data. Capacity would come from on-demand mode or autoscaling with pre-warming before known events, proven by load tests with realistic key skew. Caching for read hot spots and write sharding for write hot spots would become standard building blocks, per-key monitoring such as CloudWatch Contributor Insights or nodetool toppartitions would alert before throttling, and capacity budgets and data model reviews would be part of launch readiness for every big event.
Why this question is asked
Growth rarely breaks a NoSQL system all at once. It breaks it at its most skewed point: the one key, table or day that takes far more than its share. At 20 times today's traffic, a key that uses 5 percent of a partition's limit today will exceed it, and seasonal peaks bring that day forward. Interviewers ask this question to see whether we can turn a growth forecast into engineering standards, not just into bigger capacity numbers. In this answer, we will look at what changes with 20x growth, why key reviews come first, how to provide capacity for spikes, which building blocks to standardise, and how monitoring and launch readiness keep it under control.
1What 20x Growth Does to Hot Keys
Partition-based databases such as DynamoDB and Cassandra scale out by adding partitions or nodes, but a single partition key always lives in one place. So total capacity grows with the cluster, while the capacity of one key stays fixed, around 1,000 writes and 3,000 reads per second for one DynamoDB partition key (check the current limits). Growth multiplies the load on every key. A key that peaks at 60 writes per second today will peak at 1,200 in five years, and at 3,600 on a seasonal day that is three times a normal peak.
This is why the question is about strategy rather than capacity. Buying more capacity solves the table-level problem automatically. Only design solves the per-key problem.
| Moment | Writes per second on the busiest key | Against a 1,000 limit |
|---|---|---|
| Today, normal peak | 60 | 6 percent |
| Today, seasonal peak (3x) | 180 | 18 percent |
| Year 5, normal peak (20x) | 1,200 | over the limit |
| Year 5, seasonal peak | 3,600 | 3.6 times over |
2Reviewing Key Designs Now
The cheapest moment to fix a key design is before the data grows, because changing a partition key in DynamoDB or Cassandra means copying every item into a new layout while the system keeps running. So I would start with a review of every table: for each access pattern, what is the partition key, how many distinct values does it have, and what share of traffic does the busiest value take today?
Keys built on low-cardinality values such as status, country or the current date, and keys owned by a single large tenant or a popular item, are the ones to redesign. The question for each is: if this key's traffic grows 60 times, which is 20 times growth on a 3 times seasonal peak, does it still fit in one partition? If not, it needs a high-cardinality component or sharding now.
3Capacity for Growth and Seasonal Spikes
For DynamoDB, on-demand mode is the simplest choice for spiky traffic. It scales with traffic and charges per request, and it can absorb up to double the previous peak immediately, with further growth taking time to adapt. So for a known event far above previous peaks, we pre-warm. Depending on the features available in your region and version, that means setting the table's warm throughput ahead of time, or switching to provisioned mode with high capacity before the event and back afterwards. Provisioned mode with autoscaling is cheaper for steady traffic, but autoscaling reacts within minutes, so it also needs scheduled scaling before known peaks.
For Cassandra, capacity means nodes. Adding nodes and streaming data to them takes hours, so the cluster must be sized for the seasonal peak in advance, with headroom so that losing one node during the peak does not overload the rest. Either way, I would prove the plan with load tests that use realistic key skew, replaying the distribution of real traffic scaled up, because uniformly random keys never reveal hot partitions.
4Standard Building Blocks for Hot Spots
Hot spots will appear anyway, so teams should not invent a solution each time. I would provide two standard patterns, with libraries and documentation. For read hot spots, a caching tier: an in-process cache for configuration-like data, a shared cache such as Redis, or DAX in front of DynamoDB, with clear rules for expiry. For write hot spots, write sharding: spreading one logical key over N sub-keys such as key#0 to key#31, with a helper that writes to a shard and reads all shards back.
Making these building blocks shared has a second benefit: when a review finds a risky key, the fix is a known, tested pattern rather than a project.
- Key design reviewcardinality and skew per access pattern
- Capacity planon-demand or autoscaling, pre-warm for events
- Read hot spotscache tier: in-process, Redis, DAX
- Write hot spotswrite sharding library, N sub-keys
- Per-key monitoringContributor Insights, toppartitions, alerts
- Launch readinessbudget and data model review per big event
6 layers, from the top down. Step through them one at a time.
5Monitoring Per Key and Alerting Early
Table-level metrics hide hot keys, so we need per-key visibility. In DynamoDB, CloudWatch Contributor Insights reports the most accessed and most throttled keys. In Cassandra, nodetool toppartitions samples the busiest partitions, and per-node latency and dropped mutation metrics show skew across replicas.
Alerts should fire before throttling, not when it starts. For example, we alert when the busiest key on a table reaches 50 percent of the per-partition limit at peak, which gives weeks or months to redesign it as growth continues. Throttle events should page someone, but by then users are already affected.
6Budgets and Launch Readiness
Capacity is a cost line that grows with traffic, so it needs a budget, including the higher cost of on-demand during spikes and of pre-warming before events. I would agree that budget with finance yearly, with a forecast tied to the business growth plan. Finally, I would make a data model and capacity review part of the launch readiness checklist for every big event or launch: which keys get the new traffic, what is the expected peak per key, which caches and shards are in place, and what the load test showed. This is where most incidents are prevented, because it forces the conversation before the peak instead of during it.
7Follow-up questions
Is on-demand capacity enough to stop worrying about throttling?
No. On-demand removes table-level capacity planning, but per-partition limits still apply to each key, and very sudden jumps far above previous peaks can still throttle while the table adapts. Key design and pre-warming remain necessary.
How often should key designs be reviewed?
Once as a baseline, then for every new table or access pattern, before every major event, and whenever per-key monitoring shows a key above an agreed share of its limit.
Does the same strategy apply to Cassandra?
Yes, with different tools. The hot-key logic is identical, but capacity is added as nodes in advance, monitoring uses nodetool toppartitions and node metrics, and large partitions also need watching because they slow reads and compaction.
8Conclusion
In this answer, we saw that growth multiplies the load on every key while the capacity of one key stays fixed, so a 20x forecast with seasonal spikes is mainly a key design problem. We reviewed keys now while migration is cheap, provided capacity through on-demand or autoscaling with pre-warming and load tests with realistic skew, standardised caching and write sharding, monitored per key with alerts before throttling, and made budgets and data model reviews part of launch readiness.
Open with
The core issue is that total capacity scales out but a single partition key does not: it stays on one partition with fixed limits, so 20 times growth on top of a three times seasonal peak turns a harmless key into the bottleneck.
Then, if they want more
So my first step is a key design review now, while data is small, because changing a partition key later means migrating everything. For each access pattern I would check cardinality and the share of traffic the busiest key takes, and redesign low-cardinality or time-based keys.
For capacity I would use on-demand for spiky DynamoDB tables, or provisioned with autoscaling and scheduled scaling, and pre-warm before known events because on-demand only absorbs about double the previous peak instantly. For Cassandra, nodes are added well before the season. All of that gets proven with load tests using realistic key skew.
Then I would provide standard building blocks: a caching tier for read hot spots and a write sharding library for write hot spots, so fixes are routine. Monitoring has to be per key: Contributor Insights for DynamoDB and toppartitions for Cassandra, with alerts at say 50 percent of a partition's limit, well before throttling.
Finally, I would budget capacity with finance and add a data model and capacity review to launch readiness for every big event.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Cassandra documentation, Amazon DynamoDB developer guide
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Looking at your company's growth plans, traffic is expected to grow 20 times over five...": https://scrivio-interview-library.netlify.app/databases/cassandra-and-dynamodb/432b5776e8/