Professional Cloud Developer Practice Questions

Google Cloud Professional Cloud Developer exam preparation

Professional Cloud Developer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 120 minutes.

Professional Cloud Developer free question 7 / 10 · Domain 3: Configuring cloud-native applications for deployment

A Kubernetes Service is exposed through a GKE Ingress with the default Ingress controller. The Service references no BackendConfig. Its serving Pods define a readiness probe that checks an HTTP path on the application port. How does GKE build the load balancer health check for this Service?

  1. It infers path, port and protocol from the readiness probe, where there is one, and defaults the rest
  2. It leaves the backend service lacking a health check, as the Ingress object holds the health check reference
  3. It copies the liveness probe of the Pods; liveness probes decide backend health in the cluster
  4. It uses default values; a health check is created from a BackendConfig or from defaults
Show the answer and explanation

Answer: A

Why this is correct
When you expose a Service through the default Ingress controller, each backend service must reference a Google Cloud health check, and GKE creates it by a fixed procedure. If the Service references a BackendConfig CRD with healthCheck information, GKE uses that. If it does not, GKE can infer some or all of the parameters from a container's readiness probe in the serving Pods' template, such as path, port and protocol. Only the GKE Ingress controller supports inferring parameters from a readiness probe. If the probe cannot supply them, the default values are used. A BackendConfig gives the most control over the settings.

Why the other options are wrong
"It uses default values; a health check is created from a BackendConfig or from defaults" … Without a BackendConfig, GKE first tries to infer parameters from the readiness probe of the serving Pods. Defaults are the last resort.
"It copies the liveness probe of the Pods; liveness probes decide backend health in the cluster" … The page names the readiness probe as the source for inferred parameters, and describes the load balancer health check as separate from liveness and readiness probes.
"It leaves the backend service lacking a health check, as the Ingress object holds the health check reference" … Each backend service must reference a Google Cloud health check, and GKE creates one per Service. The reference is not held at the Ingress object.

Key point
Order of precedence for the load balancer health check: BackendConfig, then the readiness probe, then defaults.

Go to the Professional Cloud Developer practice app (10 free questions; purchase unlocks all questions)

See the full practice set