AZ-700 Question 182
Single answerYour company hosts a web application on three Azure VMs behind a Standard Load Balancer. The application listens on port 80, and you want to evenly distribute incoming HTTP requests among the VMs. Additionally, you need requests from the same client to be directed to the same VM for the duration of their active session. You have already created a load balancing rule and health probe on port 80. Which configuration change must you make to ensure the same client is always directed to the same VM?
- A
Enable Floating IP on the load balancing rule
- B
Enable Session Persistence set to Client IP
- C
Configure individual Public IP addresses on each VM
- D
Use inbound NAT rules instead of load balancing rules
Show answer and explanation
Correct answer: B
Explanation
To maintain session consistency for client requests, you must configure the load balancing rule with Session Persistence set to Client IP. This ensures that requests from the same client IP address are routed to the same backend VM while the session remains active. Refer to Microsoft� documentation on Azure Load Balancer (https://learn.microsoft.com/azure/load-balancer/load-balancer-overview) for details on session persistence and load balancing rules.
- A. Incorrect.
Floating IP is primarily used for Direct Server Return scenarios and specialized network configurations; it does not maintain session affinity for web traffic.
- B. Correct.
Enabling Session Persistence (also known as Source IP affinity) ensures that traffic from the same client IP is always directed to the same VM, providing session consistency.
- C. Incorrect.
Assigning individual Public IP addresses only bypasses the load balancer entirely or is used for direct access; it does not address session persistence requirements.
- D. Incorrect.
Inbound NAT rules forward traffic to specific virtual machines for management or dedicated ports; they do not distribute load nor maintain session affinity across multiple VMs.