AZ-700 Question 175
Single answerYou have configured an internal Azure Load Balancer to distribute traffic across a pool of VMs hosting a stateful corporate web application. Once a user logs in to one of the VMs, they must remain on the same VM for the duration of their session. Which load balancer setting ensures these users continue to connect to the same backend VM throughout their session?
- A
Floating IP
- B
Outbound rules
- C
Session persistence
- D
Health probes
Show answer and explanation
Correct answer: C
Explanation
For stateful applications where users must continue to be served by the same backend VM after initial login, configuring session persistence is key. This setting (sometimes called 'client IP affinity') ensures that traffic from the same client IP is consistently directed to the same backend VM. Health probes are essential for checking VM health, but they do not enforce session-level stickiness. For more details on configuring session persistence, refer to Microsoft documentation on Azure Load Balancer configuration (https://docs.microsoft.com/azure/load-balancer/load-balancer-overview).
- A. Incorrect.
Floating IP is used primarily for scenarios like port forwarding in active-active configurations or high availability scenarios. It does not control session affinity for a user� connection.
- B. Incorrect.
Outbound rules manage outbound connectivity (e.g., SNAT) for virtual machines behind a Load Balancer. They do not ensure that each user is routed to the same VM across multiple requests.
- C. Correct.
Session persistence (also known as 'sticky sessions' or 'source IP affinity') ensures that once a client connects to a specific VM, they continue to connect to that same VM for all subsequent requests in that session. This is precisely what you need to maintain a user session on the same backend VM.
- D. Incorrect.
Health probes help in ensuring traffic is only sent to healthy VMs by regularly checking their availability. While necessary for load balancing, they do not guarantee that a user remains connected to the same VM for session continuity.