Bird
0
0

If a liveness probe fails continuously, what is the expected behavior of the Kubernetes system?

medium📝 Analysis Q5 of 15
Microservices - Orchestration with Kubernetes
If a liveness probe fails continuously, what is the expected behavior of the Kubernetes system?
AKubernetes scales the pod replicas up
BKubernetes removes the pod from the service endpoints
CKubernetes ignores the failure and keeps the pod running
DKubernetes restarts the container repeatedly
Step-by-Step Solution
Solution:
  1. Step 1: Identify liveness probe failure consequence

    Continuous failure of liveness probe causes Kubernetes to restart the container to recover it.
  2. Step 2: Exclude other behaviors

    Removing from endpoints is readiness failure effect; scaling or ignoring failure is incorrect.
  3. Final Answer:

    Kubernetes restarts the container repeatedly on liveness failure -> Option D
  4. Quick Check:

    Liveness failure = Restart container [OK]
Quick Trick: Liveness failure triggers restart, readiness failure stops traffic [OK]
Common Mistakes:
MISTAKES
  • Confusing readiness and liveness failure effects
  • Thinking pod is deleted on liveness failure
  • Assuming scaling happens automatically

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes