Amazon Aurora

Difficulty: Intermediate

Question

What are the advantages of Amazon Aurora over standard RDS MySQL or PostgreSQL, and when is it not worth it?

Answer

Amazon Aurora is a MySQL- and PostgreSQL-compatible relational database whose biggest difference from standard RDS is its storage layer: a distributed, self-healing volume that keeps six copies of your data across three Availability Zones and grows automatically. That design gives faster failover, up to 15 low-lag read replicas sharing the same storage, and higher throughput (AWS cites up to 5x standard MySQL and 3x standard PostgreSQL). It costs more per instance hour, so it is not automatically the right choice.

How Aurora's storage is different

In standard RDS, each database instance has its own EBS volume. Multi-AZ means a standby instance with its own copy, kept in sync by replication, and every read replica has yet another full copy.

In Aurora, compute and storage are separated:

  • One cluster volume is shared by the writer and all reader instances.
  • Data is split into 10 GB segments, each replicated six ways across three AZs.
  • A write is acknowledged when 4 of 6 copies confirm; reads need 3 of 6. So the cluster tolerates losing an entire AZ, plus one more copy, without losing data.
  • The database ships only redo log records to storage, not full pages, which cuts network I/O.
  • Storage grows automatically as data grows; you do not pre-provision it.

Practical advantages

FeatureStandard RDSAurora
StorageEBS per instance, provisioned sizeShared cluster volume, auto-growing
Data copies1 (2 with Multi-AZ standby)6 across 3 AZs, always
Read replicasUp to 15 (engine dependent), each with own storage, async lagUp to 15 sharing storage, lag usually well under a second
FailoverTypically 1-2 minutes to standbyUsually under 30 seconds to a reader
Cross-RegionCross-Region read replicasGlobal Database with storage-level replication, typically under 1 second lag
ExtrasStandard engine featuresFast cloning, Backtrack (MySQL), Serverless v2, I/O-Optimized pricing

Aurora Serverless v2 scales capacity in fine-grained steps (Aurora Capacity Units) within seconds, which suits spiky or unpredictable workloads like flash sales or exam result days. Fast database cloning uses copy-on-write, so creating a full-size test copy of production takes minutes and costs little until data diverges.

When Aurora is not worth it

  • Small, steady workloads, where a single standard RDS instance is cheaper.
  • You need an engine Aurora does not offer (Oracle, SQL Server, Db2, MariaDB).
  • I/O-heavy workloads on the Standard configuration can get expensive because I/O is billed per request. The Aurora I/O-Optimized configuration removes per-I/O charges at a higher instance and storage price; compare both.
  • Some engine versions and extensions arrive in Aurora later than in community PostgreSQL or MySQL.

Interview-level summary

Aurora is the default choice when availability and read scaling matter, for example a payments ledger that cannot afford minutes of downtime during failover. Plain RDS is fine for modest internal apps where cost matters more than a 30-second failover.

Aurora cluster architecture. Compute instances share one distributed storage volume that keeps six copies across three AZs.
  1. Cluster and reader endpoints: Writes go to the writer, reads spread across readers.
  2. Writer instance: Handles all writes and sends redo logs to storage.
  3. Up to 15 reader instances: Read from the same volume, promotable on failover.
  4. Shared cluster volume: Auto-growing, split into 10 GB segments.
  5. Six copies across three AZs: Write quorum 4 of 6, read quorum 3 of 6.

Code examples

Creating an Aurora PostgreSQL cluster with a Serverless v2 reader

aws rds create-db-cluster \
  --db-cluster-identifier payments-cluster \
  --engine aurora-postgresql \
  --master-username dbadmin --manage-master-user-password \
  --serverless-v2-scaling-configuration MinCapacity=0.5,MaxCapacity=16

# Provisioned writer
aws rds create-db-instance --db-instance-identifier payments-writer \
  --db-cluster-identifier payments-cluster \
  --engine aurora-postgresql --db-instance-class db.r7g.large

# Serverless v2 reader that scales with read traffic
aws rds create-db-instance --db-instance-identifier payments-reader-1 \
  --db-cluster-identifier payments-cluster \
  --engine aurora-postgresql --db-instance-class db.serverless

A cluster can mix provisioned and Serverless v2 instances. --manage-master-user-password stores the password in Secrets Manager instead of in your scripts.

Key points

  • Aurora separates compute from a shared, distributed storage volume
  • Six copies across three AZs, write quorum 4/6 and read quorum 3/6
  • Up to 15 readers share storage, so replica lag is low and failover is fast
  • Global Database, fast cloning, Backtrack (MySQL), and Serverless v2 are Aurora-only features
  • Costs more than standard RDS; compare Standard vs I/O-Optimized for I/O-heavy workloads

Common follow-up questions

  • How does Aurora fail over, and what happens to connections during failover?
  • What is the difference between Aurora Serverless v2 and a provisioned Aurora instance?
  • How does Aurora Global Database differ from a cross-Region read replica?
  • When would you choose standard RDS PostgreSQL over Aurora PostgreSQL?

Interview tips

  • Explain the storage architecture (six copies, quorum, shared volume); every other benefit follows from it
  • Treat the '5x faster' claim as AWS marketing and focus on failover time, replica lag, and durability
  • Mention cost and I/O pricing to show you would not pick Aurora blindly

Concepts covered

Amazon Aurora, Distributed Storage, Read Replicas, Aurora Serverless v2, Global Database

More AWS & Cloud Fundamentals questions