Associate Cloud Engineer ยท Connectivity, load balancing and network tiers
Choosing a load balancer
Application vs network vs proxy vs passthrough, external vs internal, global vs regional, backend services, health checks, URL maps, the decision tree.
Key points
- HTTP(S) with path or host routing: Application Load Balancer (layer 7).
- Other TCP/SSL proxying: proxy Network Load Balancer.
- Packets forwarded untouched (client IP kept, TCP/UDP): passthrough Network Load Balancer.
- Then pick external or internal, global or regional.
- Application LB flow: forwarding rule, target proxy, URL map, backend service (with a health check), backends.
Source: https://docs.cloud.google.com/network-tiers/docs/overview
Practice questions
Which load balancer component maps request hosts and URL paths to backend services?
- Forwarding rule
- Health check
- URL map
- Instance group
Show answer
Answer: C. URL map
The URL map holds the host and path rules. The forwarding rule only supplies the IP and port, and the health check only evaluates backends.
Which statements about an external passthrough Network Load Balancer are true?
- Backends can see the original client IP address.
- It can balance UDP traffic.
- It routes requests by URL path.
- It uses health checks to decide which backends get traffic.
- It requires a target HTTP proxy.
Show answer
Answer: A. Backends can see the original client IP address., B. It can balance UDP traffic., D. It uses health checks to decide which backends get traffic.
Passthrough balancers forward packets without terminating the connection, so backends see the client IP; they handle UDP as well as TCP and rely on health checks. They do not read URL paths and do not use an HTTP target proxy.
True or false: an internal Application Load Balancer is reachable by clients on the public internet.
Show answer
Answer: False
False. Internal load balancers use internal addresses and serve clients inside your VPC or connected networks.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
