Exercises

Kubernetes Health Probes and Graceful Pod Shutdown

Learn how Kubernetes keeps containerized web services healthy during startup, normal operation, scaling, and shutdown. This quiz examines readiness, liveness, and startup probes; health endpoint design; SIGTERM handling; traffic draining; termination grace periods; preStop hooks; and load balancer deregistration. Questions combine practical scenarios with core concepts to help you prevent restart loops, failed deployments, and dropped requests.

Answer the questions below and check the explanation for each answer.

0/10 answered

  1. 1

    Why does Kubernetes use a readiness probe for a web service?

    Question 1
  2. 2

    What normally happens after a container repeatedly fails its liveness probe?

  3. 3

    Which probe is designed for the slow initialization phase shown?

    Question 3
  4. 4

    What is the main goal of traffic draining during pod termination?

    Question 4
  5. 5

    What is a Kubernetes preStop hook intended to do?

  6. 6

    How should liveness behave when an optional external analytics service is unavailable?

    Question 6
  7. 7

    What does terminationGracePeriodSeconds control?

  8. 8

    How can a container avoid the signal-handling problem shown?

    Question 8
  9. 9

    What can happen when a probe timeout is shorter than normal response latency?

  10. 10

    Which configuration best reduces dropped requests during load balancer deregistration?

    Question 10

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate