Courseiva
Kubernetes Fundamentals →mediumMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

You need to expose a set of pods running a web application to internal cluster traffic on a stable IP address. Which resource should you create?

⚠ Common exam trap

CNCF often tests the distinction between internal and external exposure, and the trap here is that candidates may confuse a Service of type ClusterIP with NodePort, thinking NodePort is needed for any stable IP, when ClusterIP is the correct choice for internal-only traffic.

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 of type ClusterIP

A Service of type ClusterIP exposes the set of pods on a stable, internal IP address that is only reachable within the cluster. This is the default Service type and is specifically designed for internal cluster traffic, providing a stable virtual IP (VIP) that load-balances requests to the underlying pods.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Service of type NodePort

    Why it's wrong here

    NodePort exposes the application on every node's IP at a static port in the 30000–32767 range, so the address depends on the node rather than being a stable cluster-internal IP. It would suit exposing a service externally for testing or demos without a load balancer.

  • ✗

    Ingress

    Why it's wrong here

    Ingress routes external HTTP and HTTPS traffic to services and terminates TLS; it does not itself assign a stable internal IP to a pod set. It would be correct for publishing a web application to users outside the cluster via host- or path-based routing rules.

  • ✗

    NetworkPolicy

    Why it's wrong here

    NetworkPolicy controls which pods may communicate with which, acting as a firewall; it assigns no IP address and exposes nothing. It would be correct for restricting traffic between namespaces or tiers, but the requirement is reachability on a stable internal IP.

  • ✓

    Service of type ClusterIP

    Why this is correct

    ClusterIP assigns the Service a stable virtual IP reachable only from inside the cluster, and kube-proxy load-balances connections across the selected pods. This satisfies the requirement to expose the web application to internal cluster traffic on a stable 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

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. A developer has created a Deployment with 3 replicas. The application should be reachable from other Pods within the same cluster. Which Kubernetes resource should be used to provide a stable network endpoint?

medium
  • A.Ingress
  • ✓ B.Service
  • C.PersistentVolumeClaim
  • D.ConfigMap

Why B: A Service provides a stable network endpoint (ClusterIP) that load-balances traffic across the Pod replicas, abstracting away Pod IP changes due to restarts or scaling. This allows other Pods within the cluster to reach the application reliably using the Service's DNS name, without needing to track individual Pod IPs.

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.