Complete the code to specify the protocol for the load balancer.
load_balancer_config = {
"protocol": "[1]",
"port": 80
}The TCP/UDP Load Balancer operates at Layer 4, so the protocol must be set to "TCP" or "UDP". Here, "TCP" is correct.
Complete the code to define the backend service type for TCP/UDP load balancing.
backend_service = {
"type": "[1]",
"health_check": "tcp_health_check"
}The backend service type for a TCP/UDP load balancer should be "TCP" to match the protocol and ensure proper routing.
Fix the error in the health check configuration for TCP load balancer.
health_check = {
"type": "[1]",
"port": 443
}For TCP load balancers, the health check type must be "TCP" to properly check backend health at Layer 4.
Fill both blanks to configure the forwarding rule for a TCP load balancer.
forwarding_rule = {
"loadBalancingScheme": "[1]",
"portRange": "[2]"
}The forwarding rule for a TCP load balancer typically uses an EXTERNAL scheme and a port range like "80-80" for HTTP traffic.
Fill all three blanks to define the backend instance group and balancing mode.
backend = {
"group": "[1]",
"balancingMode": "[2]",
"capacityScaler": [3]
}The backend group must specify the full instance group path. The balancing mode "UTILIZATION" balances based on resource use, and capacityScaler 1.0 means full capacity.