SAP-C02 Question 440
Select 2A company has a web application deployed in a multi-AZ Amazon ECS cluster that relies on an Amazon RDS database. The application experiences periodic latency spikes during peak traffic hours, and the database metrics show a high read IOPS utilization. What is the most effective strategy to improve the application's performance?
- A
Enable Amazon RDS Read Replicas and configure the application to offload read queries to the replicas
- B
Migrate the Amazon RDS database to Amazon Aurora for better performance and scalability
- C
Increase the size of the Amazon ECS cluster by adding more tasks to distribute the load
- D
Use Amazon ElastiCache to cache frequently accessed data and reduce database load
- E
Enable Multi-AZ for the Amazon RDS database to improve read performance
Show answer and explanation
Correct answers: A, D
Explanation
The application is experiencing latency due to high read IOPS utilization on the RDS database. The most effective strategies to address this are enabling RDS Read Replicas to offload read queries and using Amazon ElastiCache to cache frequently accessed data. These options directly tackle the root cause by reducing the read load on the database. The other options either address different layers of the architecture or do not specifically solve the high read IOPS issue.
- A. Correct.
This is correct because Amazon RDS Read Replicas are designed to offload read traffic, reducing the load on the primary database and improving performance.
- B. Incorrect.
While migrating to Amazon Aurora could provide better performance in some cases, it is not the most efficient or immediate strategy for reducing high read IOPS utilization specifically.
- C. Incorrect.
Increasing the ECS cluster size addresses the compute layer, not the database layer, which is the bottleneck in this scenario.
- D. Correct.
This is correct because Amazon ElastiCache can be used to cache frequently accessed data, reducing read IOPS on the database and improving application performance.
- E. Incorrect.
Enabling Multi-AZ for RDS improves availability and failover, but it does not improve read performance as it does not offload read traffic to a secondary instance.