Partition Keys and Sort Keys in DynamoDB

The different between DynamoDB's Partition and Sort keys

Posted on September 10, 2020

When creating atable in Dynamo DB you’re required to add a Primary Key of the table. You have two options – add a Partition Key or a Partition key and Sort Key.

The Primary Key uniquely identifies each item in the table and no two items can have the same Partition Key.

Here’s a simple explanation of the two and what they do.

Partition Key

Partition key and sort key