CS FundamentalsHardProduct-company placement · system design

A site wants /api/* requests sent to one server pool and /static/* to another, and all traffic arrives over HTTPS. What must the load balancer do?

  1. A. Work at layer 4 and route on the destination port, since both paths use 443
  2. B. Work at layer 7 and terminate (or decrypt) TLS so it can read the URL path
  3. C. Work at layer 3 and route on the client's IP address, using a hash
  4. D. Work at layer 4 and read the path from the SNI field of the ClientHello

Correct answer: B. Work at layer 7 and terminate (or decrypt) TLS so it can read the URL path

The path is inside the encrypted HTTP request, so only a layer-7 balancer that ends the TLS session can see it. SNI carries just the hostname, and both paths share one host and port.

More Computer Networks questions

Exams that ask this topic