Bird
0
0

You notice your application pod keeps restarting frequently. The liveness probe is defined as:

medium📝 Troubleshoot Q14 of 15
Kubernetes - Health Checks and Probes
You notice your application pod keeps restarting frequently. The liveness probe is defined as:
livenessProbe:
  httpGet:
    path: /health
    port: 8080
  initialDelaySeconds: 5
  periodSeconds: 10
  failureThreshold: 3
What is the most likely cause?
AThe readiness probe is missing
BThe liveness probe is incorrectly configured with wrong port
CThe pod has insufficient CPU resources
DThe application is not responding to the /health endpoint in time
Step-by-Step Solution
Solution:
  1. Step 1: Analyze liveness probe behavior

    Liveness probe checks /health on port 8080 every 10 seconds after 5 seconds delay.
  2. Step 2: Understand restart cause

    If app does not respond correctly 3 times (failureThreshold), Kubernetes restarts pod.
  3. Final Answer:

    The application is not responding to the /health endpoint in time -> Option D
  4. Quick Check:

    Liveness failure = app not responding, causes restart [OK]
Quick Trick: Liveness failure causes restart due to no response [OK]
Common Mistakes:
  • Assuming readiness probe causes restart
  • Ignoring failureThreshold effect
  • Blaming resource limits without evidence

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes