Linux Foundation KCSA sample questions with explanations, traps, topic labels, and IT Mastery route links.
These original sample questions are designed to help you check how the exam topics appear in decision-style prompts. They are not taken from the live exam.
Use these sample questions as a guided self-assessment for Kubernetes and Cloud Native Security Associate (KCSA) topics such as Kubernetes identity, RBAC, pod security, image trust, secrets, network policy, audit evidence, and cloud native security controls. The goal is to practice control selection and elimination, not memorize vocabulary in isolation.
The sample set below is part of the Linux Foundation / CNCF KCSA guide path:
Work through each prompt before opening the explanation. KCSA questions reward a practical security model: least privilege, workload hardening, network isolation, image trust, and evidence-preserving response.
Topic: Service account permissions
A workload in the payments namespace needs to read one ConfigMap and list pods in the same namespace for service discovery. The platform team wants to avoid expanding access outside that namespace. Which access-control design is strongest?
cluster-admin so future discovery features do not need another change.payments.Best answer: C
Explanation: The scenario asks for least privilege inside one namespace. A dedicated service account plus a namespace Role and RoleBinding gives the workload only the API permissions it needs, keeps the permission boundary close to the workload, and avoids granting cluster-wide authority.
Why the other choices are weaker:
What this tests: Kubernetes RBAC scope, service accounts, least privilege, and namespace isolation.
Related topics: RBAC; Service accounts; Roles; RoleBindings; Least privilege
Topic: Image trust before deployment
A team wants to reduce the chance that unreviewed container images reach production. Images must be scanned, signed by the release pipeline, and blocked if the signature or policy check fails. Which control best matches the requirement?
Best answer: A
Explanation: The control needs to prevent noncompliant images before they become running workloads. Admission enforcement can check image identity, signature, source, and policy metadata at deploy time, which is stronger than relying on naming conventions or after-the-fact detection.
Why the other choices are weaker:
What this tests: Image supply-chain controls, admission policy, signatures, scanning, and preventive enforcement.
Related topics: Image security; Admission control; Supply chain; Signatures; Scanning
Topic: NetworkPolicy isolation
A namespace contains frontend, API, and database pods. The database should accept traffic only from the API pods on the database port, and all other ingress to the database pods should be blocked. Which approach is strongest?
restricted=true and document that other teams must not connect.Best answer: D
Explanation: A NetworkPolicy is the Kubernetes-native way to express pod-level traffic rules when the cluster network plugin enforces them. Selecting the database pods and allowing only the API source and port turns the intended trust boundary into an enforceable rule.
Why the other choices are weaker:
What this tests: Network segmentation, pod selectors, ingress policy, and the difference between discovery and isolation.
Related topics: NetworkPolicy; Pod selectors; Ingress rules; Zero trust; Workload isolation
Topic: Secret exposure response
An engineer discovers that an application Secret was accidentally mounted into a pod that did not need it. The pod has been running for several days. What should the team do first?
Best answer: B
Explanation: A mounted Secret should be treated as accessible to the workload. The strongest response preserves evidence, rotates the affected credential, removes the exposure path, and then reviews why the pod had access in the first place.
Why the other choices are weaker:
What this tests: Secret handling, incident response order, evidence preservation, rotation, and least-privilege cleanup.
Related topics: Secrets; Credential rotation; Audit evidence; Incident response; Workload permissions
Tech Exam Lexicon and IT Mastery are independent study tools. They are not affiliated with, endorsed by, or sponsored by the Linux Foundation, CNCF, or any certification body.