Courseiva
Kubernetes FundamentalsmediumMultiple SelectObjective-mapped

KCNA Kubernetes Fundamentals Practice Question

Which two of the following are valid ways to expose a Deployment externally to the internet? (Select TWO)

⚠ Common exam trap

Candidates often confuse Ingress as a standalone external exposure method, forgetting that Ingress requires a backing Service (typically NodePort or LoadBalancer) to actually route traffic from the internet.

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

Create a Service of type LoadBalancer

A Service of type LoadBalancer provisions an external load balancer (e.g., in cloud environments like AWS, GCP, or Azure) that assigns a public IP or DNS name, making the Deployment directly accessible from the internet. This is a standard method for exposing services externally in Kubernetes.

Answer analysis

Option-by-option breakdown

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

  • Create a Service of type ClusterIP

    Why it's wrong here

    ClusterIP is only reachable within the cluster.

  • Create an Ingress resource

    Why it's wrong here

    Ingress provides HTTP routing but does not expose a Service directly; it requires a Service of type NodePort or LoadBalancer to route traffic.

  • Create a Service of type LoadBalancer

    Why this is correct

    LoadBalancer provisions an external load balancer and assigns a public IP.

  • Create a Headless Service

    Why it's wrong here

    Headless Services are for service discovery without a single VIP, not for external exposure.

  • Create a Service of type NodePort

    Why this is correct

    A NodePort Service opens a static port on every cluster node’s IP address, routing external traffic from that port to the target Deployment’s Pods. This satisfies the requirement of exposing the Deployment externally to the internet because the node’s public IP combined with the allocated NodePort becomes an accessible endpoint, albeit without cloud load-balancer integration.

About these practice questions

One of 833 original KCNA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.