Limited-Time Offer: Enjoy 50% Savings! - Ends In 1d 2h 28m 57s Coupon code: 50OFF

Linux Foundation CKS Exam Questions & Answers (November 2026)

Certified Kubernetes Security Specialist exam questions with 17 free practice questions and explained answers. Updated November 28, 2026. ยท See all Linux Foundation exams

Answer 17 scenario questions on this page and see your score as you go. No sign-up needed.

Exam Details

Exam Code
CKS
Vendor
Linux Foundation
Questions
15-20 performance-based tasks
Duration (minutes)
120
Languages
English, Simplified Chinese, and Japanese
Delivery
Online, remotely proctored, performance-based tasks completed from a command line running Kubernetes
Question Types
Single Choice
Official Page
View Exam Page
1

Cluster Setup

15% of the exam

This topic covers security controls for cluster networking, component configuration, and application entry points. Candidates must be able to restrict network access, review Kubernetes components against the CIS Benchmark, and configure Ingress exposure to match access requirements.

Question 1 of 17 Single Choice

A production cluster uses a CNI plugin that enforces Kubernetes NetworkPolicies. In one namespace, frontend pods receive requests through an ingress controller, and API pods serve only the frontend. Both workloads need DNS resolution, but neither should have other network access. The team wants restrictions enforced at the pod level without disrupting those required flows.

Which NetworkPolicy design best meets the requirements?

Show Answer

Correct Answer

A

Option A is correct because it limits each workload to its required peer while permitting DNS egress. Option B is not correct because unrestricted frontend access and broad API ingress do not enforce the stated boundaries. Option C is not correct because it blocks required traffic. Option D is not correct because ClusterIP Services do not restrict pod egress.

Question 2 of 17 Single Choice

A team has installed a Kubernetes cluster and must document its initial security review before production workloads are admitted. The control plane is self-managed, and worker nodes run the kubelet. The security lead needs evidence about component settings for etcd, kube-apiserver, kubelet, and cluster DNS, while avoiding changes that could conflict with the installed Kubernetes release.

Which action provides the most appropriate review of the cluster component configuration?

Show Answer

Correct Answer

A

Option A is correct because it checks both control-plane and worker configuration against the applicable benchmark and uses the findings for review. Option B is not correct because it omits control-plane components such as etcd and kube-apiserver. Option C is not correct because pod health does not verify security settings. Option D is not correct because benchmark recommendations require version-aware assessment before changes.

Question 3 of 17 Single Choice

A retail cluster uses ingress-nginx, and its controller preserves client addresses and supports source-range restrictions. The storefront must remain reachable by the public at shop.example, while the admin application at admin.shop.example must accept traffic only from the corporate CIDR. Both hostnames require HTTPS, and neither backend should be exposed through a separate public Service.

Which Ingress configuration best satisfies the exposure requirements?

Show Answer

Correct Answer

A

Option A is correct because separate Ingress resources let the admin hostname use the source-range restriction without limiting public storefront access, and TLS protects both hosts. Option B is not correct because the restriction can also block storefront clients. Option C is not correct because DNS does not restrict access and the Service bypasses Ingress controls. Option D is not correct because it provides no corporate access path.

2

Cluster Hardening

15% of the exam

This topic covers reducing unnecessary access to the Kubernetes API, limiting ServiceAccount permissions, and keeping Kubernetes components on supported releases. Candidates must choose controls that restrict access to the required scope and plan updates without violating version-skew rules.

Question 4 of 17 Single Choice

An organization operates a cluster with a public control-plane endpoint. Administrators connect from a corporate VPN, worker nodes reach the endpoint through a private subnet, and control-plane health checks use a known source range. A security review finds that the perimeter rule permits TCP 6443 from any IPv4 address. The team must reduce unsolicited API reachability without changing user RBAC or interrupting required traffic.

Which change best reduces unsolicited network access to the Kubernetes API while preserving required connectivity?

Show Answer

Correct Answer

B

Option B is correct because the firewall can restrict the public endpoint to the VPN and the stated node and health-check sources. Option A is not correct because a NetworkPolicy does not control reachability to the externally exposed API endpoint. Option C limits authorized actions but does not restrict network access. Option D changes authentication behavior but leaves the endpoint reachable from any IPv4 address.

Question 5 of 17 Single Choice

A payments namespace runs several applications that use the default ServiceAccount. One Deployment has no code that calls the Kubernetes API, but its pods receive the account's token volume. The platform team wants to prevent this Deployment from receiving API credentials, while leaving other applications unchanged. The change must be made only in this Deployment's pod template, with no new RBAC objects.

Which change meets the requirement while limiting its effect to this Deployment?

Show Answer

Correct Answer

B

Option B is correct because the pod template setting prevents tokens from being mounted into this Deployment's pods without changing the shared ServiceAccount. Option A would also affect other workloads using that account. Option C leaves the token mounted and does not meet the credential-exposure requirement. Option D restricts filesystem writes but does not control token mounting.

Question 6 of 17 Single Choice

A CI maintenance job in the ops-tools namespace uses the inventory-reader service account to list and watch pods only in that namespace. It must not read Secrets or access resources in other namespaces. The account currently receives get, list, and watch permissions on pods and Secrets through a ClusterRoleBinding. The job's API calls cannot be changed.

Which RBAC change best meets the job's requirements while limiting its access?

Show Answer

Correct Answer

A

Option A is correct because the namespaced Role grants only the required pod permissions, and the RoleBinding limits them to inventory-reader in ops-tools. Option B still permits pod access across namespaces through the ClusterRoleBinding. Option C grants unnecessary secret access and uses the wrong service account. Option D also permits pod access across namespaces.

3

System Hardening

10% of the exam

This topic covers reducing the host operating system's attack surface and limiting unnecessary access. Candidates must be able to harden node configurations and apply kernel security controls such as AppArmor and seccomp to workloads.

Question 7 of 17 Single Choice

A team runs a data conversion workload on a four-node worker pool. The workload needs a custom seccomp profile, and its pod specification refers to that profile using the Localhost type. The profile file is currently installed on only two nodes, while the scheduler is free to place the pod on any of the four. The security requirement is to keep the workload unprivileged and enforce the custom profile on every node where it can run.

Which change should the team make to enforce the custom seccomp profile for this workload on every eligible node?

Show Answer

Correct Answer

A

Option A is correct because the workload may be scheduled on any eligible node, and a Localhost profile must be present under the kubelet seccomp profile directory on that node. Option B is not correct because scheduling on another node would leave the profile unavailable. Option C is not correct because RuntimeDefault selects the runtime profile, not the custom one. Option D is not correct because privileged execution does not provide the intended seccomp restriction.

Question 8 of 17 Single Choice

A company provisions worker nodes from a general-purpose Linux image. The nodes run kubelet, containerd, and the required networking components, but they also include an unused print service, a legacy file-transfer daemon, and several packages left from image testing. The team must reduce the host attack surface without interrupting scheduled workloads or preventing administrators from maintaining the nodes.

Which action best reduces the worker nodes' operating system attack surface while preserving their Kubernetes functions?

Show Answer

Correct Answer

A

Option A is correct because removing unused software and services reduces exposed components while preserving dependencies that keep each node operational. Option B is not correct because blocking control-plane traffic can disrupt required node communication. Option C is not correct because kubelet is needed to manage pods on the node. Option D is not correct because adding unnecessary packages increases the node's software footprint.

4

Minimize Microservice Vulnerabilities

20% of the exam

This topic covers reducing risks in workloads through pod security controls, careful handling of Kubernetes Secrets, and isolation with sandboxed container runtimes. Candidates must choose controls that enforce workload requirements and protect sensitive data in the cluster.

Question 9 of 17 Single Choice

A payments namespace accepts deployments from several application teams. The platform team requires every pod to run as a non-root user, forbids privileged containers, and requires privilege escalation to be disabled. Teams should receive a clear admission error if a pod violates these rules, and the policy must apply to new workloads across the namespace.

Which change best enforces the stated requirements for workloads in this namespace?

Show Answer

Correct Answer

A

Option A is correct because enforcing the restricted Pod Security Standard at the namespace level rejects pods that violate its requirements, including running as root or using privileged mode. Option B is not correct because it does not enforce the rules for other workloads. Option C is not correct because PodSecurityPolicy was removed from Kubernetes. Option D is not correct because a NetworkPolicy controls network traffic, not pod security settings.

Question 10 of 17 Single Choice

A production cluster stores database credentials in Kubernetes Secrets, and the credentials are included in etcd backups. The organization has made a KMS v2 provider available to the API server, but the cluster does not yet encrypt Secret resources at rest. The team must protect stored credentials, including Secrets that already exist, without changing how applications consume them.

Which action best protects the Kubernetes Secret data in this situation?

Show Answer

Correct Answer

A

Option A is correct because KMS-backed encryption at rest protects Secret data stored in etcd, and rewriting existing objects applies the new encryption to them. Option B is not correct because Base64 is an encoding, not encryption. Option C is not correct because mounting a Secret as a file does not encrypt its stored representation. Option D is not correct because the Secret type does not provide encryption.

Question 11 of 17 Single Choice

A research platform runs customer-supplied analysis jobs on worker nodes that also host trusted services. The cluster already has a RuntimeClass named gvisor configured with the gVisor runtime handler, and the node pool supports that handler. The team needs to select the sandbox for these jobs while keeping their existing image, service account, and namespace unchanged.

What should the team change to run the untrusted workloads in a container runtime sandbox?

Show Answer

Correct Answer

A

Option A is correct because the existing gvisor RuntimeClass selects the configured gVisor runtime handler for the pod. Option B is not correct because disabling privileged mode does not select a sandboxed runtime. Option C is not correct because hostPID controls process namespace sharing, not runtime isolation. Option D is not correct because a DaemonSet changes pod placement and does not provide a runtime sandbox.

5

Supply Chain Security

20% of the exam

This topic covers controls for trusted container images and workload artifacts, including source restrictions, signature validation, vulnerability scanning, and static analysis. Candidates must select checks that identify unsafe artifacts before release or admission.

Question 12 of 17 Single Choice

A team builds a container image from a Dockerfile and publishes it to a private registry. A recent security review found that the pipeline only checks whether the build succeeds. The release must stop when an image contains vulnerabilities above the team's severity threshold, and the team needs results tied to the exact artifact that will be deployed.

Which pipeline change best addresses the release failure?

Show Answer

Correct Answer

A

Option A is correct because scanning the exact digest identifies known vulnerabilities in the artifact being released, and the pipeline can block it until a corrected image is built and scanned. Option B changes image retrieval behavior, not vulnerability status. Option C makes the artifact less predictable. Option D does not change or inspect the image contents.

Question 13 of 17 Single Choice

A platform team allows workloads to pull from its approved registry, but developers can still deploy any image stored there. The build service signs release images with Cosign, and the security requirement is to reject images that lack a valid signature from that service before a pod is admitted. The team wants to enforce this through Kubernetes admission controls.

Which change most directly ensures that only images signed by the approved build process are admitted?

Show Answer

Correct Answer

B

Option B is correct because Kyverno can verify image signatures at admission using a trusted Cosign public key, so unsigned or incorrectly signed images can be rejected. Option A controls when Kubernetes pulls an image, not who produced it. Option C fixes image identity but does not prove its origin. Option D scans after admission and does not validate a signature.

Question 14 of 17 Single Choice

A development group stores Dockerfiles and Kubernetes deployment manifests in the same repository. Its current pipeline compiles application code and applies manifests to a test cluster, but it has no pre-deployment checks for unsafe build instructions or workload settings. The security team requires automated findings from both file types before a release can proceed.

Which pipeline improvement best provides static analysis for both the container build instructions and the Kubernetes workload definitions?

Show Answer

Correct Answer

A

Option A is correct because Hadolint analyzes Dockerfiles, while kube-linter checks Kubernetes manifests for configuration risks before deployment. Option B, as specified, scans the built image rather than statically checking both source file types. Option C assesses node configuration, not these files. Option D is a narrow text search, and successful kubectl apply does not provide security analysis.

6

Monitoring, Logging and Runtime Security

20% of the exam

This topic covers monitoring process and file behavior in running workloads, reviewing Kubernetes audit records, and responding to runtime threats. Candidates must be able to identify suspicious activity and apply controls that preserve container immutability during execution.

Question 15 of 17 Single Choice

A production payment service runs in a Kubernetes cluster, and its image has not changed during the past week. The on-call team finds an unexpected shell process in one container and a new file under an application directory. They need an alert that identifies this behavior during execution and helps responders identify the affected workload and process.

Which monitoring change best detects the reported behavior with useful workload context?

Show Answer

Correct Answer

B

Option B is correct because Falco can monitor runtime syscall activity and report the shell execution and file write with container and process context. Option A is not correct because API auditing records Kubernetes API activity, not these in-container system calls. Option C is not correct because network controls do not detect local process execution or file changes. Option D is not correct because image scanning examines artifacts, not behavior after deployment.

Question 16 of 17 Single Choice

A security team is investigating who accessed Secret objects in the production namespace and when those requests occurred. The API server audit policy currently has an early rule that omits Secret events, followed by a catch-all rule that records metadata. The team needs user and operation details, but policy requires that Secret request and response bodies are not written to audit logs.

Which audit policy change best satisfies the investigation and data minimization requirements?

Show Answer

Correct Answer

A

Option A is correct because the earlier matching rule records Secret access metadata, including the user and operation, without recording request or response bodies. Option B is not correct because it records more data than required and may expose sensitive response content. Option C is not correct because the earlier matching omit rule takes precedence. Option D is not correct because application logs do not reliably record Kubernetes API access.

Question 17 of 17 Single Choice

A web service container should not modify files supplied by its image after startup, because unexpected changes would complicate incident investigation. The application does need to create temporary cache files under /var/cache/app, and the team does not want to rebuild the application to remove that behavior. The workload is deployed through a Kubernetes Pod specification and can use an ephemeral volume.

Which workload change best prevents changes to the image filesystem while allowing the application to write its cache?

Show Answer

Correct Answer

A

Option A is correct because a read-only root filesystem prevents writes to the container image filesystem, while the mounted emptyDir provides the required writable cache path. Option B is not correct because a liveness probe does not prevent filesystem changes. Option C is not correct because API auditing does not enforce filesystem immutability inside the container. Option D is not correct because network rules do not control local file writes.

Continue Your CKS Preparation

You have seen 17 questions from a full set of 64. Prepare with the CKS dumps PDF and the Web-Based Practice Test.

PDF

  • Compatible with All Devices
  • Printable Format
  • No Download Limits

Practice Test

  • Check your timing and weak areas
  • No Practice Limits
  • Regularly Updated
Get Full Access
  • 100% Money-Back Guarantee
  • 90 Days Free Updates
  • Instant Access

Frequently Asked Questions

Which CKS topics tend to demand the most practical judgment?

Supply Chain Security and Monitoring, Logging and Runtime Security each account for 20 percent of the exam, and both require choosing controls in context. You may need to assess image trust, signature validation, or vulnerability scanning, then recognize suspicious process or file behavior and preserve container immutability. The command-line format makes it important to carry out the control, not just describe it. Practise explaining why each action addresses the stated risk before applying it.

How challenging is the 120-minute performance-based format?

The exam presents 15 to 20 performance-based tasks in 120 minutes, completed from a command line running Kubernetes. That means time can be lost if you hesitate over configuration details or leave a change unverified. Tasks span areas such as network restrictions, ServiceAccount permissions, and workload security, so switching between kinds of problems is part of the challenge. Practise completing a task, checking its effect, and moving on when the requirement is met.

Why can Kubernetes security theory feel easier than the CKS tasks?

Knowing what a control does is different from configuring it correctly for a workload or cluster. The exam asks candidates to apply security requirements through Kubernetes command-line work, including controls for Secrets, sandboxed runtimes, and admission or artifact checks. A general definition may not help you choose the right scope or verify the result. Use a Practice Test to identify which topics need more applied work, then practise those configurations rather than rereading familiar definitions.

What if I cannot always access a Kubernetes lab while studying?

Limited lab access makes it harder to repeat command-line tasks, especially for AppArmor, seccomp, network controls, and runtime security. You can still use non-lab study time to review the required purpose of each control and the steps you need to recall. The Exam4Success PDF is useful for that kind of review away from a cluster. Keep a short list of commands or configuration steps that need hands-on confirmation, then test them when a lab is available.

What practical capabilities does the CKS help candidates develop?

The CKS focuses on securing Kubernetes clusters and workloads, rather than treating security as a separate checklist. Its topics cover reducing API access, hardening hosts, protecting Secrets, checking software artifacts, and responding to runtime threats. Preparing for these tasks can help you connect security requirements with operational changes in a Kubernetes environment. Use the topic outline to identify which of these responsibilities is most relevant to your current work and build practice around that area.

What should I expect to demonstrate if my work involves Kubernetes security?

Expect to demonstrate that you can make and verify security changes from a Kubernetes command line. The exam covers practical concerns such as configuring Ingress exposure, checking components against the CIS Benchmark, applying pod security controls, and reviewing audit records. It also tests decisions around trusted images and runtime behavior. For preparation, choose a sample cluster task and practise documenting the requirement, the control you applied, and how you confirmed the outcome.

What evidence should I look for before booking the CKS?

Look for consistent command-line performance on tasks that reflect CKS work, such as restricting Kubernetes access, applying workload security controls, or checking audit records. You should be able to verify that each change meets the requirement, rather than stopping when a command runs successfully. Use a Practice Test to assess timing and identify weaker topics. Then practise those configurations in a Kubernetes environment before your final review.

How should I decide how much study time to set aside?

There is no single study period that fits every candidate. Your starting point depends on how familiar you are with Kubernetes administration, host hardening, and security controls such as seccomp, signature validation, and audit review. Begin by attempting tasks across the six topic areas, then spend more time where you cannot complete or verify the work. The Practice Test format can help expose weak areas and timing issues, giving you a more useful basis for planning than a fixed schedule.

What is a sensible first step if I am starting CKS preparation?

Start with the exam topics and note which controls you can already apply in a Kubernetes environment. Cluster Setup and Cluster Hardening together cover network access, component configuration, API permissions, and supported releases, while other topics address host and workload security. The Exam4Success PDF can support review when you are away from a lab, and hands-on practice can confirm that you can carry out the steps. Mark each topic as review or lab practice before planning your sessions.

Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by Linux Foundation.