SOA-C02 Question 318
Select 2A company hosts a web application on Amazon EC2 instances behind an Application Load Balancer (ALB). Users report that the application is experiencing high latency during peak traffic hours. As a SysOps Administrator, what actions should you take to optimize the application's performance?
- A
Enable Auto Scaling for the EC2 instances and configure the desired capacity based on traffic patterns.
- B
Configure AWS Global Accelerator to route traffic to the nearest AWS Region.
- C
Use Amazon CloudFront in front of the ALB to cache frequently accessed content.
- D
Resize the EC2 instances to larger instance types to handle more traffic.
- E
Enable HTTP/2 support on the Application Load Balancer.
Show answer and explanation
Correct answers: A, C
Explanation
To optimize performance during peak traffic hours, it is essential to implement scalable and cost-effective solutions. Auto Scaling ensures that the application dynamically adjusts resources based on traffic, while Amazon CloudFront reduces latency by caching content closer to users. These strategies complement each other and address the root cause of high latency effectively.
- A. Correct.
Enabling Auto Scaling ensures that the application can handle traffic surges by dynamically adjusting the number of EC2 instances. This is a recommended performance optimization strategy.
- B. Incorrect.
AWS Global Accelerator is used for improving global application availability and performance by routing traffic to the nearest region. However, this is not directly applicable to optimizing performance for peak traffic within a single region.
- C. Correct.
Using Amazon CloudFront helps reduce latency by caching static and dynamic content closer to end users. This is a valid performance optimization strategy for this scenario.
- D. Incorrect.
Resizing EC2 instances may provide temporary relief but is not a scalable or cost-effective solution for handling traffic surges. Auto Scaling is a better solution.
- E. Incorrect.
Enabling HTTP/2 can improve performance by optimizing connections, but it does not directly address the issue of high latency caused by insufficient backend resources during peak traffic.