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.
More on Storage and Databases
Compare the S3 storage classes.BeginnerWhat is S3's consistency model?IntermediateHow does S3 versioning and delete work?BeginnerHow do S3 lifecycle rules work?IntermediateHow do bucket policies, ACLs and Block Public Access interact?IntermediateWhat are the S3 server-side encryption options?Advanced