Courseiva

CKA · domain

Services and Networking

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

48 questions12 easy22 medium14 hard

Focused practice

Practice Services and Networking questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

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.

Question index

All Services and Networking questions (48)

Click any question to see the full explanation, or start a practice session above.

1

You need to create a Service that exposes port 80 on each node's IP at a static port (30080). Which Service type should you use?

Easy
2

A NetworkPolicy named 'default-deny-ingress' is applied to all pods in a namespace. The policy has no rules. An administrator then creates a new NetworkPolicy that allows ingress traffic to pods with label 'app: web' from any source using a podSelector with '{}'. Will traffic be allowed to pods labeled 'app: web'?

Hard
3

Which TWO of the following are valid ways to expose a Service externally? (Select TWO.)

Medium
4

Which THREE of the following are CNI plugins?

Easy
5

A NetworkPolicy allows ingress from pods with label 'role: frontend'. Which field is used to select those pods?

Medium
6

What is the default kube-proxy mode in modern Kubernetes clusters?

Medium
7

You apply the following NetworkPolicy to namespace 'ns1': apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-ingress spec: podSelector: {} policyTypes: - Ingress ingress: [] What effect does this policy have?

Hard
8

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

Easy
9

What is the purpose of a Headless Service (clusterIP: None)?

Easy
10

You want to expose a Deployment named 'web' on port 80 internally within the cluster. Which command creates a ClusterIP Service?

Medium
11

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

Easy
12

You want to configure NetworkPolicy to allow ingress traffic only from pods with label 'role: frontend' in the same namespace. Which podSelector should be in the ingress rule?

Hard
13

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

Easy
14

You need to expose multiple HTTP services on a single IP address with path-based routing. Which resource should you use?

Medium
15

You update a NetworkPolicy to add an egress rule. After applying, pods affected by the policy can no longer reach external IPs. What is the most likely reason?

Medium
16

Which TWO of the following are valid ways to isolate a set of pods from all ingress traffic except from monitoring pods?

Hard
17

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?

Hard
18

You have a NodePort service. Which kube-proxy mode allows for better performance and more sophisticated load balancing algorithms like 'least connection'?

Hard
19

Which of the following is a valid CNI plugin for Kubernetes networking?

Easy
20

An administrator runs `kubectl port-forward service/my-svc 8080:80`. What does this command do?

Medium
21

Which kube-proxy mode uses iptables rules to handle service traffic?

Easy
22

You run `kubectl port-forward service/my-svc 8080:80`. What does this command do?

Medium
23

Which command forwards local port 8080 to port 80 of a pod named 'web-pod'?

Easy
24

A developer runs 'kubectl port-forward service/my-svc 8080:80' and reports that connections to localhost:8080 fail. The service is a ClusterIP service that selects pods with label 'app: my-app'. What is the most likely cause?

Hard
25

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?

Medium
26

What is the DNS name for a Service named 'api' in the 'default' namespace?

Medium
27

You apply the following NetworkPolicy: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress What effect does this policy have?

Medium
28

You have an Ingress resource with the following spec: spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80 A client sends a request to http://example.com/api/v1/users. Which path is matched?

Hard
29

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?

Medium
30

Which THREE components are required for a pod to resolve a Service DNS name?

Medium
31

You have a kube-proxy running in ipvs mode. Which of the following is true about IPVS?

Hard
32

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?

Medium
33

A NetworkPolicy named 'deny-all' has only a podSelector matching all pods and no rules. What is the effect?

Medium
34

Which component is responsible for implementing the NetworkPolicy rules?

Medium
35

You want to debug a Service that is not reachable. Which kubectl command can you use to forward a local port to a pod in the Service?

Easy
36

Which annotation is commonly used with ExternalDNS to specify the DNS hostname for a Service?

Medium
37

You create a Service with clusterIP: None. What is this called and what is its purpose?

Medium
38

Which of the following is the default DNS name for a Service named 'api' in namespace 'production'?

Easy
39

You want to expose an application running in the cluster on a public IP address. Which Service type should you use?

Medium
40

Which THREE components are part of the Gateway API resource model? (Select THREE)

Hard
41

You have three pods selected by a service. One pod is in 'CrashLoopBackOff' state. How does the service's endpoints behave?

Hard
42

Which kubectl command correctly retrieves the list of EndpointSlices for a Service named 'my-svc' in the 'default' namespace?

Medium
43

Which TWO network plugins (CNI) are commonly used in Kubernetes clusters? (Select TWO)

Medium
44

You run: kubectl expose deployment web --port=80 --target-port=8080 --type=LoadBalancer --name=web-svc. What is the effect of this command?

Medium
45

You have a Deployment with 3 replicas. You create a headless service (clusterIP: None) with a label selector. Which of the following is true about DNS resolution for this service?

Hard
46

Which DNS record type does Kubernetes use to resolve a Service's ClusterIP?

Easy
47

A NetworkPolicy with podSelector: {} and policyTypes: [Ingress] is applied to a namespace. What is the effect on pods in that namespace?

Hard
48

Which THREE statements about NetworkPolicy are correct?

Hard

Frequently asked questions

What does the Services and Networking domain cover on the CKA exam?
Services and Networking questions test whether you can apply the concept in context, not just recognise a definition.
How many questions are in this domain?
This page lists all 48 Services and Networking questions in the CKA question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Services and Networking questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
cncf-cka CNCF-CKA cka services networking Practice Questions