Bird
0
0

Given this pod spec snippet, what happens if the readiness probe fails?

medium📝 Command Output Q13 of 15
Kubernetes - Health Checks and Probes
Given this pod spec snippet, what happens if the readiness probe fails?
readinessProbe:
  httpGet:
    path: /healthz
    port: 8080
  initialDelaySeconds: 5
  periodSeconds: 10
AThe pod is restarted immediately
BThe pod stops receiving new traffic but keeps running
CThe pod is deleted from the cluster
DNothing happens; the pod continues as normal
Step-by-Step Solution
Solution:
  1. Step 1: Understand readiness probe effect

    Readiness probe controls if pod is ready to get user traffic.
  2. Step 2: Identify behavior on failure

    If readiness probe fails, pod stays running but is removed from service endpoints, so no new traffic.
  3. Final Answer:

    The pod stops receiving new traffic but keeps running -> Option B
  4. Quick Check:

    Readiness failure = no traffic, pod runs [OK]
Quick Trick: Readiness failure stops traffic, no restart [OK]
Common Mistakes:
  • Thinking readiness failure restarts pod
  • Confusing readiness with liveness probe
  • Assuming pod deletion on readiness failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes