Bird
0
0

What is the main purpose of a liveness probe in Kubernetes?

easy📝 Conceptual Q11 of 15
Kubernetes - Health Checks and Probes
What is the main purpose of a liveness probe in Kubernetes?
ATo check if the application is running and restart it if it is not healthy
BTo control when the application receives user traffic
CTo update the application configuration automatically
DTo monitor the CPU usage of the application
Step-by-Step Solution
Solution:
  1. Step 1: Understand liveness probe role

    Liveness probes check if the app is alive and working properly.
  2. Step 2: Identify action on failure

    If the liveness probe fails, Kubernetes restarts the app to fix it.
  3. Final Answer:

    To check if the application is running and restart it if it is not healthy -> Option A
  4. Quick Check:

    Liveness probe = restarts unhealthy app [OK]
Quick Trick: Liveness probe restarts app if unhealthy [OK]
Common Mistakes:
  • Confusing liveness with readiness probe
  • Thinking liveness controls traffic
  • Assuming liveness updates configs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes