Soru

Zorluk: KolayHigh-Performing Database Solutions

An IoT fleet management company is deploying a new tracking solution where thousands of vehicles send location telemetry data every second. The database must ingest this write-heavy workload with low latency. Which two strategies should a solutions architect recommend to optimize write performance and prevent database throttling? (Select TWO.)

  1. Use the vehicle ID as the partition key and the timestamp as the sort key for the Amazon DynamoDB table.Cevap
  2. Configure Amazon DynamoDB on-demand capacity mode or enable auto-scaling for provisioned write capacity.Cevap
  3. C
    Use the current date as the partition key and the vehicle ID as the sort key to ensure daily records are grouped together.
  4. D
    Migrate the database to Amazon RDS for PostgreSQL and add multiple Read Replicas to offload write operations.
  5. E
    Configure the DynamoDB table with fixed provisioned capacity and disable auto-scaling to prevent latency fluctuations.

Cevap

The solutions architect should use the vehicle ID as the partition key and the timestamp as the sort key to distribute partition traffic, and configure on-demand capacity or auto-scaling to dynamically scale write capacity.
Using the vehicle ID as the partition key distributes write operations evenly across multiple partitions. Combined with on-demand capacity or auto-scaling, the database adapts to traffic changes dynamically, maintaining high performance under heavy load.

Adım Adım Çözüm

1
Analyze write distribution requirements.
Identify that using a high-cardinality key like vehicle ID prevents hot partitions.
DynamoDB partitions data based on the partition key; even distribution of partition keys prevents single-partition bottlenecks.
2
Evaluate scaling mechanisms for write capacity.
Select auto-scaling or on-demand mode to dynamically adjust write throughput.
Static capacity mode fails to adapt to fluctuating traffic levels, causing throttled requests during peaks.

Anahtar Kavram

High-performing write workloads in DynamoDB require high-cardinality partition keys and elastic scaling modes (auto-scaling or on-demand) to avoid partition-level bottlenecks and capacity-based throttling.
Bu soruyu puanla