Q31 — AWS DOP-C02 Ch.3

Question 31 of 100 | ← Chapter 3

A company has an application using an Amazon Aurora MySQL-compatible multi-AZ DB cluster as its database. A cross-Region read replica has been created for disaster recovery purposes. A DevOps engineer wants to automatically promote the replica so it becomes the primary DB instance upon failure.

Correct Answer: D. Store the Aurora endpoint in AWS Systems Manager Parameter Store. Create an Amazon EventBridge (Amazon CloudWatch Events) event to detect database failure and run an AWS Lambda function to promote the replica instance and update the endpoint URL stored in AWS Systems Manager Parameter Store. Code the application to reload the endpoint from Parameter Store upon database connection failure.

Explanation

Answer D is correct. EventBridge is required to detect database failure. Lambda is needed to promote the replica because it resides in another Region (manual promotion otherwise). Storing and updating the endpoint in Parameter Store is critical for updating the application. See Aurora FAQ section on high availability: https://aws.amazon.com/rds/aurora/faqs/