Soru

Zorluk: OrtaCost-Optimized Database Design and Capacity Planning

A company runs a social media application where users post updates. The database workloads are split into two Amazon DynamoDB tables:

1. A table storing user posts, which receives highly unpredictable, sudden spikes of write traffic when posts go viral.
2. A table storing user profile information, which has a stable, predictable read volume during daytime hours.

Both tables are currently configured with high Provisioned Capacity Units (PCUs) to prevent throttling during peak times, leading to significant idle capacity costs.

Which TWO actions should the solutions architect recommend to optimize the database costs? (Select TWO).

  1. Configure the user posts table to use DynamoDB On-Demand capacity mode.Cevap
  2. Enable DynamoDB Auto Scaling with provisioned capacity for the user profile table.Cevap
  3. C
    Configure the user posts table to use Provisioned capacity mode with a static limit set to the highest peak traffic level.
  4. D
    Configure the user profile table to use Amazon RDS Read Replicas and set them as the primary automatic failover target.
  5. E
    Purchase Compute Savings Plans to cover the read and write capacity unit costs of both DynamoDB tables.

Cevap

Configure the user posts table to use DynamoDB On-Demand capacity mode, and enable DynamoDB Auto Scaling with provisioned capacity for the user profile table.
For the user posts table, DynamoDB On-Demand capacity mode automatically accommodates sudden traffic spikes without throttling and charges only for what is consumed, making it ideal for unpredictable workloads. For the user profile table, DynamoDB Provisioned capacity mode with Auto Scaling allows the company to take advantage of lower baseline rates for predictable traffic while adjusting to daily usage changes.

Adım Adım Çözüm

1
Analyze the workload characteristics of each DynamoDB table.
The user posts table has highly unpredictable, spiky traffic. The user profile table has stable, predictable read traffic.
Choosing the right capacity mode requires aligning database scaling behavior with the specific predictability of each workload.
2
Select the optimal capacity mode for the user posts table.
Choose On-Demand capacity mode.
On-demand mode eliminates the need to overprovision for spikes, preventing idle capacity costs for unpredictable workloads.
3
Select the optimal capacity mode for the user profile table.
Choose Provisioned capacity mode with Auto Scaling enabled.
Predictable workloads benefit from the lower pricing of provisioned capacity, while Auto Scaling handles gradual shifts during daytime hours.

Anahtar Kavram

Selecting cost-optimal capacity modes and scaling policies in Amazon DynamoDB based on workload predictability.
Tahmini Süre:2m 0s
Bu soruyu puanla