Interview Prep/AWS/Storage and Databases

Explain DynamoDB keys and partitioning.

BeginnerConceptStorage and Databases
Answer

A table has a partition key (hash) and optional sort key (range); together they form the primary key. DynamoDB hashes the partition key to place items on physical partitions, so high-cardinality, evenly accessed partition keys spread load. Items are up to 400 KB.

Query by key (Query) is efficient; Scan reads the whole table and should be avoided for production paths.

aws All AWS questions Roadmap: AWS core services

More on Storage and Databases