Partitions and Data Distribution Flashcards

1
Q

Partition

A

A partition is an allocation of storage for a table, backed by solid state drives (SSDs) and automatically replicated across multiple Availability Zones within an AWS Region.

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

Data Distribution: Partition Key

A

DynamoDB uses the value of the partition key as input to an internal hash function. The output value from the hash function determines the partition in which the item will be stored.

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

Data Distribution: Partition Key and Sort Key

A

DynamoDB calculates the hash value of the partition key in the same way as described in Data Distribution: Partition Key. However, it stores all the items with the same partition key value physically close together, ordered by sort key value.

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

Data Distribution: Partition Key and Sort Key - READ

A

You can read multiple items from the table in a single operation (Query) if the items you want have the same partition key value. DynamoDB returns all of the items with that partition key value. Optionally, you can apply a condition to the sort key so that it returns only the items within a certain range of values.

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