Bird
0
0

What will happen if the exec readiness probe command returns exit code 0 continuously?

medium📝 Command Output Q5 of 15
Kubernetes - Health Checks and Probes
What will happen if the exec readiness probe command returns exit code 0 continuously?
AThe pod is marked as ready and can receive traffic
BThe pod is marked as not ready and traffic is blocked
CThe pod is restarted automatically
DThe pod logs an error but stays running
Step-by-Step Solution
Solution:
  1. Step 1: Interpret exec readiness probe success

    Exit code 0 means the command succeeded, so the pod is healthy and ready.
  2. Step 2: Effect on pod readiness

    Kubernetes marks the pod as ready, allowing it to receive network traffic.
  3. Final Answer:

    Pod marked ready and receives traffic -> Option A
  4. Quick Check:

    Exit 0 readiness probe = pod ready [OK]
Quick Trick: Exit code 0 means pod is ready for traffic [OK]
Common Mistakes:
  • Confusing readiness with liveness probe effects
  • Assuming pod restarts on success
  • Thinking pod blocks traffic on success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes