Certified Kubernetes Security Specialist (CKS)¶
Practise CKS questions
Ready to test yourself? Try the CKS practice questions on gitGood.dev, our practice app, alongside this guide.
Exam Overview¶
The Certified Kubernetes Security Specialist (CKS) exam validates a candidate's ability to secure container-based applications and Kubernetes platforms during build, deployment, and runtime. This is a performance-based exam that requires hands-on proficiency with Kubernetes security tooling and techniques. CKS is considered one of the most challenging Kubernetes certifications due to its breadth of security topics and requirement for real-time problem solving in a live cluster environment.
Exam Details: - Exam Code: CKS - Duration: 2 hours (120 minutes) - Format: Performance-based (hands-on tasks in a live environment) - Passing Score: 67% - Cost: $395 USD (includes one free retake) - Delivery: Online proctored via PSI - Validity: 2 years - Prerequisites: Must hold an active CKA (Certified Kubernetes Administrator) certification - Kubernetes Version: Based on a recent stable release (check CNCF site for current version)
Important: This exam is entirely hands-on. You will work with real Kubernetes clusters to solve security-related tasks. There are no multiple choice questions.
Exam Domains¶
Domains, weights, and competencies below follow the current Linux Foundation CKS curriculum (Kubernetes v1.35 exam environment, checked 2026-10-22). Against the older curriculum, Cluster Setup rose from 10% to 15% and System Hardening fell from 15% to 10%. The GUI-elements competency is gone, Ingress now explicitly means Ingress with TLS, and Supply Chain Security names SBOMs and artifact signing.
π Linux Foundation CKS page - the current domains and competencies, and the Kubernetes version the exam runs
Domain 1: Cluster Setup (15%)¶
- Use network security policies to restrict cluster-level access
- Use CIS benchmark to review the security configuration of Kubernetes components (etcd, kubelet, kubedns, kubeapi)
- Properly set up Ingress with TLS
- Protect node metadata and endpoints
- Verify platform binaries before deploying
Key Concepts: - NetworkPolicy resources for pod-to-pod traffic control - CIS Kubernetes Benchmark and kube-bench - Ingress TLS: a TLS Secret referenced from the Ingress tls block, and HTTP redirected to HTTPS - Cloud provider metadata API protection - Binary verification with SHA checksums
Domain 2: Cluster Hardening (15%)¶
- Use Role-Based Access Controls to minimize exposure
- Exercise caution in using service accounts (e.g., disable defaults, minimize permissions on newly created ones)
- Restrict access to Kubernetes API
- Upgrade Kubernetes to avoid vulnerabilities
Key Concepts: - API server authentication and authorization modes - RBAC Roles, ClusterRoles, RoleBindings, and ClusterRoleBindings - Service account token management and automountServiceAccountToken - Kubernetes version upgrade strategies - Anonymous authentication and insecure port disabling - Audit logging for API server requests
Domain 3: System Hardening (10%)¶
- Minimize host OS footprint (reduce attack surface)
- Use least-privilege identity and access management
- Minimize external access to the network
- Appropriately use kernel hardening tools such as AppArmor, seccomp
Key Concepts: - Linux security modules (AppArmor, SELinux) - Seccomp profiles for system call filtering - Host-level firewall rules (iptables, UFW) - Reducing the host attack surface (unnecessary services, packages) - Least-privilege identity and access management for nodes and cloud roles - Network segmentation and external access controls
Domain 4: Minimize Microservice Vulnerabilities (20%)¶
- Use appropriate pod security standards
- Manage Kubernetes secrets
- Understand and implement isolation techniques (multi-tenancy, sandboxed containers, etc.)
- Implement Pod-to-Pod encryption (Cilium, Istio)
Key Concepts: - Pod Security Admission (PSA) - Privileged, Baseline, Restricted - OPA Gatekeeper and constraint templates - Kubernetes Secrets management and encryption at rest - Runtime sandboxes (gVisor/runsc, Kata Containers) - Pod-to-pod encryption: Istio mTLS, or Cilium transparent encryption (WireGuard or IPsec) - SecurityContext and PodSecurityContext settings
Domain 5: Supply Chain Security (20%)¶
- Minimize base image footprint
- Understand your supply chain (e.g., SBOM, CI/CD, artifact repositories)
- Secure your supply chain (permitted registries, sign and validate artifacts, etc.)
- Perform static analysis of user workloads and container images (e.g., Kubesec, KubeLinter)
Key Concepts: - Distroless and minimal base images - Image signing with cosign/Sigstore and Notary - Admission controllers for image policy (ImagePolicyWebhook) - Static analysis tools (Kubesec, KubeLinter, conftest) - SBOM generation and inspection (Syft, trivy sbom, bom) - Image vulnerability scanning (Trivy, Grype, Clair) - Private container registries and image pull policies - Dockerfile best practices for security
Domain 6: 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
Key Concepts: - Falco for runtime threat detection - Sysdig for system call monitoring - Container immutability (read-only root filesystem) - Kubernetes audit logging and audit policies - Log aggregation and analysis - Threat detection across the attack lifecycle - Forensic analysis of compromised containers
Core Tools and Technologies¶
Security Scanning and Analysis¶
- Trivy - Comprehensive vulnerability scanner for containers, filesystems, and IaC
- kubesec - Security risk analysis for Kubernetes resources
- kube-bench - CIS Kubernetes Benchmark checker
- Falco - Cloud-native runtime security and threat detection
- OPA/Gatekeeper - Policy engine for Kubernetes admission control
- AppArmor - Linux kernel security module for mandatory access control
- seccomp - System call filtering for containers
Kubernetes-Native Security¶
- NetworkPolicy - Pod-level network segmentation
- RBAC - Role-based access control for API authorization
- Pod Security Admission - Pod security standards enforcement
- Secrets - Sensitive data management in Kubernetes
- Audit Logging - API server request logging and monitoring
- ServiceAccount - Identity for pods accessing the API server
Runtime and Supply Chain¶
- gVisor - Application kernel sandbox for containers
- Kata Containers - Lightweight VMs for container isolation
- cosign - Container image signing and verification
- Notary - Trust management for container images
- Istio/Linkerd - Service mesh for mTLS and traffic encryption
Security Best Practices Quick Reference¶
Pod Security¶
- Never run containers as root (use
runAsNonRoot: true) - Always set
readOnlyRootFilesystem: truewhen possible - Drop all capabilities and add only what is needed
- Use Pod Security Admission with Restricted profile
- Set resource limits to prevent DoS attacks
- Avoid privileged containers and hostPID/hostNetwork
Network Security¶
- Default deny all ingress/egress with NetworkPolicy
- Allow only required communication paths
- Use TLS for all external communication
- Implement mTLS for pod-to-pod encryption
- Restrict access to cloud metadata endpoints
Secret Management¶
- Enable encryption at rest for Secrets in etcd
- Use external secret management (Vault, cloud KMS)
- Never store secrets in container images or environment variables when avoidable
- Rotate secrets regularly
- Use short-lived tokens where possible
Image Security¶
- Use minimal base images (distroless, Alpine)
- Scan images in CI/CD pipelines before deployment
- Enforce image signing and verification
- Use specific image tags, never
latest - Restrict allowed registries with admission controllers
Hands-on Practice Requirements¶
CRITICAL: This is a performance-based exam. You MUST practice hands-on.
Essential Practice Tasks¶
- Create and apply NetworkPolicies for pod isolation
- Configure RBAC roles and bindings with least privilege
- Set up and analyze Falco rules for runtime detection
- Write and apply AppArmor and seccomp profiles
- Configure Pod Security Admission for namespace enforcement
- Scan images with Trivy and remediate vulnerabilities
- Enable and configure Kubernetes audit logging
- Set up OPA Gatekeeper with custom constraints
- Configure Secrets encryption at rest in etcd
- Run kube-bench and remediate CIS benchmark findings
Practice Environments¶
- killer.sh - CKS exam simulator (included with exam purchase)
- KodeKloud CKS Course - Hands-on labs and practice environment
- Local clusters - Use kubeadm or kind for practice
- Kubernetes playground - Killercoda free scenarios
Study Strategy¶
Recommended Timeline: 4-6 Weeks (with active CKA)¶
Week 1-2: Security Foundations - Review CKA concepts and ensure cluster administration skills are solid - Study Cluster Setup and Cluster Hardening domains - Practice NetworkPolicies, RBAC, and CIS benchmarks - Hands-on: Run kube-bench and remediate findings
Week 3-4: Advanced Security - Study System Hardening and Microservice Vulnerabilities domains - Practice AppArmor, seccomp, and PSA configuration - Learn OPA Gatekeeper constraint templates - Hands-on: Implement pod security standards across namespaces
Week 5-6: Supply Chain and Runtime - Study Supply Chain Security and Monitoring domains - Practice Trivy scanning and image policy enforcement - Learn Falco rules and audit logging - Hands-on: Full security audit of a practice cluster
Exam Day Tips¶
- Read each task completely before starting
- Use
kubectl explainand the allowed documentation - Manage your time - move on if stuck on a task
- Use imperative commands when faster than YAML
- Verify your work before moving to the next task
- Bookmark frequently used documentation pages
Common Exam Scenarios¶
Scenario 1: NetworkPolicy Isolation¶
- Create a NetworkPolicy that allows only specific pod-to-pod communication
- Block all ingress/egress by default, then allow specific paths
Scenario 2: RBAC Misconfiguration¶
- Identify overly permissive RBAC bindings
- Create least-privilege roles for specific service accounts
Scenario 3: Runtime Threat Detection¶
- Configure Falco to detect suspicious activities
- Analyze Falco alerts and identify compromised containers
Scenario 4: Image Security¶
- Scan container images and fix vulnerabilities
- Configure admission controllers to block unsigned or vulnerable images
Scenario 5: Audit and Compliance¶
- Enable and configure audit logging
- Analyze audit logs to identify unauthorized access
Study Resources¶
Official Resources¶
- CKS Exam Page - Registration and official details
- CKS Exam Curriculum - Official exam objectives
- Kubernetes Security Documentation - Core security concepts
- Kubernetes RBAC Documentation - RBAC reference
- Pod Security Standards - PSA levels and policies
- Network Policies - NetworkPolicy documentation
Recommended Courses¶
- KodeKloud CKS Course - Hands-on focused with practice labs
- Killer Shell CKS Simulator - Included with exam purchase, closest to real exam
- Udemy - CKS by Kim Wuestkamp - Comprehensive with hands-on scenarios
- A Cloud Guru CKS Course - Good theoretical coverage
Practice Platforms¶
- killer.sh - HIGHLY RECOMMENDED, exam simulator included with purchase
- KodeKloud - Interactive labs with guided practice
- Killercoda - Free Kubernetes scenarios
- Local kubeadm clusters - Best for full cluster security practice
Community Resources¶
- r/kubernetes - Reddit community for Kubernetes discussions
- CNCF Slack - Official CNCF community channels
- Kubernetes Security SIG - Security Special Interest Group
Good luck with your CKS certification!
Remember: This exam is 100% hands-on. Reading alone will not prepare you. You need to practice every task type in a real cluster environment. Speed matters - practice until the commands and YAML patterns are second nature. The CKS builds directly on CKA skills, so ensure your cluster administration fundamentals are solid before focusing on security-specific topics.