A startup is deploying a new application that experiences highly unpredictable traffic. The application performs database read and write operations that spike suddenly for a few minutes and then drop to zero for hours. The startup wants to minimize costs and avoid paying for unused resources. Which Amazon DynamoDB capacity mode is the most cost-effective for this workload?
- On-demand capacity modeAnswer
- BProvisioned capacity mode with Auto Scaling
- CProvisioned capacity mode with high fixed capacity
- DProvisioned capacity mode with an Amazon SQS Standard queue to buffer writes
Answer
On-demand capacity mode
On-demand capacity mode is the most cost-effective choice for unpredictable, spiky workloads with long idle periods. It automatically scales to meet the sudden spikes instantly and incurs zero costs during idle hours since billing is based strictly on actual read and write request units consumed.
Step-by-Step Solution
Key Concept
Amazon DynamoDB capacity modes for cost optimization
Estimated Time:1m 0s