A marketing company operates a notification platform that sends SMS messages to customers. The timing of promotional campaigns is unpredictable, resulting in sudden, massive spikes in write operations to a database table that records delivery logs. During these campaigns, write traffic surges from to over writes per second within seconds, and then quickly drops back to once the run is complete. Which database capacity configuration is the most cost-effective and reliable for this workload?
- AConfigure the database table in Amazon DynamoDB using Provisioned capacity mode with a fixed write capacity of Write Capacity Units (WCUs).
- Configure the database table in Amazon DynamoDB using On-Demand capacity mode.Cevap
- CConfigure the database table in Amazon DynamoDB using Provisioned capacity mode with Auto Scaling enabled.
- DMigrate the database to Amazon RDS for PostgreSQL and configure Read Replicas to absorb the write traffic.
Cevap
Configuring the database table in Amazon DynamoDB using On-Demand capacity mode.
On-Demand capacity mode is the optimal choice because the workload has sudden, unpredictable peaks and long idle periods. It handles instantaneous surges up to the table's previous peak traffic immediately without throttling, and only charges for the actual requests processed, eliminating idle capacity costs.
Adım Adım Çözüm
Anahtar Kavram
DynamoDB capacity modes selection based on workload predictability and spike latency.
Tahmini Süre:2m 0s