A company has a legacy web application running on Amazon EC2 instances with a MySQL database hosted on a single Amazon RDS DB instance. The database is experiencing performance degradation due to a high volume of read queries. The application requires high availability, and the database must support automatic failover in the event of an outage.
Which solution should a solutions architect implement to resolve the read bottleneck while meeting the high availability requirements?
- AEnable Multi-AZ deployment on the RDS MySQL DB instance. Configure the application to route read traffic to the standby DB instance and write traffic to the primary DB instance.
- BCreate an Amazon RDS MySQL Read Replica. Configure the application to route write queries to the primary DB instance and read queries to the Read Replica. Configure the Read Replica to act as the automatic failover target in the event of an outage.
- Migrate the database to an Amazon Aurora MySQL DB cluster with a primary instance and at least one Aurora Replica. Configure the application to route read queries to the reader endpoint and write queries to the cluster endpoint.Cevap
- DMigrate the relational database to an Amazon DynamoDB table. Use the current date as the partition key, and route all application read and write queries to the table.
Cevap
Migrating the database to an Amazon Aurora MySQL DB cluster, configuring Aurora Replicas, and using the reader and cluster endpoints is the correct solution.
Amazon Aurora MySQL DB clusters separate the primary write instance from the reader instances (replicas). The cluster endpoint handles write traffic, while the reader endpoint load-balances read traffic across the replica nodes. If the primary instance fails, Aurora automatically promotes one of the replicas to the primary role with minimal disruption, meeting both high-performance read and high-availability requirements.
Adım Adım Çözüm
Anahtar Kavram
Scaling relational database read performance using Aurora reader endpoints and replicas while maintaining high availability.