Soru

Zorluk: OrtaCost-Optimized Database Design and Capacity Planning

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 00 to over 15,00015,000 writes per second within seconds, and then quickly drops back to 00 once the run is complete. Which database capacity configuration is the most cost-effective and reliable for this workload?

  1. A
    Configure the database table in Amazon DynamoDB using Provisioned capacity mode with a fixed write capacity of 15,00015,000 Write Capacity Units (WCUs).
  2. Configure the database table in Amazon DynamoDB using On-Demand capacity mode.Cevap
  3. C
    Configure the database table in Amazon DynamoDB using Provisioned capacity mode with Auto Scaling enabled.
  4. D
    Migrate 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

1
Analyze the workload pattern and performance requirements.
The workload is highly unpredictable, idle most of the time, and requires a rapid scale-up from 00 to over 15,00015,000 writes per second within seconds.
Understanding the latency tolerance and scaling rate helps select the correct scaling mechanism.
2
Evaluate DynamoDB capacity modes against this workload.
Provisioned capacity with Auto Scaling takes minutes to react, resulting in throttling. Fixed provisioned capacity leads to high idle costs. On-Demand capacity mode handles immediate spikes without throttling and costs nothing when idle.
DynamoDB On-Demand capacity mode is designed for workloads that are unpredictable and spiky.
3
Select the most cost-effective database configuration.
On-Demand capacity mode is the only option that meets both the instant scaling requirements and cost-efficiency goals.
It avoids both throttling and paying for provisioned capacity during idle hours.

Anahtar Kavram

DynamoDB capacity modes selection based on workload predictability and spike latency.
Tahmini Süre:2m 0s
Bu soruyu puanla