A smart home application collects frequent telemetry events from thousands of residential thermostats. The data must be recorded in an Amazon DynamoDB table.
Which partition key design should a solutions architect choose to distribute the write workload evenly across physical partitions?
- A unique thermostat identifier, which ensures a diverse and balanced distribution of write requests.Cevap
- BA timestamp representing the exact millisecond the event occurred, which allows query ordering.
- CThe device status value, which categorizes events into active or inactive states.
- DA static region name representing the country of deployment, which groups all devices together.
Cevap
A unique thermostat identifier, which ensures a diverse and balanced distribution of write requests.
The correct answer is the option that proposes a unique thermostat identifier. In Amazon DynamoDB, partition keys should have high cardinality (many distinct values) to distribute workloads evenly across all available physical partitions. This design ensures optimal write performance and prevents throttling under high write volumes.
Adım Adım Çözüm
Anahtar Kavram
Amazon DynamoDB Partition Key Design and Cardinality