0
0
GCPcloud~5 mins

TCP/UDP Load Balancer (Layer 4) in GCP - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a TCP/UDP Load Balancer at Layer 4?
It is a network device that distributes incoming TCP or UDP traffic to backend servers based on IP address and port without inspecting the content of the packets.
Click to reveal answer
intermediate
How does a Layer 4 Load Balancer differ from a Layer 7 Load Balancer?
Layer 4 Load Balancer routes traffic based on IP and port (transport layer), while Layer 7 Load Balancer routes based on application data like HTTP headers or URLs.
Click to reveal answer
beginner
What are the benefits of using a TCP/UDP Load Balancer in GCP?
It provides high availability, scales traffic efficiently, supports both TCP and UDP protocols, and offers global or regional load balancing with health checks.
Click to reveal answer
beginner
What is a health check in the context of a TCP/UDP Load Balancer?
A health check is a periodic test that verifies if backend servers are available and responsive to receive traffic, helping the load balancer avoid sending traffic to unhealthy servers.
Click to reveal answer
intermediate
Why is session affinity less common in Layer 4 Load Balancers compared to Layer 7?
Because Layer 4 Load Balancers only see IP and port information, they have limited ability to track user sessions compared to Layer 7 which can use cookies or application data for affinity.
Click to reveal answer
Which OSI layer does a TCP/UDP Load Balancer operate on?
ALayer 3 (Network Layer)
BLayer 7 (Application Layer)
CLayer 4 (Transport Layer)
DLayer 2 (Data Link Layer)
What protocols does a Layer 4 Load Balancer typically support?
ADNS and DHCP
BHTTP and HTTPS
CFTP and SMTP
DTCP and UDP
In GCP, what feature helps a TCP/UDP Load Balancer avoid sending traffic to a down server?
AHealth Checks
BCloud CDN
CFirewall Rules
DIAM Policies
Which of these is NOT a characteristic of a Layer 4 Load Balancer?
ARouting based on IP and port
BInspecting HTTP headers
CSupporting TCP and UDP traffic
DProviding high availability
What is a common use case for a TCP/UDP Load Balancer in GCP?
ABalancing database or gaming server traffic
BDistributing web page requests based on URL
CCaching static content
DManaging user authentication
Explain how a TCP/UDP Load Balancer works and why it is useful in cloud environments like GCP.
Think about how traffic is split without looking inside the data.
You got /4 concepts.
    Describe the differences between Layer 4 and Layer 7 load balancing and when you might choose each.
    Consider what information each layer can see in the network stack.
    You got /4 concepts.