A company hosts a production application on an Amazon Aurora MySQL DB cluster. The cluster contains one primary (writer) instance and three replica (reader) instances named reader-1, reader-2, and reader-3, distributed across three Availability Zones. To support business continuity, a SysOps Administrator must ensure that if the primary instance fails, reader-2 is promoted to the primary writer role first. If reader-2 is unavailable, reader-1 must be promoted next. Which configuration will meet these requirements?
- Set the Promotion Tier of reader-2 to Tier , reader-1 to Tier , and reader-3 to Tier .Answer
- BSet the Promotion Tier of reader-2 to Tier , reader-1 to Tier , and reader-3 to Tier .
- CConfigure an Amazon Route 53 failover routing policy pointing to the individual endpoints of reader-2 as primary and reader-1 as secondary.
- DModify the DB cluster parameter group to define the failover sequence favoring reader-2, followed by reader-1.
Answer
Set the Promotion Tier of reader-2 to Tier , reader-1 to Tier , and reader-3 to Tier .
The correct configuration is to set the Promotion Tier of reader-2 to Tier , reader-1 to Tier , and reader-3 to Tier . Amazon Aurora determines which replica to promote to the primary writer role based on the Promotion Tier configuration of each DB instance. Aurora evaluates these tiers in ascending order, where Tier has the highest priority and Tier has the lowest priority. Therefore, setting reader-2 to Tier ensures it is evaluated first, setting reader-1 to Tier ensures it is evaluated second, and setting reader-3 to Tier ensures it is evaluated last.
Step-by-Step Solution
Key Concept
Amazon Aurora Failover Priority and Promotion Tiers