Skip to main content
Welcome. This lesson explains Amazon RDS high-availability options — redundancy, availability, and resiliency features you can use to keep a relational database (for example, an e-commerce backend) robust and highly available. When users interact with our application, the website performs reads and writes to a database. Ensuring the database layer is resilient protects the user experience and reduces downtime risk.
A diagram titled "Relational Database Service (RDS)" showing users sending requests to an e-commerce website, which in turn reads from and writes to Amazon Relational Database Service (RDS). Arrows label the flows as Request/Response between users and the site and Read/Write between the site and RDS.
Overview: Amazon RDS is a managed relational-database service that offloads many operational responsibilities such as availability, security, scaling, OS and database patching, backups, and disaster recovery. Most RDS engines use Amazon EBS for storage; EBS volumes are replicated within an Availability Zone (AZ) to protect against component failure. Amazon Aurora uses a distributed, fault-tolerant storage layer that replicates data across multiple AZs for higher durability. Supported engines include Amazon Aurora (MySQL/PostgreSQL-compatible), MySQL, PostgreSQL, MariaDB, Oracle, and Microsoft SQL Server.
An infographic listing RDS-supported database engines with their logos, including Amazon Aurora, MySQL, PostgreSQL, MariaDB, Oracle Database, Microsoft SQL Server, and IBM DB2.
Storage and scaling: RDS supports storage auto-scaling (automatic expansion of allocated storage when thresholds are reached). Depending on engine and storage type, you can provision many terabytes; Aurora’s storage architecture enables much larger effective capacity compared with single EBS-volume limits on some engines.
A simple diagram showing Amazon RDS storage AutoScaling: an RDS instance grows from 100GB to 150GB after a "storage threshold reached" trigger. The image uses RDS and database icons with an arrow indicating the scale-up.
Backups and snapshots: RDS/EBS snapshots are stored in Amazon S3. Snapshots simplify point-in-time recovery, cloning production data for reporting or testing, and long-term retention for disaster recovery.
A simple architecture diagram for a Relational Database Service (RDS) showing a DB instance in an Availability Zone connected to an EBS volume (read/write). The EBS volume’s snapshots are shown being stored in an S3 bucket.
High-availability options in RDS
  • Multi-AZ deployments (synchronous replication + automatic failover)
  • Backups and snapshots (cold recovery)
  • Read replicas (asynchronous replication for read scaling and reporting)
A slide titled "RDS HA Options" showing three blue circular icons labeled "Multi-AZ," "Backups," and "Read Replica," each with a white database-style graphic. The icons illustrate high-availability and backup/replication options for RDS.
Key concepts
  • Synchronous replication: the primary waits for durable storage of data on the standby before acknowledging the write. This minimizes potential data loss and supports automatic failover.
  • Asynchronous replication: the primary writes without waiting for replicas; replicas may lag and can miss recent transactions if promoted immediately after primary failure.
  • Multi-AZ: designed for high availability and automatic failover without application changes.
  • Read replicas: designed for read scalability and geographical distribution, not guaranteed zero data-loss.
Multi-AZ details Multi-AZ provides synchronous replication for supported engines and deployment types. Writes are acknowledged only after durable storage on both primary and standby; this preserves data durability across AZ failures and enables automatic failover. Two Multi-AZ deployment patterns:
  • Instance deployments (classic Multi-AZ): primary + standby. The standby is a passive, synchronous replica that is not directly readable. Failover is automatic and transparent to clients via the DB endpoint.
  • Cluster deployments (cluster-capable engines such as Aurora): a cluster can have one writer and multiple readers. Replication and failover behavior differs; readers are typically accessible via a reader endpoint for read-only traffic.
A diagram of an AWS RDS Multi‑AZ deployment. It shows a primary RDS instance in Availability Zone A attached to a primary EBS volume that synchronously replicates to a standby RDS replica and standby EBS in Availability Zone B.
Read replicas Read replicas use asynchronous replication from the primary to enable read scaling and reporting. Typical characteristics:
  • Lower read latency for read-heavy workloads when offloading queries from the primary.
  • Can be placed in other AZs or in different Regions.
  • Promotion to a standalone primary is a manual operation and stops replication from the original primary.
  • Not a zero-data-loss solution: replication lag means recently committed writes on the primary may not yet exist on a replica.
A diagram showing an RDS Read Replica architecture with a Master RDS instance and two Read Replica instances in Region A. Arrows indicate asynchronous replication from the master to replicas and client read/write access to the master while reads go to replicas.
Because read replicas are asynchronous, they are not appropriate when strict zero-data-loss recovery is required. Choose Multi-AZ synchronous replication for automatic failover with minimal risk of data loss.
Key point: Multi-AZ (synchronous) prioritizes data durability and automatic failover. Read replicas (asynchronous) prioritize read scalability and geographic distribution but can lag behind the primary.
Cluster vs instance deployments
  • Cluster-based Multi-AZ (Aurora and other cluster-capable engines): separate writer and reader instances. Clients can connect to a writer endpoint for writes and a reader endpoint that load-balances read-only traffic across readers.
  • Instance-based Multi-AZ (classic RDS deployments): present a single endpoint that always points to the primary. The standby is passive and not reachable for reads until failover.
A cloud architecture diagram titled "RDS Multi‑AZ for MySQL and PostgreSQL" showing a Writer DB instance in one availability zone and two Reader DB instances in other AZs with replication between them. Clients at the bottom connect for read/write and read access to the appropriate instances.
Cross-region read replicas Many engines support cross-region read replicas for disaster recovery and geographic read scaling. Important details:
  • Cross-region replicas are always asynchronous (synchronous cross-region replication would cause high write latency).
  • Use them for DR, reporting near users in other regions, or to offload read traffic globally.
  • Promoting a cross-region replica can be part of a DR strategy but may incur data loss for the most recent writes if replication lag exists.
A technical diagram titled "RDS for SQL Server – Cross-Region Read Replicas" showing Region A and Region B with a primary DB instance, multi‑AZ standby and in‑region read replica, plus a cross‑region read replica. Arrows show read/write access, always‑on synchronous replication within the region and asynchronous distributed replication to the cross‑region replica for client reads.
Design trade-offs
  • Synchronous replication (Multi-AZ): stronger durability and automatic failover, slightly higher write latency due to waiting for the standby.
  • Asynchronous replication (read replicas, cross-region): better read scaling and geographic distribution, potential for replica lag and data loss on failover.
Exam tip: Synchronous replication (Multi-AZ) preserves write durability and enables automatic failover; asynchronous replication (read replicas) can lag and may lose recent writes if promoted immediately after primary failure.
RDS HA options at a glance Summary and recommendations
  • Use Multi-AZ for production systems that require high availability and automatic failover with minimal data-loss risk.
  • Use read replicas to scale read traffic, distribute reads geographically, and create reporting or analytics copies.
  • For cross-region DR and geo-distributed reads, use cross-region read replicas but plan for eventual consistency and possible lag.
  • Use snapshots/backups for point-in-time recovery, cloning environments, and cold DR options.
  • For cluster-capable engines (Aurora), take advantage of reader endpoints to separate read and write traffic.
A presentation slide titled "Summary" that lists five database replication strategies and benefits. The points mention Multi-AZ high availability (standby replica), in-region read scalability (read replica), cross-region read access and disaster recovery, combined synchronous/asynchronous replication, and separation of read/write vs read-only traffic.
Closing This lesson covered core Amazon RDS options for redundancy, replication, and availability, including Multi-AZ failover, read-replica creation and promotion, and differences between cluster and instance deployments. Hands-on demonstrations typically show automated Multi-AZ failovers, creating and monitoring read replicas, and promoting replicas during DR tests. Links and references

Watch Video