A startup is launching a mobile fitness tracking application. The application's database must handle write-heavy transaction workloads that are highly unpredictable, with sudden bursts of traffic when popular workouts are shared. The company wants to minimize costs and avoid paying for idle resources, while ensuring no write requests are throttled. Which database configuration should the solutions architect recommend to meet these requirements most cost-effectively?
- AUse Amazon DynamoDB configured with provisioned capacity mode and enable auto-scaling to adjust capacity based on utilization.
- Use Amazon DynamoDB configured with on-demand capacity mode.Cevap
- CUse Amazon RDS for PostgreSQL with a Multi-AZ deployment and purchase a Compute Savings Plan to reduce compute costs during peak hours.
- DUse Amazon RDS for MySQL with a Single-AZ deployment and configure an RDS Read Replica as the primary automatic failover target to ensure cost-optimal disaster recovery.
Cevap
Use Amazon DynamoDB configured with on-demand capacity mode.
The correct answer is the option recommending Amazon DynamoDB in on-demand capacity mode. For highly spiky and unpredictable write workloads with idle periods, on-demand capacity mode is the most cost-effective solution. It automatically scales to accommodate the write bursts instantly, ensuring no requests are throttled, and charges only for the request units consumed, resulting in zero cost during idle periods.
Adım Adım Çözüm
Anahtar Kavram
Selecting the cost-optimal database engine and capacity planning strategy for unpredictable, spiky workloads.