Kubernetes · course, labs and mock exams
CKS course and practice labs
Certified Kubernetes Security Specialist: 6 modules of lessons and demos, 80 tasks from 80 lab templates on real kubeadm clusters, and 14 timed mock exams.
The exam requires a passed CKA.
- Modules
- 6
- Lessons
- 18
- Demos
- 0
- Labs
- 80
- Tasks
- 80
- Mock exams
- 14
The Linux Foundation · 120 minute exam
What you'll learn
Every domain of the exam, weighted like the exam
All 6 domains in the public curriculum. 6 of them already have labs.
Minimize Microservice Vulnerabilities
20%of the exam
4 competencies · 13 labs
Supply Chain Security
20%of the exam
4 competencies · 13 labs
Monitoring, Logging and Runtime Security
20%of the exam
5 competencies · 14 labs
Cluster Setup
15%of the exam
5 competencies · 14 labs
Cluster Hardening
15%of the exam
4 competencies · 13 labs
System Hardening
10%of the exam
4 competencies · 13 labs
What's included
A full course, not just a question bank
18 lessons
Short lessons for the exam competencies, with commands to copy and links to the official docs.
0 demos
Walk through a task step by step before you try it yourself.
80 hands-on labs
80 tasks with their variants, on a kubeadm cluster, graded check by check.
6 module quizzes
36 original questions, with an explanation for every answer.
14 mock exams
8 full mocks and 6 domain mocks. Pass mark 66%.
Certificate of completion
From The Cloud Panda when you finish the course. It is a course certificate, not one from The Linux Foundation.
Curriculum
6 modules
18 lessons and 0 demos: 3 h 7 min of reading and demos, about 6.5 hours with the practice. The lessons open with a free account.
01Cluster setup
NetworkPolicy as a cluster boundary, Ingress TLS, and how to review kubelet settings and platform binaries before you trust them. Domain: Cluster Setup.
- lessonNetwork policies between namespaces12 min
- lessonIngress with TLS10 min
- lessonCIS review, node metadata and platform binaries12 min
02Cluster hardening
Least-privilege RBAC, ServiceAccounts that do not carry a token they will never use, and how API access and upgrades shrink the cluster's attack surface. Domain: Cluster Hardening.
- lessonRBAC that grants only the job12 min
- lessonServiceAccounts and automounted tokens10 min
- lessonAPI server access and upgrade hygiene9 min
03System hardening
A smaller host, tighter identity on the node, and the kernel profiles Kubernetes can apply to a container: seccomp and AppArmor. Domain: System Hardening.
- lessonHost footprint, identity and external access9 min
- lessonSeccomp RuntimeDefault11 min
- lessonAppArmor profiles9 min
04Minimize microservice vulnerabilities
The restricted Pod Security profile, passwords that belong in Secrets, and the difference between a namespace boundary and real pod-to-pod encryption. Domain: Minimize Microservice Vulnerabilities.
- lessonPod Security Standards12 min
- lessonSecrets, not ConfigMaps10 min
- lessonIsolation and pod-to-pod encryption10 min
05Supply chain security
Smaller pinned images, what an SBOM and a signature are for, and a static review of a workload manifest you can do with the API alone. Domain: Supply Chain Security.
- lessonSmaller, pinned base images9 min
- lessonRegistries, signatures and SBOMs10 min
- lessonStatic analysis of a workload11 min
06Monitoring, logging and runtime security
Containers that cannot rewrite themselves, audit policy that records secret access without storing the secret, and what runtime detection adds on top of the API audit log. Domain: Monitoring, Logging and Runtime Security.
- lessonRead-only containers10 min
- lessonAudit policies for secret access11 min
- lessonWhat runtime detection adds10 min
How a lab works
The same loop as a hands-on exam
A task, a live cluster, and checks that read the cluster.
We set the scene
A setup script puts a live environment into a real state, often a broken one: a broken workload, a missing permission, a Service with no endpoints. You get the task and a terminal.
You fix it
With the real tools and the official documentation, exactly as you will in the exam. Nothing is simulated and there are no multiple-choice shortcuts.
Checks grade it
Each lab runs checks against the live environment and shows which passed. There is no answer text to match: if a check fails, you know exactly what is left.
Lab library
Every lab, by exam domain
80 hands-on tasks across 6 domains, about 11 hours of practice.
- Minimize Microservice Vulnerabilities20%
- Supply Chain Security20%
- Monitoring, Logging and Runtime Security20%
- Cluster Setup15%
- Cluster Hardening15%
- System Hardening10%
Minimize Microservice Vulnerabilities 20% of the exam · 13 labs
Use appropriate pod security standards
- MV1Enforce the restricted Pod Security profile10 min
- MV5Raise a namespace from baseline to restricted10 min
- MV10Bring a pod down to the baseline profile10 min
Manage Kubernetes secrets
- MV2Move a password out of a ConfigMap8 min
- MV6Mount the database password as a file9 min
- MV9Stop reading the password from a ConfigMap8 min
- MV12Rotate a password the pod already mounted8 min
Understand and implement isolation techniques (multi-tenancy, sandboxed containers, etc.)
- MV3Draw a tenant boundary12 min
- MV7Quota, limits, and a deny-all tenant12 min
- MV11Leave the host PID and IPC namespaces8 min
Implement Pod-to-Pod encryption (Cilium, Istio)
- MV4Specify pod-to-pod encryption8 min
- MV8Strict mTLS files and a pay NetworkPolicy10 min
- MV13Choose pod traffic encryption7 min
Supply Chain Security 20% of the exam · 13 labs
Minimize base image footprint
- SC1Replace a floating tag with a smaller image7 min
- SC5Drop the debug sidecar and pin nginx8 min
- SC9Shrink a Dockerfile base image7 min
Understand your supply chain (e.g. SBOM, CI/CD, artifact repositories)
- SC3Read an image list and an SBOM7 min
- SC7Match an SBOM against an advisory8 min
- SC12Pin images from a lock file8 min
Secure your supply chain (permitted registries, sign and validate artifacts, etc.)
- SC4Move a workload to an approved digest8 min
- SC8Pin billing to an approved digest8 min
- SC11Move a workload to the approved registry8 min
Perform static analysis of user workloads and container images (e.g. Kubesec, KubeLinter)
- SC2Fix a workload a static review rejected10 min
- SC6Replace a privileged latest image9 min
- SC10Clear a static review on disk and live10 min
- SC13Repair a privileged scanner image8 min
Monitoring, Logging and Runtime Security 20% of the exam · 14 labs
Perform behavioral analytics to detect malicious activities
- ML3Classify runtime events7 min
- ML8Flag anonymous and shell events7 min
- ML13List pods that spawned a shell6 min
Detect threats within physical infrastructure, apps, networks, data, users and workloads
- ML4Contain the pod a sensor flagged8 min
- ML9Remove a miner and its secret grant10 min
- ML14Remove a startup payload and lock the root9 min
Investigate and identify phases of attack and bad actors within the environment
- ML5Map an audit extract to attack phases8 min
- ML10Map collection and impact in an audit log8 min
Ensure immutability of containers at runtime
- ML1Read-only root filesystem with a tmp volume8 min
- ML6Replace a host tmp mount with emptyDir9 min
- ML11Mount config instead of writing it at start9 min
Use Kubernetes audit logs to monitor access
- ML2Audit policy that does not store secret bodies8 min
- ML7Audit configmap requests without secret bodies9 min
- ML12Stop storing secret and configmap bodies8 min
Cluster Setup 15% of the exam · 14 labs
Use Network security policies to restrict cluster level access
- CS1Allow ingress only from the same namespace8 min
- CS6Allow api ingress only from ledger10 min
- CS7Replace an allow-all ingress CIDR8 min
- CS14Separate frontend, api, and data12 min
Use CIS benchmark to review the security configuration of Kubernetes components (etcd, kubelet, kubedns, kubeapi)
- CS4Harden copied control-plane configuration10 min
- CS9List kubelet findings from a copy8 min
- CS12Require client certs on etcd peer URLs8 min
Properly set up Ingress with TLS
- CS2Ingress TLS for one host8 min
- CS8TLS ingress for catalog.internal9 min
- CS13Add TLS to an existing pay Ingress8 min
Protect node metadata and endpoints
- CS5Block the cloud metadata address8 min
- CS10Block link-local egress from a scraper9 min
Verify platform binaries before deploying
- CS3Checksum kubectl and kubelet6 min
- CS11Report the binary that fails its checksum7 min
Cluster Hardening 15% of the exam · 13 labs
Use Role Based Access Controls to minimize exposure
- CH1RBAC for a deploy ServiceAccount8 min
- CH5Read-only configmaps for one account8 min
- CH9Point the ship binding at its Role8 min
- CH13Replace cluster-admin on the ops agent9 min
Exercise caution in using service accounts e.g. disable defaults, minimize permissions on newly created ones
- CH2Stop automounting a ServiceAccount token7 min
- CH6Turn off the token mount on worker8 min
- CH10One named secret and no token mount10 min
Restrict access to Kubernetes API
- CH3Take secrets away from anonymous clients8 min
- CH7Remove anonymous pod list and keep jane local9 min
- CH11A group that can read nodes and pods8 min
Upgrade Kubernetes to avoid vulnerabilities
- CH4Plan a one-minor upgrade7 min
- CH8Write the control-plane upgrade command8 min
- CH12Flag a kubelet newer than the API server7 min
System Hardening 10% of the exam · 13 labs
Minimize host OS footprint (reduce attack surface)
- SY2Remove a host-root debug DaemonSet8 min
- SY6Remove host mounts from a debug pod9 min
- SY10Tighten modes on a host directory7 min
Using least-privilege identity and access management
- SY3Replace cluster-admin on the node agent9 min
- SY8Drop a wildcard ClusterRole from the collector9 min
- SY12A metrics account with no node access8 min
Minimize external access to the network
- SY4Close a NodePort and the host network7 min
- SY7Remove an external IP from the database7 min
- SY11Close a host port on the jump pod8 min
Appropriately use kernel hardening tools such as AppArmor, seccomp
- SY1Seccomp RuntimeDefault on a sleeper8 min
- SY5AppArmor runtime default on worker8 min
- SY9Replace Unconfined with a recorded profile10 min
- SY13Drop privileged and SYS_ADMIN8 min
Mock exams
14 timed mock exams
Pass mark 66%. A task appears in only one mock.
| Mock | Kind | Tasks | Time |
|---|---|---|---|
| CKS Domain Mock: Cluster Hardening | One domain | 3 | 120 min |
| CKS Domain Mock: Minimize Microservice Vulnerabilities | One domain | 3 | 120 min |
| CKS Domain Mock: Monitoring, Logging and Runtime Security | One domain | 3 | 120 min |
| CKS Domain Mock: Cluster Setup | One domain | 3 | 120 min |
| CKS Domain Mock: Supply Chain Security | One domain | 3 | 120 min |
| CKS Domain Mock: System Hardening | One domain | 3 | 120 min |
| CKS Full Mock 01 | Full exam | 12 | 120 min |
| CKS Full Mock 02 | Full exam | 14 | 120 min |
| CKS Full Mock 03 | Full exam | 6 | 120 min |
| CKS Full Mock 04 | Full exam | 6 | 120 min |
| CKS Full Mock 05 | Full exam | 6 | 120 min |
| CKS Full Mock 06 | Full exam | 6 | 120 min |
| CKS Full Mock 07 | Full exam | 6 | 120 min |
| CKS Full Mock 08 | Full exam | 6 | 120 min |
Start the CKS course
A free account opens the lessons. The free starter labs on the CKA stay the CKA labs.