Q40 AKS Domain 1 · 20–25% of exam

Which Kubernetes liveness probe result causes a container to be restarted?

  1. A Readiness probe failure
  2. B Liveness probe failure (correct answer)
  3. C Startup probe failure within initialDelaySeconds
  4. D Exec probe returning exit code 0

Shortcut: Liveness probe failure causes Kubernetes to restart the container (per the pod's restartPolicy). Readiness probe failure removes the pod from Service endpoints without restarting it.