Multi-AZ, read replicas and backups
RDS provides availability with Multi-AZ (a synchronous standby in another AZ with automatic failover) and read scaling with read replicas (asynchronous copies you read from). Automated backups and snapshots enable point-in-time recovery. The frequent interview distinction: Multi-AZ is for availability, read replicas are for read throughput — they solve different problems and are often used together.
- Multi-AZ = availability (synchronous standby + automatic failover)
- Read replicas = read scaling (asynchronous, separate endpoints)
- Automated backups/snapshots enable point-in-time recovery
Exam tip: Multi-AZ = synchronous standby, automatic failover, SAME endpoint. Read replicas = asynchronous, SEPARATE endpoints, read scaling (and promotable).
Source: AWS docs — RDS User Guide
Backups, snapshots & point-in-time recovery
RDS automated backups capture the database daily and retain transaction logs, enabling point-in-time recovery (PITR) to any second within the retention window — you restore into a NEW instance. Manual snapshots are user-initiated and kept until you delete them, useful before risky changes or for long-term retention. Snapshots can be copied across Regions and shared across accounts for DR.
- Automated backups + transaction logs = point-in-time recovery (restore to a new instance)
- Manual snapshots persist until deleted; copy cross-Region/share for DR
- Restores create a new instance — plan the endpoint change
Exam tip: PITR comes from automated backups (retention window); manual snapshots are for on-demand and long-term/DR copies.
Source: AWS docs — RDS User Guide
RDS security, encryption & configuration
Secure RDS by placing it in private subnets (via the DB subnet group), restricting access with a security group (only the app tier), and encrypting at rest with KMS (enabled at creation) and in transit with TLS. IAM database authentication lets applications connect using IAM tokens instead of passwords; Secrets Manager can store and rotate DB credentials. Parameter groups tune engine settings; option groups add engine features.
- Private subnets + security group scoped to the app tier
- Encrypt at rest with KMS (set at creation) and in transit with TLS
- IAM DB auth / Secrets Manager for credentials; parameter groups tune the engine
Exam tip: Encryption at rest must be enabled at creation (you can't simply toggle it on an existing unencrypted instance — you restore an encrypted snapshot). Reading an encrypted DB also needs KMS key permissions.
Source: AWS docs — RDS User Guide
Comparison: Multi-AZ vs Read Replica (and when to use each)
Multi-AZ vs Read Replica is THE RDS distinction. Multi-AZ: synchronous standby in another AZ, automatic failover, SAME endpoint; in a Multi-AZ DB instance deployment, the standby is NOT readable — solves AVAILABILITY. Read Replica: asynchronous copy, separate endpoint, readable, small lag, promotable but no auto-failover — solves READ SCALING. They are complementary: a production database often runs Multi-AZ for availability AND read replicas for read-heavy traffic. Pick Multi-AZ when the requirement is "survive an AZ failure automatically"; pick read replicas when it's "handle more read load".
- Multi-AZ = availability (sync standby, auto-failover, same endpoint; in a Multi-AZ DB instance deployment, the standby is not readable)
- Read Replica = read scaling (async, separate endpoint, readable, promotable)
- Often used together; map the requirement (availability vs read load) to the feature
Source: AWS docs — RDS User Guide