Bird
0
0

Which is the correct probe configuration snippet?

hard📝 Best Practice Q15 of 15
Kubernetes - Health Checks and Probes
You want to configure a Kubernetes HTTP readiness probe that waits 15 seconds after container start, then checks the path /health every 3 seconds, but fails the pod if no response within 1 second. Which is the correct probe configuration snippet?
AreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 15 periodSeconds: 3 timeoutSeconds: 1
BreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 3 periodSeconds: 15 timeoutSeconds: 1
CreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 15 periodSeconds: 1 timeoutSeconds: 3
DreadinessProbe: httpGet: path: /health port: 8080 initialDelaySeconds: 1 periodSeconds: 15 timeoutSeconds: 3
Step-by-Step Solution
Solution:
  1. Step 1: Match initialDelaySeconds to 15 seconds

    The probe must wait 15 seconds before first check, so initialDelaySeconds: 15.
  2. Step 2: Set periodSeconds to 3 seconds and timeoutSeconds to 1 second

    Checks happen every 3 seconds, and timeout is 1 second as required.
  3. Final Answer:

    Correct probe with initialDelaySeconds 15, periodSeconds 3, timeoutSeconds 1 -> Option A
  4. Quick Check:

    initialDelay=15, period=3, timeout=1 matches requirements [OK]
Quick Trick: Match timing values exactly to requirements [OK]
Common Mistakes:
  • Swapping initialDelaySeconds and periodSeconds
  • Setting timeoutSeconds longer than periodSeconds
  • Using wrong path or port

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes