Bird
0
0

Examine this readiness probe configuration:

medium📝 Debug Q6 of 15
Kubernetes - Health Checks and Probes
Examine this readiness probe configuration:
readinessProbe:
  exec:
    command: ["/bin/check_ready.sh"]
  initialDelaySeconds: 5
  periodSeconds: 10
  failureThreshold: 2
  successThreshold: 1
  timeoutSeconds: 1
What is a likely cause if Kubernetes never marks the pod as ready?
AThe script /bin/check_ready.sh is missing or not executable inside the container
BinitialDelaySeconds is too low causing premature checks
CfailureThreshold is set too low, causing immediate failure
DtimeoutSeconds is too high, delaying readiness detection
Step-by-Step Solution
Solution:
  1. Step 1: Understand exec readiness probe

    Exec probes run a command inside the container; it must exist and be executable.
  2. Step 2: Analyze symptoms

    If pod never becomes ready, the command likely fails or is missing.
  3. Step 3: Evaluate other parameters

    initialDelaySeconds, failureThreshold, and timeoutSeconds are reasonable and unlikely to cause permanent failure alone.
  4. Final Answer:

    Option A -> Option A
  5. Quick Check:

    Exec probe command must exist and be executable [OK]
Quick Trick: Exec probe fails if command missing or not executable [OK]
Common Mistakes:
  • Ignoring command existence inside container
  • Misconfiguring timing parameters
  • Confusing failureThreshold with successThreshold

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes