QuestionQ5

Resilient Cloud Solutions

A company runs an application that uses a MySQL-compatible Amazon Aurora Multi-AZ DB cluster for its database. A cross-Region read replica was created for disaster-recovery purposes. A DevOps engineer needs to automate promotion of the replica so that it becomes the primary database instance if a failure occurs.

Which solution will achieve this?

Explanation

Aurora MySQL cross-Region read replicas can be promoted to standalone DB clusters through the Amazon RDS promotion API. An EventBridge-triggered Lambda function can detect the failure and invoke that promotion, while updating the active endpoint in Systems Manager Parameter Store. Reloading that parameter after a database connection failure directs the application to the newly promoted cluster, satisfying both promotion and traffic redirection requirements. AWS documentation: Promoting a read replica to a DB cluster for Aurora MySQL

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!