Multi-AZ, replicas and backups
Three problems, three different controls
High availability (HA) helps a service continue or recover after component failure. Read scaling provides extra capacity for read-heavy queries. Backups preserve recovery points for restoring after unwanted changes. These goals overlap but are not interchangeable. Imagine orders are accidentally deleted: a healthy standby or replica can also receive the deletion. You need a recovery point from before the mistake. Define recovery time objective (RTO), the target restoration time, and recovery point objective (RPO), the tolerable amount of lost recent data. Neither is a guarantee until you validate the recovery design.
Multi-AZ deployment choices
In the traditional RDS Multi-AZ DB instance deployment, RDS maintains a synchronous standby in another AZ. The standby supports automatic failover; it does not serve application reads. A supported Multi-AZ DB cluster is a different deployment: one writer and two readable standby instances across three AZs. It can provide both failover support and read capacity. Do not call these two architectures identical or confuse an RDS Multi-AZ cluster with Aurora. Failover can interrupt sessions, and a DNS endpoint can resolve to a different address. Clients must reconnect and retry only operations that are safe to repeat. Test the actual driver, DNS behavior, transaction outcomes and recovery time in an authorized environment.
Read replicas and stale data
Ordinary RDS read replicas typically receive changes asynchronously from their source. Reporting queries can use a separate replica endpoint; write operations remain on the primary. Replica lag means a reader might not yet contain a committed change. If a buyer must see an order immediately after checkout, read that order from the writer rather than assuming replica freshness. Promotion can make a supported replica an independent database, but do not assume automatic failover or zero data loss. Verify engine/version-specific restrictions, replication monitoring and promotion procedure.
Restore to a separate database
Automated backups and transaction log retention support point-in-time recovery (PITR) within the available recovery window. A manual snapshot represents a saved recovery point and follows its own retention lifecycle. For an accidental deletion at 10:05 UTC, select an available recovery time just before the deletion, restore into a new database, verify its records and decide how to reconcile valid later writes. Do not overwrite the original blindly.
10:00 order 101 committed10:04 order 102 committed10:05 accidental deletion10:06 order 103 committedCandidate restore time: 10:04:30 UTCThe recovered state should contain orders 101 and 102 under these fictional assumptions; order 103 needs reconciliation. Verify the actual latest restorable time and recovery-point granularity rather than assuming every timestamp is available.
Recovery drill and cost trade-offs
For the bookstore, an availability design can combine Multi-AZ, a reader for reporting and a separate backup policy. Each additional resource can increase compute, storage, backup, transfer or I/O cost. Cross-Region disaster recovery needs a separate design and verification. A restore drill should check schema, row counts, sample business invariants, app access, elapsed time and data reconciliation; never claim an RTO from an unmeasured diagram. Exercise: choose a control for a failed writer, slow reporting and accidental deletion, then explain why all three may be needed.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Multi-AZ, replicas and backups — knowledge check
Apply relational database architecture concepts to fictional workloads.
A traditional Multi-AZ DB instance has a healthy standby. Can reports query it directly?
Which deployment has one writer and two readable standbys?
A customer must see a just-committed order. Where should the immediate lookup go?
An accidental deletion was replicated at 10:05. What is the appropriate recovery approach?
A diagram predicts recovery in 30 seconds. What supports an actual RTO assessment?