KS

Kubernetes Security (KS) practice exams

290 questions in 5 timed practice tests. Each test has about 60 questions and a 90-minute limit. The pass mark is 70%. Results are split across the 6 exam domains.

Exam at a glance

KS practice exam settings
Practice tests 5
Questions in total 290
Questions per test About 60
Time limit per test 90 minutes
Pass mark 70%
Question types Single answer and multiple answer (26 multiple-answer questions)
Level Specialty
Category DevOps & Cloud Native

These are the settings of our practice tests. Check the official CNCF exam page for the current exam format before you book.

Domains and weights

KS exam domains, weights and question counts
Domain Weight Weight bar Questions in our bank
Cluster and Control Plane Hardening 17% 49
Identity, Authentication and RBAC 18% 52
Workload Security and Pod Security 18% 52
Network Security and Segmentation 15% 44
Software Supply Chain Security 16% 46
Runtime Detection and Incident Response 16% 47

Sample questions

Question 1 of 3, choose 2

A cluster runs the ingress-nginx controller with its validating admission webhook reachable from any Pod in the cluster. Following disclosure of critical vulnerabilities in that webhook that allowed unauthenticated code execution in the controller, which TWO actions reduce exposure? (Choose two.)

  1. A Set the webhook failurePolicy to Ignore so that broken requests are always allowed
  2. B Restrict network access to the admission webhook so only the API server can reach it (correct answer)
  3. C Upgrade the controller to a patched release, and plan migration because ingress-nginx is retired (correct answer)
  4. D Move the controller's TLS certificates into a ConfigMap so that they are easier to rotate
  5. E Give the controller's ServiceAccount the cluster-admin role so it can patch itself
Why: Patching removes the known flaws, and because the ingress-nginx project has been retired, teams should plan to move to a maintained controller or Gateway API implementation. The webhook only needs to be reachable from the API server, so a NetworkPolicy limiting it removes the in-cluster attack path. Granting cluster-admin would increase the impact of a compromise. failurePolicy controls behaviour when the webhook is down, not who can reach it. Certificates belong in Secrets, and their storage has nothing to do with the flaw.

Question 2 of 3

A security team installs a validating admission webhook that blocks images from unapproved registries and sets failurePolicy to Fail. During a node outage the webhook pods were evicted and the cluster could not recreate any pods, including the webhook itself and CoreDNS. Which change keeps the control fail-closed for application workloads while avoiding this deadlock?

  1. A Exclude kube-system and the webhook's own namespace with a namespaceSelector and run the webhook with multiple replicas and a PodDisruptionBudget (correct answer)
  2. B Replace the webhook with an audit policy at RequestResponse level so that violations are recorded instead of blocked at admission
  3. C Raise timeoutSeconds to 30 on the webhook configuration so that the API server waits much longer for the evicted webhook pods to be recreated
  4. D Switch failurePolicy to Ignore for every namespace so that pods are always admitted whenever the webhook backend cannot be reached
Why: Scoping the webhook away from the namespaces it depends on (and from system components) prevents a circular dependency, and redundancy plus a PodDisruptionBudget reduces the chance it is unavailable, while application namespaces stay fail-closed. Ignore everywhere makes the control fail open whenever an attacker can disrupt the webhook. A longer timeout cannot help when the backend pods do not exist, and it slows every request. Auditing records violations but no longer enforces the registry rule.

Question 3 of 3

An operator for a third-party database is installed and its ClusterRole includes the verbs 'bind' and 'escalate' on roles and clusterroles. The vendor says this is needed so the operator can create namespace Roles for the databases it manages. Which risk does this grant introduce?

  1. A The operator can only bind roles that already exist, so the grant is safe as long as no new ClusterRoles are created
  2. B The operator's ServiceAccount can create or bind roles with permissions it does not hold itself, including cluster-admin (correct answer)
  3. C The operator can impersonate any user, so its requests appear in audit logs under the impersonated user's name
  4. D The operator can approve CertificateSigningRequests and therefore mint client certificates for the system:masters group
Why: RBAC normally prevents a subject from creating or binding a role that grants more than it already has; escalate and bind are the verbs that lift that safeguard, so anyone controlling the operator's token can grant themselves cluster-admin. Scope them with resourceNames or to specific namespaces where possible. Impersonation needs the separate impersonate verb. CSR approval needs permissions on certificatesigningrequests/approval and signers. The bind verb allows binding powerful existing roles such as cluster-admin, so existing roles do not make it safe.

What your score report looks like

Example attempt, KS practice test 3

77%

Passed
Pass mark 70%

Score by exam domain
DomainWeightYour score%
Cluster and Control Plane Hardening 17%
88
Identity, Authentication and RBAC 18%
81
Workload Security and Pod Security 18%
76
Network Security and Segmentation 15%
58
Software Supply Chain Security 16%
84
Runtime Detection and Incident Response 16%
72

Study next: Network Security and Segmentation. It is below the pass mark and carries 15% of the exam.

Domains and pass mark from our KS practice tests. Scores are an example attempt.

Study plans

Two weeks

  1. Day 1: take practice test 1 in exam mode to get a baseline.
  2. Days 2 to 5: domain mode on Identity, Authentication and RBAC and Workload Security and Pod Security, the two most heavily weighted domains.
  3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
  4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
  5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

Four weeks

  1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
  2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
  3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
  4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

Questions about the KS practice exams

Are these real KS exam questions?
No. We write every question ourselves and map it to the published KS exam objectives. We do not use leaked or recalled questions.
Do the time limit and pass mark match the official exam?
They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.
Can I try it before I pay?
Yes. The free mini exam has 15 questions with full explanations and needs no account.
How long do I keep access?
A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.
What happens after I finish a test?
You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026. Written and reviewed by the DevOpsCode Lab team.

DevOpsCode Lab is not affiliated with CNCF. KS and related names are trademarks of their owners.

Related exams
Exam Vendor Level Questions Minutes Price
CAPAArgo CAPA CNCF Associate 300 90 $12.99
CKACertified Kubernetes Administrator (CKA) CNCF Associate 300 120 $12.99
010-160LPI Linux Essentials 010-200 LPI Foundational 200 60 $9.99
GH-900GitHub Foundations GH-900 GitHub Foundational 300 100 $9.99
AT0-001CompTIA AutoOps+ AT0-001 CompTIA Associate 300 60 $12.99
GH-100GitHub Enterprise GH-100 GitHub Associate 300 100 $12.99