CKAD Practice Question: Which TWO of the following are valid ways to expose a Service externally in a Kubernetes…
Which TWO of the following are valid ways to expose a Service externally in a Kubernetes cluster?
⚠ Common exam trap
Watch out — candidates often think Ingress alone can expose a Service externally, but Ingress is only a routing layer that requires an underlying Service of type NodePort or LoadBalancer to actually receive external 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 type LoadBalancer
Service type LoadBalancer (C) exposes the Service externally by provisioning a cloud load balancer (e.g., AWS ELB, GCP L7) that routes external traffic to the Service's ClusterIP. Service type NodePort (D) exposes the Service on a static port (30000-32767) on every node's IP, allowing external access via <NodeIP>:<NodePort>. Both are valid methods for external exposure 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.
- ✗
Service type ClusterIP
Why it's wrong here
Service type ClusterIP exposes the Service only on a cluster-internal virtual IP, which is routable solely from within the cluster's network. This IP cannot be reached from outside the cluster without an additional component such as a node port, load balancer, or Ingress controller. Therefore, ClusterIP by itself is not a valid way to expose a Service to external clients.
- ✗
Service type ExternalName
Why it's wrong here
Service type ExternalName returns a CNAME record for an external DNS name rather than creating a real proxy or route to Pods. It enables cluster workloads to refer to an external service by a local alias, but it does not accept inbound traffic from outside the cluster. As a result, it is not a method for exposing a Service to external clients; it is merely a DNS-level indirection.
- ✓
Service type LoadBalancer
Why this is correct
Service type LoadBalancer is a valid way to expose a Service because the cloud provider automatically provisions an external load balancer (e.g., ALB, ELB, or a similar L4 LB) that forwards traffic to the Service's underlying node ports. This gives the Service a stable public IP or hostname, making it directly reachable from the internet. It is the most common approach for external exposure in cloud environments.
- ✓
Service type NodePort
Why this is correct
Service type NodePort is a valid way to expose a Service by allocating a static port (30000–32767) on each worker node and routing traffic sent to any node's IP at that port to the Service's ClusterIP and then to Pods. External clients can therefore access the Service using the node IP and the allocated port, with no cloud load balancer required. This method works on any Kubernetes cluster, including bare-metal and on-premises deployments.
- ✗
Ingress resource with ClusterIP Service
Why it's wrong here
Ingress is not a Service type but an API object that requires an Ingress controller to accept external traffic at a single entry point and route it to a backend Service. The backend Service is often ClusterIP, which remains internal; the actual external exposure is provided by the Ingress controller, which itself must be exposed via a NodePort or LoadBalancer. Therefore, using an Ingress resource with a ClusterIP Service is not a direct way to expose the Service to external clients; the underlying Service is still not externally reachable on its own.
Go deeper
Related to this question
About these practice questions
One of 826 original CKAD 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 →
You might also like
Similar CKAD questions
- You want to restrict ingress traffic to pods with label 'app: web' in namespace 'frontend' to only come from pods in nam…
- A pod in namespace 'default' cannot resolve the service name 'db' in namespace 'data'. Which DNS name should the pod use…
- You apply the following Ingress manifest: ``` apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: my-ingres…
- Which of the following is true about headless services?
- Which of the following commands creates a LoadBalancer Service named `web-svc` for a Deployment named `web` on port 80?
Written by Johnson Ajibi, MSc IT Security
Security Systems Architect · founder of Courseiva
This CKAD 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 CKAD exam.