ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 40 - DVA-C02 discussion

Report
Export

A company is migrating an on-premises database to Amazon RDS for MySQL. The company has readheavy workloads. The company wants to refactor the code to achieve optimum read performance for queries.

Which solution will meet this requirement with LEAST current and future effort?

A.
Use a multi-AZ Amazon RDS deployment. Increase the number of connections that the code makes to the database or increase the connection pool size if a connection pool is in use.
Answers
A.
Use a multi-AZ Amazon RDS deployment. Increase the number of connections that the code makes to the database or increase the connection pool size if a connection pool is in use.
B.
Use a multi-AZ Amazon RDS deployment. Modify the code so that queries access the secondary RDS instance.
Answers
B.
Use a multi-AZ Amazon RDS deployment. Modify the code so that queries access the secondary RDS instance.
C.
Deploy Amazon RDS with one or more read replicas. Modify the application code so that queries use the URL for the read replicas.
Answers
C.
Deploy Amazon RDS with one or more read replicas. Modify the application code so that queries use the URL for the read replicas.
D.
Use open source replication software to create a copy of the MySQL database on an Amazon EC2 instance. Modify the application code so that queries use the IP address of the EC2 instance.
Answers
D.
Use open source replication software to create a copy of the MySQL database on an Amazon EC2 instance. Modify the application code so that queries use the IP address of the EC2 instance.
Suggested answer: C

Explanation:

Amazon RDS for MySQL supports read replicas, which are copies of the primary database instance that can handle read-only queries. Read replicas can improve the read performance of the database by offloading the read workload from the primary instance and distributing it across multiple replicas. To use read replicas, the application code needs to be modified to direct read queries to the URL of the read replicas, while write queries still go to the URL of the primary instance. This solution requires less current and future effort than using a multi-AZ deployment, which does not provide read scaling benefits, or using open source replication software, which requires additional configuration and maintenance. Reference: Working with read replicas

asked 16/09/2024
Ronald Zegwaard
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first