A company is deploying a serverless mobile application backend on AWS. The application database experiences sudden, unpredictable spikes in write traffic during promotional events, followed by long periods of complete inactivity. The company wants to minimize costs and ensure they do not pay for database throughput during idle periods. Which Amazon DynamoDB configuration is the most cost-effective for this workload?
- Configure the DynamoDB table to use On-Demand capacity mode.Cevap
- BConfigure the DynamoDB table to use Provisioned capacity mode with high write and read capacity units to accommodate the traffic spikes.
- CConfigure the DynamoDB table to use Provisioned capacity mode and purchase a Compute Savings Plan to reduce the throughput costs.
- DConfigure the DynamoDB table to use Provisioned capacity mode with partition keys set as monotonically increasing timestamps to handle the spikes.
Cevap
Configure the DynamoDB table to use On-Demand capacity mode.
Configuring the table in On-Demand capacity mode is the most cost-effective choice. It automatically handles unpredictable spikes without requiring capacity planning and scales down to zero throughput charges during idle periods, matching the pay-per-request pricing model.
Adım Adım Çözüm
Anahtar Kavram
Amazon DynamoDB On-Demand capacity mode provides pay-per-request pricing and automatically scales up and down to zero, making it ideal for unpredictable workloads with idle periods.
Tahmini Süre:45s