Bird
0
0

Which of the following best describes a liveness probe in Kubernetes?

easy📝 Conceptual Q2 of 15
Microservices - Orchestration with Kubernetes
Which of the following best describes a liveness probe in Kubernetes?
AChecks if the container is ready to receive requests
BRestarts the container if it is not responding
CMonitors the network bandwidth usage
DValidates the container's configuration files
Step-by-Step Solution
Solution:
  1. Step 1: Define liveness probe role

    Liveness probes detect if a container is stuck or dead and trigger a restart if needed.
  2. Step 2: Exclude unrelated checks

    Liveness probes do not check readiness, bandwidth, or config files but focus on container health.
  3. Final Answer:

    Liveness probe restarts the container if it is not responding -> Option B
  4. Quick Check:

    Liveness probe = Restart if unresponsive [OK]
Quick Trick: Liveness probe triggers restart on failure, readiness does not [OK]
Common Mistakes:
MISTAKES
  • Mixing readiness and liveness probe purposes
  • Thinking liveness probes check resource usage
  • Assuming liveness probes validate configs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes