Courseiva
Kubernetes Fundamentals →mediumMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

A developer wants to expose a set of pods running a web application internally within the cluster using a stable IP address. Which Kubernetes resource should they create?

⚠ Common exam trap

It's easy for candidates to confuse a Deployment's ability to manage pods with network exposure, forgetting that a Deployment alone does not provide a stable IP or load-balanced endpoint — a Service is always required for that purpose.

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 of type ClusterIP provides a stable virtual IP address and DNS name that load-balances traffic to a set of pods, making it the correct resource for internal cluster exposure. Unlike other resources, a Service abstracts the pod IPs and ensures connectivity even if pods are rescheduled or scaled.

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 external HTTP(S) traffic to Services and requires an Ingress controller; it does not allocate a stable internal cluster IP. It is tempting because it exposes web applications, but the scenario specifies internal access, which a ClusterIP Service provides directly.

  • ✗

    ConfigMap

    Why it's wrong here

    A ConfigMap stores non-confidential configuration as key-value data for pods to consume; it provides no networking or IP allocation. It is tempting because it is created alongside application workloads, but exposing pods on a stable internal IP requires a Service resource instead.

  • ✗

    Deployment

    Why it's wrong here

    A Deployment manages ReplicaSet rollout and scaling of pods but assigns no stable virtual IP; pod addresses change on recreation. It is tempting because Deployments run the web application, yet exposing it internally with a fixed IP requires a Service of type ClusterIP.

  • ✓

    Service

    Why this is correct

    A Service provides a stable virtual IP and DNS name that load-balances across a set of pods selected by labels, decoupling clients from individual pod IPs. Creating a Service satisfies the stem's requirement for exposing pods internally with a stable IP address.

About these practice questions

This KCNA question is part of Courseiva's 930-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.