CKA · topic practice

Services and Networking practice questions

Practise Certified Kubernetes Administrator CKA Services and Networking practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

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.

Reviewed byJohnson Ajibi· MSc IT Security
20 questionsDomain: Services and Networking

What the exam tests

What to know about Services and Networking

Services and Networking questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Services and Networking exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Practice set

Services and Networking questions

20 questions · select your answer, then reveal the explanation

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

You run 'kubectl get svc my-service -o yaml' and see 'type: ClusterIP'. The service has no endpoints. What is the most likely cause?

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?

Question 4mediummultiple choice
Read the full DNS explanation →

You have a Service named 'my-service' in namespace 'ns1'. Another pod in namespace 'ns2' needs to resolve 'my-service' using DNS. What FQDN should the pod use?

Question 5mediummultiple choice
Read the full NAT/PAT explanation →

An Ingress resource is created with the following spec:

spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80

The backend service 'api-service' is in the same namespace as the Ingress. What must be true for the Ingress to route traffic to the service?

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?

Question 7easymultiple choice
Read the full DNS explanation →

What is the default DNS name for a service named 'my-svc' in namespace 'default'?

A developer runs 'kubectl port-forward service/my-service 8080:80'. What does this command do?

Question 9hardmultiple choice
Read the full DNS explanation →

A pod cannot resolve a service DNS name. The cluster uses CoreDNS. Which of the following is the most likely cause if the pod's /etc/resolv.conf contains 'nameserver 10.96.0.10' and the CoreDNS pod is running?

Which of the following commands can be used to check the endpoints of a service named 'my-service'?

What is the default kube-proxy mode in Kubernetes v1.29?

Question 12mediummultiple choice
Read the full DNS explanation →

You have a headless service named 'my-headless' with clusterIP: None. A pod in the same namespace queries the DNS name 'my-headless'. What will the DNS response contain?

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?

A developer runs 'kubectl run nginx --image=nginx --expose --port=80'. What Kubernetes resources are created?

You have a NetworkPolicy that selects pods with label 'role: db' in the 'default' namespace. The policy has no ingress rules defined. What is the effect on traffic to the selected pods?

Question 19hardmultiple choice
Read the full NAT/PAT explanation →

An ingress resource is defined with the following snippet: ```yaml spec: tls: - hosts: - app.example.com secretName: app-tls rules: - host: app.example.com http: paths: - path: / pathType: Prefix backend: service: name: app-service port: number: 80 ``` The secret 'app-tls' exists and contains a valid certificate. However, accessing https://app.example.com returns a certificate warning in the browser. What is the most likely cause?

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

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?
Services and Networking questions test whether you can apply the concept in context, not just recognise a definition.
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.