CKA practice exam: 10 free questions on the decisions behind every task
The real CKA is hands-on: 15-20 tasks in live Kubernetes clusters, 2 hours, no multiple choice. Each task is a chain of small decisions (the safe command, the next step in an upgrade or an etcd restore, the line of output that names the cause), and one wrong decision fails it. These ten multiple-choice questions, two from each domain, train those decisions. Answer, then read why each option is right or wrong.
- Hands-on, not multiple choice
- 15-20 tasks
- 2 hours
- Kubernetes v1.37

What the real CKA is like
The tools the Linux Foundation lists on the task hosts are kubectl (alias k, with bash completion), yq, curl, wget and man, with sudo available. More detail in the CKA exam format guide.
10 free CKA practice questions
Taken from the course, two from every domain: commands to choose, manifests and settings to fix, and troubleshooting output to read. Click an option to answer; the explanation under every option appears as soon as you do.
-
On cluster
bank-1, the administrator created the PVpv-audit-2024holding last year's audit data. A new PVCaudit-2024must bind to exactly that PV, not to any other matching one. Which PVC field does this?volumeName: pv-audit-2024selector: {matchLabels: {name: pv-audit-2024}}claimRef: {name: pv-audit-2024}dataSource: {kind: PersistentVolume, name: pv-audit-2024}
Show the answer and why
Answer: A
- A. Correct. Setting
volumeNamein the PVC declares a binding to that specific PV. - B. A label selector matches PV labels; it does not use the PV name unless the PV carries such a label.
- C.
claimRefis a PV field that reserves the PV for a claim, not a PVC field. - D.
dataSourceis used to populate a new volume from a snapshot or PVC, not to bind to an existing PV.
Why it matters: Set
volumeNameon the PVC to bind it to a named PV; setclaimRefon the PV to reserve it for one PVC so other claims cannot take it. -
On cluster
retail-1(kubeadm v1.37), the administrator must make the StorageClassfast-ssdthe default class. The old defaultstandardwas already unmarked. Which command does this?kubectl patch storageclass fast-ssd -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'kubectl label storageclass fast-ssd storageclass.kubernetes.io/is-default-class=truekubectl patch storageclass fast-ssd -p '{"metadata":{"annotations":{"storageclass.kubernetes.io/is-default-class":"yes"}}}'kubectl patch storageclass fast-ssd -p '{"spec":{"default":true}}'
Show the answer and why
Answer: A
- A. Correct. The default class is the one whose
storageclass.kubernetes.io/is-default-classannotation istrue. - B. The marker is an annotation, not a label. A label with that key has no effect.
- C. Only the value
truemarks the default; any other value does not. - D. StorageClass has no
specand nodefaultfield. The default is set by annotation.
Why it matters: A StorageClass is the default when it carries the annotation
storageclass.kubernetes.io/is-default-class: "true"; set it withkubectl patch(or annotate) and unmark the old default. -
In namespace
mediaof clustervid-1, the Serviceplayerhasports: [{port: 443, targetPort: 8443}]. Its EndpointSlice lists two ready Pod IPs on port 8443. From a test Pod,wget -qO- player:443fails with "connection refused", whilewget -qO- 10.244.1.9:8080(a Pod IP) returns the page. What is the BEST fix?- Change the Service
portto8080 - Add a NetworkPolicy in
mediathat allows TCP 443 to the Pods - Restart the
playerPods so they pick up the Service - Change the Service
targetPortto8080
Show the answer and why
Answer: D
- A. The client-facing port is not the problem. Traffic would still be sent to
targetPort8443. - B. "Connection refused" means a closed port reached, not filtered traffic, and no policy is in place.
- C. The app already serves on 8080 and will do the same after a restart.
- D. Correct. DNS and endpoints are fine; traffic is sent to 8443, where nothing listens. The Pods serve on 8080.
Why it matters: "Connection refused" with ready endpoints usually means the Service sends to a port the container does not listen on; compare
targetPortwith the container port. - Change the Service
-
On cluster
retail-1, the administrator investigates the Podcart-7d4cin namespaceshopand needs only the last 50 lines of its output, each with the time it was written. Which command does this?kubectl logs cart-7d4c -n shop --lines=50 --timestampskubectl logs cart-7d4c -n 50 --timestampskubectl logs cart-7d4c -n shop --tail=50 --timestampskubectl logs cart-7d4c -n shop --limit-bytes=50 --timestamps
Show the answer and why
Answer: C
- A.
--linesis not akubectl logsflag; the flag is--tail. - B.
-nis the namespace flag, so this looks in a namespace called50. - C. Correct.
--taillimits the number of recent lines and--timestampsprefixes each line with its timestamp. - D.
--limit-bytescaps the output size in bytes, not the number of lines.
Why it matters:
--tail=Nreturns the last N lines;--timestampsadds a timestamp to each line;--since=1hand--since-timefilter by time. -
On cluster
shop-3, the filestls.crtandtls.keyforshop.example.commust be stored in a Secretshop-tlsin namespaceshopfor later use by a Gateway. Which command does this?kubectl create secret generic shop-tls --cert=tls.crt --key=tls.key -n shopkubectl create secret tls shop-tls --cert=tls.crt --key=tls.key -n shopkubectl create secret tls shop-tls --from-file=tls.crt --from-file=tls.key -n shopkubectl create configmap shop-tls --from-file=tls.crt --from-file=tls.key -n shop
Show the answer and why
Answer: B
- A.
secret generichas no--certor--keyflags. - B. Correct.
secret tlscreates akubernetes.io/tlsSecret with the keystls.crtandtls.key. - C.
secret tlstakes the files through--certand--key. - D. A private key belongs in a Secret, not a ConfigMap.
Why it matters:
kubectl create secret tls NAME --cert=FILE --key=FILEcreates akubernetes.io/tlsSecret withtls.crtandtls.key. -
On cluster
labs-9(kubeadm v1.37), an HPA with a CPU utilization target is created for the Deploymentgrader. Which TWO conditions must be true for this HPA to compute a utilization and scale? (Choose TWO.)- The Vertical Pod Autoscaler is installed in the cluster
- Every container in the grader Pods sets a CPU request
- kube-proxy runs in ipvs mode on every node
- The metrics.k8s.io API is served, for example by Metrics Server
- The Deployment uses the Recreate update strategy
Show the answer and why
Answer: B and D
- A. VPA is a separate add-on for adjusting requests. The HPA works without it.
- B. Correct. Utilization is usage divided by request. A container without a CPU request leaves the utilization undefined.
- C. kube-proxy mode affects Service traffic, not metrics.
ipvsis also deprecated in v1.37. - D. Correct. The HPA controller reads current CPU usage from the Metrics API. Without it, the target stays unknown.
- E. The update strategy controls rollouts, not autoscaling. HPAs work with
RollingUpdateDeployments.
Why it matters: A CPU-utilization HPA needs live metrics from the Metrics API and CPU requests on the target Pods' containers.
-
The CI system runs as ServiceAccount
deployerin namespaceci. It needs read-only access (the built-inviewClusterRole) in namespacecionly, with least privilege. Which command does this?kubectl create rolebinding deployer-view --clusterrole=view --serviceaccount=ci:deployer -n cikubectl create rolebinding deployer-view --role=view --serviceaccount=ci:deployer -n cikubectl create clusterrolebinding deployer-view --clusterrole=view --serviceaccount=ci:deployerkubectl create rolebinding deployer-view --clusterrole=view --serviceaccount=deployer -n ci
Show the answer and why
Answer: A
- A. Correct. A RoleBinding that references a ClusterRole grants its rules only in the binding's namespace,
ci. - B.
--rolerefers to a Role namedviewinci, which does not exist;viewis a ClusterRole. - C. A ClusterRoleBinding grants
viewin every namespace, which is more than the task allows. - D.
--serviceaccountmust be given asnamespace:name, such asci:deployer.
Why it matters: Bind a ClusterRole with a RoleBinding to grant it in one namespace; give ServiceAccounts as
namespace:name. -
A Role in namespace
webhasrules: [{apiGroups: [""], resources: [deployments], verbs: [get, list, update]}]and is bound to userlee.kubectl get deployments -n web --as=leeis Forbidden. Which change fixes the rule?- Add
deployments/scaletoresourcesso the Deployment subresources are covered too - Add
watchtoverbs, becausekubectl getneeds every read verb - Set
resourcesto["*"]so that every resource in the group is allowed - Set
apiGroupsto["apps"], because Deployments belong to theappsAPI group
Show the answer and why
Answer: D
- A. That is a subresource. The rule is still for the core group, so the request is still not matched.
- B.
getis already allowed. The rule fails because of the API group, not the verbs. - C. The group is still the core group, which has no Deployments, and the rule becomes much broader.
- D. Correct.
""is the core group (Pods, Services, ConfigMaps). Deployments are served underapps, so the rule never matched them.
Why it matters: RBAC rules must name the right API group: Deployments are in
apps, Pods in the core group"". - Add
-
On cluster
sec-dns, security requires that ALL non-cluster lookups made by Pods go to the resolver172.16.0.1instead of the nodes'/etc/resolv.conf. The Corefile still has the default.:53block. Which change is correct?- Replace
forward . /etc/resolv.confwithforward . 172.16.0.1in the.:53block - Replace
kubernetes cluster.local in-addr.arpa ip6.arpawithkubernetes 172.16.0.1 - Set
dnsPolicy: Defaulton every Pod - Remove the
cache 30line
Show the answer and why
Answer: A
- A. Correct. The
forwardplugin sends queries outside the cluster domain to its upstream; pointing it at172.16.0.1meets the rule. - B. That would break cluster name resolution; the
kubernetesplugin serves cluster names, not upstream forwarding. - C. Pods would then use the node's resolver and lose cluster names, without using
172.16.0.1. - D. Caching does not decide where queries go; it only stores answers.
Why it matters: Upstream resolution for names outside the cluster is the
forwardplugin's target; change it in the Corefile. - Replace
-
On a new kubeadm v1.37 cluster
qa-12,kubectl apply -f route.yamlfor an HTTPRoute withapiVersion: gateway.networking.k8s.io/v1fails because the API server does not know the kindHTTPRoutein that group and version, andkubectl api-resourceslists no resource of the groupgateway.networking.k8s.io. What should the administrator do FIRST?- Change the manifest to apiVersion: networking.k8s.io/v1
- Enable the Ingress admission plugin on the kube-apiserver
- Install the Gateway API CRDs, then a Gateway controller
- Use kubectl create -f route.yaml instead of kubectl apply
Show the answer and why
Answer: C
- A. That group serves Ingress, IngressClass and NetworkPolicy. It has no HTTPRoute kind.
- B. No admission plugin adds new kinds. Kinds come from built-in APIs or CRDs.
- C. Correct. Gateway API is an add-on that does not ship with Kubernetes. Until its CRDs exist, the API server does not know the HTTPRoute kind.
- D. Any write is refused the same way, because the kind is unknown to the API server.
Why it matters: An unknown kind (nothing in
kubectl api-resources) means the API is not installed; for Gateway API, apply its CRDs before creating Gateways and routes.
The five domains (CNCF CKA Curriculum v1.37)
| Domain | Weight | Questions per 60-question course exam | Curriculum topics |
|---|---|---|---|
| 1. Storage | 10% | 6 | 3 |
| 2. Troubleshooting | 30% | 18 | 5 |
| 3. Workloads and Scheduling | 15% | 9 | 5 |
| 4. Cluster Architecture, Installation and Configuration | 25% | 15 | 8 |
| 5. Services and Networking | 20% | 12 | 6 |
Weights from the CNCF CKA Curriculum v1.37, the same as on the Linux Foundation exam page. The CNCF does not number the topics or weight them individually. The passing score is 66% according to the Linux Foundation FAQ, but that is a score on hands-on tasks and it is not comparable to a multiple-choice score. Our 75% target on unseen practice exams is ours, not a Linux Foundation number.
Why practice with multiple choice at all?
Commands that look right. In v1.37, kubectl autoscale takes --cpu, not --cpu-percent. --delete-local-data is not a kubectl drain flag; --delete-emptydir-data is. A worker node is upgraded with kubeadm upgrade node, not kubeadm upgrade apply. Seeing the near-misses side by side is how you stop typing them.
Sequences where the order matters. kubeadm upgrades go one minor version at a time: plan, apply on the first control plane, node on the rest, then drain, upgrade the kubelet and uncordon. An etcd restore uses etcdutl snapshot restore: the etcd 3.6 release removed etcdctl snapshot restore.
Output you have to read fast. A node that is NotReady, a kubelet that will not start, a static Pod manifest with the wrong etcd port, an empty EndpointSlice, a DNS lookup that fails: what is the most likely cause, and what do you check first? Troubleshooting is 30% of the exam.
What it cannot do. It cannot give you typing speed or comfort in a terminal. Use these questions to find the gap, then close it in a real cluster: build one with kubeadm, upgrade it, back up and restore etcd, break it and fix it.
What's inside the course
Six full practice exams
Six tests of 60 questions, 360 original questions, each timed at 120 minutes and weighted 6/18/9/15/12 like the curriculum, with all 27 curriculum topics in every exam.
Commands, manifests, output
95 troubleshooting exhibits, 92 command questions and 77 manifest and configuration questions across the six exams, current to Kubernetes v1.37.
Blind-checked 360/360
Every option explained, every flag, path, port and default checked against the Kubernetes v1.37 docs, every key confirmed by a separate blind reviewer.
Six full exams, 360 questions, all options explained
Multiple-choice practice for a hands-on exam: 60 questions and 120 minutes per test, kubeadm, etcd, Gateway API and CoreDNS on Kubernetes v1.37, and multiple-response items marked Choose TWO for extra practice.
Study guides for this exam
Free guides that go with these questions. All guides are on the guides page.
CKA practice exam FAQ
Is the CKA exam multiple choice?
No. The Linux Foundation describes the CKA as an online, proctored, performance-based exam: 15-20 tasks solved on the command line in live Kubernetes clusters, in 2 hours. There are no multiple-choice questions. This page and our course are multiple-choice practice that trains the decisions inside those tasks; practice in a real cluster as well (a kubeadm cluster on two or three VMs is ideal).
What is the CKA passing score?
The Linux Foundation FAQ says a score of 66% or above must be earned to pass the CKA. That is a score on hands-on tasks, and a hands-on score is not comparable to a multiple-choice score, so 66% on practice questions does not mean you are ready. Our course uses 75% on unseen exams as its own practice target, not a Linux Foundation number.
Which Kubernetes version does the CKA use?
Kubernetes v1.37, as of October 2026. The Linux Foundation says the exam environment is aligned with the most recent Kubernetes minor version within approximately 4 to 8 weeks of its release, so check the version on the exam page before you book.
What can I use during the exam?
A browser inside the exam environment with the Kubernetes documentation, the Kubernetes blog, the Helm documentation, the documentation linked in a task's Quick Reference box and, for the CKA only, the Gateway API documentation. The task hosts have kubectl with the alias k and bash completion, plus yq, curl, wget and man.
What are the CKA domains and weights?
Storage 10%, Troubleshooting 30%, Workloads and Scheduling 15%, Cluster Architecture, Installation and Configuration 25%, and Services and Networking 20%, from the CNCF CKA Curriculum v1.37.
Are there prerequisites, and how long is it valid?
There are no prerequisites. The certification is valid for 2 years (3 years for CKAs earned before April 1, 2024); to renew it you take and pass the exam again before it expires.
Are these real CKA exam questions?
No. All 360 course questions are original, written from the CNCF CKA Curriculum v1.37 and checked against the Kubernetes v1.37, Gateway API and Helm documentation. Every question was answered blind by a separate reviewer as a final key check, and 360 of 360 keys matched.
Keep going: CKA exam format 2026 · CKA vs CKAD · el examen en español · CKAD practice exam · Terraform Associate 004 questions · all courses