Certified Kubernetes Application Developer

CKAD practice exam and hands-on tasks

The Certified Kubernetes Application Developer exam is hands-on: you design, deploy, configure and troubleshoot applications on real clusters against the clock. Speed with kubectl and YAML matters as much as knowledge.

The exam at a glance

Format
Hands-on: tasks on live systems, in a terminal
Duration
120 minutes
Passing score
66%

From the public exam information; check the Linux Foundation's exam page before you book.

Domains and weights

DomainWeight
Application Environment, Configuration and Security25%
Application Design and Build20%
Application Deployment20%
Services and Networking20%
Application Observability and Maintenance15%

What you get for CKAD

Try it: free examples

Original examples from the CKAD course, written by us, not taken from any exam.

Hands-on task: Build an image and save it to a file

Time budget: 6 minutes

The folder ~/ckad-tasks/img contains a Dockerfile and an index.html.

  1. Build an image from it, tagged ckad/web:2.0.
  2. Save the image as an archive file ~/ckad-tasks/img/web-2.0.tar.
Show the model solution
cd ~/ckad-tasks/img
podman build -t ckad/web:2.0 .
podman save -o ~/ckad-tasks/img/web-2.0.tar ckad/web:2.0

podman save writes a Docker-compatible archive by default; podman load -i web-2.0.tar reads it back.

Hands-on task: Switch a blue/green release to green

Time budget: 7 minutes

In namespace ckad-dp two versions of the same web app run side by side: Deployment web-blue (current, nginx:1.27) and Deployment web-green (new, nginx:1.28). The Service web currently sends all traffic to blue.

  1. Switch all traffic of Service web to the green Pods, without changing either Deployment's Pod template.
  2. Once green serves the traffic, scale web-blue down to 0 replicas (keep the Deployment for a quick rollback).
Show the model solution
# Keep the app label, change only the version label the Service selects
kubectl -n ckad-dp patch service web -p '{"spec":{"selector":{"app":"web","version":"green"}}}'
kubectl -n ckad-dp get endpointslices -l kubernetes.io/service-name=web \
  -o jsonpath='{range .items[*].endpoints[*]}{.targetRef.name}{"\n"}{end}'
kubectl -n ckad-dp scale deployment web-blue --replicas=0

Rollback would be: scale web-blue back to 2, then patch the selector to version: blue.

Spot the bug

The task: "Only Pods labelled app=scraper in namespace monitoring may reach the API." You apply this policy in namespace shop:

spec:
  podSelector: { matchLabels: { app: api } }
  policyTypes: [Ingress]
  ingress:
    - from:
        - namespaceSelector:
            matchLabels: { kubernetes.io/metadata.name: monitoring }
        - podSelector:
            matchLabels: { app: scraper }

What does it really allow?

  1. Every Pod in monitoring, plus Pods labelled app=scraper in shop
  2. Only Pods labelled app=scraper in monitoring, exactly as asked
  3. Nothing, because two peers cancel each other out
  4. Pods labelled app=scraper in any namespace
Show the answer
  1. Correct. Two list items under from are combined with OR. Remove the dash before podSelector so both selectors sit in one item (AND).
  2. Not correct. That would need both selectors in the same list item. Here the second dash starts a separate peer.
  3. Not correct. Peers never cancel each other. NetworkPolicies only add allowed traffic.
  4. Not correct. A podSelector on its own only matches Pods in the policy's own namespace (shop).

Start free, then choose

The free plan lets you try the first domain of LFCS and KCNA. The CKAD exam pass opens everything for CKAD for 90 days, paid once; All access opens all six certifications. See pricing.

Frequently asked questions

Is this the official CKAD training?

No. Clustiro is independent and not affiliated with the Linux Foundation. You book and take the exam with the Linux Foundation; we help you prepare with original material.

Are these real exam questions?

No. Every question and task is written by us. They follow the published curriculum's domains, weights and style, so the practice is realistic, but none is taken from an exam.

Do I need my own cluster or machines?

Yes: you practise on your own virtual machines, set up in the course's lab lesson. Any Windows, macOS or Linux computer with 16 GB RAM and about 70 GB free disk works (8 GB RAM is enough for LFCS), or a small cloud VM. The app never connects to them; you run the verify commands and mark your result.

How long does preparation take?

It depends on your experience and the time you have each week. The app shows your progress per domain and what to study next; the exam pass gives you 90 days and can be extended.

Other certifications