What is the purpose of a Kubernetes Service?

  1. To provide stable IP and DNS for Pod access ✓
  2. To schedule Pods on nodes
  3. To store application configuration
  4. To manage Pod lifecycle

Correct answer: To provide stable IP and DNS for Pod access

Option A is correct because a Kubernetes Service provides a stable virtual IP address and a consistent DNS name that abstracts the dynamic set of Pod endpoints behind it, enabling reliable network access even as Pods are created and destroyed. Option B is wrong because scheduling Pods onto nodes is the responsibility of the kube-scheduler, not a Service. Option C is wrong because storing application configuration is the purpose of ConfigMaps and Secrets, not Services. Option D is wrong because managing the Pod lifecycle, including restarts and desired replica counts, is handled by controllers such as Deployments and ReplicaSets.

Topic: · kubernetes, service, networking, dns

Practice Certified Kubernetes App Developer (CKAD) Questions Free