
Google Professional Cloud Developer
Get started today
Ultimate access to all questions.
You are deploying an application in a Google Kubernetes Engine (GKE) cluster. The application exposes an HTTP health check endpoint at /healthz
. You need to configure the Pod to use this endpoint for load balancer health checks.
What YAML snippet should you add to your Pod configuration?
Example (correct any syntax errors if present):
livenessProbe:
httpGet:
path: /healthz
port: <application-port>
initialDelaySeconds: 5
periodSeconds: 10
You are deploying an application in a Google Kubernetes Engine (GKE) cluster. The application exposes an HTTP health check endpoint at /healthz
. You need to configure the Pod to use this endpoint for load balancer health checks.
What YAML snippet should you add to your Pod configuration?
Example (correct any syntax errors if present):
livenessProbe:
httpGet:
path: /healthz
port: <application-port>
initialDelaySeconds: 5
periodSeconds: 10
Exam-Like