CKAD practice exam: 10 free questions on the decisions behind every task
The real CKAD is hands-on: 15-20 tasks in live Kubernetes clusters, 2 hours, no multiple choice. Each task is a chain of small decisions, and one wrong decision fails it however fast you type. These ten multiple-choice questions, two from each domain, train those decisions: the right kubectl command, the YAML field that fixes a manifest, the clue in debugging output. 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 CKAD is like
The tools on the task hosts are kubectl (alias k, with bash completion), yq, curl, wget and man. More detail in the CKAD exam format guide.
10 free CKAD practice questions
Taken from the course, two from every domain: commands to choose, manifests and settings to fix, and output to read. Click an option to answer; the explanation under every option appears as soon as you do.
-
The developer must write the file
ledger.yamlfor a Deploymentledger-apiwith 3 replicas ofregistry.example.com/ledger-api:2.4.1and container port 8080, without creating anything in the cluster yet. Which command is FASTEST and correct?kubectl create deployment ledger-api --image=registry.example.com/ledger-api:2.4.1 -r 3 --port=8080 --dry-run=client -o yaml > ledger.yamlkubectl run ledger-api --image=registry.example.com/ledger-api:2.4.1 --replicas=3 --port=8080 --dry-run=client -o yaml > ledger.yamlkubectl create deployment ledger-api --image=registry.example.com/ledger-api:2.4.1 -r 3 --port=8080 -o yaml > ledger.yamlkubectl create deployment ledger-api --image=registry.example.com/ledger-api:2.4.1 -r 3 --target-port=8080 --dry-run=client -o yaml > ledger.yaml
Show the answer and why
Answer: A
- A. Correct.
-r/--replicasand--portare create deployment flags, and--dry-run=client -o yamlprints the object without sending it. - B. kubectl run creates only Pods and has no
--replicasflag in v1.37. - C. Without
--dry-run=clientthe Deployment is also created in the cluster, which the task forbids. - D. create deployment has no
--target-portflag; the container port flag is--port.
Why it matters: Generate manifests with
kubectl create ... --dry-run=client -o yaml > file, then edit and apply. -
Pod
billinghas the app containerapi, which writes logs to/var/log/billing/app.log, and a sidecartailerthat runstail -F /logs/app.log. The spec defines an emptyDir volumelogs, mounted withvolumeMounts: [{name: logs, mountPath: /logs}]only intailer.kubectl logs billing -c tailershowstail: can't open '/logs/app.log'. What is the BEST fix?- Change the
tailermountPath to/var/log/billing - Move
tailerintoinitContainerswithout arestartPolicy - Also mount the
logsvolume inapiat/var/log/billing - Set
shareProcessNamespace: trueon the Pod
Show the answer and why
Answer: C
- A. Matching paths do not share anything. The volume is still mounted only in
tailer, so it stays empty. - B. A regular init container runs before the app and must exit, and the volume is still not mounted in
api. - C. Correct. The app writes into its own filesystem until the volume is mounted at its log directory; then the sidecar reads the same files under
/logs. - D. That lets containers see each other's processes. It does not put the app's log directory into a shared volume.
Why it matters: Both containers must mount the same volume: the writer at its log directory, the reader wherever it expects the file.
- Change the
-
In namespace
shop-prod, the Serviceshophasselector: {app: shop, version: blue}. The Deploymentshop-green(Pod labelsapp: shop, version: green) is fully Ready and tested. All traffic must move to green at once, and blue must keep running for a fast rollback. Which command does this BEST?kubectl label service shop app=shop version=green --overwrite -n shop-prodkubectl patch service shop -n shop-prod -p '{"spec":{"selector":{"app":"shop","version":"green"}}}'kubectl set image deployment/shop-blue shop=registry.example.com/team/shop:2.0 -n shop-prodkubectl expose deployment shop-green --name=shop --port=80 -n shop-prod
Show the answer and why
Answer: B
- A. This changes the labels on the Service object itself. The selector, which decides where traffic goes, still says blue.
- B. Correct. Changing the Service selector moves all new traffic to the green Pods in one step, and the blue Deployment stays untouched for rollback.
- C. This starts a rolling update of blue, so both versions serve during the rollout and no untouched blue copy is left for rollback.
- D. A Service named
shopalready exists, so this fails; it would also not change the existing Service's selector.
Why it matters: Blue/green with plain Kubernetes: two Deployments with different version labels, and one Service whose selector is switched from one to the other.
-
kubectl rollout status deployment/ledger-api -n finexits witherror: deployment "ledger-api" exceeded its progress deadline.kubectl describe deploy ledger-apishows the conditionProgressing False ProgressDeadlineExceeded, and the Deployment has noprogressDeadlineSecondsset. Which statement is correct?- Kubernetes has already rolled back to the previous revision automatically
- The Deployment is deleted after the deadline, and its Pods are orphaned
- The deadline is 60 seconds by default, so the new Pods simply need a longer minReadySeconds
- The rollout stalled for 600 s; Kubernetes only reports it
Show the answer and why
Answer: D
- A. The controller only reports the stalled rollout. It never rolls back on its own.
- B. Nothing is deleted. The Deployment and its ReplicaSets stay as they are.
- C. The default is 600 seconds, and minReadySeconds makes rollouts slower, not more likely to pass the deadline.
- D. Correct. progressDeadlineSeconds defaults to 600. When it passes, the controller sets the condition and takes no further action; rollback is up to you.
Why it matters: A stalled rollout is surfaced as ProgressDeadlineExceeded (default 600 s); investigate the new Pods, then fix forward or
kubectl rollout undo. -
The Pod
pay-api-0in namespacepayruns a distroless image (no shell) and does not setshareProcessNamespace.kubectl execfails withexecutable file not found. The developer must look at the runningapicontainer's processes without restarting or replacing the Pod. Which command does this?kubectl debug -it pay-api-0 -n pay --image=busybox:1.36 --target=apikubectl debug -it pay-api-0 -n pay --image=busybox:1.36kubectl debug pay-api-0 -n pay -it --image=busybox:1.36 --copy-to=pay-api-dbgkubectl exec -it pay-api-0 -n pay --image=busybox:1.36 -- sh
Show the answer and why
Answer: A
- A. Correct. This adds an ephemeral container to the running Pod, and
--targetshares the process namespace ofapi. - B. The ephemeral container is added, but without
--targetit does not see the processes ofapi. - C. This creates a new copy of the Pod; the task asks to look at the running Pod, not a replacement.
- D.
kubectl exechas no--imageflag; it can only run binaries already in the container.
Why it matters: Ephemeral containers (
kubectl debug POD --image) bring tools into a running Pod;--target=CONTAINERlets them see that container's processes. -
A legacy app starts in anywhere from 20 seconds to 4 minutes. Its livenessProbe (
httpGeton/healthzport 8080,periodSeconds: 10,failureThreshold: 3) kills it during long starts. After it is up, hangs must still be detected within about 30 seconds. Which addition is BEST?startupProbe: {httpGet: {path: /healthz, port: 8080}, failureThreshold: 3, periodSeconds: 10}readinessProbe: {httpGet: {path: /healthz, port: 8080}, failureThreshold: 30, periodSeconds: 10}startupProbe: {httpGet: {path: /healthz, port: 8080}, failureThreshold: 30, periodSeconds: 10}livenessProbe.initialDelaySeconds: 240on the existing probe
Show the answer and why
Answer: C
- A. This allows only about 30 seconds to start, so long starts still fail and the container is killed.
- B. A readiness probe does not hold back the liveness probe, so liveness still kills slow starts.
- C. Correct. Liveness waits until the startup probe succeeds; 30 x 10 s allows 300 s to start, and afterwards liveness reacts as fast as before.
- D. It avoids the kills but delays hang detection by 4 minutes after every start, even after a 20-second start.
Why it matters: Use a startupProbe with
failureThreshold x periodSecondscovering the worst start time; liveness and readiness begin after it succeeds. -
In namespace
shop-prod, a monitoring script needs to read Pods (get, list, watch) and nothing else, only in that namespace. Which command creates the right permission object?kubectl create clusterrole pod-reader --verb=get,list,watch --resource=pods -n shop-prodkubectl create role pod-reader --verb=get,list,watch --resource=pods -n shop-prodkubectl create role pod-reader --verb=get,list,watch --resource=pods --serviceaccount=shop-prod:mon -n shop-prodkubectl create role pod-reader --verb=* --resource=pods -n shop-prod
Show the answer and why
Answer: B
- A. A ClusterRole is cluster-scoped; -n does not make it namespaced, and a ClusterRoleBinding to it would reach every namespace.
- B. Correct. A Role is namespaced, and --verb/--resource grant exactly the three read verbs on Pods in shop-prod.
- C. --serviceaccount is a flag of create rolebinding, not of create role; a Role lists rules, not subjects.
- D. The wildcard grants every verb, including delete and update, which breaks least privilege.
Why it matters: A Role holds namespaced rules; subjects are attached separately with a RoleBinding.
-
A developer is writing the Pod-level
securityContextof a Pod and wants to know which settings must instead go in each container'ssecurityContext. Which TWO fields exist only at container level? (Choose TWO.)supplementalGroupsreadOnlyRootFilesystemcapabilitiesfsGrouprunAsUser
Show the answer and why
Answer: B and C
- A. supplementalGroups is a Pod-level field.
- B. Correct. Each container has its own root filesystem, so this is a container field only.
- C. Correct. Linux capabilities are set per container; the Pod securityContext has no capabilities field.
- D. fsGroup is a Pod-level field that applies to volumes.
- E. runAsUser exists at both levels; the container value overrides the Pod's.
Why it matters: Container-only: capabilities, privileged, allowPrivilegeEscalation, readOnlyRootFilesystem. Pod-only: fsGroup, supplementalGroups, sysctls. Both: runAsUser, runAsGroup, runAsNonRoot, seccompProfile.
-
In namespace
ops,kubectl get pods --show-labelsshows three Pods1/1 Runningwith labelsapp=order,tier=web.kubectl get endpointslices -l kubernetes.io/service-name=ordersshows ENDPOINTS<none>.kubectl describe svc ordersshowsSelector: app=orders,tier=web. What is the MOST likely cause?- The Pods fail their
readinessProbe - A
NetworkPolicyinopsis blocking ingress traffic to the Pods - Selector
app=ordersdiffers from the Pod labelapp=order kube-proxyis not running on the nodes
Show the answer and why
Answer: C
- A. The Pods show
1/1Ready, so readiness is not the issue. - B. NetworkPolicies filter packets; they never remove Pods from a Service's EndpointSlices.
- C. Correct. The EndpointSlice controller adds only Pods whose labels satisfy the whole selector; one typo leaves the Service with no endpoints.
- D. kube-proxy programs forwarding rules; endpoint discovery is done by the control plane and would still list the Pods.
Why it matters:
ENDPOINTS<none>with Ready Pods points at the selector. Compare the Service selector with--show-labels:ordersversusorder. - The Pods fail their
-
In namespace
web, create an Ingressshopwith classnginxthat sendsshop.example.com/apiand everything under it (for example/api/orders) to the Serviceapion port 8080. Which command meets the task?kubectl create ingress shop -n web --class=nginx --rule="shop.example.com/api=api:8080" --annotation pathType=Prefixkubectl create ingress shop -n web --ingress-class=nginx --rule="shop.example.com/api*=api:8080"kubectl create ingress shop -n web --class=nginx --rule="shop.example.com/api*=api:8080"kubectl create ingress shop -n web --class=nginx --rule="api:8080=shop.example.com/api*"
Show the answer and why
Answer: C
- A. Only a path with
*becomespathType: Prefix; an annotation is just metadata and never sets thepathTypefield, so/api/ordersis not covered. - B. The flag is
--class;--ingress-classdoes not exist onkubectl create ingress. - C. Correct. A trailing
*makes the pathpathType: Prefix, so/api/ordersalso matches. - D. The rule format is
host/path=service:port; here the two sides are swapped.
Why it matters: Per the
--ruledocs, a path with*becomespathType: Prefix; without it the path is not Prefix. Set the class with--class, and check with--dry-run=client -o yaml.
The five domains (CNCF CKAD Curriculum v1.37)
| Domain | Weight | Questions per 60-question course exam | Curriculum topics |
|---|---|---|---|
| 1. Application Design and Build | 20% | 12 | 4 |
| 2. Application Deployment | 20% | 12 | 4 |
| 3. Application Observability and Maintenance | 15% | 9 | 5 |
| 4. Application Environment, Configuration and Security | 25% | 15 | 8 |
| 5. Services and Networking | 20% | 12 | 3 |
Weights from the CNCF CKAD 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. kubectl run in v1.37 has no --replicas, --serviceaccount, --requests or --limits. --port and --target-port get swapped. kubectl create secret needs generic, tls or docker-registry. Seeing the near-misses side by side is how you stop typing them.
Manifests that almost work. A selector that does not match, a probe on the wrong port, a missing pathType, capabilities at Pod level, a NetworkPolicy that selects every Pod.
Output you have to read fast. CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending and empty EndpointSlices: what is the most likely cause, and what do you check first?
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. The CKAD kubectl cheat sheet lists the imperative commands worth knowing by heart.
What's inside the course
Six full practice exams
Six tests of 60 questions, 360 original questions, each timed at 120 minutes and weighted 12/12/9/15/12 like the curriculum, with all 24 curriculum topics in every exam.
Commands, manifests, output
94 command questions, 116 manifest questions and 53 debugging exhibits across the six exams, current to Kubernetes v1.37.
Blind-checked 360/360
Every option explained, every flag 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, Helm questions written only with commands common to Helm 3 and Helm 4, 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.
CKAD exam format 2026
Hands-on tasks, 2 hours, the docs you may open and the version rule.
Cheat sheetCKAD kubectl cheat sheet
Imperative commands and flags that work in v1.37, on one printable page.
ComparisonCKA vs CKAD
Administrator vs developer: domains, weights and which to take first.
Also in DevOpsTerraform Associate 004 questions
Ten free infrastructure-as-code questions, every option explained.
CKAD practice exam FAQ
Is the CKAD exam multiple choice?
No. The Linux Foundation describes the CKAD 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 (kind or minikube on your own machine is enough).
What is the CKAD passing score?
The Linux Foundation FAQ says a score of 66% or above must be earned to pass. 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 CKAD 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, and any task-specific documentation linked in a task's Quick Reference box. The task hosts have kubectl with the alias k and bash completion, plus yq, curl, wget and man.
What are the CKAD domains and weights?
Application Design and Build 20%, Application Deployment 20%, Application Observability and Maintenance 15%, Application Environment, Configuration and Security 25%, and Services and Networking 20%, from the CNCF CKAD Curriculum v1.37.
Are there prerequisites, and how long is it valid?
There are no prerequisites. The certification is valid for 2 years; to renew it you take and pass the exam again before it expires.
Are these real CKAD exam questions?
No. All 360 course questions are original, written from the CNCF CKAD Curriculum v1.37 and checked against the Kubernetes v1.37 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: CKAD exam format 2026 · CKAD kubectl cheat sheet · el examen en español · Terraform Associate 004 questions · Google Cloud ACE practice exam · all courses · CKA practice exam · CKA vs CKAD