RDS & Aurora: Multi-AZ, read replicas, backups
Design a relational tier for availability, read scaling and recovery.
By Invicly Tech, , in AWS Solutions Architect – Associate. About 12 minutes to read.
In short
RDS runs managed relational engines like MySQL, PostgreSQL and SQL Server. Multi-AZ gives high availability with automatic failover, and read replicas scale reads. Aurora is AWS's cloud-native MySQL and PostgreSQL-compatible engine with shared storage replicated six ways across three AZs.
Explained simply
Amazon RDS (Relational Database Service) runs a normal SQL database for you: MySQL, PostgreSQL, MariaDB, Oracle, SQL Server or Db2. AWS installs it, patches it, takes backups and replaces broken hardware. You still design the tables, write the queries and choose the size of the server.
Aurora is AWS's own database engine that speaks MySQL or PostgreSQL. Your app uses the same drivers, but under the hood the storage is very different: one shared, self-healing storage volume spread over three Availability Zones, used by every database server in the cluster.
Two features are easy to mix up. Multi-AZ keeps a standby copy in another AZ so the database survives a failure; it is about staying up. Read replicas are extra copies that answer read queries; they are about handling more load. Many production systems use both.
Backups protect you from a different problem: mistakes. If someone deletes a table at 14:05, point-in-time restore can rebuild the database as it was at 14:04. It always creates a new database, so you then point the app at it or copy the missing data back.
Press Play on a diagram to walk through it one step at a time.
- High availability
- Synchronous standby
- Automatic DNS failover
- Standby not readable (instance mode)
- Read scaling
- Asynchronous replication
- Readable endpoint per replica
- Can be cross-Region, promotable
- 1Application
Uses writer endpoint for writes, reader endpoint for reads.
- 2Cluster endpoints
Writer and load-balanced reader DNS names.
- 3DB instances
One writer plus up to 15 Aurora replicas.
- 4Shared storage volume
Six copies across three AZs, grows automatically.
- Cluster (writer) endpoint
- All writes
- Follows the writer after failover
- Reader endpoint
- Spreads connections across replicas
- DNS-based, per connection
- Custom endpoint
- A group of chosen instances
- For example big replicas for analytics
- Instance endpoints
- One specific instance
- For diagnosis or tuning
- 1Daily snapshot
Taken in the backup window
- 2Logs every 5 minutes
Transaction logs copied to S3
- 3Mistake at 14:05
A table is dropped
- 4Restore to 14:04
Snapshot plus replayed logs
- 5New instance
New endpoint, set its security group
- 6Recover data
Repoint the app or copy rows back
In depth
What really happens in a Multi-AZ failover
With a Multi-AZ DB instance, every write is copied synchronously to a standby in another AZ before the commit is confirmed. The standby takes no traffic. If the primary fails, its AZ has trouble, or you reboot with failover, RDS promotes the standby and points the same DNS endpoint at it. Failover usually takes 60 to 120 seconds, and apps must reconnect, so keep DNS caching short and add retry logic.
RDS also offers a Multi-AZ DB cluster for MySQL and PostgreSQL: one writer and two readable standbys in three AZs, with failover typically under 35 seconds. RDS Proxy sits between the app and the database, pools connections and holds client connections open during failover, which shortens the outage the app sees and protects the database from connection storms, for example from many Lambda functions.
- App to Primary (AZ a): INSERT order1INSERT order
- Primary (AZ a) to Standby (AZ b): Synchronous copy2Synchronous copy
- Primary (AZ a) to App: Commit OK3Commit OK
- 4Primary failsPrimary (AZ a) to Primary (AZ a): Primary fails
- 5Promoted to primaryStandby (AZ b) to Standby (AZ b): Promoted to primary
- DNS endpoint to App: Same name now points to AZ b6Same name now points to AZ b
- App to Standby (AZ b): Reconnect and continue7Reconnect and continue
Read replicas: scaling reads and their limits
A read replica receives changes from the primary asynchronously, so under heavy load it can fall seconds behind (watch the ReplicaLag metric). That is fine for reports and dashboards, but not for reading your own write right after saving it. Each replica has its own endpoint, so the app must send reads there itself; RDS does not split traffic for you.
MySQL, MariaDB and PostgreSQL support up to 15 read replicas, and replicas can live in other Regions for local reads or disaster recovery. A replica can be promoted to a standalone database, which ends replication; this is a manual step, unlike Multi-AZ failover. A replica can itself be Multi-AZ. Replication traffic inside one Region is free, while cross-Region replication pays for data transfer.
Backups, snapshots and point-in-time restore
Automated backups take a daily snapshot during your backup window and also upload transaction logs to S3 every 5 minutes. Together they let you restore to any second within the retention period, which you set from 1 to 35 days, usually up to about 5 minutes ago. Setting retention to 0 turns automated backups off, and it also blocks read replicas.
Manual snapshots are different: you take them, they never expire, and they survive deleting the database, which makes them right for long-term or before-a-change copies. Every restore creates a new DB instance with a new endpoint, and it gets default settings unless you specify them, such as the security group and parameter group. You can copy snapshots to another Region or share them with another account; encrypted snapshots also need access to the KMS key.
Why Aurora storage is different
In Aurora, the database servers do not own disks. All instances in a cluster share one storage volume made of 10 GB segments, and each segment is copied six times across three AZs. A write is confirmed when 4 of the 6 copies have it, and a read needs 3 of 6. So Aurora keeps writing through the loss of a whole AZ, and keeps reading even after losing an AZ plus one more copy. Damaged segments repair themselves from the other copies.
Because replicas read the same storage, no data is shipped to them and lag is usually under 100 milliseconds. Up to 15 Aurora Replicas serve reads behind the reader endpoint, and any of them can become the writer in a failover, often in about 30 seconds. You give each replica a promotion tier from 0 to 15; lower tiers are promoted first. The volume grows automatically as you add data.
Aurora Global Database and Serverless v2
Aurora Global Database adds read-only secondary clusters in other Regions. Storage-level replication usually keeps them less than a second behind, which gives an RPO of about one second. In a Region outage you promote a secondary, typically in about a minute; a planned switchover swaps Regions without losing data. Secondaries also give fast local reads to distant users, and write forwarding can pass their occasional writes to the primary.
Aurora Serverless v2 changes capacity instead of instance size. You set a minimum and a maximum in ACUs (Aurora Capacity Units, each about 2 GiB of memory with matching CPU), and Aurora scales in 0.5 ACU steps within seconds. On recent engine versions a minimum of 0 ACUs lets an idle database pause. It suits spiky or unpredictable load and dev databases, and you can mix Serverless v2 and normal instances in one cluster.
- Fixed instance size
- Steady, known load
- Reserved Instance discounts
- Scales in 0.5 ACU steps
- Spiky or unknown load
- Can pause at 0 ACUs
- Secondaries in other Regions
- RPO about 1 second
- Fast local reads worldwide
Learn it in 5 short steps
About 1h each. Track them with a timer in your plan.
- 1Compare RDS engines and Aurora~1h
- 2Enable Multi-AZ for high availability~1h
- 3Add read replicas for read scaling~1h
- 4Configure automated backups and snapshots~1h
- 5Explain Aurora Global Database and Serverless~1h
Key points
- Multi-AZ is for availability; read replicas are for read performance.
- Automated backups allow point-in-time restore within 1 to 35 days retention.
- Aurora Global Database replicates to other Regions with typically under 1 second lag.
- Aurora Serverless v2 scales capacity in fine steps for variable workloads.
- Restoring a backup always creates a new DB instance with a new endpoint.
Key terms
Tap a card to flip it. 0/5 known
Examples
Recover a dropped table with point-in-time restore
At 14:05 UTC someone ran DROP TABLE orders on prod-db (PostgreSQL). The Multi-AZ standby and the read replicas already have the drop, so they cannot help. Step 1: restore to 14:04 into a new instance. Step 2: wait until it is available and get its endpoint (attach the right security group if needed). Step 3: dump just the lost table from the restored copy and load it into production, then delete the temporary instance to stop paying for it.
aws rds restore-db-instance-to-point-in-time \
--source-db-instance-identifier prod-db \
--target-db-instance-identifier prod-db-restore \
--restore-time 2026-11-03T14:04:00Z
aws rds wait db-instance-available --db-instance-identifier prod-db-restore
aws rds describe-db-instances --db-instance-identifier prod-db-restore \
--query 'DBInstances[0].Endpoint.Address'
# Copy only the lost table back into production
pg_dump -h RESTORED_ENDPOINT -U admin -t orders appdb > orders.sql
psql -h PROD_ENDPOINT -U admin -d appdb -f orders.sqlGive reporting its own Aurora replica
Heavy monthly reports slow down the normal readers of an Aurora PostgreSQL cluster. Step 1: add a larger replica just for reports, with promotion tier 15 so it is the last choice to become writer. Step 2: create a custom endpoint whose only member is that replica. Step 3: point the reporting tool at the custom endpoint. The app keeps using the reader endpoint, but report queries no longer compete with it.
aws rds create-db-instance --db-instance-identifier app-reports \
--db-cluster-identifier app-cluster --engine aurora-postgresql \
--db-instance-class db.r6g.2xlarge --promotion-tier 15
aws rds wait db-instance-available --db-instance-identifier app-reports
aws rds create-db-cluster-endpoint --db-cluster-identifier app-cluster \
--db-cluster-endpoint-identifier reports --endpoint-type READER \
--static-members app-reportsQuick reference
- Multi-AZ = availability (synchronous standby). Read replica = read scaling (asynchronous)
- Automated backup retention: 1 to 35 days; restore to within about the last 5 minutes
- Every restore creates a new instance with a new endpoint
- Manual snapshots never expire and survive deleting the database
- Aurora storage: 6 copies in 3 AZs; writes need 4 of 6, reads 3 of 6
- Aurora: up to 15 replicas behind one reader endpoint; promotion tier 0 fails over first
- Aurora Global Database: RPO about 1 second, read-only secondaries in other Regions
- RDS Proxy pools connections and shortens failover for apps with many connections
Common mistakes
- Picking read replicas when the requirement is automatic failover.
- Assuming manual snapshots expire; they persist until you delete them.
Quick quiz
Pick an answer to see if you're right and why.
Practice exercises
Try each one yourself first. Use the hint if you get stuck, then compare with the solution.
- Exercise 1easy
Create a small RDS PostgreSQL instance that keeps automated backups for 7 days, then take a manual snapshot of it.
- Exercise 2medium
Convert the instance to Multi-AZ, force a failover, and measure how long the database is unreachable.
- Exercise 3hard
Create a cross-Region read replica in eu-west-1 for disaster recovery, then promote it and explain what happens to replication.
Check yourself
Answer in your head, reveal, then be honest with yourself.
Feel confident about this topic?
Frequently asked questions
- Is Aurora better than RDS for MySQL or PostgreSQL?
- Aurora usually gives faster failover, more replicas with lower lag, and storage that grows on its own, at a higher price per instance hour. For small or steady databases, standard RDS is often cheaper.
- Can I read from the Multi-AZ standby?
- Not with a Multi-AZ DB instance; its standby is passive. A Multi-AZ DB cluster has two readable standbys, and Aurora replicas are always readable.
- Does patching an RDS database cause downtime?
- Maintenance runs in a weekly window you choose. With Multi-AZ, operating system updates are applied to the standby first and then RDS fails over, so the outage is about the failover time; engine version upgrades still cause a short outage.
- What is the difference between a snapshot and an automated backup?
- Automated backups are daily snapshots plus transaction logs, kept 1 to 35 days, and allow point-in-time restore. Manual snapshots are single points in time that you keep until you delete them.