Bird
0
0

You configured this startupProbe:

medium📝 Troubleshoot Q6 of 15
Kubernetes - Health Checks and Probes
You configured this startupProbe:
startupProbe:
  httpGet:
    path: /ready
    port: 80
  failureThreshold: 4
  periodSeconds: 10
  initialDelaySeconds: 0
But the container restarts immediately after starting. What is the most likely cause?
AinitialDelaySeconds should be set to 0 for immediate success
BThe failureThreshold is too high causing delayed restarts
CThe port 80 is incorrect for HTTP GET probes
DThe probe starts immediately but the app is not ready to respond at /ready yet
Step-by-Step Solution
Solution:
  1. Step 1: Analyze initialDelaySeconds

    Set to 0 means probe starts immediately after container start.
  2. Step 2: Check app readiness

    If app is slow to respond at /ready, probe fails repeatedly.
  3. Step 3: Result of failures

    Repeated failures cause container restart per failureThreshold.
  4. Final Answer:

    The probe starts immediately but the app is not ready to respond at /ready yet -> Option D
  5. Quick Check:

    initialDelaySeconds=0 means no wait before probing [OK]
Quick Trick: No initial delay means probe may fail if app not ready [OK]
Common Mistakes:
  • Assuming failureThreshold controls restart speed directly
  • Thinking port 80 is invalid for HTTP probes
  • Believing initialDelaySeconds=0 guarantees success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes