0
0
GCPcloud~20 mins

TCP/UDP Load Balancer (Layer 4) in GCP - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Layer 4 Load Balancer Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Architecture
intermediate
2:00remaining
Identify the main components of a GCP TCP/UDP Load Balancer
Which of the following components is NOT part of the typical architecture of a GCP TCP/UDP Load Balancer?
AApplication layer firewall for HTTP header inspection
BBackend service with instance groups or network endpoint groups
CHealth checks to monitor backend instance availability
DFrontend IP and port to receive client traffic
Attempts:
2 left
💡 Hint
Think about what Layer 4 load balancing means and what it does not inspect.
scaling
intermediate
2:00remaining
Scaling considerations for GCP TCP/UDP Load Balancer
When scaling a GCP TCP/UDP Load Balancer to handle millions of concurrent connections, which factor is MOST critical to ensure performance?
AUsing a global forwarding rule with multiple backend regions
BIncreasing the number of backend instances without adjusting health checks
CConfiguring session affinity to the client IP for all connections
DDeploying a single backend instance with high CPU capacity
Attempts:
2 left
💡 Hint
Consider how GCP distributes traffic globally and handles failover.
tradeoff
advanced
2:00remaining
Tradeoff between session affinity and load distribution
What is the main tradeoff when enabling client IP-based session affinity on a GCP TCP/UDP Load Balancer?
AImproved load distribution but increased latency
BReduced backend stickiness but better fault tolerance
CLower resource usage but higher risk of dropped connections
DBetter session persistence but potential uneven load across backends
Attempts:
2 left
💡 Hint
Think about how session affinity affects traffic routing consistency.
🧠 Conceptual
advanced
2:00remaining
Understanding health checks in GCP TCP/UDP Load Balancer
Which statement BEST describes the role of health checks in a GCP TCP/UDP Load Balancer setup?
AHealth checks automatically restart unhealthy backend instances
BHealth checks determine backend availability by probing IP and port connectivity
CHealth checks are optional and do not affect traffic routing decisions
DHealth checks inspect application payloads to verify backend correctness
Attempts:
2 left
💡 Hint
Consider what Layer 4 load balancers can check about backend instances.
estimation
expert
3:00remaining
Estimating backend capacity for a GCP TCP/UDP Load Balancer
You expect 10 million concurrent TCP connections distributed evenly across 5 backend instance groups. Each instance can handle 50,000 concurrent connections. How many instances are needed in total to handle the load with a 20% safety margin?
A200 instances
B250 instances
C240 instances
D300 instances
Attempts:
2 left
💡 Hint
Calculate total instances needed, then add 20% safety margin.