Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Services and Networking practice sets

CKA Services and Networking • Complete Question Bank

CKA Services and Networking — All Questions With Answers

Complete CKA Services and Networking question bank — all 0 questions with answers and detailed explanations.

169
Questions
Free
No signup
Certifications/CKA/Practice Test/Services and Networking/All Questions
Question 1easymultiple choice
Read the full Services and Networking explanation →

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

Question 2mediummultiple choice
Read the full Services and Networking explanation →

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

Question 3hardmultiple choice
Read the full Services and Networking 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?

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?

Question 6hardmultiple choice
Read the full Services and Networking explanation →

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'?

Question 8mediummultiple choice
Read the full Services and Networking explanation →

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?

Question 10mediummultiple choice
Read the full Services and Networking explanation →

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

Question 11easymultiple choice
Read the full Services and Networking explanation →

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?

Question 13mediummulti select
Read the full Services and Networking explanation →

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

Question 14mediummulti select
Read the full Services and Networking explanation →

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

Question 15hardmulti select
Read the full Services and Networking explanation →

Which TWO of the following statements about NetworkPolicy are true?

Question 16easymultiple choice
Read the full Services and Networking explanation →

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

Question 17mediummultiple choice
Read the full Services and Networking explanation →

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

Question 18mediummultiple choice
Read the full Services and Networking explanation →

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?

Question 20easymultiple choice
Read the full Services and Networking explanation →

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

Question 21mediummultiple choice
Read the full DNS explanation →

A pod 'my-pod' in the 'default' namespace cannot resolve the service 'db-service' in the 'production' namespace. Which DNS name should be used to reach the service from 'my-pod'?

Question 22hardmultiple choice
Read the full Services and Networking explanation →

You apply the following NetworkPolicy: ```yaml apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress - Egress ``` What is the result?

Question 23mediummultiple choice
Read the full Services and Networking explanation →

Which kube-proxy mode uses IP Virtual Server (IPVS) for load balancing and supports more algorithms than the default mode?

Question 24easymultiple choice
Read the full Services and Networking explanation →

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

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

An Ingress resource uses 'networking.k8s.io/v1' API. Which field specifies the hostname and path rules for routing traffic?

Question 26hardmultiple choice
Read the full Services and Networking explanation →

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

Question 27mediummultiple choice
Read the full DNS explanation →

Which annotation is commonly used with the ExternalDNS project to manage DNS records for a Kubernetes service?

Question 28mediummulti select
Read the full Services and Networking explanation →

Which TWO statements about Headless services are correct? (Select TWO)

Question 29hardmulti select
Read the full Services and Networking explanation →

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

Question 30mediummulti select
Read the full Services and Networking explanation →

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

Question 31easymultiple choice
Read the full Services and Networking explanation →

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

Question 32easymultiple choice
Read the full Services and Networking explanation →

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?

Question 33mediummultiple choice
Read the full Services and Networking explanation →

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

Question 34mediummultiple choice
Read the full Services and Networking explanation →

You create a Deployment with 3 replicas and a ClusterIP Service. You notice that some pods are not receiving traffic. What is the most likely cause?

Question 35mediummultiple choice
Read the full Services and Networking explanation →

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

Question 36mediummultiple choice
Read the full Services and Networking explanation →

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?

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

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?

Question 38hardmultiple choice
Read the full Services and Networking explanation →

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?

Question 39easymultiple choice
Read the full DNS explanation →

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

Question 40mediummultiple choice
Read the full Services and Networking explanation →

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?

Question 41mediummultiple choice
Read the full Services and Networking explanation →

A developer asks you to create a Service that resolves to an external database at 'db.example.com'. Which Service type should you use?

Question 42hardmultiple choice
Read the full Services and Networking explanation →

You have a Service with endpoints for pods in different zones. You want kube-proxy to use a mode that provides better performance for large clusters and supports scheduling algorithms like least-connection. Which mode should you use?

Question 43mediummulti select
Read the full Services and Networking explanation →

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

Question 44hardmulti select
Read the full Services and Networking explanation →

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

Question 45mediummulti select
Read the full Services and Networking explanation →

Which TWO of the following are components of the Ingress API? (Select TWO.)

Question 46easymultiple choice
Read the full Services and Networking explanation →

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

Question 47mediummultiple choice
Read the full Services and Networking explanation →

A developer runs `kubectl run nginx --image=nginx --port=80` and then `kubectl expose pod nginx --port=80 --target-port=80 --type=NodePort`. What is the name of the created Service?

Question 48hardmultiple choice
Read the full Services and Networking explanation →

A NetworkPolicy named 'deny-all' is created with an empty podSelector and no rules. What does this policy accomplish?

Question 49mediummultiple choice
Read the full DNS explanation →

Which of the following is the default DNS name for a Service named 'my-svc' in namespace 'my-ns'?

Question 50easymultiple choice
Read the full Services and Networking explanation →

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

Question 51mediummultiple choice
Read the full Services and Networking explanation →

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

Question 52hardmultiple choice
Open the full BGP breakdown →

Which of the following CNI plugins typically uses BGP to distribute routing information across nodes?

Question 53mediummultiple choice
Read the full Services and Networking explanation →

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

Question 54easymultiple choice
Review the full routing breakdown →

Which resource type is used to configure HTTP/HTTPS routing to Services?

Question 55mediummultiple choice
Read the full DNS explanation →

A pod cannot resolve a Service name 'my-svc' in the same namespace. The DNS pod is running. What is a likely cause?

Question 56hardmultiple choice
Read the full Services and Networking explanation →

Which of the following is true about IngressClass resources?

Question 57mediummultiple choice
Read the full Services and Networking explanation →

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

Question 58mediummulti select
Read the full Services and Networking explanation →

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

Question 59hardmulti select
Read the full Services and Networking explanation →

Which three components are part of the Gateway API? (Choose three.)

Question 60easymulti select
Read the full Services and Networking explanation →

Which two of the following are valid service discovery methods in Kubernetes? (Choose two.)

Question 61easymultiple choice
Read the full Services and Networking explanation →

Which of the following Service types does NOT assign a ClusterIP to the Service?

Question 62mediummultiple choice
Read the full Services and Networking explanation →

You run `kubectl expose deployment web --port=80 --target-port=8080 --type=NodePort` and the Service is created. What is the effect of this command?

Question 63hardmultiple choice
Read the full Services and Networking explanation →

A NetworkPolicy named 'deny-all' is applied to a namespace with podSelector: {}. The policy has no ingress rules. What is the effect?

Question 64mediummultiple choice
Read the full DNS explanation →

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

Question 65easymultiple choice
Read the full Services and Networking explanation →

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

Question 66mediummultiple choice
Review the full routing breakdown →

Which Ingress resource field is used to specify the hostname for which traffic should be routed?

Question 67hardmultiple choice
Read the full Services and Networking explanation →

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

Question 68mediummultiple choice
Read the full Services and Networking explanation →

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?

Question 69easymultiple choice
Read the full DNS explanation →

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

Question 70mediummultiple choice
Read the full Services and Networking explanation →

After creating a NetworkPolicy that selects pods with label 'role: db' and allows ingress on TCP port 3306 from pods with label 'role: api', you notice that pods with label 'role: db' are still reachable on port 3306 from pods without 'role: api' label. What is the most likely cause?

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

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

Question 72mediummultiple choice
Read the full Services and Networking explanation →

Which component is responsible for implementing the NetworkPolicy rules?

Question 73mediummulti select
Read the full Services and Networking explanation →

Which TWO of the following are valid ways to expose a Service externally in a Kubernetes cluster running on-premises (no cloud provider)?

Question 74hardmulti select
Read the full DNS explanation →

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

Question 75easymulti select
Read the full Services and Networking explanation →

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

Question 76mediummultiple choice
Read the full DNS explanation →

You create a ClusterIP service named 'my-svc' in the 'default' namespace. A pod in the same namespace tries to reach the service using the DNS name 'my-svc'. Which fully qualified domain name (FQDN) should the pod use to resolve the service?

Question 77easymultiple choice
Read the full Services and Networking explanation →

Which kubectl command will expose a deployment named 'web-app' as a NodePort service on port 80?

Question 78hardmultiple choice
Read the full Services and Networking explanation →

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?

Question 79easymultiple choice
Read the full Services and Networking explanation →

Which NetworkPolicy rule will allow ingress traffic from pods with label 'role: frontend' in the same namespace?

Question 80mediummultiple choice
Read the full Services and Networking explanation →

You have a service 'my-svc' of type ClusterIP with no selector defined. You manually create an Endpoints object with the same name. Which statement is true?

Question 81mediummultiple choice
Review the full routing breakdown →

Which of the following is a correct Ingress resource snippet that routes traffic to service 'web-svc' on port 80 for the host 'example.com'?

Question 82hardmultiple choice
Read the full Services and Networking explanation →

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?

Question 83mediummultiple choice
Read the full DNS explanation →

A pod is unable to resolve DNS names of services in other namespaces. Which DNS configuration is most likely missing?

Question 84easymultiple choice
Read the full Services and Networking explanation →

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

Question 85mediummultiple choice
Read the full Services and Networking explanation →

You need to expose a service named 'my-svc' on a static port 30080 on every node. Which service type should you use?

Question 86hardmultiple choice
Read the full DNS explanation →

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?

Question 87easymultiple choice
Read the full Services and Networking explanation →

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

Question 88mediummulti select
Read the full Services and Networking explanation →

Which two of the following are valid methods for service discovery in Kubernetes?

Question 89hardmulti select
Read the full Services and Networking explanation →

Which three of the following are true about IngressClass?

Question 90mediummulti select
Read the full Services and Networking explanation →

Which two of the following are correct statements about EndpointSlices?

Question 91easymultiple choice
Read the full Services and Networking explanation →

Which Kubernetes Service type exposes the Service on a static port on each Node's IP address, allowing external access without a LoadBalancer?

Question 92mediummultiple choice
Read the full Services and Networking explanation →

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?

Question 93mediummultiple choice
Read the full Services and Networking explanation →

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

Question 94easymultiple choice
Read the full Services and Networking explanation →

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

Question 95hardmultiple choice
Read the full Services and Networking explanation →

A cluster has kube-proxy running in ipvs mode. An administrator creates a Service of type ClusterIP. Which of the following is true about how traffic is forwarded to the pods?

Question 96mediummultiple choice
Read the full Services and Networking explanation →

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

Question 97mediummultiple choice
Read the full Services and Networking explanation →

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

Question 98easymultiple choice
Read the full DNS explanation →

Which DNS record does CoreDNS create for a headless Service named 'headless-svc' in the namespace 'default'?

Question 99hardmultiple choice
Read the full Services and Networking explanation →

A NetworkPolicy allows ingress traffic from pods with label 'app: frontend' in any namespace. Which selector is used?

Question 100mediummultiple choice
Read the full Services and Networking explanation →

An administrator wants to expose an application running in a pod on port 3000 using a Service of type LoadBalancer. Which command creates the Service?

Question 101easymultiple choice
Read the full Services and Networking explanation →

Which of the following is a valid use case for a Headless Service?

Question 102hardmultiple choice
Read the full Services and Networking explanation →

A pod is unable to communicate with a Service in the same namespace. The administrator checks kube-proxy logs and finds no errors. Which command would help diagnose whether the iptables rules for the Service are correctly programmed?

Question 103mediummulti select
Read the full Services and Networking explanation →

Which TWO statements are true about Ingress in Kubernetes?

Question 104mediummulti select
Read the full DNS explanation →

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

Question 105hardmulti select
Read the full Services and Networking explanation →

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

Question 106easymultiple choice
Read the full Services and Networking explanation →

Which Service type exposes a Service externally via a cloud provider's load balancer?

Question 107mediummultiple choice
Read the full Services and Networking explanation →

An admin runs `kubectl run nginx --image=nginx --restart=Never` and then runs `kubectl expose pod nginx --port=80 --target-port=80`. Another pod in the same namespace tries to curl http://nginx:80 but gets connection refused. What is the most likely cause?

Question 108mediummultiple choice
Read the full DNS explanation →

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

Question 109hardmultiple choice
Read the full Services and Networking explanation →

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

Question 110easymultiple choice
Read the full Services and Networking explanation →

Which kube-proxy mode supports connection-based load balancing using Linux IPVS?

Question 111mediummultiple choice
Read the full Services and Networking explanation →

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

Question 112hardmultiple choice
Read the full Services and Networking explanation →

An Ingress resource defines a TLS section with hosts: ["example.com"] and secretName: tls-secret. What must be true for TLS to work correctly?

Question 113easymultiple choice
Read the full DNS explanation →

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

Question 114mediummultiple choice
Read the full Services and Networking explanation →

A cluster uses Flannel as the CNI plugin. Which of the following best describes Flannel's networking model?

Question 115mediummultiple choice
Read the full Services and Networking explanation →

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

Question 116hardmultiple choice
Read the full Services and Networking explanation →

You want to allow ingress traffic from pods with label 'app: frontend' in namespace 'web' to pods with label 'app: backend' in namespace 'api'. Which NetworkPolicy matches this requirement?

Question 117easymultiple choice
Read the full Services and Networking explanation →

Which of the following is a core component of the Gateway API?

Question 118mediummulti select
Read the full Services and Networking explanation →

Which two of the following are valid methods for exposing a Service externally in Kubernetes? (Select TWO.)

Question 119hardmulti select
Read the full Services and Networking explanation →

Which three of the following are features of EndpointSlices compared to Endpoints? (Select THREE.)

Question 120mediummulti select
Read the full NAT/PAT explanation →

Which two of the following are valid Ingress path types in networking.k8s.io/v1? (Select TWO.)

Question 121mediummultiple choice
Read the full Services and Networking explanation →

You create a Service of type LoadBalancer in a Kubernetes cluster that does not have an external load balancer provider (e.g., bare-metal). What will be the state of the EXTERNAL-IP field when you run 'kubectl get svc'?

Question 122easymultiple choice
Read the full Services and Networking explanation →

Which command creates a temporary pod and forwards port 8080 from your local machine to port 80 of an existing pod named 'web-pod'?

Question 123hardmultiple choice
Read the full Services and Networking explanation →

You have a NetworkPolicy that selects pods with label 'app: db'. The policy has an ingress rule allowing traffic from pods with label 'app: frontend'. A pod with label 'app: frontend' is in a different namespace. No namespaceSelector is specified in the ingress rule. Will traffic from that pod be allowed?

Question 124mediummultiple choice
Read the full Services and Networking explanation →

You run 'kubectl run nginx --image=nginx --expose --port=80'. What resources are created?

Question 125easymultiple choice
Read the full Services and Networking explanation →

Which Service type exposes a Service on each Node's IP at a static port in the range 30000-32767?

Question 126mediummultiple choice
Read the full DNS explanation →

In a Kubernetes cluster using CoreDNS, what is the DNS name for a Service named 'api' in namespace 'backend'?

Question 127hardmultiple choice
Read the full Services and Networking explanation →

You have an Ingress resource with a TLS section specifying a secret named 'tls-secret'. The certificate in 'tls-secret' is expired. What happens when a client connects via HTTPS to the Ingress host?

Question 128mediummultiple choice
Read the full Services and Networking explanation →

Which kube-proxy mode uses iptables rules to handle service traffic and is the default in many distributions?

Question 129easymultiple choice
Read the full Services and Networking explanation →

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

Question 130hardmultiple choice
Read the full Services and Networking explanation →

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'?

Question 131mediummultiple choice
Read the full Services and Networking explanation →

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

Question 132easymultiple choice
Read the full NAT/PAT explanation →

Which resource is used to configure TLS termination and path-based routing for HTTP(S) traffic into a cluster?

Question 133mediummulti select
Read the full Services and Networking explanation →

Which TWO statements about EndpointSlices are true? (Choose 2)

Question 134hardmulti select
Read the full Services and Networking explanation →

Which THREE are correct ways to configure a default deny all ingress traffic NetworkPolicy? (Choose 3)

Question 135mediummulti select
Read the full DNS explanation →

Which TWO commands can be used to test DNS resolution for a Service named 'my-svc' in namespace 'default' from within a temporary pod? (Choose 2)

Question 136easymultiple choice
Read the full Services and Networking explanation →

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?

Question 137mediummultiple choice
Read the full Services and Networking explanation →

A developer reports that a pod can resolve 'my-service.my-namespace.svc.cluster.local' but not 'my-service'. Both the pod and the Service are in the same namespace. What is the most likely cause?

Question 138mediummultiple choice
Read the full Services and Networking explanation →

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

Question 139hardmultiple choice
Read the full Services and Networking explanation →

You are implementing NetworkPolicies. You have a namespace 'db' with a pod running PostgreSQL. You want to allow only pods with label 'role: frontend' in namespace 'app' to connect to PostgreSQL on TCP port 5432. What is the correct Ingress rule?

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

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

Question 141easymultiple choice
Read the full DNS explanation →

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

Question 142mediummultiple choice
Read the full Services and Networking explanation →

You create a Deployment with replicas=3 and a Service of type ClusterIP. You notice that traffic to the Service is not evenly distributed. What is the most likely cause?

Question 143mediummultiple choice
Read the full Services and Networking explanation →

You want to forward local port 8080 to port 80 of a pod named 'nginx-pod'. Which command should you use?

Question 144hardmultiple choice
Read the full Services and Networking explanation →

You have a NetworkPolicy that denies all ingress traffic by default, and you want to allow traffic only from pods with label 'app: monitoring' in the same namespace. What should the policy spec look like?

Question 145easymultiple choice
Read the full Services and Networking explanation →

Which of the following is NOT a valid Service type in Kubernetes?

Question 146mediummultiple choice
Read the full Services and Networking explanation →

You need to expose a Service externally using an Ingress. The Ingress controller requires a specific IngressClass. How do you specify the IngressClass in the Ingress resource?

Question 147hardmultiple choice
Read the full Services and Networking explanation →

You have a Service 'my-svc' with ClusterIP None (headless). You create a StatefulSet with 3 replicas and a headless Service. How do you reach individual pods?

Question 148mediummulti select
Read the full Services and Networking explanation →

Which TWO of the following are valid CNI plugins used in Kubernetes? (Select 2)

Question 149hardmulti select
Read the full Services and Networking explanation →

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

Question 150mediummulti select
Read the full Services and Networking explanation →

Which TWO of the following are valid modes for kube-proxy? (Select 2)

Question 151easymultiple choice
Read the full Services and Networking explanation →

You need to expose a Deployment named 'web' on port 80 inside the cluster. Which kubectl command creates a ClusterIP service?

Question 152mediummultiple choice
Read the full Services and Networking explanation →

A ClusterIP service named 'svc' in namespace 'default' is not reachable from a pod in the same namespace. The service selector matches the pod's labels. Which command should you run first to verify the endpoint list?

Question 153mediummultiple choice
Read the full Services and Networking explanation →

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?

Question 154hardmultiple choice
Read the full Services and Networking explanation →

You have an Ingress resource with TLS configured. You verify that the TLS secret exists in the same namespace. However, accessing the service via HTTPS returns a certificate error. What is the most likely cause?

Question 155easymultiple choice
Read the full Services and Networking explanation →

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

Question 156mediummultiple choice
Read the full DNS explanation →

A pod in namespace 'ns1' cannot resolve the DNS name 'svc.ns2.svc.cluster.local'. What is the most likely cause?

Question 157hardmultiple choice
Read the full Services and Networking explanation →

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

Question 158mediummulti select
Read the full Services and Networking explanation →

Which TWO statements about Ingress in Kubernetes are correct?

Question 159mediummulti select
Read the full Services and Networking explanation →

Which TWO statements about Headless Services are correct?

Question 160hardmulti select
Read the full Services and Networking explanation →

Which TWO statements about NetworkPolicy are correct?

Question 161mediummulti select
Read the full Services and Networking explanation →

Which THREE of the following are valid methods for service discovery in Kubernetes?

Question 162mediummulti select
Read the full Services and Networking explanation →

Which THREE components are part of the Gateway API?

Question 163hardmulti select
Read the full Services and Networking explanation →

Which TWO statements about EndpointSlices are correct?

Question 164easymulti select
Read the full Services and Networking explanation →

Which THREE of the following are CNI plugins?

Question 165easymulti select
Read the full Services and Networking explanation →

Which TWO of the following are valid kube-proxy modes?

Question 166mediummultiple choice
Read the full DNS explanation →

A Kubernetes cluster has a Service of type ClusterIP named 'my-svc' in the 'default' namespace. You deploy a pod and want it to resolve the service's cluster IP using DNS. What FQDN should the pod use?

Question 167easymultiple choice
Read the full Services and Networking explanation →

An administrator creates a NetworkPolicy in namespace 'app' with the following YAML. Which statement is true about the policy?

apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-all spec: podSelector: {} policyTypes: - Ingress

Question 168hardmulti select
Read the full DNS explanation →

You are troubleshooting a Service connectivity issue. A pod in namespace 'frontend' cannot reach a Service in namespace 'backend' by its DNS name. CoreDNS is running. Which statements are true? (Select TWO.)

Question 169mediummulti select
Read the full Services and Networking explanation →

Which of the following can be used to expose a set of pods externally to the internet in a Kubernetes cluster? (Select THREE.)

Practice tests

Scored 10-question sessions with instant feedback and explanations.

CKA Practice Test 1 — 10 Questions→CKA Practice Test 2 — 10 Questions→CKA Practice Test 3 — 10 Questions→CKA Practice Test 4 — 10 Questions→CKA Practice Test 5 — 10 Questions→CKA Practice Exam 1 — 20 Questions→CKA Practice Exam 2 — 20 Questions→CKA Practice Exam 3 — 20 Questions→CKA Practice Exam 4 — 20 Questions→Free CKA Practice Test 1 — 30 Questions→Free CKA Practice Test 2 — 30 Questions→Free CKA Practice Test 3 — 30 Questions→CKA Practice Questions 1 — 50 Questions→CKA Practice Questions 2 — 50 Questions→CKA Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Cluster Architecture, Installation and ConfigurationServices and NetworkingWorkloads and SchedulingStorageTroubleshootingCluster Architecture, Installation & ConfigurationWorkloads & SchedulingServices & Networking

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Services and Networking setsAll Services and Networking questionsCKA Practice Hub