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?
- A. Work at layer 4 and route on the destination port, since both paths use 443
- B. Work at layer 7 and terminate (or decrypt) TLS so it can read the URL path
- C. Work at layer 3 and route on the client's IP address, using a hash
- 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
- The Internet checksum is computed over the three bytes 01 02 03 (hex). As the standard requires for an odd length, the data is padded with…
- A link-state network sets each link's cost to the traffic it currently carries. Two equal routes connect the same pair of regions, and…
- Why does TCP wait for three duplicate ACKs, rather than one, before a fast retransmit?
- A 100,000-byte response is sent with MSS 1460 bytes over a path with plenty of bandwidth, no loss, no delayed ACKs and a large receive…
- A shared cache stores a response from origin that carries Vary: Accept-Encoding. A later client asks for the same URL with a different…
- A site's A record has a TTL of 86,400 s. The team will move the site to a new IP at 10:00 on Friday and wants every cache to pick up the…