A stateless web application behind an external HTTP(S) load balancer must preserve user sessions even when a client’s IP changes (mobile clients). Which session affinity should you enable on the backend service?
Choose an answer
Tap an option to check your answer.
Correct answer: GENERATED_COOKIE.
Why this is the answer
GENERATEDCOOKIE is the correct choice because it ensures session persistence by inserting a cookie into the client's browser. This cookie contains information that allows the load balancer to direct subsequent requests from the same client to the same backend instance, even if the client's IP address changes, which is common for mobile users. CLIENTIP would fail to maintain sessions if the client's IP changes. NONE offers no session affinity. CLIENTIPPROTO considers both client IP and protocol, but still fails if the IP changes.
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