DynamoDB Primary Keys Flashcards
1
Q
Primary Key
A
When you create a table, you have to define a Primary Key.
The primary key determines where and how your data will be stored in partitions.
The primary key cannot be changed later.
2
Q
Partition Key
A
Determines which partition data should be written to.
3
Q
Sort Key
A
Determines how data should be sorted on a partition.
Using a Partition Key and Sort Key is called a Composite Primary Key.
Using only a Partition Key is called a Simple Primary Key.
4
Q
Important Notes
A
DynamoDB doesn’t have a Date datatype; for dates, you have to use a string.