A startup is developing a mobile application to track real-time delivery status updates. The application experiences highly unpredictable spikes in usage, reaching up to during lunch and dinner hours, and dropping to near zero overnight. The data structure is simple key-value pairs representing the delivery ID and its status. The startup has a strict budget and wants to minimize operational and storage costs while preventing database throttling. Which database configuration meets these requirements most cost-effectively?
- Amazon DynamoDB configured in On-Demand capacity mode.Answer
- BAmazon DynamoDB configured in Provisioned capacity mode with Auto Scaling enabled.
- CAmazon RDS for PostgreSQL with a Read Replica in another Availability Zone to serve as the automatic failover target.
- DAmazon DynamoDB configured with high Provisioned capacity and a partition key based on the delivery date.
Answer
Amazon DynamoDB configured in On-Demand capacity mode.
The correct option is the choice stating that DynamoDB should be configured in On-Demand capacity mode. This mode is the most cost-effective solution for workloads that are highly unpredictable, experience sudden spikes, and have long idle periods. With on-demand capacity, the startup pays only for the read and write requests actually executed. It scales up or down instantly to handle spikes up to the table's previous peak traffic, completely avoiding throttling without the need to overprovision capacity.
Step-by-Step Solution
Key Concept
Matching database capacity scaling modes to unpredictable, spiky workloads to optimize costs.