Bird
0
0

What will happen if a TCP liveness probe fails continuously for the configured failureThreshold?

medium📝 Predict Output Q5 of 15
Kubernetes - Health Checks and Probes
What will happen if a TCP liveness probe fails continuously for the configured failureThreshold?
AKubernetes will restart the container
BKubernetes will mark the pod as not ready but keep it running
CKubernetes will delete the pod permanently
DKubernetes will ignore the failures
Step-by-Step Solution
Solution:
  1. Step 1: Understand liveness probe failure

    Liveness probe failure triggers container restart after failureThreshold is reached.
  2. Step 2: Compare options

    Only Kubernetes will restart the container correctly describes container restart on liveness failure.
  3. Final Answer:

    Kubernetes will restart the container -> Option A
  4. Quick Check:

    Liveness probe failure = container restart [OK]
Quick Trick: Liveness probe failure restarts container after threshold [OK]
Common Mistakes:
  • Confusing liveness with readiness probe effects
  • Thinking pod is deleted permanently
  • Assuming failures are ignored

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes