Google Professional Cloud Network Engineer Question 425
Select 3Google Cloud PlatformYou are setting up a backend service to handle traffic for a web application hosted on Google Cloud. The backend consists of a managed instance group in two different regions for high availability. To ensure proper load balancing and traffic distribution, you need to configure a health check. Which of the following steps are required to create and attach a health check to the backend service?
- A
Create a health check with the appropriate protocol, port, and path.
- B
Attach the health check to the backend service configuration.
- C
Manually configure the health check in each individual instance of the instance group.
- D
Specify the health check in the load balancer's frontend configuration.
- E
Ensure that the firewall rules allow traffic from the health check probes.
Show answer and explanation
Correct answers: A, B, E
Explanation
To ensure that a backend service is properly monitored and traffic is distributed only to healthy instances, a health check must be created and attached to the backend service. It is also necessary to configure firewall rules to allow health check probes to reach the instance group. Health checks are not configured manually per instance, nor are they part of the frontend configuration of the load balancer.
- A. Correct.
This is correct. Configuring a health check with the right protocol (e.g., HTTP, HTTPS, TCP), port, and path ensures that the backend service is monitored appropriately.
- B. Correct.
This is correct. After creating the health check, it must be attached to the backend service so that the load balancer knows how to evaluate the health of the instances.
- C. Incorrect.
This is incorrect. Health checks are applied to the backend service or instance group as a whole, not to individual instances manually.
- D. Incorrect.
This is incorrect. Health checks are part of the backend service configuration, not the frontend configuration of the load balancer.
- E. Correct.
This is correct. Firewall rules must explicitly allow traffic from Google Cloud health check probes (specific IP ranges) to ensure that health checks can reach the instances.