A startup is developing a restaurant table booking application. The application experiences highly irregular and unpredictable traffic spikes when popular restaurants open their reservation windows, followed by hours of low activity. The database must store the reservation records with single-digit millisecond latency. Which database configuration is the most cost-effective to meet these requirements?
- Configure an Amazon DynamoDB table using On-Demand capacity mode.Cevap
- BConfigure an Amazon DynamoDB table using Provisioned capacity mode with Auto Scaling, setting the minimum provisioned write capacity to the peak historical load.
- CDeploy an Amazon RDS for PostgreSQL database instance in a single Availability Zone and configure a Read Replica in a different Availability Zone to serve as the automatic failover destination.
- DDeploy an Amazon RDS for PostgreSQL database instance and purchase a Compute Savings Plan to cover the hourly database compute costs.
Cevap
Configure an Amazon DynamoDB table using On-Demand capacity mode.
The correct option is to configure an Amazon DynamoDB table using On-Demand capacity mode. On-Demand mode is designed for workloads with unpredictable or spiky traffic patterns because it automatically accommodates bursts of traffic without the need to provision capacity in advance. Since charges are based only on the actual read and write requests processed, the startup avoids paying for idle resources during low-activity hours.
Adım Adım Çözüm
Anahtar Kavram
Matching database capacity models (On-Demand vs. Provisioned) and services to unpredictable, spiky workloads to achieve cost optimization.