AWS Certified DevOps Engineer – Professional (DOP-C02) — Question 58

A company has an application that is using a MySQL-compatible Amazon Aurora Multi-AZ DB cluster as the database. A cross-Region read replica has been created for disaster recovery purposes. A DevOps engineer wants to automate the promotion of the replica so it becomes the primary database instance in the event of a failure.
Which solution will accomplish this?

Answer options

Correct answer: D

Explanation

Option D is correct because it automates the promotion of the replica and updates the application with the new endpoint upon a failure. Options A and B involve complex setups with health checks and custom endpoints which do not directly facilitate automatic failover. Option C requires altering the CloudFormation template, which is unnecessary compared to the straightforward solution provided in D.