Skip to main content
InterviewHubPRO
Section Overview
Q38

Question 38 of 50

Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)

76%
Amazon DynamoDB (50 Qs)•Part 3: Advanced Architecture, Scale & Internals (Senior / Lead)

Single-Table Design: Modeling Complex Domains in One Table.

senior LevelSystem DesignDynamoDB

In Simple Words: Instead of creating 10 relational tables for Users, Orders, Products, and Reviews, Single-Table Design models all entities in one physical DynamoDB table using generic key names (PK, SK):

  • User Entity: PK = "USER#101", SK = "METADATA#101"
  • Order Entity: PK = "USER#101", SK = "ORDER#2026-11-20#501"
  • Single Query Advantage: With a single Query call on PK = "USER#101", you retrieve both the User's profile AND their recent orders in one single round-trip (<10ms) without any relational joins!