DynamoDB simple Primary Key Flashcards
1
Q
Primary Key with only a Partition Key
A
Chooses which partition data is written to.
Overview
2
Q
Partition Key uniqueness
A
Must be unique when using a simple primary key.
Important Points
3
Q
Partition Key Definition
A
Must be unique.
Important Points
4
Q
Partition Key Length
A
Can be 1 to 255 characters and is case-sensitive.
Important Points
5
Q
New Data ID and Date
A
ID: 1002
Date: 1993-01-05
Data Partitioning
6
Q
Existing Partitions
A
Partition A: ID: 1000 Date: 1993-01-03
Partition B: ID: 1001 Date: 1993-01-04
Partition C: ID: 1002 Date: 1993-01-05
Data Partitioning
7
Q
DynamoDB’s Internal Hash Function
A
It’s a secret; the algorithm for deciding the partition for writing data is not disclosed.
Internal Mechanism