AWS Solutions Architect · Design Resilient Architectures · easy

A production Amazon RDS for MySQL database runs in a single Availability Zone. Management requires automatic database failover to another Availability Zone within the same Region with zero data loss and no changes to the application connection string. What should the solutions architect do?

Published · Last updated · checked before publication — how we verify questions

Options

  • ACreate an Amazon RDS Read Replica in a second Availability Zone and configure the app to retry the replica hostname
  • BModify the Amazon RDS for MySQL instance to enable a Multi-AZ deployment with a synchronous standby instanceCorrect answer
  • CSchedule hourly automated RDS snapshots and use an AWS Lambda function to restore the latest snapshot on failure
  • DExport the database daily to Amazon S3 in Parquet format and query it with Amazon Athena during an outage

Answer: B. Modify the Amazon RDS for MySQL instance to enable a Multi-AZ deployment with a synchronous standby instance

Modifying the Amazon RDS instance to a Multi-AZ deployment provisions a synchronously replicated standby in a second Availability Zone and automatically flips the existing CNAME endpoint to the standby during an outage with zero data loss. Read Replicas use asynchronous replication (potential data loss) and require changing the endpoint on promotion.

Why the other options are wrong

  • A. Create an Amazon RDS Read Replica in a second Availability Zone and configure the app to retry the replica hostname — RDS Read Replicas replicate asynchronously, can lose in-flight transactions, and require manual promotion and endpoint changes.
  • C. Schedule hourly automated RDS snapshots and use an AWS Lambda function to restore the latest snapshot on failure — Restoring from hourly snapshots loses up to an hour of data and creates a new database endpoint.
  • D. Export the database daily to Amazon S3 in Parquet format and query it with Amazon Athena during an outage — Athena over S3 Parquet is a read-only analytics pattern, not a transactional MySQL failover replacement.

All Design Resilient Architectures questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.