Bird
0
0

Given this readiness probe configuration in a pod spec:

medium📝 Command Output Q13 of 15
Kubernetes - Health Checks and Probes
Given this readiness probe configuration in a pod spec:
readinessProbe:
  httpGet:
    path: /ready
    port: 8080
  initialDelaySeconds: 5
  periodSeconds: 10
What happens if the HTTP GET request to /ready returns status 503?
AKubernetes ignores the failure and continues sending traffic
BKubernetes restarts the container immediately
CKubernetes marks the container as not ready and stops sending traffic
DKubernetes deletes the pod
Step-by-Step Solution
Solution:
  1. Step 1: Understand readiness probe failure effect

    If the readiness probe fails (like HTTP 503), Kubernetes marks the container as not ready and stops routing traffic to it.
  2. Step 2: Differentiate from liveness probe

    Liveness probe failure causes restarts, but readiness probe failure only affects traffic routing, not container lifecycle.
  3. Final Answer:

    Kubernetes marks the container as not ready and stops sending traffic -> Option C
  4. Quick Check:

    Readiness failure = no traffic [OK]
Quick Trick: Readiness failure stops traffic, does not restart container [OK]
Common Mistakes:
  • Confusing readiness probe failure with liveness probe failure
  • Assuming container restarts on readiness failure
  • Thinking pod gets deleted on readiness failure

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes