A company runs its customer-facing web app on EC2 behind an Application Load Balancer. The database is Amazon RDS for PostgreSQL. The requirement is that if a single Availability Zone fails, the database must automatically fail over within the same AWS Region with minimal application changes. Which database setup best meets this requirement?
Trap 1: Use an RDS single-AZ instance and periodically restore from…
Single-AZ deployments do not provide automatic failover for an AZ outage. Restoring from backups requires manual or scripted intervention, increasing downtime.
Trap 2: Create a read replica in a different AZ and use it only when the…
A read replica does not automatically replace a failed primary instance. You would need manual promotion and application rerouting.
Trap 3: Use RDS with Multi-AZ disabled, but increase storage IOPS to…
Performance changes do not address AZ availability. Storage IOPS does not provide automatic failover capabilities during an Availability Zone outage.
- A
Use an RDS single-AZ instance and periodically restore from automated backups if needed.
Why wrong: Single-AZ deployments do not provide automatic failover for an AZ outage. Restoring from backups requires manual or scripted intervention, increasing downtime.
- B
Deploy the RDS PostgreSQL instance as Multi-AZ with automatic failover enabled.
Multi-AZ RDS maintains a standby instance in a different AZ. If the primary fails, RDS performs automatic failover, preserving the same database endpoint behavior.
- C
Create a read replica in a different AZ and use it only when the primary fails.
Why wrong: A read replica does not automatically replace a failed primary instance. You would need manual promotion and application rerouting.
- D
Use RDS with Multi-AZ disabled, but increase storage IOPS to prevent failover.
Why wrong: Performance changes do not address AZ availability. Storage IOPS does not provide automatic failover capabilities during an Availability Zone outage.