During a scheduled disaster recovery drill, a SysOps Administrator simulates an Availability Zone (AZ) outage for a high-priority application. The application's database tier consists of a primary Amazon RDS for MariaDB DB instance in subnet-A (AZ-1) and a Read Replica in subnet-B (AZ-2). The application connects to the primary DB instance for write operations and to the Read Replica for read operations. During the simulated outage of AZ-1, the application completely loses write access to the database, and no automated failover occurs. What is the root cause of this behavior, and how should the administrator resolve it to ensure automatic write failover?
- Read Replicas use asynchronous replication and do not support automatic failover. To resolve this, the administrator must modify the primary DB instance to enable a Multi-AZ deployment, which provides synchronous replication to a standby instance and automated DNS failover.Answer
- BThe Read Replica was not designated as the failover target. To resolve this, the administrator must promote the Read Replica to a standalone DB instance, enable the 'Automatic Failover' option on the primary DB instance, and specify the promoted instance as the failover target.
- CAmazon Route 53 was not configured to monitor the primary DB instance. To resolve this, the administrator must create a Route 53 active-passive failover routing policy with a health check that automatically routes database write traffic to the Read Replica's endpoint during an outage.
- DThe Read Replica was not configured with the 'Replication Failover' flag enabled. To resolve this, the administrator must modify the Read Replica configuration to set its replication state to synchronous and enable the automatic promotion setting in the RDS console.
Answer
Read Replicas use asynchronous replication and do not support automatic failover. The administrator must modify the primary DB instance to enable a Multi-AZ deployment, which provides synchronous replication to a standby instance and automated DNS failover.
The correct option is correct because Amazon RDS Multi-AZ deployments provide high availability and failover support. In a Multi-AZ deployment, RDS automatically provisions and maintains a synchronous standby replica in a different Availability Zone. If the primary instance fails, RDS automatically performs a failover by updating the DNS record of the DB instance to point to the standby, requiring no changes to the application's connection string. Read Replicas use asynchronous replication and are designed for read scalability, not automatic failover.
Step-by-Step Solution
Key Concept
Multi-AZ Deployment vs. Read Replicas failover behaviors