An application experiences sudden, highly unpredictable spikes in database write traffic during marketing events, followed by long periods of complete inactivity. Which Amazon DynamoDB capacity configuration is the most cost-effective for this workload?
- DynamoDB in On-Demand capacity modeAnswer
- BDynamoDB in Provisioned capacity mode with Auto Scaling
- CDynamoDB in Provisioned capacity mode with fixed capacity scaled for peak demand
- DDynamoDB in Provisioned capacity mode utilizing Multi-AZ replica instances for write scaling
Answer
DynamoDB in On-Demand capacity mode is the most cost-effective option for unpredictable, spiky workloads with idle periods because it scales instantly and charges only for actual read and write requests.
DynamoDB in On-Demand capacity mode is designed for workloads with highly unpredictable traffic patterns and periods of inactivity. It automatically manages capacity and instantly scales to meet demand without requiring manual configuration or auto-scaling policies. Because it charges only for the read and write request units actually consumed, it eliminates costs during idle periods, making it the most cost-effective choice.
Step-by-Step Solution
Key Concept
Choosing between Provisioned and On-Demand capacity modes in DynamoDB to optimize costs based on workload predictability.