Courseiva
Kubernetes Fundamentals →easyMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

What is the purpose of a Service in Kubernetes?

⚠ Common exam trap

Candidates often confuse the Service's role of exposing Pods with the Deployment's role of managing Pod lifecycles, leading them to pick Option B, but a Service does not handle updates or scaling—it only provides a stable network endpoint.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

To expose a set of pods as a network service with a stable endpoint

A Service in Kubernetes provides a stable network endpoint (IP address and DNS name) to access a set of Pods, which are ephemeral and can be created or destroyed dynamically. It decouples the client from the Pods' IPs by using label selectors to route traffic, enabling reliable communication within the cluster or externally. This is defined in the Kubernetes API as a Service resource, with types like ClusterIP, NodePort, and LoadBalancer.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    To provide persistent storage volumes

    Why it's wrong here

    Persistent storage is provided by PersistentVolumes and PersistentVolumeClaims, which decouple storage lifecycle from pods; a Service supplies a stable virtual IP and DNS name for pod access. PVs are tempting because they also abstract pod resources, but they address storage, not service discovery.

  • ✗

    To manage rolling updates of pods

    Why it's wrong here

    Rolling updates are handled by a Deployment's update strategy, which replaces pods gradually; a Service only provides stable networking and load balancing across whatever pods currently match its selector. Deployments are tempting because they manage pod lifecycle, but they do not expose a stable endpoint.

  • ✓

    To expose a set of pods as a network service with a stable endpoint

    Why this is correct

    A Service provides a stable virtual IP and DNS name that load-balances traffic across a dynamically changing set of pods selected by labels. This decouples clients from individual pod IPs, which change as pods are created or replaced.

  • ✗

    To store configuration data as key-value pairs

    Why it's wrong here

    ConfigMaps store configuration data as key-value pairs; a Service instead gives pods a stable virtual IP and DNS name for load-balanced access. ConfigMaps are tempting because they also decouple pods from their environment, but they hold settings, not network endpoints.

About these practice questions

Courseiva writes every KCNA question from scratch — 930 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This KCNA practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the KCNA exam.