nerdexam
Microsoft

AZ-400 · Question #264

Hotspot Question You have an Azure Kubernetes Service (AKS) pod. You need to configure a probe to perform the following actions: - Confirm that the pod is responding to service requests. - Check the s

The correct answer is Select the probe type: livenessProbe:; Select the probe timing parameter: periodSeconds: 15. This question tests knowledge of Kubernetes liveness probes in AKS YAML configuration, specifically how to configure a probe that detects unresponsive pods and triggers a restart/shutdown cycle.

Submitted by haru.x· Mar 6, 2026Design and implement build and release pipelines

Question

Hotspot Question You have an Azure Kubernetes Service (AKS) pod. You need to configure a probe to perform the following actions: - Confirm that the pod is responding to service requests. - Check the status of the pod four times a minute. - Initiate a shutdown if the pod is unresponsive. How should you complete the YAML configuration file? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer:

Exhibits

AZ-400 question #264 exhibit 1
AZ-400 question #264 exhibit 2

Answer Area

  • Select the probe typelivenessProbe:
    livenessProbe:readinessProbe:ShutdownProbe:startupProbe:
  • Select the probe timing parameterperiodSeconds: 15
    initialDelaySeconds: 15periodSeconds: 15timeoutSeconds: 15

Explanation

This question tests knowledge of Kubernetes liveness probes in AKS YAML configuration, specifically how to configure a probe that detects unresponsive pods and triggers a restart/shutdown cycle.

Approach. The correct probe type is 'livenessProbe' because it confirms the pod is responding to service requests and initiates a shutdown (restart) if the pod becomes unresponsive - this matches the liveness probe's exact purpose. To check the status four times a minute (every 15 seconds), you set 'periodSeconds: 15'. The YAML structure should include 'livenessProbe:' as the probe kind, with 'periodSeconds: 15' to achieve four checks per minute (60 seconds / 4 = 15 seconds). A readinessProbe would be incorrect here because it only gates traffic routing and does NOT trigger pod restarts/shutdowns when failing.

Concept tested. Kubernetes probe types in AKS: understanding the difference between livenessProbe (restarts unresponsive pods), readinessProbe (controls traffic routing), and startupProbe (handles slow-starting containers), along with correct periodSeconds calculation for desired check frequency.

Reference. https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

Topics

#Kubernetes#AKS#liveness probe#container health#YAML configuration

Community Discussion

No community discussion yet for this question.

Full AZ-400 Practice