AWS Certified Cloud Practitioner / Databases & Analytics

RDS Deployments Options

πŸ—οΈ RDS Deployment Architectures

RDS offers different architectures for performance, high availability, and disaster recovery.

πŸ’‘ There's no single "best" architecture β€” it depends on your app's requirements.


πŸ“š The Three Architectures

  • πŸ“– Read Replicas β€” improve read performance

  • 🌍 Multi-AZ β€” improve high availability

  • 🌎 Multi-Region Read Replicas β€” improve global performance & disaster recovery


πŸ“– 1. Amazon RDS Read Replicas

As your app grows, thousands of users browse, search, and view reports β€” all read operations. Eventually the primary database struggles to keep up.

πŸ’‘ A Read Replica is a copy of your primary database dedicated to handling reads, spreading the load instead of hitting one database every time.

πŸ—οΈ How It Works

  • πŸ“– Reads β€” can come from the primary or any Read Replica

  • ✍️ Writes β€” always go to the primary; replicas auto-sync from it and can't be written to directly

πŸš€ Benefits

  • Improves read performance

  • Distributes read traffic

  • Reduces load on the primary

  • Supports up to 15 Read Replicas

πŸ“Œ Use When

Read-heavy traffic β€” many users browsing, dashboards, reports, high-traffic storefronts.

🎯 Exam tip: "Improve read performance" / "scale read traffic" β†’ Read Replicas


🌍 2. Amazon RDS Multi-AZ Deployment

Read Replicas fix performance. Multi-AZ fixes availability.

If hardware fails, an AZ has an outage, or there's a network issue, your app goes down without a backup database β€” that's what Multi-AZ solves.

πŸ’‘ A Multi-AZ deployment keeps a standby copy of your primary DB in a different AZ, continuously synced but idle until needed.

🚨 On Failure

AWS automatically fails over β€” the standby becomes primary, and your app reconnects with minimal disruption. Fully managed by AWS.

⚠️ The standby is idle during normal operation β€” all reads and writes go to the primary. It only activates on failover.

πŸš€ Benefits

High availability, automatic failover, better fault tolerance, improved disaster recovery within a Region.

πŸ“Œ Key Points

  • Only one standby per deployment

  • Standby lives in a different AZ

  • Apps can't connect to the standby directly

  • Failover is fully automatic

🎯 Exam tip: "High availability" / "automatic failover" / "AZ outage" β†’ Multi-AZ


🌎 3. Amazon RDS Multi-Region Read Replicas

Global users mean latency β€” a database in one Region is slow for users on the other side of the world. Multi-Region Read Replicas fix this by placing replicas closer to users.

Example:

  • Primary β†’ Mumbai (ap-south-1)

  • Replica β†’ Hyderabad (ap-south-2)

  • Replica β†’ N. Virginia (us-east-1)

🌍 Why Use It

  • πŸš€ Better performance β€” users read from the nearest replica, cutting latency

  • πŸ›‘οΈ Disaster recovery β€” a Region-wide outage still leaves copies elsewhere

⚠️ Reads are local, but writes always travel back to the primary Region.

πŸ’° Cross-Region replication adds network transfer costs β€” Multi-Region setups cost more than single-Region ones.

🎯 Exam tip: "Global users" / "lower cross-Region latency" / "Region-level disaster recovery" β†’ Multi-Region Read Replicas


πŸ“Š Quick Comparison

Feature

πŸ“– Read Replica

🌍 Multi-AZ

🌎 Multi-Region

Purpose

Read performance

High availability

Global performance + DR

Handles reads?

βœ…

❌

βœ…

Handles writes?

❌

❌

❌

Writes go to

Primary

Primary

Primary

Auto failover?

❌

βœ…

❌

Different AZ?

Optional

βœ…

N/A

Different Region?

❌

❌

βœ…

Max replicas

Up to 15

1 standby

Varies


🎯 Exam Tips Recap

  • πŸ“– Read Replicas scale read workloads

  • ✍️ Writes always go to the primary, even with replicas in play

  • 🌍 Multi-AZ = high availability via a standby in another AZ

  • πŸ”„ AZ failure β†’ AWS auto-fails-over to standby

  • 🌎 Multi-Region Read Replicas = global performance + disaster recovery

  • πŸ’° Cross-Region replication costs more than single-Region setups