Courseiva

CKA · topic practice

Services and Networking practice questions

The Services and Networking domain covers how pods communicate inside and outside the cluster: Service types (ClusterIP, NodePort, LoadBalancer), CoreDNS name resolution, kube-proxy modes, Ingress, and NetworkPolicy. It is tested through scenario questions and hands-on tasks where you create or troubleshoot Services, resolve cross-namespace DNS names, and reason about traffic allowed or denied by NetworkPolicy rules.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Services and Networking

What the exam tests

What to know about Services and Networking

Be able to create and debug Services, Ingress, and NetworkPolicy objects, and explain DNS resolution and kube-proxy behavior. The single most important thing: know that a NetworkPolicy selecting pods with no ingress rules denies all ingress traffic to those pods.

Creating and exposing workloads with ClusterIP, NodePort, and LoadBalancer Services using kubectl expose or YAML manifests

Resolving Services by DNS, including cross-namespace names like db-service.production.svc.cluster.local

Understanding kube-proxy modes (iptables, IPVS) and how Service traffic is routed to pod endpoints

Writing NetworkPolicy ingress and egress rules that select pods by labels and restrict traffic by port or namespace

Watch out for

Common Services and Networking exam traps

  • ▸Assuming a NetworkPolicy with no ingress rules allows all traffic; an empty ingress rule set actually denies all ingress to the selected pods.
  • ▸Using a short service name across namespaces; from another namespace you must use the fully qualified name or service.namespace.
  • ▸Forgetting that a Service selects pods by labels and that a label mismatch leaves the Service with no endpoints, so connections fail.

Practice set

Services and Networking questions

20 questions · select your answer, then reveal the explanation

An administrator runs 'kubectl run nginx --image=nginx --port=80' and then 'kubectl expose pod nginx --port=80 --type=NodePort'. Later, they run 'kubectl get svc nginx' and see that the NodePort is set to 0. What is the most likely reason?

A cluster has a NetworkPolicy that denies all ingress traffic by default. An administrator wants to allow TCP traffic on port 8080 from pods with label 'app: web' in the same namespace. Which NetworkPolicy egress rule is needed?

Which TWO of the following are valid ways to expose a Deployment named 'web' as a service?

Which THREE of the following are requirements for an Ingress resource to work?

Which TWO of the following statements about NetworkPolicy are true?

Which kubectl command creates a service of type NodePort that exposes a deployment named 'web' on port 80?

Which of the following is a valid ClusterIP service definition that exposes port 80 and targets container port 8080?

Which of the following Service types exposes a Service on a static port on each node's IP address?

You run `kubectl get endpoints my-service` and see no endpoints listed. The Service's selector matches labels on pods that are running. What is the most likely cause?

Which THREE of the following are true about NetworkPolicy? (Select THREE.)

Which of the following is true about IngressClass resources?

Which two statements are true about EndpointSlices? (Choose two.)

You deploy a pod named 'app' that listens on port 3000. You create a Service named 'app-svc' with selector 'app: app'. From another pod in the same namespace, which command will successfully reach the service?

You are designing an Ingress to expose multiple services on the same hostname based on path. Which Ingress specification is valid?

Question 15hardmulti select
Read the full DNS explanation →

Which THREE of the following statements about Kubernetes DNS are correct?

Which TWO of the following are valid IngressClass annotations or fields?

Which three of the following are true about IngressClass?

An administrator creates a Service of type ClusterIP named 'my-svc' in the namespace 'default'. A pod in the same namespace tries to resolve the hostname 'my-svc' but fails. The pod's resolv.conf shows 'search default.svc.cluster.local svc.cluster.local cluster.local'. What is the most likely cause?

A cluster administrator applies the following NetworkPolicy. What is the effect on pods matching the podSelector?

An Ingress resource is defined with the following spec snippet. What is the minimal requirement for this Ingress to work correctly?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Services and Networking sessions

Start a Services and Networking only practice session

Every question in these sessions is drawn from the Services and Networking domain — nothing else.

Related practice questions

Related CKA topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the CKA exam test about Services and Networking?
Be able to create and debug Services, Ingress, and NetworkPolicy objects, and explain DNS resolution and kube-proxy behavior. The single most important thing: know that a NetworkPolicy selecting pods with no ingress rules denies all ingress traffic to those pods.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Services and Networking questions in a focused session?
Yes — the session launcher on this page draws every question from the Services and Networking domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other CKA topics?
Use the topic links above to move to related areas, or go back to the CKA question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the CKA exam covers. They are not copied from any real exam or dump site.