Courseiva
Kubernetes Fundamentals →mediumMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

Which resource type provides a stable IP address and DNS name to access a set of Pods, regardless of Pod IP changes?

⚠ Common exam trap

It's easy for candidates to confuse Ingress with providing a stable IP/DNS for Pods, but Ingress only routes external traffic to a Service and does not itself assign a stable internal 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

✓

Service

A Service in Kubernetes provides a stable virtual IP (ClusterIP) and a DNS name (via CoreDNS) that remains constant even as Pods are created, destroyed, or rescheduled. This decouples client access from the ephemeral nature of Pod IPs, ensuring reliable connectivity to the Pods selected by the Service's label selector.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Ingress

    Why it's wrong here

    Ingress routes HTTP and HTTPS requests to Services by host or path; it neither allocates a stable cluster IP nor creates a DNS name for Pods. It is the right choice for exposing HTTP workloads externally with TLS termination and name-based virtual hosting, not for stable in-cluster Service discovery.

  • ✗

    ConfigMap

    Why it's wrong here

    ConfigMap injects configuration data as environment variables or mounted files; it holds no network identity, cluster IP, or DNS record. It is correct when decoupling non-sensitive configuration from container images, not when providing stable addressing for a changing set of Pods.

  • ✗

    Deployment

    Why it's wrong here

    A Deployment manages ReplicaSets and Pod lifecycle, ensuring a declared number of replicas run; it assigns no stable IP or DNS name, since Pod IPs change on recreation. It is the right controller for stateless rollout and scaling, not for stable Service-based access.

  • ✓

    Service

    Why this is correct

    A Service assigns a stable virtual IP and DNS name, then load-balances traffic to the selected Pods via kube-proxy. Pod IPs change on recreation, so clients address the Service instead, satisfying the requirement for stable access regardless of Pod churn.

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

Same concept, more angles

1 more way this is tested on KCNA

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. Which Kubernetes object provides a stable IP address and DNS name for a set of Pods?

easy
  • A.Ingress
  • B.ConfigMap
  • ✓ C.Service
  • D.Deployment

Why C: A Service provides a stable virtual IP address and a DNS name (e.g., my-svc.namespace.svc.cluster.local) that remains constant even as Pods are created or destroyed. This enables reliable network access to a dynamic set of Pods selected via labels, abstracting away Pod IP volatility.

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.