Five Azure virtual machines running Windows Server 2016 host web sites and are balanced by an Azure load balancer named LB1. Ensure each visitor is served by the same web server for every request. Which setting should you configure?
Choose an answer
Tap an option to check your answer.
Correct answer: Set session persistence to Client IP.
Why this is the answer
Session persistence, also known as sticky sessions, ensures that all requests from a particular client are directed to the same backend server. Setting session persistence to "Client IP" on Azure Load Balancer achieves this by using the client's IP address to consistently route traffic. This is crucial for applications that maintain session state on the server, like many web applications, preventing users from losing their session data if subsequent requests are sent to a different server. Setting the protocol to UDP is incorrect because web traffic (HTTP/HTTPS) primarily uses TCP. Setting session persistence to "None" would distribute requests randomly, defeating the purpose of ensuring a client sticks to one server. Floating IP (Direct Server Return) is a feature for specific high-performance scenarios and doesn't directly control session persistence.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed