Managed database landscape

RDS vs Aurora vs DynamoDB vs ElastiCache — consistency, scaling model, failover behavior, and cost shape of each. "Which database?" is a constraints question.

About 30 min read3-question knowledge check

The mental model

Picking a database in the cloud is like picking transport for a delivery business. A relational database (RDS, Aurora) is a fleet of trucks on fixed roads — every parcel has a strict shape, the routes are known, and you can ask complex questions like "which parcels went to Pune via Nagpur last Tuesday." A key-value store (DynamoDB) is a swarm of motorcycles — blindingly fast for "deliver this exact parcel to this exact address," useless for "route through three cities and join with yesterday's schedule." A cache (ElastiCache) is the parcel you keep on the front seat because you will need it again in the next five minutes — it lives in memory, it is gone if the bike tips over, and you keep the real copy in the truck.

Why this exists as a distinct skill: "which database?" is the most common senior design question, and the wrong answer is naming a favourite. The right answer is a constraints interrogation — what is the consistency requirement, what is the read/write shape, how does it need to scale, what is the failover tolerance, and what does each option cost at your volume. AWS gives you managed versions of all four categories so you never run the underlying servers, but managed does not mean choice-free: the model you pick determines your ceiling, and migrating between models later is a project, not a config change.

The core insight interviewers probe: relational databases scale reads easily and writes with difficulty; key-value stores scale both but make you design the access pattern first. Everything else — Aurora's storage tricks, DynamoDB's partition keys, ElastiCache's eviction — is detail hanging off that one trade.

The full lesson continues with 15 more sections
  • Deep dive
  • Internal architecture
  • Real-world use cases
  • Best practices
  • Common mistakes
  • Performance
  • Security
  • Production troubleshooting
  • Advantages & disadvantages
  • Alternatives
  • Interview expectations
  • Interview questions
  • Facts to remember
  • Cheat sheet
  • Quick revision