T TestsWorld

Free practice test · Kubernetes / CNCF

Certified Kubernetes Security Specialist (CKS)

250 questions with a timer and instant results. Practise in short drills or take the full test, then see exactly which topics need work.

📝 250 questions ⏱ 120 min for all 🎯 Pass mark 66% 💸 Free, unlimited attempts
⚡
Short drills

Pick 10, 25 or 50 questions for a quick round, or take all of them.

💡
Learn as you go

Practice mode shows the right answer and an explanation for every question.

📊
See your weak spots

Your result shows strong and weak topics and what to read next.

What's in the test

Easy 37% Medium 54% Hard 8%
Default-Deny NetworkPolicy 3NetworkPolicy Behavior 1NetworkPolicy Enforcement 1CIS Benchmark 4Ingress TLS 4API Server Hardening 5Cluster Network Exposure 4Kubelet Hardening 1Binary Verification 2Image Signing 3Audit Logging 1Admission Controllers 2

Sample questions with answers

6 of the 250 questions in Certified Kubernetes Security Specialist (CKS). Try each one, then open the answer.

  1. Question 1
    Which NetworkPolicy posture is the recommended baseline for a multi-tenant cluster?
    • A. Default-deny ingress and egress, then explicit allows
    • B. Default-allow everywhere, then block known-bad pods later
    • C. No NetworkPolicy; rely on namespaces for isolation
    • D. Deny ingress only and leave all egress wide open
    Show answer
    Answer: A. Default-deny ingress and egress, then explicit allows
    Default-deny in both directions forces explicit allow-listing for every needed flow. Without it, a compromised pod can scan and connect freely. PSS doesn't enforce network isolation — NetworkPolicy must do it. Apply via baseline NetworkPolicy resources in every namespace or via a policy operator.
  2. Question 2
    Which is the MAIN reason DNS often breaks after applying default-deny egress?
    • A. Pods can no longer reach CoreDNS on port 53
    • B. kube-proxy stops programming its iptables rules
    • C. Pods lose their IP addresses until restarted
    • D. etcd becomes unreachable from the worker nodes
    Show answer
    Answer: A. Pods can no longer reach CoreDNS on port 53
    Default-deny egress blocks ALL egress including the kube-dns Service. Symptom: 'nslookup' fails in pods. Fix: add an egress rule allowing namespaceSelector kube-system + podSelector k8s-app=kube-dns (or coredns), ports UDP/TCP 53. Often the first thing missed.
  3. Question 3
    Which BEST describes how multiple NetworkPolicies on a single pod combine?
    • A. Additive: allowed flows from all policies are unioned
    • B. The first policy created wins
    • C. The last policy applied overrides the earlier ones
    • D. Subtractive: policies remove flows
    Show answer
    Answer: A. Additive: allowed flows from all policies are unioned
    NetworkPolicies only ALLOW (no explicit deny). When multiple policies match a pod, their allow rules union. Pods become deny-by-default on a direction the moment ANY policy selects them and lists that direction in policyTypes. Layering is intentional — baseline + per-app.
  4. Question 4
    Which CNI plugin is REQUIRED for Kubernetes NetworkPolicy enforcement?
    • A. An enforcing CNI, e.g. Calico or Cilium
    • B. Flannel alone, with no add-on
    • C. kube-proxy running in IPVS mode
    • D. The kubelet built-in packet filter
    Show answer
    Answer: A. An enforcing CNI, e.g. Calico or Cilium
    Kubernetes defines the API; enforcement is the CNI's job. Flannel alone is permissive — install Calico in policy-only mode alongside Flannel, or switch to a fully policy-aware CNI like Calico, Cilium, or Antrea. Verify with 'kubectl get networkpolicies' and a simple test.
  5. Question 5
    Which NetworkPolicy mistake commonly leaves egress wide open to the internet?
    • A. Not adding any default-deny egress policy
    • B. Using the wrong CIDR notation in ipBlock
    • C. Ordering the rules wrongly inside a single policy
    • D. A typo in a pod label used by podSelector
    Show answer
    Answer: A. Not adding any default-deny egress policy
    Many teams apply default-deny ingress but forget egress. A compromised pod can then exfiltrate to anywhere. Apply default-deny egress + explicit allow for DNS, intra-cluster services, and any external endpoints the app legitimately needs. Test with 'kubectl exec — curl' from a pod.
  6. Question 6
    Which tool runs the CIS Kubernetes Benchmark checks against a cluster?
    • A. kube-bench
    • B. kubectl audit
    • C. kube-score
    • D. kubeval
    Show answer
    Answer: A. kube-bench
    kube-bench is a free Go-based tool that checks API server, scheduler, controller-manager, etcd, kubelet, and policy settings against the CIS Kubernetes Benchmark. Run on each control plane and worker node. Reports PASS/FAIL/WARN per check with remediation guidance.

Want all 250 with a timer and a topic-wise result? Start the free test at the top of this page.

About this practice test

The Certified Kubernetes Security Specialist (CKS) is the most advanced credential in the Kubernetes certification arc — issued by the Cloud Native Computing Foundation (CNCF) and administered by the Linux Foundation. It validates your ability to secure container-based applications and Kubernetes platforms at every layer: cluster hardening, system hardening, runtime detection, and the software supply chain.

This practice test gives you 250 scenario-style multiple-choice questions with detailed, multi-sentence explanations. Questions reference real tools (Falco, Trivy, Cosign, OPA Gatekeeper, Kyverno, AppArmor, seccomp, audit-policy), real configuration files, and real kubectl and OS commands. The bank follows the current CKS curriculum and matches the exam blueprint's domain weighting.

What the CKS exam covers

  • Cluster Setup (10%) — restricting network access to Kubernetes nodes, NetworkPolicies for cluster components, CIS-benchmark hardening of cluster components, Ingress with TLS, GUI element security (e.g., Kubernetes dashboard), and verifying platform binaries before use.
  • Cluster Hardening (15%) — restricting access to the Kubernetes API, role-based access control (RBAC) for least privilege, exercising caution in using ServiceAccounts (default disabled, mountServiceAccountToken: false), updating Kubernetes frequently to patch CVEs.
  • System Hardening (15%) — minimizing host OS footprint to reduce attack surface, minimizing IAM roles on cloud nodes, minimizing external network access from nodes, kernel hardening tools (AppArmor, seccomp, Linux capabilities).
  • Minimize Microservice Vulnerabilities (20%) — appropriate Pod Security Standards (Pod Security Admission), managing Kubernetes Secrets securely (encryption at rest, external secret stores), isolation techniques (sandboxed runtimes like gVisor / Kata Containers, namespace boundaries), implementing Pod-to-Pod encryption (Cilium WireGuard, Istio mTLS, Linkerd).
  • Supply Chain Security (20%) — minimizing base-image footprint (distroless, scratch, multi-stage builds), understanding supply-chain risks (typosquatting, dependency confusion), allowlist-based image registries, signing and verifying images (Cosign, Sigstore), continuous static analysis of workloads, scanning images and dependencies for known vulnerabilities (Trivy, Grype, Snyk).
  • Monitoring, Logging and Runtime Security (20%) — behavioral analytics at the host and container level to detect malicious activity, threat detection within physical infrastructure / apps / network / data / users / workloads, syscall-level detection (Falco), immutable infrastructure for containers (readOnlyRootFilesystem), enabling Kubernetes audit logs and analyzing them.

Exam format on the Linux Foundation

The live CKS is a 2-hour performance-based exam — you work in real Linux terminals on multiple Kubernetes clusters and solve hands-on security tasks. The passing score is 66%. The exam is open-book against the official Kubernetes documentation (kubernetes.io and kubernetes.io/blog only) plus the documentation for specifically allowed tools (Falco, Trivy, AppArmor, etc.). Recertification is required every 2 years.

Prerequisite: CKS requires a current, valid CKA certification. CKS questions assume CKA-level knowledge — RBAC syntax, NetworkPolicy structure, kubectl fluency — and build security depth on top of that foundation.

Our 250-question MCQ bank is the knowledge layer of preparation — covers every concept, tool, command, and YAML structure across the six CKS domains, so your hands-on practice in killer.sh simulators or your own cluster focuses on the operational muscle memory the live exam demands.

Who should take this?

Kubernetes administrators, platform engineers, DevSecOps engineers, security engineers building on Kubernetes, and anyone responsible for the security posture of production clusters. CNCF recommends at least 12 months of practical Kubernetes administration experience plus security expertise (network security, container security, host hardening). CKS rounds out the Kubernetes certification arc that begins with CKA and CKAD.

Free to attempt with a TestsWorld account. No card required.

Before you start: device, fullscreen and proctoring