B Y T E B A R

Study Hub / Certified Kubernetes Application Developer (CKAD) / Domain 5.0

Certified Kubernetes Application Developer (CKAD) Domain 5.0: Services and Networking — Explained

Domain 5.0 is how things find and reach each other in Kubernetes: services giving stable addresses to mortal pods, DNS making them memorable, ingress opening the front door, and network policies deciding who may talk to whom.

Exam weight: 20% · Free study preview from ByteBar

Services: stable front doors for mortal pods

DNS and Ingress: names and front doors

Service = stable address for pods (L4). Ingress = smart HTTP routing in front of services (L7). DNS = the names everyone actually uses.

NetworkPolicies: the firewall between pods

The must-memorize table: service types

Which service for which exposure.

TypeExposesUse it when
ClusterIPInternal virtual IPBackend-to-backend communication
NodePortA port on every nodeQuick external access, demos, bare metal
LoadBalancerCloud load balancerProduction internet exposure on cloud
Headless (None)Pod IPs directly via DNSStatefulSets needing per-pod addresses
(Ingress)HTTP routing by host/pathMany HTTP services behind one entry point

Try it: 4 sample questions

Sample questions to check your understanding of this domain. Answers and full reasoning are tucked under each one.

1. Pods behind a service keep getting replaced, but clients never change their configuration. What makes this possible?

  1. A. A. Pods keep their IPs forever
  2. B. B. The service provides a stable virtual IP + DNS name selecting pods by label
  3. C. C. Clients cache pod IPs indefinitely
  4. D. D. The scheduler never kills pods
Show answer & reasoning

B. That's the service's entire job: a stable front (ClusterIP + DNS name) over a changing set of backends, tracked via label selectors and endpoints. Clients point at the service; Kubernetes handles the churn behind it. Pod IPs (A) are explicitly ephemeral.

2. A team runs 12 HTTP microservices and wants one public entry point routing by URL path, with TLS termination. Which construct?

  1. A. A. 12 LoadBalancer services
  2. B. B. Ingress — one entry point, L7 host/path routing, TLS termination
  3. C. C. 12 NodePort services
  4. D. D. Headless services for each
Show answer & reasoning

B. Ingress is the L7 front door: one load balancer, routing by host/path to backend services, commonly terminating TLS. Twelve LoadBalancers (A) means twelve cloud bills; NodePorts (C) expose awkward high ports with no path routing; headless (D) is for direct pod access, the opposite need.

3. After applying a NetworkPolicy that selects all pods in a namespace but defines no ingress rules, what happens to pod-to-pod traffic?

  1. A. A. Nothing — empty policies are ignored
  2. B. B. All ingress to selected pods is denied (default-deny)
  3. C. C. All traffic is allowed as before
  4. D. D. Only DNS stops working
Show answer & reasoning

B. Selecting pods with a policy makes them isolated for the specified direction; with no ingress rules, nothing is allowed in — default deny. That's the intended hardening pattern: deny all, then add explicit allow-policies. (DNS commonly needs an explicit egress exception — a classic follow-up bug.)

4. A service exists but curl to its ClusterIP times out. The fastest diagnostic check is:

  1. A. A. Recreate the cluster
  2. B. B. Check the service's endpoints — empty means the selector matches no pods
  3. C. C. Increase the pod memory limits
  4. D. D. Change the service to NodePort
Show answer & reasoning

B. "Service exists, nothing answers" is almost always a selector mismatch: the service selects by labels, and if no pods carry those labels, the endpoints list is empty. Checking endpoints takes seconds and confirms it. The other options treat symptoms blindly.

This was one domain. The simulator drills all 5.

This free preview covered Services & Networking (Domain 5.0, 20%). Not covered here: Application Deployment (Domain 2.0, 20%); Application Environment, Configuration & Security (Domain 4.0, 25%). Deployment patterns and the highest-weight environment/security domain stay in the paid guide and practice bank. The ByteBar Practice Exam Simulator drills every domain with 1,000 exam-style questions — $9.99 one-time unlocks all 28 exams. Prefer to read? The full CKAD Study Guide is in the ByteBar shop on Etsy.

Practice Exam Simulator — $9.99 one-time, all 28 exams Full Study Guides on Etsy
Keep learning: ByteBar blog · ByteBar store