KCNA Kubernetes Fundamentals Practice Question
A user reports that they cannot connect to a Service from within the cluster. The Service is of type ClusterIP. Running 'kubectl get endpoints service-name' shows no endpoints. What is the most likely cause?
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
✓
The Service's pod selector does not match any running pods
If endpoints are empty, the Service selector does not match any pods, or the pods are not ready.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The Service is not associated with a namespace
Why it's wrong here
Every Service must have a namespace.
- ✗
The Service is exposed on the wrong port
Why it's wrong here
Even if the port is wrong, endpoints would still exist if pods match.
- ✗
The kube-proxy is not running on the node
Why it's wrong here
Kube-proxy handles traffic, but endpoints would still be populated.
- ✓
The Service's pod selector does not match any running pods
Why this is correct
Endpoints are created by matching pods with the selector; if none match, endpoints are empty.
Go deeper
Related to this question
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 →
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.