Google Professional Cloud Network Engineer Question 427
Select 3Google Cloud PlatformYou are deploying a global application using Google Cloud Load Balancing, and you need to ensure that the backend instance groups across multiple regions are healthy and can serve traffic reliably. You create a health check to monitor the backend services. Which of the following configurations are required for the health check to function correctly?
- A
Specify a protocol (e.g., HTTP, TCP) and a port for the health check.
- B
Ensure that the firewall rules allow traffic from the health check probes.
- C
Configure the health check to use a custom URL path, such as '/health', only when using a TCP-based health check.
- D
Set an appropriate timeout period and check interval based on your application's response time.
- E
Associate the health check directly with the load balancer instead of the backend service.
Show answer and explanation
Correct answers: A, B, D
Explanation
To ensure a health check functions properly, you must specify a protocol and port for the probes, ensure firewall rules allow traffic from health check IPs, and set reasonable timeout and interval settings to match your application's behavior. Custom URL paths are only applicable for HTTP(S) health checks, and health checks are associated with backend services, not load balancers.
- A. Correct.
Correct. A health check requires a protocol (e.g., HTTP, TCP, HTTPS) and a port to determine how to probe the backend service.
- B. Correct.
Correct. Firewall rules must allow incoming traffic from Google Cloud health check IP ranges to ensure the probes can reach the backend services.
- C. Incorrect.
Incorrect. A custom URL path, such as '/health', is configured for HTTP(S) health checks, not TCP-based health checks.
- D. Correct.
Correct. Timeout and check interval settings are critical to ensure the health check accurately reflects the backend's health without causing unnecessary failures.
- E. Incorrect.
Incorrect. A health check is associated with the backend service or instance group, not directly with the load balancer.