Bird
0
0

In DynamoDB, what is the purpose of the sort key?

easy📝 Conceptual Q2 of 15
AWS - DynamoDB

In DynamoDB, what is the purpose of the sort key?

ATo uniquely identify an item across all partitions
BTo encrypt data at rest
CTo sort items with the same partition key
DTo define the table's read capacity
Step-by-Step Solution
Solution:
  1. Step 1: Identify sort key function

    The sort key organizes items that share the same partition key by sorting them.
  2. Step 2: Exclude unrelated options

    Encryption and capacity are unrelated; uniqueness across partitions is by partition key plus sort key.
  3. Final Answer:

    To sort items with the same partition key -> Option C
  4. Quick Check:

    Sort key = Sorts items within partition [OK]
Quick Trick: Sort key orders items sharing partition key [OK]
Common Mistakes:
  • Thinking sort key uniquely identifies items alone
  • Confusing sort key with encryption or capacity
  • Assuming sort key controls partitioning

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes