Bird
0
0

A readiness probe uses an exec command that always returns exit code 0, but the service is not ready. What is the problem?

medium📝 Analysis Q7 of 15
Microservices - Orchestration with Kubernetes
A readiness probe uses an exec command that always returns exit code 0, but the service is not ready. What is the problem?
AThe pod will be restarted due to readiness failure
BThe probe incorrectly reports ready because exit code 0 means success
CThe exec command syntax is invalid
DThe readiness probe will be ignored by Kubernetes
Step-by-Step Solution
Solution:
  1. Step 1: Understand exec probe success criteria

    Exec probe success depends on exit code 0; always returning 0 means probe always passes.
  2. Step 2: Consequence of always passing probe

    Probe reports ready even if service is not ready, causing traffic routing issues.
  3. Final Answer:

    Probe incorrectly reports ready because exit code 0 means success -> Option B
  4. Quick Check:

    Exec probe exit code 0 = success, may mask readiness issues [OK]
Quick Trick: Exec probe exit code 0 means success, verify command logic [OK]
Common Mistakes:
MISTAKES
  • Assuming pod restarts on readiness failure
  • Thinking exec command syntax causes failure
  • Believing readiness probe can be ignored

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes