SAP-C02 Question 331
Single answerA company is deploying a web application that requires low-latency access to frequently accessed data. The application is hosted on Amazon EC2 instances behind an Application Load Balancer (ALB). Currently, the application retrieves data from an Amazon RDS database, but the database is experiencing high read traffic, causing performance degradation. Which solution should you implement to improve the application's performance while minimizing changes to the architecture?
- A
Use Amazon ElastiCache to cache frequently accessed data.
- B
Increase the size of the Amazon RDS instance to handle more read traffic.
- C
Enable Amazon RDS Read Replicas and configure the application to read from replicas.
- D
Migrate the database to Amazon DynamoDB to handle high throughput.
Show answer and explanation
Correct answer: A
Explanation
The best solution to improve performance with minimal architectural changes is to implement Amazon ElastiCache. By caching frequently accessed data in memory, ElastiCache reduces the load on the RDS database and minimizes latency, meeting the application's requirements efficiently. Other options either involve significant architectural changes or are not cost-effective for the problem described.
- A. Correct.
Correct: Amazon ElastiCache is a service designed to provide low-latency, in-memory caching for frequently accessed data, reducing the load on the database and improving performance without significant changes to the architecture.
- B. Incorrect.
Incorrect: While increasing the size of the Amazon RDS instance might temporarily address the performance issue, it is not a cost-effective or scalable solution in the long term.
- C. Incorrect.
Incorrect: Enabling Read Replicas can help distribute read traffic, but it requires modifying the application to explicitly query replicas. The question specifies minimizing changes to the architecture.
- D. Incorrect.
Incorrect: Migrating to DynamoDB would require significant architectural changes and is not aligned with the requirement to minimize changes to the existing architecture.