PrepPilotPractise free

Load Balancers & TLS interview questions

VIPs, health checks, Nginx, certificates

16 questions · VIP:443 · updated November 2026

Practise these as flashcards. One or two lines each; the ones you miss come back first.

Start free

Core questions

L4 vs L7 load balancer?

L4 balances on IP and port and doesn't look inside; it's fast and works for any TCP/UDP. L7 understands HTTP, so it can route by host or path, terminate TLS, rewrite headers and run a WAF.

What is a health check and what happens when it fails?

The LB probes each backend on a schedule, like a TCP connect or an HTTP GET expecting 200. A member that fails is pulled out of rotation until it passes again.

502 vs 503 vs 504?

502: the proxy reached the backend but got a bad or refused response. 503: no healthy backends. 504: the backend took too long to answer.

What does SNAT do on a load balancer?

Rewrites the client's source IP to the LB's own IP before sending to the backend, so the backend's reply comes back through the LB. Downside: the backend no longer sees the real client IP, so you insert X-Forwarded-For.

Intermediate questions

When do you use sticky sessions, and what's the downside?

When the app keeps session data in local memory. Downsides: uneven load, and users lose their session if that server dies. Better fix: store sessions in Redis or a database so any server can handle any request.

The backend logs show the LB's IP instead of the client's. Fix?

Turn on the X-Forwarded-For header on the L7 load balancer and configure the web server to log it. For L4, use proxy protocol or route return traffic through the LB without SNAT.

A VIP returns 503 right after a deploy. Where do you look?

Pool member health. Often the app team changed or removed the health check path, so every member fails the monitor even though the app runs. Fix the monitor or restore the path.

The browser says 'not secure' but the cert is valid. Why?

Usually the intermediate certificate isn't installed, so the chain is incomplete. openssl s_client shows it. Add the intermediate to the chain on the LB or web server.

What is a SAN on a certificate? What about wildcards?

Subject Alternative Names let one cert cover several hostnames. A wildcard like *.example.com covers one level of subdomains, not the bare domain or deeper levels.

Active-active vs active-passive load balancers?

Active-passive: one unit serves, the other waits and takes over the floating IP on failure. Active-active: both serve traffic for more capacity, but session state must be synced.

Pool members show down but the app works when you curl it. Why?

The monitor doesn't match reality: wrong path, Host header missing (send string), expects '200 OK' but gets a 302 to login, HTTPS monitor against an HTTP port, or the LB's self-IP/probe source is blocked by the host firewall or NSG. Test from the LB itself, with the exact monitor request.

Azure Load Balancer vs Application Gateway vs Front Door vs Traffic Manager?

Load Balancer: regional L4, any TCP/UDP. App Gateway: regional L7 with WAF, TLS offload and path routing. Front Door: global L7 edge with anycast, CDN and WAF for internet apps. Traffic Manager: DNS-based global routing and failover for any protocol. Pick by global vs regional and HTTP vs not.

How do you test a new VIP before DNS points at it?

See the answer in the app, free

Senior questions

A cert expired at 2 a.m. and the site is down. Fix it and prevent it.

See the answer in the app, free

Where should TLS terminate?

See the answer in the app, free

A health check that queries the database caused a full outage. Explain and fix.

See the answer in the app, free

More Infrastructure Engineering topics