ANS-C01 Question 75
Select 3You are designing an application that uses an Application Load Balancer (ALB) in an AWS environment to distribute traffic across multiple EC2 instances. During peak hours, you notice significant latency in request processing. Which scaling factors should you consider to improve the performance of your load balancer?
- A
Increase the number of target EC2 instances registered with the load balancer.
- B
Enable cross-zone load balancing for the Application Load Balancer.
- C
Increase the idle timeout of connections on the load balancer.
- D
Scale the load balancer by adding more Application Load Balancers.
- E
Ensure the load balancer has sufficient pre-warmed capacity for sudden traffic spikes.
Show answer and explanation
Correct answers: A, B, E
Explanation
To address latency issues with an Application Load Balancer, you should focus on scaling and optimizing the resources it manages. Increasing the number of target EC2 instances allows the ALB to distribute traffic more efficiently. Cross-zone load balancing ensures traffic is balanced across all zones, preventing bottlenecks. Finally, pre-warming the ALB ensures it is prepared to handle sudden increases in traffic, improving responsiveness during peak periods. Adjusting idle timeout and adding additional ALBs are not directly relevant to solving latency issues in this scenario.
- A. Correct.
Increasing the number of target EC2 instances can help distribute traffic more evenly, reducing latency and improving performance.
- B. Correct.
Enabling cross-zone load balancing ensures that traffic is evenly distributed across all availability zones, preventing traffic bottlenecks in a single zone.
- C. Incorrect.
Increasing the idle timeout will not directly address performance or latency issues. This setting determines how long a connection remains idle before being closed.
- D. Incorrect.
Adding more Application Load Balancers is unnecessary in this case, as the ALB can handle scaling internally when configured correctly. Focus should be on scaling targets and optimizing configurations.
- E. Correct.
Pre-warming the load balancer ensures it can handle sudden increases in traffic without delays, which can reduce latency during traffic spikes.