Bird
0
0

Given this liveness probe configuration:

medium📝 Command Output Q13 of 15
Kubernetes - Health Checks and Probes
Given this liveness probe configuration:
livenessProbe:
  initialDelaySeconds: 5
  periodSeconds: 10
  timeoutSeconds: 3
If the container starts at time 0, when will the first probe timeout occur if the probe command does not respond?
AAt 15 seconds
BAt 5 seconds
CAt 10 seconds
DAt 8 seconds
Step-by-Step Solution
Solution:
  1. Step 1: Calculate when first probe starts

    The first probe starts after initialDelaySeconds, so at 5 seconds.
  2. Step 2: Add timeoutSeconds to find timeout moment

    The probe waits up to timeoutSeconds (3 seconds) for a response, so timeout occurs at 5 + 3 = 8 seconds.
  3. Final Answer:

    At 8 seconds -> Option D
  4. Quick Check:

    initialDelay + timeout = 8 seconds [OK]
Quick Trick: Add initialDelaySeconds and timeoutSeconds for first timeout [OK]
Common Mistakes:
  • Using periodSeconds instead of timeoutSeconds for timeout
  • Forgetting to add initialDelaySeconds
  • Assuming timeout happens at periodSeconds

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes