A company is building a corporate internal application that runs on Amazon DynamoDB. The database experiences short, highly unpredictable spikes in query volume at random times throughout the day, followed by long periods of inactivity with no requests. The primary objective is to minimize database costs. Which capacity planning strategy is the most cost-effective for this workload?
- Configure the DynamoDB table with On-Demand capacity modeAnswer
- BConfigure the DynamoDB table with Provisioned capacity mode and fixed capacity units
- CConfigure the DynamoDB table with Provisioned capacity mode and enable Auto Scaling
- DMigrate the table to Amazon RDS with Multi-AZ enabled and use read replicas to scale the write operations during peak hours
Answer
Configure the DynamoDB table with On-Demand capacity mode
The correct option is to configure the DynamoDB table with On-Demand capacity mode. This mode charges strictly per request (read/write request units) and does not incur any baseline storage or capacity charges when the database is idle. This makes it ideal and highly cost-effective for spiky, unpredictable workloads with long periods of zero traffic.
Step-by-Step Solution
Key Concept
Selecting between DynamoDB On-Demand and Provisioned capacity modes for cost optimization of spiky, idle workloads
Estimated Time:45s