CKS mock exams on clusters you have to lock down.

The CKS gives you two hours to harden clusters, nodes and workloads. CKPrep sets up insecure clusters on your machine, times you, and checks that each hole is really closed, not just that a file looks right.

  • One-time payment
  • 14-day refund if it won't run
  • Mac & Linux
~/ckprep
$ ./ckprep start drill-1-cluster-setup
› Setting up question 01…
› Setting up question 02…

$ ./ckprep q 1
Deny all traffic in namespace orchard,
then let app=web reach api on port 80
by Service name. Nothing else may open.

$ ./ckprep grade
◐ Q1   6%  3/4 checks  orchard-default-deny
   missed: app=web reaches api by Service name
✓ Q2   7%  4/4 checks  portal-ingress-tls
✓ Q3   6%  3/3 checks  metadata-egress-block
✗ Q4   8%  0/4 checks  kubelet-cis-remediation
…
Score: 70% — PASS (67% needed) · 33 min used
65hands-on tasks
2two-hour mock exams
2labs on real VM nodes
100%auto-graded, with solutions

Knowing the threat isn't the same as closing it fast.

The CKS is hands-on security work: lock down the kubelet, write the NetworkPolicy that blocks the metadata endpoint, enable audit logging, confine a container with AppArmor, find the Pod that's doing something it shouldn't.

Most of it means editing static manifests and node config where one typo takes the API server down. CKPrep lets you make those mistakes at home, on real clusters, with the clock running.

How a session works

  1. It opens the holes

    One command builds local kind clusters and VMs with a weakness for every task: an anonymous kubelet, an open namespace, a container running as root.

  2. You work like it's exam day

    kubectl, ssh into nodes, edit static manifests, search the allowed docs. A countdown runs the whole time.

  3. It tests the live cluster

    Grading probes what's actually enforced: it tries the blocked connection and calls the kubelet without credentials. Then the worked solution unlocks.

Every miss comes with the fix.

Each task is graded on several specific checks, so you see exactly which part you missed. Then you get the fix, the commands, and the pitfall that cost you.

Over time, ./ckprep progress shows your weakest curriculum topics, so you know what to practise next instead of guessing.

Solution · Q1 orchard-default-deny
# deny-all: every Pod, no ingress, no egress
spec:
  podSelector: {}
  policyTypes: [Ingress, Egress]
# then allow three flows:
#   egress  web → api:80
#   ingress api ← web:80
#   egress  web → kube-dns:53, UDP and TCP

Pitfall: with egress denied, forgetting DNS makes the Service name fail even though the port rule is right.

What's in the CKS pack

2 mock exams

33 tasks · 2 h each

Full-length, timed runs of 16 to 17 mixed tasks across three clusters, scored against a 67% pass mark.

6 topic drills

28 tasks

Cluster setup, cluster hardening, system hardening, microservice vulnerabilities, supply chain, and monitoring and runtime security.

2 VM labs

4 tasks

AppArmor, gVisor and Falco on real nodes, and patching a cluster by upgrading it. On real virtual machines, not containers.

Written from scratch for Kubernetes 1.37, with a worked solution for every task and a cheat sheet for the pack. Tasks built around a scanner (Trivy, Kubesec) or Falco alerts give you the saved report to analyse and act on. AppArmor, gVisor and Falco run live in the VM labs.

Every CKS exam domain, weighted like the real exam

Tasks are mapped to the official CNCF CKS curriculum for Kubernetes v1.37.

Minimize Microservice Vulnerabilities

20%
  • Use appropriate pod security standards
  • Manage Kubernetes secrets
  • Understand and implement isolation techniques (multi-tenancy, sandboxed containers)
  • Implement Pod-to-Pod encryption (Cilium, Istio)

Supply Chain Security

20%
  • Minimize base image footprint
  • Understand your supply chain (SBOM, CI/CD, artifact repositories)
  • Secure your supply chain (permitted registries, sign and validate artifacts)
  • Perform static analysis of user workloads and container images (Kubesec, KubeLinter)

Monitoring, Logging and Runtime Security

20%
  • Perform behavioral analytics to detect malicious activities
  • Detect threats within physical infrastructure, apps, networks, data, users and workloads
  • Investigate and identify phases of attack and bad actors within the environment
  • Ensure immutability of containers at runtime
  • Use Kubernetes audit logs to monitor access

Cluster Setup

15%
  • Use network security policies to restrict cluster level access
  • Use CIS benchmark to review the security configuration of Kubernetes components
  • Properly set up Ingress objects with TLS
  • Protect node metadata and endpoints
  • Verify platform binaries before deploying

Cluster Hardening

15%
  • Use Role Based Access Controls to minimize exposure
  • Exercise caution in using service accounts
  • Restrict access to Kubernetes API
  • Upgrade Kubernetes to avoid vulnerabilities

System Hardening

10%
  • Minimize host OS footprint (reduce attack surface)
  • Using least-privilege identity and access management
  • Minimize external access to the network
  • Appropriately use kernel hardening tools such as AppArmor, seccomp

The CKS pack

$19.99one-time

The exam itself costs hundreds of dollars per attempt. Practising until you're fast costs far less.

  • 65 auto-graded tasks with worked solutions
  • 2 two-hour mock exams, 6 drills, 2 VM labs
  • Progress tracking by curriculum topic
  • Free bug-fix updates for the 1.37 pack
  • Runs locally on your machine, as often as you like
Get the CKS pack · $19.99

Secure checkout by Polar. Taxes calculated at checkout. Instant download.

Check your machine first.

The free runner tells you exactly what's missing before you spend anything.

$ ./ckprep doctor
✓ Platform: macOS arm64 (fully tested)
✓ Docker memory: 16 GB
✓ VM lab available
Ready.
Apple silicon MacFully tested
x86-64 LinuxFully tested
Intel Mac, Windows (WSL2)Beta

Needs Docker, kind, kubectl, helm, curl, jq, openssl and python3. The two VM labs also need Lima (plus KVM on Linux). Docker with 8 GB of memory (16 GB recommended for the mocks) and 30 GB of free disk.

Linux VM labs are tested on Ubuntu 24.04. The QEMU 10.2 in Ubuntu 26.04 currently crashes them.

Questions

Are these real exam questions?

No, and that's deliberate. Every task is original, written from the public Kubernetes docs and the published curriculum. Nothing is leaked or recalled from a real exam.

Do Falco, AppArmor and gVisor really run?

Yes, in the VM labs, on real nodes you ssh into. Elsewhere, tasks about scanner output or Falco alerts give you the saved report, so you practise reading it and fixing what it found.

Do I need the CKA first?

The real CKS requires an active CKA. This pack assumes you're comfortable with kubectl, static Pod manifests and ssh into nodes.

Can I try some CKS practice questions free?

Yes. The free CKS practice questions page has 8 tasks from this pack's drills with full solutions, one or more for each exam domain.

Do I need a cloud account?

No. Everything runs locally in Docker and lightweight VMs. You only need internet to download images the first time.

Is this official?

No. CKPrep is independent and not affiliated with CNCF or The Linux Foundation. It doesn't include an exam voucher.

Will it guarantee I pass?

Nobody can honestly promise that. What it does is show you, task by task, where you'd lose points today, while there's still time to fix it.

Two full mocks, two VM labs, $19.99 once.

Get the CKS pack · $19.99

New to the exam? Read the CKS exam guide or try the free CKS practice questions. Taking another exam too? See the CKA pack and the CKAD pack.