A cloud engineer is managing an existing External Application Load Balancer in Google Cloud. Monitoring reveals that healthy compute instances in the backend service are frequently marked as unhealthy during brief traffic spikes because the associated HTTP health check named prod-api-hc has an overly strict timeout setting. The engineer needs to modify prod-api-hc to increase the check interval to 15 seconds and the timeout duration to 10 seconds without recreating the resource. Which gcloud command should the engineer execute?
- gcloud compute health-checks update http prod-api-hc --check-interval=15s --timeout=10sCevap
- Bgcloud compute backend-services update prod-api-backend --health-check-interval=15s --health-check-timeout=10s
- Cgcloud compute http-health-checks update prod-api-hc --check-interval=15s --timeout=10s
- Dgcloud compute health-checks create http prod-api-hc --check-interval=15s --timeout=10s
Cevap
The command 'gcloud compute health-checks update http prod-api-hc --check-interval=15s --timeout=10s' correctly updates the existing health check parameters in place.
To update an existing HTTP health check in Google Cloud without recreating it, you must use 'gcloud compute health-checks update http [NAME]' along with the desired parameter flags. This modifies the existing health check configuration in place.
Adım Adım Çözüm
Anahtar Kavram
Managing Google Cloud Load Balancing Health Checks via gcloud CLI