DynamoDB interview question · Most asked

On-demand or provisioned capacity: how do you choose?

Summary

On-demand charges per request and scales automatically, suiting new, unpredictable or spiky workloads. Provisioned capacity (usually with auto scaling, optionally with reserved capacity) is cheaper for steady, predictable traffic but can throttle on sudden spikes that auto scaling cannot follow.

Longer Answer

Auto scaling reacts in minutes based on CloudWatch metrics, so short bursts can still throttle a provisioned table. On-demand tables handle large increases quickly but have scaling characteristics of their own (instant accommodation up to roughly double the previous peak), and you can set maximum throughput limits to cap cost.

A common approach: launch on on-demand, observe the traffic shape, and move steady high-volume tables to provisioned with auto scaling and reserved capacity. You can switch modes, with limits on how often.

Key Points

  • On-demand: pay per request, spiky/unknown traffic.
  • Provisioned + auto scaling: cheaper for steady load.
  • Auto scaling lags short spikes.
  • Measure, then decide.

More most-asked DynamoDB questions

← All DynamoDB questions