Google Professional Cloud Network Engineer Question 428
Select 3Google Cloud PlatformYou are designing a load-balanced application hosted on Google Cloud and want to ensure that only healthy backend instances receive traffic. You decide to configure a health check for a backend instance group. Which of the following steps are required to successfully create and associate a health check with the backend service?
- A
Define a health check specifying the protocol, port, and response timeout.
- B
Associate the health check directly with the instance group.
- C
Attach the health check to the backend service configuration.
- D
Create a firewall rule to allow health check probes from Google Cloud's health check IP ranges.
- E
Manually configure the health check on each virtual machine in the instance group.
Show answer and explanation
Correct answers: A, C, D
Explanation
To ensure that only healthy instances in an instance group receive traffic, you must first define a health check with the required parameters (protocol, port, etc.). This health check is then associated with a backend service, which evaluates the health of attached instance groups. Additionally, a firewall rule must allow traffic from Google's health check IP ranges to reach the instances. Health checks are not configured manually on individual instances or associated directly with the instance group.
- A. Correct.
This is correct. A health check must specify details like protocol (e.g., HTTP, HTTPS, TCP), port, and response timeout to determine the availability of backend instances.
- B. Incorrect.
This is incorrect. Health checks are associated with backend services, not directly with instance groups.
- C. Correct.
This is correct. Backend services use health checks to evaluate the health of the associated instance groups.
- D. Correct.
This is correct. Google Cloud's health check probes originate from specific IP ranges, and firewall rules must allow traffic from these IP ranges to ensure health checks function correctly.
- E. Incorrect.
This is incorrect. Health checks are configured at the backend service level, not manually on each instance.