ANS-C01 Question 84
Select 2You are designing a highly available web application using an Application Load Balancer (ALB) in multiple Availability Zones. The application requires user sessions to be consistently routed to the same target. Additionally, you want to optimize traffic distribution across all targets in all Availability Zones. Which combination of configuration options should you choose?
- A
Enable sticky sessions on the ALB.
- B
Enable cross-zone load balancing on the ALB.
- C
Use the least outstanding requests routing algorithm.
- D
Use the proxy protocol to preserve client IP addresses.
Show answer and explanation
Correct answers: A, B
Explanation
To maintain session consistency for users, sticky sessions should be enabled on the Application Load Balancer. Additionally, enabling cross-zone load balancing ensures optimized traffic distribution across all targets in all Availability Zones, improving availability and resource utilization. The other options, while useful in different scenarios, do not address the specific requirements of consistent session routing and cross-zone traffic distribution.
- A. Correct.
Sticky sessions ensure that user requests are consistently routed to the same target within the target group, which is necessary for maintaining session consistency.
- B. Correct.
Cross-zone load balancing distributes traffic evenly across all registered targets in different Availability Zones, improving availability and resource utilization.
- C. Incorrect.
The least outstanding requests routing algorithm helps distribute traffic based on the number of pending requests per target but is not related to session consistency or cross-zone load balancing.
- D. Incorrect.
The proxy protocol preserves client IP addresses but does not contribute to maintaining session consistency or optimizing traffic distribution across Availability Zones.