CertLumen

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: initialDelaySeconds 0, periodSeconds 10, timeoutSeconds 1, successThreshold 1, failureThreshold 3.
  • successThreshold must be 1 for liveness and startup probes.
  • Startup budget = failureThreshold x periodSeconds.

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?

  1. AA readiness probe with tcpSocket on port 5432
  2. BA readiness probe with httpGet on port 5432
  3. CA startup probe with exec running kill -0 1
  4. DA liveness probe with grpc on 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.

More in this section

← Previous objective · All 24 objectives · Next objective →