Ravi Sir's Cards › AWS
Partition key and sort key
What is a VPC: your own private network inside one AWS Region, example ThreeTierVpc 10.0.0.0/16.
Read card text
What this card says
Why do we need it?
Bad keys create hot partitions and slow queries.
What is it?
PK spreads data. SK orders items that share a PK for range queries.
How to do it
Design from access patterns first: what will you Query?
PK userId SK noteId
Example
userId + createdAt lets you list one user's notes newest first.