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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Partition Key

A

Determines which partition data should be written to.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Important Notes

A

DynamoDB doesn’t have a Date datatype; for dates, you have to use a string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly