Exercises
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
Auto audio on: the next questions will be read aloud when you click Continue.
A readiness probe controls whether a pod is included in Service endpoints. A pod that is not ready remains running but should not receive new service traffic.
A liveness failure indicates that the container is unhealthy and should be restarted. The kubelet performs the restart; it does not automatically resize resources or delete the Service.
A startup probe protects a slow-starting application from premature liveness failures. Readiness and liveness checks begin only after the startup probe succeeds.
Traffic draining prevents new work from reaching a terminating pod while giving existing requests time to complete, reducing connection resets and failed responses.
A preStop hook runs during container termination before SIGTERM is sent. It can initiate shutdown behavior, though its execution time counts toward the termination grace period.
Liveness should usually test whether the application process can make progress. Tying it to an optional dependency can create unnecessary restart loops during an external outage.
This setting defines the shutdown grace period. If the container has not exited by the deadline, Kubernetes can force termination, typically by sending SIGKILL.
PID 1 must handle or forward termination signals. A shell that does not forward SIGTERM can prevent the child web process from shutting down gracefully.
An unrealistically short timeout can classify slow but healthy responses as failures. For readiness probes, this may repeatedly add and remove pods from service endpoints.
The shutdown window should allow endpoint and load balancer updates to propagate while active requests finish. Coordinated delays reduce the risk of routing traffic to an exiting pod.
Video Courses
recommended
recommended
recommended
recommended
Ideal for beginners
Thousands of online courses in video, ebooks and audiobooks.
To test your knowledge during online courses
Generated directly from your cell phone's photo gallery and sent to your email
Download our app via QR Code or the links below:.
+ 10 million
students
Free and Valid
Certificate
60 thousand free
exercises
4.8/5 rating in
app stores
Free courses in
video and ebooks