Data Store Management

A new DynamoDB table will use customer ID as its partition key and order ID as its sort key. Each customer's data will remain below 10 GB, and queries must support strongly consistent reads ordered by creation time. Which design meets these requirements?

Show the answer

Correct answerD. A local secondary index with creation time as its sort key

AWhy not this: Projecting an attribute does not create an access path that orders query results by that attribute.

BWhy not this: Global secondary indexes support only eventually consistent reads, so they cannot meet the consistency requirement.

CWhy not this: Placing order ID first sorts primarily by order ID, not by creation time across the customer's orders.

DWhy this is right: A local secondary index supports creation-time ordering within each customer partition and allows strongly consistent reads.

A local secondary index provides an alternate sort key within the same partition key and supports strongly consistent reads. A global secondary index supports alternate access patterns but only eventually consistent reads.