Certified Kubernetes Application Developer (CKAD) · Section 3 · 15% of the exam
Implement probes and health checks
One of the objectives of the Certified Kubernetes Application Developer (CKAD) exam, in the section “Application Observability and Maintenance”. Here is what it covers, the points to remember and a question to try.
What it covers
Probes let the kubelet ask your container whether it is alive, ready for traffic and finished starting. You will learn the three probe types, the four handler mechanisms, every timing field with its default, and the failure modes that cause restart loops and stuck rollouts.
Points to remember
- Liveness restarts a container, readiness controls Service endpoints, startup protects slow starts and disables the other two until it passes.
- Handlers:
httpGet(200 to 399),tcpSocket(connect),exec(exit 0),grpc(health protocol, GA in v1.27). - Defaults:
initialDelaySeconds0,periodSeconds10,timeoutSeconds1,successThreshold1,failureThreshold3. successThresholdmust be 1 for liveness and startup probes.- Startup budget =
failureThresholdxperiodSeconds.
Try a question
A Postgres container has no HTTP endpoint. The team wants the Pod to join Service endpoints only when port 5432 accepts connections. Which probe configuration fits best?
- AA readiness probe with
tcpSocketon port 5432 - BA readiness probe with
httpGeton port 5432 - CA startup probe with
execrunningkill -0 1 - DA liveness probe with
grpcon port 5432
Show the answer
A. tcpSocket is the standard handler for non-HTTP servers. Using it in a readiness probe controls Service membership. An exec handler such as pg_isready is another valid choice.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Liveness, Readiness and Startup Probes teaches this objective (about 40 minutes), and 11 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.