The CKS (Certified Kubernetes Security Specialist) is the CNCF's hands-on Kubernetes security exam. For two hours you work on live clusters from a terminal, locking down the API server, restricting workloads, scanning and verifying images, and catching suspicious behaviour at runtime. It is the hardest of the CNCF Kubernetes exams, and it requires a passed CKA before you can book it. This guide covers the six official domains, the task types each one usually involves, a six-week plan, and the habits that save the most time in the exam.
CKS Exam Domains and Weights
The CKS has six domains, and the three heaviest are about workloads, the supply chain, and runtime. These weights come from the CNCF's CKS curriculum.
| Domain | Weight |
|---|---|
| Cluster Setup | 10% |
| Cluster Hardening | 15% |
| System Hardening | 15% |
| Minimize Microservice Vulnerabilities | 20% |
| Supply Chain Security | 20% |
| Monitoring, Logging and Runtime Security | 20% |
The CNCF page lists domain names and weights only. The task types under each heading below are what the community guides and my own preparation consistently point to, not an official topic list, and CNCF rotates the question pool, so expect variations.
Exam logistics, as commonly listed: two hours, performance-based, a pass mark of 67%, $445 with one free retake, and two sessions on the killer.sh simulator. The Linux Foundation CKS page is the source of truth for price, the Kubernetes version the exam uses, and the CKA prerequisite rules, which guides describe inconsistently.
Cluster Setup (10%)
This domain is about getting a cluster's baseline right: network isolation from the start, a hardened ingress, and checking the cluster against the CIS Kubernetes Benchmark.
The task you are most likely to meet is a NetworkPolicy, often a default deny that you then open up selectively:
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: default-deny
namespace: prod
spec:
podSelector: {}
policyTypes: ["Ingress", "Egress"]
Expect to run kube-bench against a node and fix a named finding. Target the specific check instead of reading the full report:
kube-bench run --targets master --check 1.2.7
Also know how to verify Kubernetes binaries against their published checksums and how to restrict access to node metadata endpoints.
Cluster Hardening (15%)
Cluster Hardening is about the API server and who can use it. RBAC is central: you will tighten a Role or ClusterRole, remove a dangerous binding, or limit what a ServiceAccount can do.
- Use
kubectl auth can-i ... --asto prove a permission is gone before you move on. - Disable ServiceAccount token automounting where a pod does not need the API (
automountServiceAccountToken: false). - Know the kube-apiserver flags that matter for security and how to edit its static pod manifest without breaking the control plane.
- Understand why keeping Kubernetes upgraded is itself a hardening control.
In my experience the kube-apiserver manifest is where people lose the most time. One bad flag and the API server does not come back, and every later task in that cluster stalls. Copy the manifest before editing it, every time.
System Hardening (15%)
This domain sits below Kubernetes: the node's operating system and the kernel features that confine containers. It is the domain that catches people with a pure Kubernetes background.
- AppArmor: load a profile on the node, then reference it from the pod. Recent Kubernetes versions use a field rather than the old annotation:
securityContext:
appArmorProfile:
type: Localhost
localhostProfile: k8s-deny-write
- seccomp: apply
RuntimeDefaultor a custom profile throughsecurityContext.seccompProfile. - Reduce the node's attack surface: stop unneeded services, remove packages, and close unused ports.
- Limit what IAM or cloud credentials a node exposes.
If you have never written an AppArmor profile, spend real time here. It is a small part of the exam by weight, but a task you cannot do at all costs the full points.
Minimize Microservice Vulnerabilities (20%)
This is where workload-level controls live, and it ties for the largest domain.
- Pod Security Admission: label a namespace to enforce
baselineorrestricted, then fix a deployment that violates it. - securityContext settings: run as non-root, drop capabilities, read-only root filesystem, no privilege escalation.
- Secrets: know that Secrets are only base64-encoded, and how encryption at rest is configured on the API server.
- Runtime sandboxes: create a RuntimeClass (for example for gVisor) and schedule a pod onto it.
- Pod-to-pod encryption: understand what mTLS through a service mesh or CNI provides.
Supply Chain Security (20%)
This domain covers what runs in the cluster and where it came from.
- Image scanning with Trivy, then acting on the result (replacing an image or deleting pods that use a vulnerable one):
trivy image --severity HIGH,CRITICAL nginx:1.27
- Minimal base images and reducing what an image contains.
- Allowed registries enforced through admission control, such as an ImagePolicyWebhook or a policy engine.
- Static analysis of manifests and Dockerfiles for risky settings.
- Signing and SBOMs: know what image signatures and software bills of materials give you, even if a task does not ask you to produce them.
Monitoring, Logging and Runtime Security (20%)
The last domain is about noticing an attack in progress.
- Audit logging: write an audit policy with the right levels per resource, and enable it with the API server's
--audit-policy-fileand--audit-log-pathflags. - Falco: read its alerts, identify which pod or container triggered a rule, and sometimes adjust a rule's output.
- Immutable containers: identify containers that write to their filesystem or run with elevated privileges, and fix or remove them.
- Investigate behaviour from logs and process information on the node.
A 6-Week CKS Study Plan
This plan assumes you passed the CKA recently and can put in five to eight hours a week.
| Week | Focus | Practice |
|---|---|---|
| 1 | Cluster Setup and Cluster Hardening | NetworkPolicies from scratch, kube-bench fixes, RBAC tightening |
| 2 | System Hardening | Write and load an AppArmor profile; apply seccomp profiles |
| 3 | Minimize Microservice Vulnerabilities | Pod Security Admission, securityContext, Secrets encryption, RuntimeClass |
| 4 | Supply Chain Security | Trivy scans, admission control for registries, manifest static analysis |
| 5 | Monitoring, Logging and Runtime Security | Audit policies, Falco alerts, finding mutable containers |
| 6 | Timed practice | Both killer.sh sessions, then repeat every task type you got wrong |
Book the exam for the end of week six before you start. A date on the calendar does more for consistency than any study tool.
Exam-Day Habits That Save Time
- Switch context on every task. Each task names its cluster. Working in the wrong one is the most common avoidable mistake.
- Back up before you edit a static pod manifest, an audit policy, or anything the API server reads at startup.
- Skip and return. Flag a task that stalls you after a few minutes. Points are per task, and a later easy task is worth the same as a hard one.
- Verify your fix with a quick
kubectlcheck rather than assuming the edit worked.
If you want the broader picture of where CKS fits, our CKA vs CKAD vs CKS comparison covers the order and the career case, and the KCSA study guide is the gentler, multiple-choice entry point to the same material. For the production side of these controls, see Kubernetes in production.
Prepare for the CKS With CloudaQube
The CKS assumes CKA-level fluency on a live cluster, so the fastest path is to get that foundation solid first. CloudaQube's CKA course follows the exam objectives with hands-on practice in every module, and Module 1 is free.