Study Guide

CKS Exam Study Guide: Prepare for Kubernetes Security Tasks

Build a CKS preparation plan around the six exam domains, then practice separating API permissions from network controls with a worked policy task.

Updated September 202613 min readStudy GuideCloud Native Exam Lab
Samuel Foster

Samuel Foster

Cloud Native Exam Lab Editorial Team

The CKS tests Kubernetes security through command-line tasks across six domains. Build a lab plan around those domains, practice configuring each control, and check the resulting cluster behavior. The RBAC and NetworkPolicy examples below show how to choose the correct control and verify it.

What the CKS certifies, and the CKA prerequisite

The CKS is a performance-based certification from CNCF and the Linux Foundation covering security best practices for container-based applications and Kubernetes platforms during build, deployment and runtime, and you must have passed the CKA before you can attempt it.

The Certified Kubernetes Security Specialist program was created by the Cloud Native Computing Foundation in collaboration with The Linux Foundation. It is designed to show that a holder can secure container-based applications and Kubernetes platforms across build, deployment and runtime.

This is not a multiple-choice test. The exam is online and proctored, and you solve tasks from a command line running Kubernetes while a live proctor monitors via webcam and screen sharing.

You must have taken and passed the Certified Kubernetes Administrator exam before attempting the CKS. CNCF notes that the CKA does not have to still be active, so an expired CKA still qualifies you to sit the security exam.

Official sources cited: Certified Kubernetes Security Specialist (CKS) | CNCF — About the program; Exam details; Frequently Asked Questions: CKA and CKAD & CKS — Scoring, version, languages, validity, simulator sections

Format, scoring and cost

Expect 15 to 20 performance-based tasks in 2 hours, with a passing score of 67 percent. Check the current price and inclusions for the registration option you choose.

The exam consists of 15 to 20 performance-based tasks solved on the command line, and you have 2 hours to complete them. A score of 67 percent or above is required to pass, and results are emailed within about 24 hours of completion.

Check the current registration price and package inclusions before purchasing. Retakes and simulator access depend on the registration option.

The Linux Foundation FAQ currently lists Kubernetes v1.35 for the exam environment. The curriculum PDF is named v1.34; its domain outline and the runtime version describe different things. Recheck the runtime version before your exam and use it for your lab.

ItemVerified value
Tasks15-20 performance-based tasks
Duration2 hours
Passing score67%
DeliveryOnline, remotely proctored, command line
EnvironmentKubernetes v1.35

Official sources cited: Important Instructions: CKS — Exam Details; Exam Technical Instructions; CKS Environment; Frequently Asked Questions: CKA and CKAD & CKS — Scoring, version, languages, validity, simulator sections; Certified Kubernetes Security Specialist (CKS) | CNCF — About the program; Exam details; Certified Kubernetes Security Specialist (CKS) - Linux Foundation Education — Domains & Competencies; Exam Details; pricing and validity

The six domains in the v1.34 curriculum

The current curriculum lists six domains weighted 15, 15, 10, 20, 20 and 20 percent.

The table below maps each domain to its weight and the competencies listed in the official curriculum, which the Linux Foundation certification page repeats. Weights tell you where to spend practice time: Minimize Microservice Vulnerabilities, Supply Chain Security, and Monitoring, Logging and Runtime Security together carry 60 percent.

Use the current curriculum PDF for the domain weights. Recheck it before planning your final practice sessions because the outline can change.

DomainWeightCurriculum competencies
Cluster Setup15%Network security policies for cluster-level access; CIS benchmark review of etcd, kubelet, kubedns, kubeapi; Ingress with TLS; protect node metadata and endpoints; verify platform binaries before deploying
Cluster Hardening15%RBAC to minimize exposure; caution with service accounts, e.g. disable defaults and minimize new permissions; restrict Kubernetes API access; upgrade Kubernetes to avoid vulnerabilities
System Hardening10%Minimize host OS footprint; least-privilege identity and access management; minimize external network access; kernel hardening tools such as AppArmor and seccomp
Minimize Microservice Vulnerabilities20%Pod security standards; manage Kubernetes secrets; isolation techniques such as multi-tenancy and sandboxed containers; Pod-to-Pod encryption with Cilium or Istio
Supply Chain Security20%Minimize base image footprint; understand the supply chain (SBOM, CI/CD, artifact repositories); secure it with permitted registries and signed, validated artifacts; static analysis of workloads and images with tools like Kubesec and KubeLinter
Monitoring, Logging and Runtime Security20%Behavioral analytics to detect malicious activity; threat detection across infrastructure, apps, networks, data, users and workloads; investigate attack phases and bad actors; container immutability at runtime; Kubernetes audit logs to monitor access

Official sources cited: CNCF official CKS_Curriculum v1.34.pdf — Page 2, domain list and weights; Certified Kubernetes Security Specialist (CKS) - Linux Foundation Education — Domains & Competencies; Exam Details; pricing and validity; Certified Kubernetes Security Specialist (CKS) | CNCF — About the program; Exam details

Documentation you can open during the exam

Inside the exam VM, you may use its browser to read the specified documentation sites. The rules explicitly allow searching the Kubernetes documentation, but prohibit opening external search results.

For the CKS specifically, the permitted list includes the Kubernetes documentation and blog, the Falco documentation, the bom CLI reference, etcd documentation, the NGINX Ingress Controller documentation, and the Cilium and Istio documentation. Task-specific links may also appear in a Quick Reference box.

You may also review exam content instructions in the terminal, documents installed by the distribution under /usr/share and its subdirectories, and use or install packages that are part of the distribution.

Practice navigating these exact pages before exam day. Fast lookup of, say, a Falco rule example or an etcd flag preserves time for the verification steps that actually earn points.

Official sources cited: Resources Allowed: All LF Certification Programs — Certified Kubernetes Security Specialist (CKS) section

RBAC: minimizing exposure in Cluster Hardening

Kubernetes RBAC guidance is explicit: grant the minimum permissions at the narrowest scope, prefer namespace-level RoleBindings, avoid wildcards and cluster-admin, and treat several common grants as hidden privilege-escalation paths.

Start with scope. Assign permissions at the namespace level where possible, and use RoleBindings rather than ClusterRoleBindings so rights apply only inside one namespace. Avoid wildcard permissions, because in an extensible system a wildcard also covers object types created in the future, and avoid cluster-admin accounts except where specifically needed.

Never add users to the system:masters group: membership bypasses all RBAC checks and cannot be revoked by removing bindings. Similarly, review bindings for the system:unauthenticated group and remove them where possible.

Service account tokens deserve the same discipline. Kubernetes recommends disabling default token auto-mounting by setting automountServiceAccountToken: false, either on the service account or on the pod; a pod-level setting overrides the service account setting, so workloads that genuinely need a token can still mount one.

Know the escalation paths the documentation calls out. Granting list or watch on Secrets reveals their contents just as get does, because a list response includes the Secret data. Permission to create workloads implicitly grants access to mountable Secrets and ConfigMaps and to the API access of any service account in the namespace. The escalate, bind and impersonate verbs each let a holder obtain rights they were not directly granted, and get on nodes/proxy is not read-only because it reaches the kubelet API.

Finally, review RBAC settings periodically. If an attacker recreates a deleted user's name, the new account inherits the bindings that were left behind.

Official sources cited: Role Based Access Control Good Practices | Kubernetes — General good practice; privilege escalation risks

NetworkPolicy: deny-by-default isolation and the DNS trap

NetworkPolicy controls supported traffic to and from selected pods. Policies add allowed traffic together; they do not override another policy with a deny rule. Restrictive egress rules also need to account for DNS.

Two rules shape everything you write. First, policies are additive: for a given direction, the allowed connections are the union of what all applicable policies allow, and order does not matter. Second, a connection from one pod to another is allowed only if both the source pod's egress policy and the destination pod's ingress policy permit it. If either side denies, the connection does not happen.

A pod becomes isolated for ingress when any policy selects it and lists Ingress in policyTypes; the same applies to egress. A policy with an empty podSelector selects every pod in its namespace, which is how default-deny policies work. Note that creating a NetworkPolicy has no effect unless your CNI plugin enforces NetworkPolicy.

The classic failure mode is silent. Once your restrictive egress policy selects the workload pods, their DNS queries are dropped, name resolution fails, and even connections you intended to allow break when they are made by hostname. Kubernetes documents this directly: a default deny-all egress policy blocks DNS traffic, so you must add a separate policy allowing egress to the cluster's DNS service.

Selector YAML has one more trap. A single from or to element containing both namespaceSelector and podSelector selects pods with that label inside those namespaces. Writing the same two selectors as separate list elements instead allows pods matching either condition, which is a much broader rule. Use kubectl describe to see how Kubernetes interpreted your policy.

Also remember that NetworkPolicies operate at layer 3/4 on TCP, UDP and optionally SCTP. They cannot, for example, enforce TLS or target services by name, so tasks about encryption or mesh traffic point to tools like Istio or Cilium rather than NetworkPolicy.

  • Check that your CNI plugin enforces NetworkPolicy before crediting a policy with any effect
  • Check whether restrictive egress rules permit the DNS path your cluster actually uses
  • Keep namespaceSelector and podSelector in the same to/from element when you mean AND, not OR
  • Verify interpretation with kubectl describe rather than assuming the YAML reads the way you wrote it

Official sources cited: Network Policies | Kubernetes — Isolation semantics; default policies; selector behavior

Worked practice task: isolate payments pods and permit DNS

Select the payments pods, isolate their ingress, then add egress isolation with a rule permitting only the stated DNS pods on TCP and UDP port 53.

Use a disposable cluster. The task assumes no other policies grant access to the payments pods, and it tests ordinary pod traffic rather than host-network traffic.

Hands-on practice task

Assume a cluster whose CNI plugin enforces NetworkPolicy. In namespace orders, pods labeled app=payments must be hardened. Task 1: write a NetworkPolicy named deny-ingress-payments that blocks all inbound connections to those pods unless another policy explicitly allows them, while leaving their outbound behavior unchanged. Task 2: write a second policy named isolate-payments that also blocks outbound connections from the payments pods, except DNS. Assume the cluster DNS runs as pods labeled k8s-app: kube-dns in the kube-system namespace and answers on UDP and TCP port 53, and that kube-system carries the standard kubernetes.io/metadata.name: kube-system label. For this exercise, there are no other policies selecting payments pods; the DNS pods allow incoming queries. All test pods use ordinary pod networking, not hostNetwork. DNS queries are sent directly to the DNS pod IPs, so NodeLocal DNS and Service-address translation are outside this exercise. Test from other pods whose egress is unrestricted, using a payments application port known to be listening before the policy is applied. For Task 2, keep the first policy in place. Treat node-local traffic and reply traffic according to the standard NetworkPolicy exceptions.

Show the full solution

Task 1: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: deny-ingress-payments namespace: orders spec: podSelector: matchLabels: app: payments policyTypes: - Ingress Task 2: apiVersion: networking.k8s.io/v1 kind: NetworkPolicy metadata: name: isolate-payments namespace: orders spec: podSelector: matchLabels: app: payments policyTypes: - Ingress - Egress egress: - to: - namespaceSelector: matchLabels: kubernetes.io/metadata.name: kube-system podSelector: matchLabels: k8s-app: kube-dns ports: - protocol: UDP port: 53 - protocol: TCP port: 53

For Task 1, any NetworkPolicy that selects the payments pods and lists Ingress in policyTypes isolates them for ingress; with an empty ingress section, no inbound connection is allowed except traffic from the pod's own node, and egress isolation is untouched because Egress is not listed. For Task 2, adding Egress to policyTypes isolates outbound traffic, and because a default deny-all egress policy also blocks DNS, the single egress rule allows port 53 over both UDP and TCP to the DNS pods. The namespaceSelector and podSelector sit in the same to element, so the rule matches only pods carrying k8s-app: kube-dns inside namespaces labeled kubernetes.io/metadata.name: kube-system; splitting them into two list elements would instead allow pods labeled k8s-app: kube-dns in orders, plus every pod in kube-system. Verify each task by observation: after Task 1, a test connection from another namespace's pod must fail; after Task 2, query a stated DNS pod directly from a payments pod and verify that an attempted connection to another pod on a non-DNS port is blocked. Keep the test destination listening and otherwise reachable so the policy is the reason the test fails.

Official sources cited: Network Policies | Kubernetes — Isolation semantics; default policies; selector behavior

Exam-day mechanics in the PSI environment

Each task is completed on a designated SSH host, you must return to the base node after every task, and the base node must never be rebooted.

An infobox at the start of each task names the host to work on. Reach it with ssh, and return to the node named base once the task is done. Nested SSH is not supported. You can gain elevated privileges with sudo -i or run individual commands with sudo.

The SSH hosts come with kubectl (including a k alias and Bash autocompletion), yq, curl, wget, and man pages pre-configured. The base system has none of these tools, which is one more reason all work happens on the designated host.

Learn the keyboard rules before exam day: do not reboot the base node, because the exam environment will not restart if you do; use Ctrl+Alt+W instead of Ctrl+W, which would close a browser tab; and inside the Linux terminal copy and paste with Ctrl+Shift+C and Ctrl+Shift+V. The INSERT key is disabled on the remote desktop, so press i to enter insert mode in vi and Esc to leave it.

Expect remote proctoring through the PSI Secure Browser, with system and environment requirements published in the exam instructions. Check your machine and room against those requirements in advance rather than discovering a blocker at check-in.

Official sources cited: Important Instructions: CKS — Exam Details; Exam Technical Instructions; CKS Environment

A preparation sequence and your next steps

Refresh core administration first, then work through the curriculum domain by domain with verified enforcement demos, then run timed mixed drills and the official simulator; treat reading as support and typed, tested configuration as the core skill.

Because every CKS task assumes CKA-level fluency, start by making object creation and inspection automatic. Then take one curriculum domain per study session and end each session by proving the control works: a violating pod rejected, disallowed traffic dropped, an audit event captured. Check the requested result rather than stopping when a configuration command succeeds.

For the domains this guide covers less deeply, work directly from the official curriculum bullets: pod security standards, secrets management and isolation for microservices; SBOMs, permitted registries, artifact signing and static analysis for supply chain; and behavioral analytics, audit logs and runtime immutability for the monitoring domain. AppArmor and seccomp belong to System Hardening. These are preparation priorities mapped to the curriculum; the exam tasks themselves will define the exact procedures.

If your registration includes the Killer.sh simulator, the FAQ describes two attempts with 36 hours of access per activation. CKS-SINGLE registrations do not include it. Use any included simulation to identify gaps before your final lab sessions.

Exam tasks are available in English, Simplified Chinese and Japanese, and you can switch languages during the exam. Certification is valid for two years, renewed by retaking and passing the exam before expiry, and under the CARE program a CKS earned or recertified on or after June 18, 2026 automatically extends a holder's CKA to the same expiry date.

  • Confirm the current curriculum version and Kubernetes version on the official pages before planning
  • Refresh CKA-level object handling until it is automatic
  • Drill one domain per session, ending with an observed enforcement result
  • Run timed mixed drills, then the two simulator attempts, and revisit only the domains where enforcement failed
  • Verify your machine, room and ID against the published requirements before exam day

Official sources cited: CNCF official CKS_Curriculum v1.34.pdf — Page 2, domain list and weights; Frequently Asked Questions: CKA and CKAD & CKS — Scoring, version, languages, validity, simulator sections; Certified Kubernetes Security Specialist (CKS) - Linux Foundation Education — Domains & Competencies; Exam Details; pricing and validity; Important Instructions: CKS — Exam Details; Exam Technical Instructions; CKS Environment; Network Policies | Kubernetes — Isolation semantics; default policies; selector behavior; Role Based Access Control Good Practices | Kubernetes — General good practice; privilege escalation risks

Official sources cited

Logistics verified against official sources, September 2026:

Your next steps

FAQ

Frequently Asked Questions

Practical answers to help you apply the guidance for Certified Kubernetes Security Specialist (CKS).

Do I need an active CKA to take the CKS?
You must have taken and passed the CKA before attempting the CKS, but it does not need to still be active. An expired CKA still satisfies the prerequisite.
How long is the CKS valid and how do I renew it?
The certification is valid for two years from the award date. You renew by retaking and passing the exam before it expires, and the renewed certification runs for a further two years from the pass date. Under the CARE program, a CKS earned or recertified on or after June 18, 2026 also extends your CKA expiry to match the new CKS date.
Is the practice simulator included with registration?
Standard CKS registration includes two Killer.sh simulation attempts, each with 36 hours of access from activation. Simulator access is not included in CKS-SINGLE exam registrations, so check the terms of the specific package you buy.
Which languages can I take the CKS in?
Exam tasks are available in English, Simplified Chinese and Japanese. The exam defaults to your browser's preferred language when available, and you can switch languages during the exam from the language control dropdown.

Keep Reading

Related Study Guides

Explore related guides and preparation topics.