An HTTP(S) Load Balancer's health checks to port 80 are failing and backends receive no traffic. Which command fixes this?
Choose an answer
Tap an option to check your answer.
Correct answer: gcloud compute firewall-rules create allow-lb --network load-balancer --allow tcp --source-ranges 130.211.0.0/22,35.191.0.0/16 --direction INGRESS.
Why this is the answer
The correct command creates an ingress firewall rule allowing TCP traffic from the Google Cloud load balancer health check IP ranges (130.211.0.0/22 and 35.191.0.0/16) to your backend instances. Health checks failing means the load balancer cannot reach your instances, often due to a firewall blocking the health check probes. The add-access-config command is for external IP addresses, not firewall rules. Adding http-server tags might be useful for other firewall rules, but it doesn't create the necessary rule itself. An egress rule would control outbound traffic from your instances, not inbound health checks.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed