Bird
0
0

Given this liveness probe configuration, what happens if the probe fails 3 times in a row? livenessProbe: httpGet: path: /healthz port: 8080 failureThreshold: 3 periodSeconds: 5

medium📝 Predict Output Q4 of 15
Kubernetes - Health Checks and Probes
Given this liveness probe configuration, what happens if the probe fails 3 times in a row? livenessProbe: httpGet: path: /healthz port: 8080 failureThreshold: 3 periodSeconds: 5
AThe pod is deleted permanently
BThe container is restarted by Kubernetes
CThe pod is marked as ready but not restarted
DNothing happens; probe failures are ignored
Step-by-Step Solution
Solution:
  1. Step 1: Understand failureThreshold meaning

    If the liveness probe fails the specified number of times consecutively, Kubernetes restarts the container.
  2. Step 2: Confirm behavior on failure

    FailureThreshold of 3 means after 3 failed checks, container restart is triggered, not pod deletion or ignoring failures.
  3. Final Answer:

    The container is restarted by Kubernetes -> Option B
  4. Quick Check:

    FailureThreshold triggers container restart [OK]
Quick Trick: FailureThreshold failures cause container restart [OK]
Common Mistakes:
  • Thinking pod is deleted instead of container restart
  • Assuming readiness state changes on liveness failure
  • Ignoring failureThreshold effect

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes