Soru

Zorluk: KolayServerless and Automated Scaling Architectures for Cost Efficiency

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?

  1. Configure the DynamoDB table to use On-Demand capacity mode.Cevap
  2. B
    Configure the DynamoDB table to use Provisioned capacity mode with high write and read capacity units to accommodate the traffic spikes.
  3. C
    Configure the DynamoDB table to use Provisioned capacity mode and purchase a Compute Savings Plan to reduce the throughput costs.
  4. D
    Configure 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

1
Analyze the workload characteristics: unpredictable spikes in traffic followed by long periods of complete inactivity.
Determine that the database must scale instantly to handle spikes and scale to zero (incurring no throughput costs) when idle.
This establishes the requirements for a cost-effective database scaling mechanism.
2
Evaluate Amazon DynamoDB capacity modes against these characteristics.
On-Demand capacity mode automatically scales to accommodate spikes and charges only for actual read and write requests, incurring zero throughput costs when idle.
Comparing On-Demand and Provisioned modes determines the most cost-effective option.

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
Bu soruyu puanla