Cloud Computing

The Art of Single Table Design (DynamoDB)

Moving from SQL to NoSQL often fails because people try to normalize data. This lesson explains how to group multiple entities into one table for O(1) performance.

Level: AdvancedCloud Computing

What You'll Learn

Why normalisation fails in DynamoDB
Partition key and sort key design patterns
Entity grouping with prefixed sort keys
Access pattern-first schema design
Modelling one-to-many and many-to-many relationships
User + Orders + Profile in a single table
Query and GetItem at O(1) cost

What's Included

๐ŸงญAI Tutor๐Ÿ”’

Interactive learning path with AI-generated lessons read aloud by your personal tutor

๐ŸงชPractice Lab๐Ÿ”’

Step-by-step lab instructions with AI guidance โ€” run in your own IDE or sandbox.

๐ŸŽ™๏ธMock Interviews๐Ÿ”’

AI interviewer asks tailored questions, gives real-time feedback and a score report

๐Ÿ“Evaluation๐Ÿ”’

MCQ questions (theory, practical, code) to test your knowledge and earn a badge

โš”๏ธChallenge AI๐Ÿ”’

Compete head-to-head against AI on real production problems โ€” judged on correctness, performance, scalability, code quality, and edge cases

Course Syllabus

Module 1: DynamoDB Mental Model

  • โ€ขWhy SQL normalisation breaks NoSQL performance
  • โ€ขDynamoDB data model: tables, items, attributes
  • โ€ขPartition key vs sort key โ€” the compound key
  • โ€ขHot partitions and how to avoid them
  • โ€ขAccess pattern-first design methodology

Module 2: Single Table Patterns

  • โ€ขEntity prefixing with sort keys (USER#, ORDER#)
  • โ€ขGrouping User + Orders + Profile in one table
  • โ€ขGSIs (Global Secondary Indexes) for alternate access
  • โ€ขSparse indexes for optional attributes
  • โ€ขOverloading GSI keys for multi-entity queries

Module 3: Building the Data Model

  • โ€ขMapping a 3-table relational schema to DynamoDB
  • โ€ขWriting and reading with the AWS SDK
  • โ€ขTransactional writes across entity types
  • โ€ขCost and performance comparison vs multi-table
  • โ€ขCapstone: User + Orders + Profile single table implementation

You're all set

Everything in this course is unlocked.

Continue Learning โ†’
โœ“AI Tutor
โœ“Practice Lab
โœ“Mock Interviews
โœ“Evaluation
โœ“Challenge AI