Courseiva
Kubernetes Fundamentals →easyMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

What is the purpose of a Kubernetes Service?

⚠ Common exam trap

Test-takers frequently confuse a Service with a Deployment, thinking both manage pod lifecycle, but a Service only provides network abstraction and does not handle pod creation, scaling, or updates.

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 provide a stable endpoint for a set of pods

A Kubernetes Service provides a stable, virtual IP address and DNS name that acts as a consistent endpoint for accessing a set of pods, even as pods are created, destroyed, or rescheduled. This abstraction decouples clients from the ephemeral nature of pod IPs, enabling reliable communication within the cluster. Services use label selectors to dynamically route traffic to the appropriate pods, and they support multiple types (ClusterIP, NodePort, LoadBalancer) to expose applications internally or externally.

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 a stable endpoint for a set of pods

    Why this is correct

    A Service's clusterIP and DNS name remain fixed while pod IPs change on restart or rescheduling, so traffic reaches whichever pods currently match the selector. This decouples clients from ephemeral pod lifecycles, satisfying the requirement for a stable endpoint.

  • ✗

    To store configuration data as key-value pairs

    Why it's wrong here

    ConfigMaps store configuration as key-value pairs; a Service instead provides a stable virtual IP and DNS name that load-balances traffic to a set of pods. Storing configuration is tempting because both are Kubernetes API objects, but it answers a different need entirely.

  • ✗

    To manage rolling updates of container images

    Why it's wrong here

    Rolling updates of container images are handled by a Deployment's update strategy, which replaces pods incrementally. A Service provides stable network access to whichever pods currently match its selector. Managing rollouts is tempting because Deployments and Services are often used together, but the Service itself performs no image management.

  • ✗

    To schedule pods onto nodes

    Why it's wrong here

    Pod scheduling onto nodes is performed by the kube-scheduler, which evaluates resource requests, affinity and taints. A Service only load-balances traffic to already-running pods matching its label selector. Scheduling is tempting because Services target pods, but they never decide placement.

Go deeper

Related to this question

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.