Questions: Load Balancing and Server Selection

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

An e-commerce site wants to route all requests with URLs containing '/checkout/' to a high-security server pool and all image requests to a CDN-optimized pool. Which type of load balancer can achieve this?

AA Layer 4 load balancer, using port-based routing rules
BA Layer 7 load balancer, which inspects the HTTP request URL and can route based on path
CEither — both Layer 4 and Layer 7 load balancers can inspect HTTP URL paths
DNeither — this routing requires DNS-level configuration, not a load balancer
Question 2 Multiple Choice

A load balancer uses round-robin to distribute requests. Server A processes each request in 50ms; Server B is currently handling a 5-second video encoding job. After the next few requests, Server B is becoming overloaded. Which algorithm would handle this situation better?

AWeighted round-robin with higher weight assigned to Server B
BIP hash, to keep sessions pinned to consistent servers
CLeast-connections, which always sends the next request to whichever server currently has the fewest active connections
DRandom selection — it statistically evens out over time regardless of request duration
Question 3 True / False

A Layer 7 load balancer can route traffic to different backend pools based on HTTP headers, such as directing mobile clients (identified by the User-Agent header) to a mobile-optimized server pool.

TTrue
FFalse
Question 4 True / False

When a backend server fails, it is expected to be manually removed from the load balancer's pool by an administrator — and manually re-added after recovery — to prevent traffic from reaching it.

TTrue
FFalse
Question 5 Short Answer

Why is a Layer 4 load balancer faster than a Layer 7 load balancer, and what does that speed advantage cost in terms of capability?

Think about your answer, then reveal below.