CertLumen

Certified Kubernetes Application Developer (CKAD) · Section 5 · 20% of the exam

Provide and troubleshoot access to applications via services

One of the objectives of the Certified Kubernetes Application Developer (CKAD) exam, in the section “Services and Networking”. Here is what it covers, the points to remember and a question to try.

What it covers

A Service gives a changing set of Pods one stable name and virtual IP. This lesson covers selectors, ports, the four types, headless Services, DNS names, EndpointSlices, session affinity and a repeatable method for debugging a Service that does not answer.

Points to remember

  • A Service has a stable name and ClusterIP and selects Pods by label.
  • port is the Service port; targetPort is the container port; nodePort defaults to 30000-32767.
  • Types: ClusterIP (default), NodePort, LoadBalancer, ExternalName.
  • kubectl expose deployment NAME --port=P --target-port=T [--type=NodePort] creates a Service quickly.
  • DNS name: <svc>.<namespace>.svc.cluster.local; the short name works inside the namespace.

Try a question

A StatefulSet needs each Pod to be reachable by its own DNS name, and clients must not be load balanced through a virtual IP. Which Service configuration is required?

  1. AA NodePort Service with sessionAffinity ClientIP
  2. BA ClusterIP Service with a very large number of ports
  3. CAn ExternalName Service pointing to the Pod names
  4. DA headless Service (clusterIP: None) selecting the Pods
Show the answer

D. Setting spec.clusterIP: None creates a headless Service: no virtual IP, no kube-proxy handling, and DNS A records for the ready Pods behind it.

Written for practice in the style of the exam: never a question from the real exam.

In the course

The lesson Services and Troubleshooting Access teaches this objective (about 45 minutes), and 16 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 →