A startup is launching a mobile game that stores user profile data. The game's traffic is highly unpredictable and spiky, with writes to the database increasing from 100 writes per second to over 12,000 writes per second within minutes when popular influencers stream the game. Outside of these events, traffic is minimal. The database must be highly available and scale automatically to handle these sudden spikes. Which database configuration meets these requirements most cost-effectively?
- Amazon DynamoDB configured in on-demand capacity modeCevap
- BAmazon DynamoDB configured in provisioned capacity mode with Auto Scaling enabled
- CAmazon RDS for MySQL in a Single-AZ deployment, utilizing a Read Replica in a different Availability Zone as the primary automated failover target to handle database recovery and accommodate write traffic spikes
- DAmazon DynamoDB configured in provisioned capacity mode with Write Capacity Units (WCUs) statically provisioned at 12,000
Cevap
Amazon DynamoDB configured in on-demand capacity mode
The correct answer is the option proposing Amazon DynamoDB in on-demand capacity mode. For highly unpredictable workloads with sudden, massive spikes followed by periods of inactivity, DynamoDB on-demand capacity mode is the most cost-effective choice. It scales automatically and instantly to accommodate write spikes up to 12,000 writes per second and incurs no charges when the database is idle, charging only for actual read and write requests.
Adım Adım Çözüm
Anahtar Kavram
Selecting the optimal database capacity mode (on-demand vs. provisioned) based on workload predictability and scaling velocity to minimize cost while maintaining performance.
Tahmini Süre:1m 30s