Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam

Free practice questions with explanations

Linux Foundation CKS Dumps 2026 with Free Practice Questions and Answers

11 original Certified Kubernetes Security Specialist exam practice questions with answers and explanations.

Covers Cluster Hardening, Cluster Setup, Minimize Microservice Vulnerabilities, Monitoring, Logging And Runtime Security and 2 more.

Question types: single answer, dropdown, multiple answers and order list. A new question is added every 15 days.

CKS Practice Set Details

Exam Code
CKS
Questions On This Page
11
Exam Topics Covered
6 of 6
Question Types
4
Newest Question
New Question
Every 15 days
Full Question Set
64
Certification
Kubernetes Security Specialist
11 questions

Linux Foundation CKS Exam Questions and Answers by Topic

Cluster Setup

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 1

Added

Multiple Answers

A namespace contains backend pods labeled app=backend. Only frontend pods in the same namespace may initiate TCP connections to backend port 8443. All other ingress to backend pods must be denied, and existing egress from the frontend must remain unaffected. There are no other NetworkPolicies selecting backend pods. Which two policy characteristics satisfy these requirements? (Choose two.)

Correct answer: B, C

A NetworkPolicy isolates only the pods selected by its podSelector for the policy types it specifies. Selecting backend pods with Ingress policy type makes their ingress restricted, and an ingress rule allowing frontend pods on TCP 8443 creates the sole permitted path. Selecting frontend pods would govern the wrong direction. Allowing every namespace pod is broader than requested, while adding Egress isolation without egress rules could disrupt frontend traffic.

Question 2

Added

Dropdown

During a CIS Benchmark review, an administrator finds that the kubelet accepts unauthenticated requests and authorizes requests using the permissive AlwaysAllow mode. The cluster uses a kubelet configuration file, and the remediation must disable anonymous access while allowing authorization decisions to use the Kubernetes API webhook. Complete the relevant configuration values.

Choose the correct value for each blank.

authentication:\n anonymous:\n enabled: \nauthorization:\n mode:
Correct answer:

authentication:\n anonymous:\n enabled: false\nauthorization:\n mode: Webhook

Setting anonymous.enabled to false prevents unauthenticated kubelet requests. The Webhook authorization mode delegates authorization decisions to the Kubernetes API server rather than allowing every request. Leaving anonymous access enabled preserves the exposure identified by the review. AlwaysAllow is the permissive mode being remediated, and AlwaysDeny would block legitimate authorized kubelet operations rather than provide the required API-backed authorization.

Cluster Hardening

15% of the exam

2 practice questions on this topicWhat this topic covers

Question 3

Added

Multiple Answers

A payments team needs a support group to retrieve one named ConfigMap in the production namespace. The group must not list other ConfigMaps, read Secrets, or access resources in other namespaces. Existing cluster-wide viewer bindings cannot be changed because other teams rely on them. You are updating access through Kubernetes RBAC and must grant the minimum necessary permission. Which two changes meet the requirement? (Choose two.)

Correct answer: B, C

A namespaced Role can restrict access to one resource instance with resourceNames and the get verb, while the RoleBinding limits that grant to the production namespace. Binding the Role to the support group gives only the intended users that access. A ClusterRoleBinding would grant access cluster-wide, and list permits discovering other ConfigMaps. Adding Secrets or using the existing broad viewer binding exceeds the stated scope.

Question 4

Added

Dropdown

A cluster has many workloads that do not call the Kubernetes API, but several controllers require API access. The security team wants ordinary pods to receive no automatically mounted API credential and wants API-using controllers to use a separately named service account. Do not remove the ability to opt in explicitly. Complete the manifest values for the default service account and the controller pod.

Choose the correct value for each blank.

apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: default\nautomountServiceAccountToken: \n---\napiVersion: v1\nkind: Pod\nspec:\n serviceAccountName: \n containers:\n - name: controller\n image: registry.example/controller:v4\n automountServiceAccountToken:
Correct answer:

apiVersion: v1\nkind: ServiceAccount\nmetadata:\n name: default\nautomountServiceAccountToken: false\n---\napiVersion: v1\nkind: Pod\nspec:\n serviceAccountName: controller-api\n containers:\n - name: controller\n image: registry.example/controller:v4\n automountServiceAccountToken: true

Setting automountServiceAccountToken to false on the default service account prevents automatic token mounting for pods that use it. The controller selects its separately managed controller-api service account, and the pod-level true value explicitly enables token mounting for this workload. Leaving the default true preserves unnecessary credentials in ordinary pods. Selecting the default account for the controller would not provide the requested separation, and setting the pod value false would prevent its intended API credential from being mounted.

System Hardening

10% of the exam

1 practice question on this topicWhat this topic covers

Question 5

Added

Single Answer

A Linux node team wants to apply a restrictive syscall policy to a container while keeping the cluster on Kubernetes versions that support the pod-level seccompProfile field. The application has been tested with the container runtime's default seccomp profile, and the team does not want to maintain a custom profile or use beta AppArmor annotations. Which pod configuration is the best choice?

Correct answer: D

The pod-level seccompProfile field with type RuntimeDefault applies the container runtime's default syscall filter without requiring a custom profile. Unconfined disables seccomp filtering rather than hardening the workload. Host PID sharing weakens isolation and does not select a syscall policy. Disabling privilege escalation is useful but does not itself apply a seccomp profile, so it does not meet the stated requirement.

Minimize Microservice Vulnerabilities

20% of the exam

2 practice questions on this topicWhat this topic covers

Question 6

Added

Single Answer

A platform team runs mutually untrusted customer workloads on a shared Kubernetes cluster. The workloads need ordinary networking and persistent volumes, but the team cannot dedicate nodes to each tenant or accept a major runtime compatibility change. The nodes already have gVisor installed and configured under the containerd handler name runsc. The cluster uses RuntimeClass, and the team wants to place the stronger isolation boundary only around tenant workloads. What is the best configuration?

Correct answer: B

A RuntimeClass maps a pod's runtimeClassName to a configured runtime handler. Using the installed runsc handler places tenant workloads in the gVisor sandbox without requiring dedicated nodes, while leaving other workloads on the default runtime. Setting privileged to false is useful hardening but does not add the requested runtime sandbox boundary. Host namespaces reduce isolation, and NetworkPolicy controls network traffic rather than isolating system calls or runtime behavior.

Question 7

Added

Single Answer

A regulated service stores credentials in Kubernetes Secrets. The cluster currently stores API objects in etcd, and an infrastructure administrator with direct etcd access must not be able to read Secret values. The team cannot introduce an external secrets platform this quarter, but it can change API server configuration and rotate encryption keys during a maintenance window. Which action most directly meets the requirement?

Correct answer: A

API server encryption at rest encrypts Secret data before it is persisted to etcd, addressing the stated threat from direct etcd access. The encryption provider configuration and key lifecycle must be managed carefully, including rotation as planned. Kubernetes Secret data is base64-encoded, not thereby encrypted. Read-only mounts affect pod access, and RBAC controls API access; neither protects stored values from an administrator who can read etcd directly.

Supply Chain Security

20% of the exam

2 practice questions on this topicWhat this topic covers

Question 8

Added

Single Answer

A build pipeline produces a container image that passes functional tests, but the image includes a full development toolchain and package manager. The production workload needs only a small application binary and certificate bundle. The team wants to reduce the deployed image's attack surface without changing application behavior or relying on runtime privilege restrictions as a substitute. Which build change is the best fit?

Correct answer: A

A multi-stage build allows compilation in a builder image while the final image contains only the application binary and required runtime files. This directly reduces image contents and the available attack surface without changing the workload's runtime behavior. Disabling privilege escalation and running as non-root are valuable runtime controls, but neither removes packages from the image. Moving the toolchain into an init container still deploys those tools and adds another container to the workload.

Question 9

Added

Single Answer

A release pipeline scans images for known vulnerabilities, but developers currently scan a mutable tag before deployment and then deploy that tag several hours later. A tag can be moved during that interval, and policy requires that the exact artifact which passed scanning is the one deployed. The registry supports content-addressed image references. What is the best pipeline change?

Correct answer: D

A digest identifies the exact image content, so scanning and then deploying the same digest prevents a tag move from substituting an unscanned artifact. Scanning after deployment detects a problem only after exposure. A tag remains mutable even if the deployment manifest text is unchanged, and scanning only the base image does not assess vulnerabilities introduced by application layers or dependencies.

Monitoring, Logging and Runtime Security

20% of the exam

2 practice questions on this topicWhat this topic covers

Question 10

Added

Single Answer

A security team needs a record of which authenticated users read or modified Secret resources through the Kubernetes API, including the resource name and whether the request succeeded. It does not need Secret request or response bodies, and audit data must be written to a file on the control-plane node. The API server is configured with audit logging but currently uses a policy that omits Secret requests. Which change is the best fit?

Correct answer: B

Audit events at Metadata level record request metadata such as the authenticated user, resource, name, verb, and response status without recording Secret bodies. Configuring the API server audit log path writes those events to the requested control-plane file. RequestResponse captures bodies that the team explicitly does not need and may expose credentials. Kubelet logs and Kubernetes Events are not substitutes for API server audit records of user requests.

Question 11

Added

Order List

An operations team is enabling Kubernetes API auditing on a self-managed control plane that runs the API server as a static pod. The intended policy records metadata for Secret access, and the audit log must be verified before the change is considered complete. The API server must not be restarted before its policy file is available. Arrange the steps in the order they must be performed.

Drag the steps into the correct order, or use the arrows.

  1. Wait for the API server static pod to restart and become ready.
  2. Make a Secret API request and verify its audit event in the configured log.
  3. Update the API server static pod manifest with audit policy and log flags.
  4. Create the audit policy file with the required Secret rule.
Correct answer:
  1. Create the audit policy file with the required Secret rule.
  2. Update the API server static pod manifest with audit policy and log flags.
  3. Wait for the API server static pod to restart and become ready.
  4. Make a Secret API request and verify its audit event in the configured log.

The API server must be able to read the policy file when it starts, so create that file first. Updating the static pod manifest with the audit flags causes the control-plane kubelet to recreate the API server pod. After the new instance is ready, generate a request and inspect the configured log to confirm that auditing is active. Restarting before the policy exists can prevent successful startup, and checking the log before making a request provides no event to verify.

More Linux Foundation Practice Questions

Get the Full Linux Foundation CKS Dumps as PDF and Practice Test

11 questions are free on this page and the full set has 64. It comes as a PDF and an online practice test, with 90 days of free updates.