Recall & Review
beginner
What is Layer 4 load balancing?
Layer 4 load balancing works at the transport layer. It routes traffic based on IP address and TCP/UDP ports without inspecting the content of the messages.
Click to reveal answer
beginner
What is Layer 7 load balancing?
Layer 7 load balancing works at the application layer. It routes traffic based on content like HTTP headers, URLs, cookies, or data inside the message.
Click to reveal answer
intermediate
Which layer load balancer can make routing decisions based on URL paths?
Layer 7 load balancer can inspect the URL paths and route requests accordingly, unlike Layer 4 which only uses IP and port information.
Click to reveal answer
intermediate
What is a key advantage of Layer 4 load balancing?
Layer 4 load balancing is faster and uses fewer resources because it does not inspect the message content, only IP and port information.
Click to reveal answer
intermediate
Name a scenario where Layer 7 load balancing is preferred over Layer 4.
When you need to route requests based on application data like HTTP headers, cookies, or URL paths, such as directing users to different services or versions.
Click to reveal answer
Which layer does Layer 4 load balancing operate on?
✗ Incorrect
Layer 4 load balancing works at the transport layer, handling IP addresses and TCP/UDP ports.
Which load balancer can route traffic based on HTTP headers?
✗ Incorrect
Layer 7 load balancers operate at the application layer and can inspect HTTP headers to route traffic.
What is a main benefit of Layer 4 load balancing?
✗ Incorrect
Layer 4 load balancing is faster because it only looks at IP and port, not the message content.
Which load balancer type is best for routing based on user session cookies?
✗ Incorrect
Layer 7 load balancers can inspect cookies and route traffic based on session data.
If you want to balance TCP traffic without inspecting content, which load balancer would you choose?
✗ Incorrect
Layer 4 load balancers handle TCP traffic based on IP and port without inspecting the content.
Explain the main differences between Layer 4 and Layer 7 load balancing.
Think about what each layer can see in the network stack.
You got /4 concepts.
Describe a use case where Layer 7 load balancing is necessary and why Layer 4 would not be sufficient.
Consider scenarios needing smart routing based on user data.
You got /3 concepts.