A university student union operates a mobile voting application on AWS for annual campus elections. The application is completely idle for days of the year, but experiences highly unpredictable, spiky traffic during a -day election period. The database stores simple, non-relational voting records consisting of key-value pairs. The student union operates on a very limited budget and must minimize database operational costs while ensuring the system does not throttle or fail. Which database configuration is the most cost-effective and meets these requirements?
- AAn Amazon RDS for PostgreSQL Single-AZ DB instance with an active Read Replica in another Availability Zone, configured to promote the Read Replica as the primary instance to handle failover if the primary becomes overloaded.
- BAn Amazon DynamoDB table configured in Provisioned capacity mode with Auto Scaling enabled, setting the minimum Write Capacity Units (WCUs) to cover baseline idle traffic and the maximum to cover the expected peak.
- An Amazon DynamoDB table configured in On-Demand capacity mode.Answer
- DAn Amazon Aurora PostgreSQL DB cluster with a provisioned writer instance and two reader instances, utilizing an Aurora Auto Scaling policy to add reader instances during peak hours.
Answer
An Amazon DynamoDB table configured in On-Demand capacity mode is the most cost-effective solution.
The correct answer is the option specifying Amazon DynamoDB in On-Demand capacity mode. Because the application is idle for days a year, On-Demand capacity mode ensures there are no hourly write or read capacity charges during the idle period. During the -day election period, it instantly scales to accommodate any sudden write spikes, providing zero-throttling reliability at the lowest possible cost.
Step-by-Step Solution
Key Concept
Selecting the cost-optimal database engine and capacity scaling mode for spiky, highly irregular workloads.
Estimated Time:1m 30s