Customers choose PracticeVCE for the CKS exam, and customer feedback keeps improving the product — a cycle of constant innovation running for years. The current result: 66 practice questions in three formats, updated free for 365 days.
Linux Foundation CKS Exam Overview:
| Certification Vendor: | Linux Foundation / CNCF |
|---|---|
| Exam Name: | Certified Kubernetes Security Specialist |
| Exam Number: | CKS |
| Available Languages: | Japanese, English, Simplified Chinese |
| Exam Price: | $445 USD |
| Exam Format: | Hands-on tasks, Command-line operations, Online proctored, Performance-based |
| Certificate Validity Period: | 2 years |
| Exam Duration: | 120 minutes |
| Real Exam Qty: | 15-20 tasks |
| Passing Score: | 67% |
| Related Certifications: | Certified Kubernetes Application Developer (CKAD) Certified Kubernetes Administrator (CKA) |
| Recommended Training: | LFS260: Kubernetes Security Essentials |
| Exam Registration: | Linux Foundation Training Portal |
| Sample Questions: | DOWNLOAD DEMO |
| Exam Way: | Online, remotely proctored, live monitoring via webcam and screen sharing |
| Pre Condition: | Must hold valid, non-expired Certified Kubernetes Administrator (CKA) certification |
| Official Syllabus URL: | https://training.linuxfoundation.org/certification/certified-kubernetes-security-specialist/ |
Linux Foundation CKS Exam Syllabus Topics:
| Section | Weight | Objectives |
|---|---|---|
| Topic 1: Cluster Hardening | 15% | - Service account security - RBAC configuration - API access restriction - Component updates & vulnerability mitigation |
| Topic 2: Minimize Microservice Vulnerabilities | 20% | - Security contexts - Isolation & multi-tenancy - Pod Security Standards - OPA/Gatekeeper implementation - Secret management |
| Topic 3: Cluster Setup | 15% | - Node metadata protection - Network security policies - Secure Ingress configuration - Binary verification - CIS benchmark compliance |
| Topic 4: Monitoring, Logging and Runtime Security | 20% | - Container immutability - Audit log configuration - Threat detection (Falco) - Incident investigation - Behavioral analytics |
| Topic 5: System Hardening | 10% | - Network access control - Kernel hardening (AppArmor, seccomp) - Least privilege IAM - Minimize OS attack surface |
| Topic 6: Supply Chain Security | 20% | - SBOM & CI/CD security - Image security & scanning - Permitted registries - Signed artifacts & verification - Static analysis tools |
Linux Foundation Certified Kubernetes Security Specialist (CKS) Exam: Common Questions
Linux Foundation recommends these training resources for the Linux Foundation Certified Kubernetes Security Specialist (CKS) exam:
Follow the training with steady self-testing — the 66 practice questions from PracticeVCE help you apply theory and fill any gaps the training leaves.
The Linux Foundation Certified Kubernetes Security Specialist (CKS) exam contains 15-20 tasks to complete within 120 minutes. Timed simulation in the PracticeVCE Desktop Test Engine teaches that rhythm before exam day does.
The official Linux Foundation Certified Kubernetes Security Specialist (CKS) outline defines 6 domains. The leading three are Cluster Setup (15%), System Hardening (10%), and Supply Chain Security (20%). The full list is in the topics section above, and PracticeVCE's 66 practice questions cover each one.
The CKS exam is a Linux Foundation certification exam validating the Linux Foundation Certified Kubernetes Security Specialist (CKS) syllabus shown above. It belongs to these credential paths: Certified Kubernetes Administrator (CKA), Certified Kubernetes Application Developer (CKAD). Earning the credential in 2026 can strengthen a career, and PracticeVCE prepares candidates with 66 practice questions in PDF, Desktop Test Engine, and Online Test Engine formats.
Online, remotely proctored, live monitoring via webcam and screen sharing Register for the Linux Foundation Certified Kubernetes Security Specialist (CKS) exam through these official channels:
After booking, PracticeVCE delivers your practice questions within 1 minute — preparation starts the same day.
The Linux Foundation Certified Kubernetes Security Specialist (CKS) exam requires 67% to pass, and registration costs $445 USD. A failed attempt means paying the same fee again — a readiness check with the PracticeVCE engines before booking is the cheaper option.
Three versions of the same study materials: a printable, expert-prepared PDF with free demo download and instant access; a Desktop Test Engine for Windows that simulates the real exam with two practice modes and works offline; and an Online Test Engine for any browser on Windows, Mac, Android, and iOS with test history and performance review. Download the demo first, experience the materials, and choose the format you like best — all 66 practice questions are identical across versions. Every purchase includes 365 days of free updates, a 50% renewal discount afterward, and unlimited computer installations.
PracticeVCE issues a full refund if you take the Linux Foundation Certified Kubernetes Security Specialist (CKS) exam within 60 days of purchase and do not pass. The policy does not apply if the exam is taken within 3 days of purchase, if the exam was never actually taken, or to free materials or expired orders, and the candidate name must match the payer name. Submit a scan of your enrollment slip and the official Score Report PDF within 2 days of the exam; claims are processed within 7 days. Alternatively, exchange for two free exam products of equal value and keep your original update service. Orders arrive by email within 1 minute — contact support if nothing arrives within 2 hours.
Must hold valid, non-expired Certified Kubernetes Administrator (CKA) certification Since requirements change over time, confirm the latest on the official Linux Foundation exam page before scheduling.
Linux Foundation Certified Kubernetes Security Specialist (CKS) Sample Questions:
SIMULATION
Documentation dockerd
You must connect to the correct host . Failure to do so may result in a zero score.
[candidate@base] $ ssh cks000037
Task
Perform the following tasks to secure the cluster node cks000037 :
Remove user developer from the docker group.
Do not remove the user from any other group.
Reconfigure and restart the Docker daemon to ensure that the socket
file located at /var/run/docker.sock is owned by the group root.
Re-configure and restart the Docker daemon to ensure it does not listen on any TCP port.
After completing your work, ensure the Kubernetes cluster is healthy.
Correct Answer:
See the Explanation below for complete solution
Explanation:
1) Connect to the correct host
ssh cks000037
sudo -i
2) Remove user developer from the docker group ONLY
2.1 Verify current groups (optional but fast)
id developer
2.2 Remove ONLY from docker group
gpasswd -d developer docker
2.3 Verify removal
id developer
✅ docker should not appear; other groups must remain.
3) Reconfigure Docker to secure the socket and disable TCP
Docker config file:
vi /etc/docker/daemon.json
3.1 Set socket group to root and disable TCP listeners
Ensure the file contains exactly these relevant settings (merge with existing JSON if present):
{
"group": "root",
"hosts": ["unix:///var/run/docker.sock"]
}
Important:
"group": "root" → docker.sock owned by group root
"hosts" includes ONLY the unix socket (no tcp://)
If the file already exists with other keys, add/adjust only these keys and keep valid JSON (commas!).
Save and exit:
:wq
4) Restart Docker daemon
systemctl daemon-reload
systemctl restart docker
systemctl status docker --no-pager
5) Verify Docker socket ownership and permissions
ls -l /var/run/docker.sock
Expected:
srw-rw---- 1 root root ...
✅ Owner: root
✅ Group: root
6) Verify Docker is NOT listening on TCP
ss -lntp | grep docker
Expected:
No output (or nothing bound to TCP by dockerd)
Optional double-check:
ps aux | grep dockerd | grep -v grep
Ensure no -H tcp://... flags.
7) Ensure Kubernetes cluster is healthy
7.1 Check node and pods
export KUBECONFIG=/etc/kubernetes/admin.conf
kubectl get nodes
kubectl get pods -A
All nodes should be Ready, core pods Running.
SIMULATION
Enable audit logs in the cluster, To Do so, enable the log backend, and ensure that
1. logs are stored at /var/log/kubernetes-logs.txt.
2. Log files are retained for 12 days.
3. at maximum, a number of 8 old audit logs files are retained.
4. set the maximum size before getting rotated to 200MB
Edit and extend the basic policy to log:
1. namespaces changes at RequestResponse
2. Log the request body of secrets changes in the namespace kube-system.
3. Log all other resources in core and extensions at the Request level.
4. Log "pods/portforward", "services/proxy" at Metadata level.
5. Omit the Stage RequestReceived All other requests at the Metadata level
Correct Answer:
Kubernetes auditing provides a security-relevant chronological set of records about a cluster. Kube-apiserver performs auditing. Each request on each stage of its execution generates an event, which is then pre-processed according to a certain policy and written to a backend. The policy determines what's recorded and the backends persist the records.
You might want to configure the audit log as part of compliance with the CIS (Center for Internet Security) Kubernetes Benchmark controls.
The audit log can be enabled by default using the following configuration in cluster.yml:
services:
kube-api:
audit_log:
enabled: true
When the audit log is enabled, you should be able to see the default values at /etc/kubernetes/audit-policy.yaml The log backend writes audit events to a file in JSONlines format. You can configure the log audit backend using the following kube-apiserver flags:
--audit-log-path specifies the log file path that log backend uses to write audit events. Not specifying this flag disables log backend. - means standard out
--audit-log-maxage defined the maximum number of days to retain old audit log files
--audit-log-maxbackup defines the maximum number of audit log files to retain
--audit-log-maxsize defines the maximum size in megabytes of the audit log file before it gets rotated If your cluster's control plane runs the kube-apiserver as a Pod, remember to mount the hostPath to the location of the policy file and log file, so that audit records are persisted. For example:
--audit-policy-file=/etc/kubernetes/audit-policy.yaml \
--audit-log-path=/var/log/audit.log
SIMULATION
a. Retrieve the content of the existing secret named default-token-xxxxx in the testing namespace.
Store the value of the token in the token.txt
b. Create a new secret named test-db-secret in the DB namespace with the following content:
username: mysql
password: password@123
Create the Pod name test-db-pod of image nginx in the namespace db that can access test-db-secret via a volume at path /etc/mysql-credentials
Correct Answer:
To add a Kubernetes cluster to your project, group, or instance:
Navigate to your:
Project's Operations > Kubernetes page, for a project-level cluster.
Group's Kubernetes page, for a group-level cluster.
Admin Area > Kubernetes page, for an instance-level cluster.
Click Add Kubernetes cluster.
Click the Add existing cluster tab and fill in the details:
Kubernetes cluster name (required) - The name you wish to give the cluster.
Environment scope (required) - The associated environment to this cluster.
API URL (required) - It's the URL that GitLab uses to access the Kubernetes API. Kubernetes exposes several APIs, we want the "base" URL that is common to all of them. For example, https://kubernetes.example.com rather than https://kubernetes.example.com/api/v1.
Get the API URL by running this command:
kubectl cluster-info | grep -E 'Kubernetes master|Kubernetes control plane' | awk '/http/ {print $NF}' CA certificate (required) - A valid Kubernetes certificate is needed to authenticate to the cluster. We use the certificate created by default.
List the secrets with kubectl get secrets, and one should be named similar to default-token-xxxxx. Copy that token name for use below.
Get the certificate by running this command:
kubectl get secret <secret name> -o jsonpath="{['data']['ca\.crt']}"
SIMULATION
Context
The kubeadm-created cluster's Kubernetes API server was, for testing purposes, temporarily configured to allow unauthenticated and unauthorized access granting the anonymous user duster-admin access.
Task
Reconfigure the cluster's Kubernetes API server to ensure that only authenticated and authorized REST requests are allowed.
Use authorization mode Node,RBAC and admission controller NodeRestriction.
Cleaning up, remove the ClusterRoleBinding for user system:anonymous.

Correct Answer:
See the Explanation below
Explanation:




SIMULATION
Documentation
Deployment, Pod Security Admission, Pod Security Standards
You must connect to the correct host . Failure to do so may result in a zero score.
[candidate@base] $ ssh cks000036
Context
For compliance, all user namespaces enforce the restricted Pod Security Standard .
Task
The confidential namespace contains a Deployment that is not compliant with the restricted Pod Security Standard . Thus, its Pods can not be scheduled.
Modify the Deployment to be compliant and verify that the Pods are running.
The Deployment's manifest file can be found at /home/candidate/nginx-unprivileged.yaml.
Correct Answer:
See the Explanation below for complete solution
Explanation:
1) Connect to the correct host
ssh cks000036
sudo -i
export KUBECONFIG=/etc/kubernetes/admin.conf
2) Confirm the failing Pods + see the PSA error (fast)
kubectl -n confidential get deploy
kubectl -n confidential get pods
kubectl -n confidential describe deploy <deployment-name> | sed -n '/Events/,$p' (You'll usually see "violates PodSecurity 'restricted' ..." with the exact missing fields.)
3) Edit the provided manifest
vi /home/candidate/nginx-unprivileged.yaml
You must ensure the Pod template becomes compliant. Add/ensure the following exact blocks:
4) Add Pod-level securityContext (under spec.template.spec)
Find:
spec:
template:
spec:
Add this block under it (or merge if securityContext: already exists):
securityContext:
runAsNonRoot: true
runAsUser: 65535
seccompProfile:
type: RuntimeDefault
5) Add Container-level securityContext (under the nginx container)
Find:
containers:
- name: ...
image: ...
Under that container, add (or adjust) this exact block:
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
If there are multiple containers, apply the same container securityContext to each one.
Save and exit:
:wq
6) Apply the manifest to the confidential namespace
kubectl -n confidential apply -f /home/candidate/nginx-unprivileged.yaml Wait rollout:
kubectl -n confidential rollout status deployment/<deployment-name>
If you don't know the deployment name from the file, list:
kubectl -n confidential get deploy
7) Verify Pods are running
kubectl -n confidential get pods -o wide
If still failing, show the exact PSA violation (this tells you what else to fix):
kubectl -n confidential describe pod <pod-name> | sed -n '/Events/,$p'
Quick "if it still fails" fixes (common restricted blockers)
Open the manifest again and ensure these are NOT set (or are removed/false):
hostNetwork: true
hostPID: true
hostIPC: true
any hostPort:
privileged: true
capabilities.add:
seccompProfile: Unconfined
runAsUser: 0 or runAsNonRoot: false
Then re-apply.
Minimal compliant result (what the grader expects)
Your Pod template should include:
seccompProfile: RuntimeDefault
runAsNonRoot: true (and a non-root UID like 65535)
container: allowPrivilegeEscalation: false
container: capabilities.drop: [ALL]
container: readOnlyRootFilesystem: true
Viewing page 1 out of 14 pages.
Viewing questions 1-5 out of 66 questions.

1003 Customer Reviews
