SAP-C02 Question 442
Select 3A company hosts a high-traffic e-commerce application on AWS, utilizing an Auto Scaling Group with Amazon EC2 instances behind an Application Load Balancer (ALB). During peak shopping events, users report slow page load times, especially when accessing product catalogs. A review shows that the EC2 instances are frequently CPU-bound and the database queries are taking longer than expected. Which strategies should the Solutions Architect implement to improve the overall performance?
- A
Enable Amazon ElastiCache to cache frequently accessed database queries.
- B
Configure AWS Global Accelerator to distribute incoming traffic across multiple AWS Regions.
- C
Increase the size of the EC2 instances in the Auto Scaling Group to provide more CPU capacity.
- D
Migrate the database to Amazon Aurora with read replicas to offload read traffic.
- E
Enable HTTP/2 on the Application Load Balancer to improve data transmission performance.
Show answer and explanation
Correct answers: A, D, E
Explanation
To improve the performance of the e-commerce application, multiple strategies should be employed. Using Amazon ElastiCache reduces database load, improving query response times. Migrating to Amazon Aurora with read replicas allows the database to efficiently handle read-heavy traffic patterns. Enabling HTTP/2 on the Application Load Balancer enhances data transmission efficiency for web traffic. These solutions together address both the CPU-bound EC2 instances and the slow database queries, ensuring optimal performance during peak traffic events.
- A. Correct.
Enabling Amazon ElastiCache can significantly improve performance by reducing the load on the database for frequently accessed queries, as it provides an in-memory caching layer.
- B. Incorrect.
AWS Global Accelerator is designed to improve global application availability and performance by routing traffic to the nearest region, but this is not directly relevant to the scenario since the issue is related to CPU-bound instances and database performance, not global traffic distribution.
- C. Incorrect.
Increasing the size of the EC2 instances may temporarily alleviate CPU bottlenecks, but it is not a cost-efficient or scalable solution for a high-traffic application with database performance issues.
- D. Correct.
Migrating the database to Amazon Aurora with read replicas can improve performance by offloading read-heavy traffic to replicas, reducing the load on the primary database instance.
- E. Correct.
Enabling HTTP/2 on the ALB can improve data transmission performance, particularly for web applications with many small resources, as HTTP/2 provides multiplexing and header compression.