VCP-VCF Administrator 2024 Question 234
Single answerAn organization has deployed a VMware Cloud Foundation environment and wants to configure an NSX load balancer to provide high availability for an internal web application. They need the load balancer to distribute traffic based on the least number of active connections. Which load balancing algorithm should they configure to meet this requirement?
- A
Round Robin
- B
Least Connections
- C
IP Hash
- D
Weighted Round Robin
Show answer and explanation
Correct answer: B
Explanation
The Least Connections algorithm is designed to balance traffic by directing new requests to the server with the fewest active connections. This approach is ideal for scenarios where maintaining workload balance across backend servers is critical, as in the case of this organization's internal web application.
- A. Incorrect.
Round Robin distributes traffic equally across all servers, regardless of their active connection count, which is not suitable for minimizing active connections.
- B. Correct.
Least Connections ensures traffic is directed to the server with the fewest active connections, making it the correct choice for this requirement.
- C. Incorrect.
IP Hash uses a hashing algorithm based on the client's IP address to determine the server, which does not consider the number of active connections on each server.
- D. Incorrect.
Weighted Round Robin distributes traffic based on server weights, which is not dependent on active connections.