Courseiva

CKAD · domain

Services and Networking

This domain covers Kubernetes Services, DNS resolution, Ingress, NetworkPolicy, and connectivity troubleshooting on a live cluster. CKAD tasks require you to create and inspect Services, resolve cross-namespace DNS names, configure Ingress rules and TLS, forward ports with kubectl, and verify pod-to-pod networking using imperative commands and YAML manifests.

167 questions40 easy78 medium49 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

You must be able to create and debug Services, Ingress, and NetworkPolicy, and resolve DNS names across namespaces. The single most important thing is matching Service selectors to Pod labels and using fully qualified DNS names like svc-a.ns2.svc.cluster.local.

Creating ClusterIP, NodePort, and LoadBalancer Services with kubectl expose or YAML

Resolving Service DNS names like svc-a.ns2.svc.cluster.local across namespaces

Configuring Ingress rules, hosts, paths, and TLS secrets for HTTP routing

Using kubectl port-forward to reach Pods and Services from localhost

Watch out for

Common Services and Networking exam traps

  • ▸Assuming a Service in another namespace resolves by short name; cross-namespace DNS requires the full name including namespace
  • ▸Forgetting that a Service selector must match Pod labels exactly, so endpoints stay empty when labels differ
  • ▸Writing Ingress paths without the correct pathType, causing the rule to be rejected or not route traffic

Question index

All Services and Networking questions (167)

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

1

A developer runs `kubectl expose deployment web-deploy --port=80 --target-port=8080 --type=NodePort` and later wants to access the Service from outside the cluster. What is the correct way to find the external port?

Medium
2

A team uses a Service named 'backend' in namespace 'prod' to reach Pods in namespace 'staging'. The Service in 'prod' has no endpoints. What is the most likely cause?

Hard
3

Given the following NetworkPolicy YAML: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress - Egress What is the effect of this policy?

Hard
4

When using 'kubectl expose', which flag creates a NodePort service?

Medium
5

Which TWO of the following are valid Ingress path types? (Select 2)

Easy
6

Which command exposes a deployment named 'web' as a ClusterIP service on port 80?

Easy
7

A developer wants to expose a set of Pods on a specific port on each node's IP. Which Service type should be used?

Easy
8

You want to block all ingress traffic to pods labeled 'app=api' except from pods labeled 'app=frontend'. Which NetworkPolicy rule is correct?

Medium
9

You create a Service with `kubectl expose deployment web --port=80 --target-port=8080`. What type of Service is created by default?

Easy
10

You have a NetworkPolicy named 'deny-all' in namespace 'secure' that selects all pods and has no ingress rules. You need to allow incoming traffic to pods with label 'app: db' on port 5432 from pods with label 'app: api' in the same namespace. Which NetworkPolicy should you create?

Hard
11

A NetworkPolicy named 'default-deny-ingress' is applied to a namespace but contains no rules. What is the effect on pods in that namespace?

Medium
12

You have an Ingress that should route requests to 'api.example.com' to a service named 'api-svc' on port 80, and requests to 'www.example.com' to 'web-svc' on port 80. Which host-based routing rule is correct?

Medium
13

A StatefulSet named 'web' is created with 3 replicas. What is the DNS name for the second pod (index 1)?

Medium
14

An Ingress has two rules: - host: app.example.com, path: /api -> service-a:80 - host: api.example.com, path: / -> service-b:80 A request to `app.example.com/api/v1` reaches which service?

Hard
15

You create a Service with the following YAML: ``` apiVersion: v1 kind: Service metadata: name: my-service spec: ports: - name: http port: 80 targetPort: 8080 selector: app: my-app ``` What is the default Service type?

Medium
16

An admin wants to expose a Service only for internal cluster communication, without external access. Which Service type should they use?

Medium
17

An admin creates a Service without a selector. Which of the following is true about such a Service?

Hard
18

Which THREE statements about NetworkPolicy are correct? (Select 3)

Hard
19

What is the default Service type when creating a Service via 'kubectl create service' or YAML without specifying type?

Easy
20

A Service uses a selector to target Pods. After updating the Pod labels, you notice the endpoints list is empty. What is the most likely reason?

Easy
21

You run 'kubectl port-forward pod/my-pod 8080:80'. What does this command do?

Medium
22

You have a Service named 'web' in namespace 'default'. Which DNS name resolves to the Service's ClusterIP?

Medium
23

You need to temporarily access a pod's HTTP endpoint on port 8080 from your local machine. Which command should you use?

Medium
24

A StatefulSet is deployed with a headless service (clusterIP: None). The pods are named 'web-0', 'web-1', 'web-2'. What DNS name resolves to the specific IP of 'web-1'?

Hard
25

You have a headless service 'db' in namespace 'data'. Pods in that namespace can resolve 'db.data.svc.cluster.local'. What is the effect of a headless service on DNS resolution?

Medium
26

A developer deploys a set of Pods labeled app=frontend and wants to expose them internally within the cluster on a stable IP. Which resource should be used?

Medium
27

A Service named `api` in namespace `default` has multiple endpoints. You run `kubectl get endpoints api` and see no IPs. What is the most likely cause?

Medium
28

A ClusterIP service named 'db-service' in namespace 'data' is not reachable from a pod in the same namespace. The pod's /etc/resolv.conf shows 'search data.svc.cluster.local svc.cluster.local cluster.local'. Using the pod, which command tests DNS resolution for the service?

Medium
29

Which of the following is a valid NetworkPolicy that allows ingress traffic only from pods with label 'role: frontend' in any namespace?

Hard
30

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

Medium
31

Which THREE of the following are valid use cases for a Headless Service (clusterIP: None)?

Hard
32

An Ingress resource is created with the following YAML: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: my-ingress spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-svc port: number: 80 Which of the following requests will be routed to the api-svc Service? (Select all that apply.)

Medium
33

Order the steps to perform a rolling rollback of a Deployment to a previous revision.

Medium
34

Which service type is used to expose a service using an external DNS name, such as a database hosted outside Kubernetes?

Easy
35

Which TWO statements about Ingress are correct? (Select 2)

Medium
36

An Ingress resource routes traffic to a Service 'web' on port 80. The Service has multiple endpoints but all return 503. What should be checked first?

Hard
37

What annotation is required on an Ingress resource to use a specific IngressClass (e.g., 'nginx')?

Easy
38

Which command forwards port 8080 on the local machine to port 80 on a pod named 'web-pod'?

Easy
39

You have a Deployment with multiple replicas. You want to expose it via a Service that has a stable IP address and is accessible from outside the cluster on a static port on each node. Which Service type should you use?

Hard
40

You have a headless Service for a StatefulSet. The DNS query for the service returns no A records. What is the most likely cause?

Medium
41

Which TWO are valid Service types? (Choose two.)

Medium
42

Which Service type is used to expose a Service externally using a cloud provider's load balancer?

Easy
43

A StatefulSet named 'mysql' is deployed with 3 replicas. The administrator wants to create a headless Service so that each pod gets a unique DNS entry. Which Service specification should be used?

Hard
44

You are a platform engineer managing a Kubernetes cluster version 1.28. A development team has deployed a microservice application called 'order-processor' in the 'prod' namespace. The application consists of a frontend Pod 'frontend' and a backend Pod 'backend', each with a single container. The frontend needs to communicate with the backend using a headless Service named 'backend-svc' that selects Pods with label 'app:backend'. The backend Pods are expected to scale horizontally, and the frontend uses a DNS lookup to discover all backend Pod IPs for client-side load balancing. However, after deploying, the frontend is unable to resolve 'backend-svc' to any IP addresses. The backend Pod is running and has the correct label 'app:backend'. The Service 'backend-svc' is defined as a ClusterIP with clusterIP: None. The frontend container has the 'default' DNS policy. What is the most likely cause of the failure?

Hard
45

Which TWO of the following are valid service types in Kubernetes?

Easy
46

To create a service that will be accessible from outside the cluster using a cloud provider's load balancer, what type should be used?

Easy
47

A ClusterIP service named 'svc' has no endpoints. Which command can you use to debug why the service is not routing traffic?

Hard
48

Which TWO of the following are true about headless services? (Select 2)

Easy
49

You apply the following Ingress manifest: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: app-ingress spec: ingressClassName: nginx rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80 The Ingress controller logs show a 404 error when accessing 'http://example.com/api'. The service 'api-service' exists and is reachable via ClusterIP. What is the most likely cause?

Hard
50

You want to deny all incoming traffic to a set of pods except from pods with label 'role: frontend'. Which NetworkPolicy spec should you use?

Easy
51

A NetworkPolicy allows egress traffic to pods with label 'db: mysql' in the same namespace. Which egress rule is correct?

Medium
52

You have a Service named 'web-svc' of type ClusterIP. You want to test connectivity to it from a temporary pod. Which command would you use to launch a temporary interactive pod with the image 'busybox' and then run 'wget' against the Service?

Medium
53

Which TWO statements about headless services are correct?

Medium
54

You need to allow ingress traffic to pods in namespace 'api' only from pods in namespace 'frontend' that have label 'role: proxy'. Which NetworkPolicy ingress rule correctly implements this?

Medium
55

You have a Deployment named 'web' with label 'app: web'. You want to create a Service that exposes the Deployment on port 80 internally within the cluster. Which kubectl command achieves this?

Easy
56

Which THREE are valid fields in a NetworkPolicy spec? (Choose three.)

Hard
57

A NetworkPolicy denies all ingress traffic to a namespace. Which rule would allow traffic only from pods in the same namespace?

Medium
58

What is the purpose of the 'spec.externalName' field in a Service of type ExternalName?

Easy
59

What is the default type of a Kubernetes Service when no type is specified in the YAML manifest?

Easy
60

A developer creates a headless Service with 'clusterIP: None' for a StatefulSet. What is the primary purpose of using a headless Service?

Medium
61

A developer wants to expose a Deployment named 'web-app' (with label 'app: web') as a ClusterIP service on port 80. Which command achieves this?

Easy
62

You have a Service named 'api' with selectors that match pods. However, curl to the Service cluster IP times out. 'kubectl get endpoints api' shows no endpoints. What is the most likely cause?

Medium
63

A ClusterIP Service named 'db' in namespace 'data' is not reachable from a pod in namespace 'app'. Which DNS name should the pod use to resolve the service?

Medium
64

A developer creates a Deployment with 3 replicas and a Service with `clusterIP: None`. What is the primary use case for this headless Service?

Medium
65

A developer creates a headless Service named 'db' to discover all database pod IPs. The Service selects pods with label 'app: db'. The pods are assigned IPs 10.0.0.1, 10.0.0.2, and 10.0.0.3. When a client performs a DNS lookup for 'db', what will it receive?

Medium
66

Which TWO of the following are required for Ingress to route HTTP traffic to a backend Service?

Easy
67

You have a Service named 'myservice' in namespace 'default'. A pod in the same cluster but different namespace 'other' wants to resolve the service's IP. What DNS name should it use?

Medium
68

Which THREE are valid ways to expose a Service externally in Kubernetes?

Hard
69

Which THREE components are required for a basic Ingress to route HTTP traffic to a Service? (Choose three.)

Hard
70

A Pod needs to communicate with another Pod in the same cluster but in a different namespace. What is the correct DNS name to use?

Medium
71

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

Easy
72

Which THREE of the following are true about Kubernetes Services? (Select 3)

Hard
73

Which TWO of the following are correct about the ExternalName Service type?

Medium
74

A StatefulSet named 'mysql' is deployed with 3 replicas. The administrator wants each pod to have a stable network identity. Which service configuration is required?

Medium
75

Which THREE commands can be used to list the endpoints of a Service named 'my-svc'?

Medium
76

You are responsible for a multi-tier application running in a Kubernetes cluster. The frontend Pods communicate with backend Pods via a Service named 'backend' in the same namespace. Recently, the frontend team reported that the backend Service is intermittently unreachable. You inspect the backend Pods and notice that they are all running and ready, but the Endpoints object for the 'backend' Service shows only a subset of the Pod IPs. You also notice that the backend Pods have a readiness probe configured that checks an HTTP endpoint '/healthz'. The readiness probe has a periodSeconds of 5 and failureThreshold of 3. The application logs show occasional spikes in response time on the /healthz endpoint, sometimes exceeding 15 seconds. You need to resolve the intermittent unavailability without removing the readiness probe. Which action should you take?

Hard
77

Which THREE statements about Ingress are correct? (Choose three.)

Medium
78

A Pod needs to access an external database at db.example.com:3306. Which Service type allows Pods to resolve a cluster-local name to this external address?

Medium
79

Which Service type is used to expose a Service on a static port on each node's IP address, allowing external traffic to reach the Service?

Easy
80

An Ingress resource is configured with TLS. Which field in the Ingress YAML specifies the secret containing the TLS certificate and key?

Medium
81

An administrator applies the following NetworkPolicy: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress - Egress After applying this policy, which traffic flows are affected?

Hard
82

An Ingress resource has the following spec: spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80 What will the Ingress controller do for a request to http://example.com/api/v1/users?

Medium
83

Which THREE statements about NetworkPolicy are correct?

Hard
84

Which TWO of the following are valid ways to expose a service externally on a Kubernetes cluster? (Select 2)

Medium
85

A Service named 'api' has no endpoints. 'kubectl describe svc api' shows the selector 'app: api', but no pods have that label. What is the most likely reason for missing endpoints?

Hard
86

What is the DNS name for a Service named `svc` in namespace `ns`?

Easy
87

A company runs a web application in a Kubernetes cluster. The application consists of a frontend service and a backend service. The frontend needs to communicate with the backend using a DNS name that does not change even if the backend pods are recreated. Which Kubernetes resource should the frontend use to reach the backend?

Medium
88

Which TWO items are required for Ingress to work correctly in a Kubernetes cluster?

Medium
89

Arrange the steps to create a multi-container Pod with a shared volume.

Medium
90

A developer wants to access a specific pod's port 8080 from their local machine using a temporary connection. Which command should they use?

Easy
91

A NetworkPolicy with the following spec is applied: spec: podSelector: {} policyTypes: - Ingress ingress: - from: - podSelector: matchLabels: role: frontend What does this policy do?

Medium
92

Which TWO statements about Ingress are correct?

Medium
93

A user creates a Deployment with 3 replicas and a Service of type ClusterIP. The Service selects pods with label 'app: web'. The user wants external clients to access the application via a stable IP address. Which additional resource is required?

Easy
94

A NetworkPolicy named 'deny-all' is applied in a namespace. Which YAML snippet correctly implements a default-deny-all ingress policy?

Medium
95

An Ingress resource specifies TLS termination using a secret. The secret must contain which keys?

Hard
96

What is the default service type in Kubernetes?

Easy
97

You apply the following NetworkPolicy: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress - Egress After applying, pods in the namespace cannot reach the kube-dns service. What is the most likely reason?

Hard
98

Which THREE components are typically involved when using Ingress to expose a service?

Hard
99

An Ingress resource is configured with TLS termination. The secret referenced in the Ingress is present, but the Ingress controller returns 404. What is the most likely cause?

Hard
100

You have an Ingress resource with TLS configured. The certificate is stored in a Secret named 'my-tls'. Which field in the Ingress YAML specifies the Secret name?

Hard
101

You have a Service named 'my-svc' in the 'prod' namespace. What is the fully qualified DNS name for this Service?

Medium
102

A pod is unable to resolve the DNS name of a Service in the same namespace. The pod's /etc/resolv.conf shows 'nameserver 10.96.0.10'. What is the most likely cause?

Medium
103

Which THREE of the following are valid Ingress pathTypes in Kubernetes networking.k8s.io/v1?

Medium
104

Which Service type is used to expose a Service on a static port on each node in the cluster?

Easy
105

You want to expose a Deployment 'app' externally on port 30080 on each node. What service type should you use?

Medium
106

What is the purpose of the `IngressClass` resource in Kubernetes?

Medium
107

A headless service is created with 'clusterIP: None'. What is the primary use case for such a service?

Medium
108

Which Service type exposes a Service externally via each Node's IP on a static port?

Easy
109

You create a Service with the following manifest. What is the effect? service.yaml: apiVersion: v1 kind: Service metadata: name: ext-svc spec: type: ExternalName externalName: db.example.com

Medium
110

You create a headless service with 'clusterIP: None' for a StatefulSet. How does a client discover the individual pod IPs?

Hard
111

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

Hard
112

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

Medium
113

You have a Service named 'app-service' in namespace 'default'. You want a pod in namespace 'monitoring' to resolve the service DNS name. What is the correct fully qualified domain name (FQDN)?

Hard
114

Which TWO Service types allow external access to pods from outside the Kubernetes cluster? (Select 2)

Easy
115

An Ingress resource uses the annotation 'kubernetes.io/ingress.class: nginx'. However, traffic is not being routed. The cluster has multiple ingress controllers. What is the most likely cause?

Hard
116

You have an Ingress with TLS configured. The Ingress controller returns a certificate error when accessing via HTTPS. The secret 'my-tls' exists in the same namespace. Which of the following is the most likely cause?

Hard
117

Which TWO are valid ways to create a Service from a deployment named 'frontend'? (Choose two.)

Hard
118

Refer to the exhibit. A user has created the Service shown. The application pods listen on port 8080. Which port should an external client use to access the application from outside the cluster?

Easy
119

A pod in namespace 'app' needs to resolve the DNS name 'db-service.data.svc.cluster.local'. What is the likely namespace of the 'db-service' Service?

Hard
120

A Pod named `my-pod` in namespace `ns1` tries to resolve `svc-a.ns2.svc.cluster.local`. The DNS query fails. The Service `svc-a` exists in namespace `ns2`. What is the most likely cause?

Hard
121

Which TWO statements about Kubernetes Services are correct?

Medium
122

What is the correct command to forward a local port to a pod for debugging?

Easy
123

What is the primary purpose of a headless Service (clusterIP: None) in Kubernetes?

Medium
124

Which of the following is true about Istio as a service mesh?

Medium
125

A developer needs to expose a deployment named 'web-app' running in the 'default' namespace on port 8080 internally within the cluster. Which kubectl command creates a ClusterIP service that selects pods with label 'app: web'?

Medium
126

An administrator wants to allow ingress traffic to pods with label 'app: database' only from pods with label 'app: api' in the same namespace. Which NetworkPolicy rule is correct?

Medium
127

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

Medium
128

Which TWO statements about NetworkPolicy are correct? (Choose two.)

Medium
129

An Ingress resource has the following annotation: 'kubernetes.io/ingress.class: nginx'. What is the purpose of this annotation?

Hard
130

An Ingress is configured for host-based routing with two hosts: 'app1.example.com' and 'app2.example.com'. A request to 'app1.example.com' should go to service 'svc1'. Which field in the Ingress spec specifies the host?

Medium
131

A developer runs 'kubectl run nginx --image=nginx --port=80' and then creates a Service with the following YAML: apiVersion: v1 kind: Service metadata: name: nginx-svc spec: selector: app: nginx ports: - protocol: TCP port: 80 targetPort: 80 However, the Service has no endpoints. What is the most likely cause?

Medium
132

You have a Service that exposes a Deployment. Some pods are not receiving traffic. 'kubectl get endpoints my-service' shows only 2 out of 3 pod IPs. What is the most likely cause?

Hard
133

Which Service type is used to expose a service externally on a static port on each worker node?

Easy
134

You need to debug a Service that is not routing traffic to its endpoints. Which command shows the current endpoints of a Service?

Medium
135

You need to access a database pod 'db-pod' on port 5432 from your local machine. Which command forwards local port 15432 to the pod's port 5432?

Medium
136

You have a headless Service for a StatefulSet. What is the DNS resolution behavior for the StatefulSet pods?

Medium
137

Which TWO of the following are valid ways to expose a Service externally in a Kubernetes cluster?

Medium
138

You want to restrict ingress traffic to pods with label 'app: web' in namespace 'frontend' to only come from pods in namespace 'backend'. Which NetworkPolicy YAML is correct?

Hard
139

A pod in namespace 'default' cannot resolve the service name 'db' in namespace 'data'. Which DNS name should the pod use to reach the service?

Medium
140

You apply the following Ingress manifest: ``` apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: my-ingress spec: ingressClassName: nginx rules: - host: app.example.com http: paths: - pathType: Prefix path: / backend: service: name: app-svc port: number: 80 ``` What is missing to enable TLS termination for this Ingress?

Medium
141

Which of the following is true about headless services?

Easy
142

Which of the following commands creates a LoadBalancer Service named `web-svc` for a Deployment named `web` on port 80?

Easy
143

A Service of type LoadBalancer is created but the external IP remains <pending>. What is the most likely reason?

Hard
144

You have a Deployment named 'web-app' with 3 replicas. You want to expose the pods on port 80 internally within the cluster using a ClusterIP service. Which kubectl command should you use?

Medium
145

Which command creates a Service named 'my-svc' that exposes a deployment named 'my-deploy' on port 80?

Easy
146

Which TWO statements about Kubernetes Services are correct? (Choose two.)

Medium
147

Which of the following commands creates a ClusterIP service named 'my-service' that exposes port 80 on the pod with label 'app=web'?

Easy
148

Which of the following Ingress controllers is commonly used in Kubernetes?

Easy
149

A NetworkPolicy with the following spec is applied to a namespace. What is the effect? spec: podSelector: {} policyTypes: - Ingress - Egress ingress: - from: - ipBlock: cidr: 10.0.0.0/8 except: - 10.0.1.0/24 egress: - to: - ipBlock: cidr: 0.0.0.0/0

Hard
150

You need to forward a local port to port 8080 on a pod named 'my-pod' in the 'default' namespace. Which kubectl command should you use?

Easy
151

You want to expose a Deployment named 'nginx' on port 80 using a LoadBalancer service. Which YAML snippet is correct?

Easy
152

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

Easy
153

A user runs 'kubectl get endpoints my-service' and sees no endpoints listed. The service has a selector 'app: my-app'. Pods with that label exist and are running. What is the most likely cause?

Medium
154

You have a Deployment with 3 replicas. You create a Service with 'clusterIP: None'. What is the effect on pod DNS?

Medium
155

Which THREE of the following are valid fields in a NetworkPolicy spec?

Hard
156

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

Medium
157

An Ingress resource uses host-based routing. Which field in the Ingress YAML specifies the host header to match?

Hard
158

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

Easy
159

You need to allow ingress traffic to pods with label 'app: web' from pods with label 'role: frontend' in the same namespace, and also from any pod in namespace 'monitoring'. Which NetworkPolicy egress/ingress rule correctly implements this?

Hard
160

An Ingress resource has the following spec. What is the effect? spec: tls: - hosts: - myapp.example.com secretName: myapp-tls rules: - host: myapp.example.com http: paths: - path: / pathType: Prefix backend: service: name: myapp port: number: 80

Hard
161

You need to create a NetworkPolicy that denies all ingress traffic to pods with label 'app: db' in namespace 'prod'. Which YAML snippet correctly implements this?

Medium
162

A NetworkPolicy is applied to a namespace with the following rules: ``` apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress ``` What is the effect on pods in that namespace?

Hard
163

Which TWO statements about Kubernetes DNS are correct?

Hard
164

An Ingress resource is defined as: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: test-ingress spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: api-service port: number: 80 tls: - hosts: - example.com secretName: tls-secret What must exist in the cluster for TLS termination to work?

Hard
165

An ingress resource is created with the following spec. Which request will be routed to the 'green' service? ```yaml spec: rules: - host: example.com http: paths: - path: /api pathType: Prefix backend: service: name: blue port: number: 80 - path: /api/v1 pathType: Exact backend: service: name: green port: number: 80 ```

Hard
166

Which TWO statements about Services are true? (Choose two.)

Medium
167

A Service of type NodePort is created with 'spec.ports[0].nodePort: 30080'. The cluster nodes have IPs 10.0.0.1, 10.0.0.2. Which command can be used to test connectivity to the Service from outside the cluster?

Medium

Frequently asked questions

What does the Services and Networking domain cover on the CKAD exam?
You must be able to create and debug Services, Ingress, and NetworkPolicy, and resolve DNS names across namespaces. The single most important thing is matching Service selectors to Pod labels and using fully qualified DNS names like svc-a.ns2.svc.cluster.local.
How many questions are in this domain?
This page lists all 167 Services and Networking questions in the CKAD 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-ckad CNCF-CKAD ckad services networking Practice Questions