A Layer 4 Load Balancer works at the transport layer and routes traffic based on IP address and TCP/UDP ports without inspecting the content of the packets.
Click to reveal answer
intermediate
How does a Layer 7 Load Balancer differ from Layer 4?
Layer 7 Load Balancer operates at the application layer and can make routing decisions based on HTTP headers, cookies, or URL paths, allowing more intelligent traffic distribution.
Click to reveal answer
intermediate
What is a key benefit of using a Global Load Balancer in GCP?
Global Load Balancers distribute traffic across multiple regions, improving availability and reducing latency by directing users to the nearest healthy backend.
Click to reveal answer
beginner
What type of load balancer is best for TCP/UDP traffic in GCP?
The Network Load Balancer is best for TCP/UDP traffic as it operates at Layer 4 and can handle millions of requests with low latency.
Click to reveal answer
intermediate
Why choose an HTTP(S) Load Balancer over a Network Load Balancer?
HTTP(S) Load Balancer supports advanced features like SSL termination, URL-based routing, and HTTP/2, making it ideal for web applications requiring smart traffic management.
Click to reveal answer
Which GCP load balancer operates at Layer 7 and supports URL-based routing?
AHTTP(S) Load Balancer
BNetwork Load Balancer
CTCP Proxy Load Balancer
DInternal Load Balancer
✗ Incorrect
HTTP(S) Load Balancer works at Layer 7 and supports URL-based routing.
Which load balancer type is best suited for non-HTTP TCP/UDP traffic in GCP?
AHTTP(S) Load Balancer
BNetwork Load Balancer
CSSL Proxy Load Balancer
DGlobal Load Balancer
✗ Incorrect
Network Load Balancer handles TCP/UDP traffic efficiently at Layer 4.
What is a key feature of Global Load Balancers in GCP?
ADistributing traffic across multiple regions
BRouting traffic only within a single region
COnly supports UDP traffic
DDoes not support SSL termination
✗ Incorrect
Global Load Balancers distribute traffic across multiple regions for better availability and latency.
Which load balancer type in GCP supports SSL termination?
AInternal Load Balancer
BTCP Proxy Load Balancer
CNetwork Load Balancer
DHTTP(S) Load Balancer
✗ Incorrect
HTTP(S) Load Balancer supports SSL termination to offload encryption from backend servers.
Which GCP load balancer is designed for internal traffic within a VPC?
ANetwork Load Balancer
BGlobal Load Balancer
CInternal Load Balancer
DHTTP(S) Load Balancer
✗ Incorrect
Internal Load Balancer is used for load balancing traffic inside a Virtual Private Cloud.
Explain the differences between Layer 4 and Layer 7 load balancers and when to use each in GCP.
Think about how deep the load balancer inspects the traffic.
You got /6 concepts.
Describe the benefits of using a Global Load Balancer in a multi-region GCP deployment.
Consider user location and system reliability.
You got /5 concepts.
Practice
(1/5)
1. Which GCP load balancer type is best suited for distributing HTTP and HTTPS traffic globally with SSL termination?
easy
A. TCP Proxy Load Balancer
B. Internal Load Balancer
C. Network Load Balancer
D. HTTP(S) Load Balancer
Solution
Step 1: Understand the traffic type
HTTP and HTTPS traffic require Layer 7 (application layer) handling with SSL termination.
Step 2: Match load balancer capabilities
HTTP(S) Load Balancer supports global distribution and SSL termination for web traffic.
5. You have a multi-region web app serving HTTP and HTTPS traffic with backend services in multiple zones. You want to minimize latency and provide automatic failover. Which GCP load balancer type should you choose and why?
hard
A. Network Load Balancer because it supports UDP and TCP globally
B. Internal Load Balancer because it routes traffic inside the VPC
C. HTTP(S) Load Balancer because it offers global load balancing with SSL termination and health checks
D. TCP Proxy Load Balancer because it handles TCP traffic with SSL offloading
Solution
Step 1: Analyze requirements for multi-region HTTP/HTTPS app
Needs global load balancing, SSL termination, low latency, and failover.
Step 2: Match load balancer features
HTTP(S) Load Balancer supports global distribution, SSL termination, health checks, and automatic failover.
Step 3: Exclude other options
Network Load Balancer is regional and lacks SSL termination; Internal Load Balancer is internal-only; TCP Proxy is for TCP, not HTTP/HTTPS.
Final Answer:
HTTP(S) Load Balancer because it offers global load balancing with SSL termination and health checks -> Option C