Explain it in 60 seconds
Partition key and sort key in DynamoDB
Backend Engineering · NoSQL and Redis · Beginner
What is the role of the partition key and the sort key in DynamoDB?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Partition key: distributes data across partitions.
- Must have high cardinality.
- Sort key: orders items within partition.
- Query by partition key + sort key conditions.
- Composite key enables one-to-many.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.