CKS practice questions: secure a live Kubernetes cluster
The CKS is about hardening a cluster you already know how to run: lock down RBAC and ServiceAccounts, write NetworkPolicies, enforce Pod Security, turn on audit logging and encryption at rest, fix what kube-bench reports and keep risky images out. Like the CKA, it is two hours of hands-on tasks.
Each question below opens a live cluster with a security gap to close. The grader checks the cluster itself (the policy is enforced, the flag is set, the token is gone), so a half-done fix does not pass.
The CKS mocks put it together: timed, exam-style tasks across the CKS domains with a 67% pass mark.
Mock exams
Two hours, exam-style security tasks, 67% to pass.
40 of 95 labs
See all 95Easy
- Secrets as Files, Not Environment Variables 7 min
- Verify Kubernetes Binaries Before Installing 6 min
- Default-Deny a Namespace 4 min
- No Token Where None Is Needed 4 min
- Close an Anonymous Door 4 min
- Use the Runtime's Default seccomp Profile 4 min
- Mount a Secret as Files 4 min
- A Read-Only Root Filesystem 4 min
- Harden a Dockerfile 5 min
- Check a Binary Against Its Checksum 4 min
- Move an Ingress to HTTPS 4 min
- Rotate an Expired Ingress Certificate 4 min
- Take Away Impersonation 5 min
Medium
- Make a Container Immutable 9 min
- Keep Pods Away From the Metadata Service 8 min
- Pass the Security Linter 10 min
- Block the Metadata Endpoint 5 min
- Serve an Ingress Over TLS 6 min
- Narrow a Wildcard Role 5 min
- Take a Pod Off the Host's Namespaces 5 min
- Enforce a Pod Security Standard 5 min
- Run as an Unprivileged User 5 min
- Fix What the Linter Flags 6 min
- Act on a Runtime Security Alert 5 min
- Who Deleted the Secret? 6 min
- Turn Off Profiling on the Control Plane 6 min
- Re-enable NodeRestriction 5 min
- Apply a Node's seccomp Profile 5 min
- Close a Kubelet to Anonymous Requests 5 min
Hard
- Zero-Trust Networking with Default Deny 15 min
- Enforce the Restricted Pod Security Standard 18 min
- Only Images From the Company Registry 12 min
- Fix What kube-bench Found on the Control Plane 14 min
- Turn On API Server Audit Logging 15 min
- Encrypt Secrets at Rest 15 min
- Reject Unpinned Images 7 min
- Fix and Enable an Encryption Config 8 min
- Enable an Audit Policy 7 min
- A Password in the Logs 9 min
- A Parameterised Admission Policy 7 min