


Getting ready for the Certified Kubernetes Security Specialist (CKS) exam?
These are hands-on practice exams to help you prepare and test your skills.
These practice tests cover all major CKS domains, including:
Cluster Setup (15%)
Cluster Hardening (15%)
System Hardening (10%)
Minimize Microservice Vulnerabilities (20%)
Supply Chain Security (20%)
Monitoring, Logging and Runtime Security (20%)
Every question is written to feel like the real exam, helping you spot gaps in your knowledge and build confidence.
This set of exercises is for anyone who wants practical, no-fluff preparation. Each question comes with a detailed solution explaining why it's correct, references Kubernetes documentation, and points out common exam pitfalls. You practice, learn, and understand Kubernetes security at the same time.
All questions are original and more are added over time to stay up-to-date with the exam objectives. Think of this as your final check before the real CKS exam, a place to improve speed, accuracy, and confidence.
Sample topics include using Falco and Cilium for network policies to restrict pod-to-pod access, applying CIS benchmark recommendations, setting up TLS for Ingress and Istio mTLS, implementing role-based access control, enforcing Pod Security Standards, protecting nodes and workloads, managing secrets, and monitoring runtime security through audit logs, etc.
Note: These tasks are not official CNCF/CKS exam content. They are community-inspired practice materials intended for personal learning and exam preparation.
By completing this course, you'll gain hands-on experience, deepen your understanding of Kubernetes security, and practice solving real exam-style tasks.
The CKS exam is challenging, but I passed both CKA and CKS by really focusing on the core concepts and practicing thoroughly. With the same approach, you can succeed too.
===
SAMPLE QUESTIONS:
Description:
Enforce a prepared AppArmor profile on a specific worker node and deploy a Pod using it:
Apply the nginx-profile-2 AppArmor profile on the worker node node-01.
Edit the Pod manifest to reference this profile.
Deploy the Pod on node-01 and ensure the profile is applied correctly.
---
Description:
Create a new Kubernetes user, approve its certificate, and assign namespace-specific permissions:
Create a user john and generate a Certificate Signing Request (CSR).
Approve the CSR and retrieve the signed certificate.
Create a Role john-role in namespace john to allow list, get, create, and delete on pods and secrets.
Create a RoleBinding john-role-binding to attach the Role to user john.
Verify permissions using kubectl auth can-i.
---
Description:
A Pod token-demo is running in the default namespace and uses the default mounted token.
Modify the default ServiceAccount to disable automatic token mounting (automountServiceAccountToken: false).
Edit the Pod to:
Use this ServiceAccount.
Mount a projected volume with the ServiceAccount token manually at /var/run/secrets/tokens/token.jwt.
---