What is a liveness probe used for?

  1. To load balance traffic
  2. To restart a container if it becomes unresponsive ✓
  3. To manage storage
  4. To check if a container has started

Correct answer: To restart a container if it becomes unresponsive

Option B is correct because a liveness probe in Kubernetes periodically checks whether a running container is still healthy and responsive; if the probe fails, the kubelet kills and restarts the container automatically. Option A is incorrect because load balancing traffic is the responsibility of Services and Ingress controllers, not probes. Option C is incorrect because storage management is handled by PersistentVolumes, PersistentVolumeClaims, and StorageClasses. Option D is incorrect because checking whether a container has started successfully is the purpose of a startup probe, and determining whether a container is ready to accept traffic is the purpose of a readiness probe.

Topic: · kubernetes, liveness probe, pod health, ckad

Practice Certified Kubernetes App Developer (CKAD) Questions Free