You configure an HTTP health check for a Google Cloud Load Balancer with the following settings:
- Request path:
/status - Port: 8080
- Check interval: 10 seconds
- Timeout: 5 seconds
- Unhealthy threshold: 3
- Healthy threshold: 2
If your backend service responds with HTTP 200 to /status for 1 check, then returns HTTP 500 for the next 3 checks, what will be the health status of the backend after these 4 checks?
Consider how the unhealthy threshold affects status changes.
The backend must fail 3 consecutive health checks to be marked unhealthy. After 1 healthy and then 3 unhealthy responses, the backend becomes unhealthy.
You want to create a TCP health check for a backend service that listens on port 3306. Which of the following YAML snippets correctly defines this health check in a Deployment Manager template?
Check the correct health check type and data types for port and intervals.
The TCP health check must use tcpHealthCheck with port as an integer. The check interval and timeout must also be integers, not strings.
You have a multi-region backend service deployed in two Google Cloud regions. You want to ensure that the load balancer only sends traffic to healthy backends in each region. Which health check design best supports this goal?
Think about how health checks can reflect regional backend health independently.
Separate health checks per region allow the load balancer to detect and route traffic only to healthy backends in each region, improving reliability and performance.
Your backend service exposes an HTTP health check endpoint at /health. To improve security, you want to restrict access so only Google Cloud health check probes can reach it. Which approach is best?
Consider how to limit network access to trusted sources.
Google publishes IP ranges for health check probes. Restricting access by firewall rules to these IPs protects the health check endpoint from unauthorized access.
You manage a backend service with many instances behind a Google Cloud Load Balancer. You want to optimize health check settings to reduce cost and avoid false positives without sacrificing reliability. Which combination of settings is best?
Balance frequency and thresholds to reduce load and avoid flapping.
Longer intervals and higher thresholds reduce health check traffic and avoid marking backends unhealthy due to transient issues, balancing cost and reliability.