Development with AWS Services
Which partition key best distributes DynamoDB writes for millions of devices that each send approximately the same number of readings?
Show the answer
Correct answerA. The device's unique identifier
AWhy this is right: Millions of distinct device identifiers spread the approximately equal per-device write activity.
BWhy not this: Model names group many devices under a limited set of partition key values.
CWhy not this: Regions group many active devices under relatively few partition key values.
DWhy not this: Readings arriving on the same date concentrate writes under one partition key value.
Unique device identifiers provide many distinct partition key values with approximately even write activity. A calendar date concentrates current readings under the same key, creating a hot-key risk.