PrepZone Logo
PrepZone
Back to Database

Database · Hard

How do you model data in DynamoDB? Partition key, sort key, GSI, LSI, and single-table design.

DatabaseCloud DatabasesStaffAWSNoSQL

Answer preview

DynamoDB is a managed key-value and document store where you design the table around your access patterns rather than around normalised entities. The primary key decides how data is physically partitioned, so getting it right is the whole design exercise.…