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 a container is alive and restart it if it is not
BTo check if a container is ready to accept traffic
CTo monitor the CPU usage of a container
DTo scale the number of pods automatically
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of liveness probes

    Liveness probes check if a container is still running properly. If not, Kubernetes restarts it to fix issues.
  2. Step 2: Differentiate from readiness probes

    Readiness probes check if a container can receive traffic, but liveness probes focus on container health and restarting.
  3. Final Answer:

    To check if a container is alive and restart it if it is not -> Option A
  4. Quick Check:

    Liveness probe = container health check and restart [OK]
Quick Trick: Liveness probes restart unhealthy containers automatically [OK]
Common Mistakes:
  • Confusing liveness probe with readiness probe
  • Thinking it scales pods instead of restarting
  • Assuming it monitors resource usage

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes