Skip to content

20 Free KCSA Sample Questions with Answers

By Ibrahim Yesilay · Published · Updated

Here are 20 free KCSA sample questions with answers, taken from the GoldenKube question bank and grouped by exam domain. Every question has the correct answer marked and a written explanation, so you can check what you know and see why the wrong options fail. Kubernetes and Cloud Native Security Associate is a multiple-choice exam; this set is independent practice and not affiliated with the Linux Foundation.

How to use these KCSA practice questions

Work through the 20 KCSA sample questions in one sitting without looking anything up. For each question, decide on an answer first, then open the answer and read the explanation, including when you were right, because a correct guess and a correct line of reasoning look identical until the exam rewords the question. Mark every question as right, wrong or guessed, and count a guess as wrong when you score yourself. Give the set about 30 minutes, which is the average time per question on the real exam multiplied by twenty. The aim is to find out which exam domains are already solid and which ones need study before you buy the exam.

The official exam format is 60 questions in 90 minutes, with a passing score of 75%, according to the Linux Foundation documentation checked on 2026-10-23.

With JavaScript enabled, each answer starts collapsed behind a Show answer button so you can test yourself. Without JavaScript, and for any crawler or screen reader that reads the raw page, every answer and explanation is already visible below its question.

These questions were written for GoldenKube practice. They are not copied from the real exam, and nothing on this page tells you what the real exam will ask.

  • Read the question twice and underline the constraint words: "most", "least", "first", "only", "not".
  • Eliminate options you can prove wrong before you pick between the rest.
  • Where a question says to select all that apply, every correct option must be chosen and none of the wrong ones.
  • Read the explanation even for questions you got right; it often names the nearby concept the exam likes to swap in.

Overview of Cloud Native Security (3 questions)

Question 1

What is the primary purpose of a Cloud Workload Protection Platform (CWPP)?
  1. A.Monitor network traffic
  2. B.Secure workloads across various environments
  3. C.Manage cloud costs
  4. D.Provide identity and access management
  5. E.Automate infrastructure provisioning

Correct answer: B

CWPPs are designed to protect workloads in any environment.

Question 2

What are the key characteristics of gVisor and Firecracker? (Select all that apply)

Select all that apply.

  1. A.gVisor is a user-space kernel providing sandboxing
  2. B.Firecracker uses lightweight microVMs with KVM
  3. C.Both provide full hardware virtualization
  4. D.Firecracker is a container runtime interface
  5. E.gVisor offers better performance than traditional VMs

Correct answers: A, B, E

gVisor provides sandboxing by running in user space and intercepting system calls, which enhances security without the need for full hardware virtualization. Firecracker uses microVMs, leveraging KVM for efficient isolation. gVisor can offer better performance compared to traditional VMs due to its lightweight nature.

Sources: gVisor Documentation, Firecracker Documentation

Question 3

What components are necessary to verify the integrity and authenticity of a container image?
  1. A.A checksum and the image manifest
  2. B.A digital signature, public key, and verification tool
  3. C.The Dockerfile used to build the image
  4. D.Access to the container registry logs
  5. E.The image's pull secret

Correct answer: B

To verify the integrity and authenticity of a container image, you need a digital signature, a public key to verify the signature, and a verification tool. This ensures that the image has not been tampered with and comes from a trusted source.

Sources: Docker Security Documentation, Container Image Security Best Practices

Kubernetes Cluster Component Security (4 questions)

Question 4

How do you create a Kubernetes namespace named 'dev'?
  1. A.kubectl create namespace dev
  2. B.kubectl apply namespace dev
  3. C.kubectl generate namespace dev
  4. D.kubectl make namespace dev
  5. E.kubectl new namespace dev

Correct answer: A

To create a Kubernetes namespace named 'dev', you use the command 'kubectl create namespace dev'. This command directly creates a new namespace in your cluster.

Sources: Kubernetes Namespaces, Kubernetes CLI Commands

Question 5

What is the primary function of the Kubernetes 'LimitRange' resource?
  1. A.To limit the number of namespaces
  2. B.To set default resource requests and limits for pods in a namespace
  3. C.To restrict network access between pods
  4. D.To control access to the Kubernetes API
  5. E.To define storage classes

Correct answer: B

A LimitRange in Kubernetes is used to enforce constraints on resource usage within a namespace. It sets default resource requests and limits for pods, ensuring that they do not exceed specified thresholds. This helps in preventing resource over-allocation and maintaining cluster stability.

Sources: Kubernetes LimitRange Documentation, Kubernetes Resource Management

Question 6

What happens by default when a container in a Kubernetes pod crashes?
  1. A.The pod is deleted
  2. B.Kubernetes does nothing
  3. C.The kubelet restarts the container
  4. D.An alert is sent to the administrator
  5. E.The node is drained

Correct answer: C

By default, when a container in a Kubernetes pod crashes, the kubelet will automatically restart it. This behavior can be configured using restart policies.

Sources: Kubernetes Documentation, Kubernetes Kubelet

Question 7

How can you force delete a Kubernetes pod that is stuck in the 'Terminating' state?
  1. A.Run 'kubectl delete pod <pod-name>' normally
  2. B.Restart the kubelet service on the node
  3. C.Run 'kubectl delete pod <pod-name> --force --grace-period=0'
  4. D.Delete the node where the pod is running
  5. E.Edit the pod's YAML to remove finalizers

Correct answer: C

A pod stuck in 'Terminating' state can be force deleted using the command 'kubectl delete pod <pod-name> --force --grace-period=0'. This command bypasses the graceful termination period and forcibly removes the pod from the API server, even if the pod's containers are still running. Restarting the kubelet or deleting the node can be disruptive and are not recommended first steps. Editing the pod's YAML to remove finalizers can help if finalizers are blocking deletion, but the force delete command is the standard immediate solution.

Sources: Kubernetes Official Documentation - Deleting Pods, Kubernetes GitHub Issue - Pod stuck in Terminating

Kubernetes Security Fundamentals (5 questions)

Question 8

Why is a ConfigMap not suitable for storing sensitive information such as secrets in Kubernetes?
  1. A.ConfigMaps cannot be mounted as volumes in pods
  2. B.ConfigMaps do not support key-value pairs
  3. C.Data stored in ConfigMaps is kept in plain text and not encrypted
  4. D.ConfigMaps are deprecated in recent Kubernetes versions
  5. E.ConfigMaps have strict size limitations that prevent storing secrets

Correct answer: C

ConfigMaps are designed to store non-sensitive configuration data as key-value pairs and store data in plain text within etcd. They do not provide encryption or access controls suitable for sensitive information. Secrets, on the other hand, are specifically designed to store sensitive data and can be encrypted at rest. ConfigMaps can be mounted as volumes and are not deprecated. While ConfigMaps have size limits, the primary reason they are unsuitable for secrets is the lack of security.

Sources: Kubernetes Official Documentation - ConfigMaps, Kubernetes Official Documentation - Secrets

Question 9

Which Kubernetes object is specifically designed to store sensitive information such as passwords, tokens, or keys?
  1. A.ConfigMap
  2. B.Secret
  3. C.Volume
  4. D.Pod Annotation
  5. E.Deployment

Correct answer: B

Kubernetes Secrets are intended to store sensitive data like passwords, OAuth tokens, and SSH keys securely. Unlike ConfigMaps, which store non-sensitive configuration data, Secrets provide mechanisms to protect this sensitive information, including base64 encoding and integration with encryption at rest. Volumes, Pod Annotations, and Deployments are not designed for securely storing sensitive data.

Sources: Kubernetes Official Documentation - Secrets, Kubernetes Best Practices - Managing Secrets

Question 10

When implementing Kubernetes NetworkPolicies, what security implication should administrators consider when using an empty podSelector field?
  1. A.Creates a default-allow-all traffic pattern within the namespace
  2. B.Applies the policy to all pods in the specified namespace
  3. C.Generates validation errors in the policy controller
  4. D.Only affects newly created pods in the namespace
  5. E.Enforces cross-namespace communication rules

Correct answer: B

An empty podSelector in a NetworkPolicy selects all pods in the namespace, meaning the policy applies to all pods in that namespace. The effect on traffic depends on the policy's ingress and egress rules; it does not by itself create a default-allow or default-deny behavior. Administrators should carefully design policies with empty podSelectors to avoid unintended broad application. Other options misrepresent NetworkPolicy mechanics: validation errors (option 3) do not occur due to empty selectors, scope is not limited to new pods (option 4), and cross-namespace communication (option 5) requires explicit policy rules.

Sources: Kubernetes NetworkPolicy Documentation, NSA/CISA Kubernetes Hardening Guide

Question 11

Which open-source tool specializes in static security analysis of Kubernetes manifests through vulnerability scanning and policy checks?
  1. A.kube-hunter (penetration testing tool)
  2. B.kubesec (security risk analysis)
  3. C.kubectl (cluster management CLI)
  4. D.kubelet (node agent)
  5. E.etcdctl (key-value store client)

Correct answer: B

Kubesec analyzes Kubernetes manifests for security misconfigurations, providing risk scores and remediation guidance. It checks for common issues like privileged containers, missing security contexts, and insecure capabilities. Other tools serve different purposes: kube-hunter (option 1) tests live clusters, kubectl (option 3) manages resources, kubelet (option 4) runs pods, and etcdctl (option 5) interacts with etcd.

Sources: Kubesec GitHub Repository, CNCF Security Tooling Landscape

Question 12

What is the primary function of Resource Quotas in a Kubernetes namespace?
  1. A.Limit the number of namespaces in the cluster
  2. B.Restrict access to the Kubernetes API server
  3. C.Control the amount of resources consumed within a namespace
  4. D.Schedule pods to specific nodes
  5. E.Enforce network policies

Correct answer: C

Resource Quotas in Kubernetes are used to limit the total amount of compute resources (such as CPU, memory, and object counts) that can be consumed within a namespace. This helps prevent a single namespace from exhausting cluster resources. Resource Quotas do not limit namespaces themselves, control API server access, schedule pods, or enforce network policies, which are handled by other Kubernetes components.

Sources: Kubernetes Official Documentation - Resource Quotas, Kubernetes Resource Management

Kubernetes Threat Model (3 questions)

Question 13

Why is it crucial to restrict access to etcd in a Kubernetes cluster?
  1. A.Because etcd stores logs that can be tampered with
  2. B.Because etcd contains all cluster data, including secrets, and access can lead to cluster compromise
  3. C.Because etcd runs the application code
  4. D.Because etcd controls network policies
  5. E.Because etcd is not important and can be ignored

Correct answer: B

Restricting access to etcd is vital because it stores sensitive data, including cluster secrets. Unauthorized access to etcd can compromise the entire Kubernetes cluster.

Sources: Kubernetes etcd Security, etcd Documentation

Question 14

Which STRIDE threat category primarily addresses threats related to data integrity?
  1. A.Spoofing
  2. B.Tampering
  3. C.Repudiation
  4. D.Information Disclosure
  5. E.Denial of Service

Correct answer: B

The 'Tampering' category in STRIDE focuses on threats that compromise data integrity by unauthorized modification of data. Spoofing relates to identity, repudiation to denial of actions, information disclosure to confidentiality breaches, and denial of service to availability issues.

Sources: Microsoft STRIDE Threat Model, OWASP Threat Modeling

Question 15

In the STRIDE threat model, which category best describes a Trojan horse that compromises a build server?
  1. A.Spoofing
  2. B.Repudiation
  3. C.Information Disclosure
  4. D.Denial of Service
  5. E.Tampering

Correct answer: E

A Trojan horse compromising a build server is an example of tampering because it involves unauthorized modification of system components or data. Tampering refers to malicious alterations that can affect the integrity of software or systems. Spoofing involves impersonation, repudiation relates to denial of actions, information disclosure concerns unauthorized data exposure, and denial of service targets availability, none of which precisely describe this scenario.

Sources: Microsoft STRIDE Threat Model, OWASP Threat Modeling

Platform Security (3 questions)

Question 16

Which strace command-line option provides a summary of the time spent in each system call during program execution?
  1. A.-c
  2. B.-p
  3. C.-t
  4. D.-e trace=%time
  5. E.-s

Correct answer: A

The '-c' option in strace outputs a summary report showing the count, total time, and average time spent in each system call, helping analyze performance bottlenecks. The '-p' option attaches strace to an existing process by PID, '-t' prefixes each line with a timestamp, '-e trace=%time' is not a valid option, and '-s' sets the maximum string size to print, so they do not provide a time summary.

Sources: strace Manual, Linux Journal - Using strace

Question 17

Which Kubernetes resource object is used to request a certificate signing operation via the Kubernetes API?
  1. A.CertificateRequest
  2. B.CertificateSigningRequest
  3. C.CertificateApproval
  4. D.CertificateSigning
  5. E.Certificate

Correct answer: B

The Kubernetes resource 'CertificateSigningRequest' (CSR) is the official API object used to request a certificate signing operation. Users or components create a CSR object containing a public key and metadata; cluster administrators or automated controllers then approve and sign it. The other options are not valid Kubernetes resource kinds: 'CertificateRequest' and 'CertificateSigning' do not exist as Kubernetes resources; 'CertificateApproval' is not a resource but an action; 'Certificate' is not a Kubernetes resource for CSRs.

Sources: Kubernetes Official Documentation - Certificate Signing Requests, Kubernetes API Reference - CertificateSigningRequest

Question 18

Which command is recommended to check the readiness and status of Kubernetes cluster components?
  1. A.kubectl get components
  2. B.kubectl get --raw='/readyz?verbose'
  3. C.kubectl get cs
  4. D.kubectl get componentstatuses
  5. E.kubectl describe components

Correct answer: B

The command kubectl get --raw='/readyz?verbose' is the recommended way to check the readiness and status of Kubernetes cluster components. This approach provides detailed and up-to-date information about the health of the cluster. Other commands, such as kubectl get cs (deprecated shorthand) and kubectl get componentstatuses (deprecated endpoint), are no longer reliable in newer Kubernetes versions.

Sources: Kubernetes Official Documentation - API Server Health Checks, Kubernetes Blog - Deprecation of kubectl get cs

Compliance and Security Frameworks (2 questions)

Question 19

In threat modeling using Data Flow Diagrams (DFDs), what key aspects of a system are primarily visualized?
  1. A.Financial transaction records across global markets
  2. B.Network latency metrics in high-availability clusters
  3. C.Entry points, exit points, data flows, and potential threat vectors within the system
  4. D.Container orchestration for microservices deployment
  5. E.Source code management for Git-based repositories

Correct answer: C

Data Flow Diagrams (DFDs) are used in threat modeling to visually represent how data moves through a system, highlighting entry and exit points, data stores, processes, and trust boundaries. This visualization helps identify where threats could occur. The other options describe unrelated concepts such as financial data, network performance, container orchestration, or source code management, which are not the focus of DFDs in threat modeling.

Sources: Threat Modeling Using Data Flow Diagrams - OWASP, Data Flow Diagrams for Threat Modeling - Microsoft Docs

Question 20

Which statement best describes the role of container scanning tools like Aqua Security or Clair?
  1. A.They manage multi-cluster ingress controllers
  2. B.They automate vulnerability detection in container images, typically before deployment
  3. C.They provide a database of open-source container licenses
  4. D.They specialize in high-availability cluster provisioning
  5. E.They replace Kubernetes’ default scheduler

Correct answer: B

Container scanning tools such as Aqua Security and Clair analyze container images to identify known security vulnerabilities before these images are deployed. This process is a critical part of securing the container supply chain. They do not manage ingress controllers, provide license databases, handle cluster provisioning, or replace Kubernetes schedulers. Their focus is on vulnerability assessment to prevent deploying insecure containers.

Sources: Aqua Security Container Security, Clair GitHub Repository

Score yourself

The Linux Foundation lists a passing score of 75% for KCSA. On a set of 20 questions that is 15 correct. Reaching 15 here is a useful signal and not a prediction: 20 questions is a small sample, and the real exam covers every domain in its published weights. Use the table below to decide what to do next. Count only the questions you answered correctly without help, and be strict about it: a question you got right for the wrong reason belongs in the missed pile. Then repeat the exercise a few days later with a different set from the full bank so that you are measuring understanding and not memory of these specific questions.

Count your misses per domain, using the headings above. One missed question in a domain is noise; three misses in one domain is a study plan. The practice mode on GoldenKube does this sorting for you by sending you back to the domains where you are weakest.

Correct out of 20What it suggestsWhat to do next
18 to 20The basics are solid in the domains sampled.Move to harder mixed practice and check the domains this set did not cover.
15 to 17Close to the benchmark, with some gaps.Review every missed explanation, then practise the domains where you missed questions.
11 to 14Several domains need real study.Read the official curriculum for those domains, then return to practice.
0 to 10You are early in your preparation.Start from the curriculum and the project documentation, then retry this set.

Overview of Cloud Native Security: what it tests

Overview of Cloud Native Security sets the frame for the rest of KCSA. Expect the 4Cs model of cloud, cluster, container and code, the idea of defence in depth, the shared responsibility between a cloud provider and its customer, and the basics of securing the software supply chain, artifacts, secrets and workloads. Questions often ask which layer a given control belongs to or which layer is compromised when a given attack succeeds. The trap is treating the layers as independent: a weakness in an outer layer, such as an exposed node, undermines every control inside it, which is why the model is drawn as nested circles and not as a list.

Practise placing ten controls you already know, such as image scanning, network policy and disk encryption, into the correct C. The skill transfers directly to the layer-identification questions.

Kubernetes Cluster Component Security: what it tests

Kubernetes Cluster Component Security asks how to harden each part of the cluster. Expect the API server with its authentication, authorisation and admission stages and TLS, the kubelet with anonymous access, authorisation mode and its open ports, etcd with encryption at rest, client certificate authentication and network isolation, plus the scheduler, controller manager, kube-proxy and the container runtime. Questions frequently ask which setting closes a described exposure. A common trap is assuming a component is protected by default, when several of them rely on flags that an administrator must set deliberately, so know the secure value for the flags you recognise.

Make a small table with one row per component, a column for how it is reached, and a column for the control that protects that access. Questions in this domain are almost always a lookup in that table.

Kubernetes Security Fundamentals: what it tests

Kubernetes Security Fundamentals covers the controls that an application team uses every day. Expect the Pod Security Standards and their profiles (privileged, baseline and restricted), Pod Security Admission, RBAC with Roles, ClusterRoles and bindings, ServiceAccounts and token handling, Secrets and their storage, network policies, namespaces as a boundary, and audit logging. Traps are specific: RBAC only adds permissions and never denies them, a NetworkPolicy has no effect unless the network plugin enforces it, and a Secret is encoded, not encrypted, unless encryption at rest is configured. Reading a short manifest and spotting the risky field is a typical question shape.

Read three or four sample manifests and name the single riskiest line in each, such as privileged mode, a host path mount or a wildcard verb. That habit is faster than rereading the documentation.

Kubernetes Threat Model: what it tests

Kubernetes Threat Model looks at the cluster from the attacker's side. Expect trust boundaries, the ways an attacker gains a foothold and persists, privilege escalation from a container to a node, lateral movement across the network, access to sensitive data, denial of service by exhausting resources, and the idea that a threat model lists what can go wrong before choosing controls. Questions describe an attack step and ask what it is called or which control would have prevented it. The trap is answering with a control that is real but does not address the stated step, so match the control to the exact action in the scenario.

For each attack you meet, finish the sentence: this is stopped by, and detected by. Having both halves ready covers the two ways the question can be phrased.

Platform Security: what it tests

Platform Security covers the services built around the cluster. Expect the security of the container image supply chain, image registries and signing, the role of a service mesh in encrypting and authenticating traffic, certificates and public key infrastructure, network connectivity between workloads, admission control and policy enforcement, and observability for security signals. Questions often ask what a given platform component gives you and what it does not. A frequent trap is expecting one tool to cover everything: a service mesh authenticates workloads but does not scan images, and an admission controller blocks bad configuration but does not detect runtime behaviour.

List the platform components you know and write the one threat each one addresses and the one it leaves open. Knowing the gap is what lets you reject a tempting wrong option.

Compliance and Security Frameworks: what it tests

Compliance and Security Frameworks is the smallest KCSA domain and mostly asks you to recognise names and purposes. Expect compliance frameworks and how they apply to cloud native systems, threat-modelling frameworks, supply chain compliance and attestations, and the tooling that automates audits and policy checks. The trap is confusion between frameworks that sound alike: a configuration benchmark, an attack knowledge base and a threat-modelling method answer different questions. A small domain still decides borderline results, because its questions are mostly recall and can be answered quickly once the vocabulary is in place. Expect short recall questions that you can answer quickly once the names are familiar.

Make flashcards with the framework name on one side and the question it answers on the other, for example what to harden, what attackers do, or how to enumerate threats. Ten minutes of review is usually enough.

What a 20-question KCSA sample can and cannot tell you

A set of 20 questions is a screening test, not a measurement. With only a few questions per domain, one lucky guess or one unlucky wording moves your result by five percentage points, and a domain with only two questions behind it says almost nothing about that domain's true strength. The set is also fixed, so after one read-through it measures your memory of these items and not your command of KCSA. Use it to choose where to start studying, not to decide whether you are ready, and then rely on the larger bank, where questions repeat only after a gap and the app tracks which domains stay weak.

A second limit is style. Written practice questions share one author voice, while a real exam draws on many writers and reads differently. Treat any practice score, here or elsewhere, as one input next to the official curriculum, hands-on experience with the technology, and the documentation of the project itself.

A one-week plan after the KCSA sample set

After the sample set, spend a week turning the result into a plan. Start with the domains where you missed questions and read the matching part of the official curriculum before you try more questions, because practice is far more useful once you can explain the topic. Return to practice in short daily sessions, review every missed question the next day, and leave the last day for a fresh mixed set. Keep a simple note of which concepts caused misses; the same three or four ideas usually explain most of them, and naming them is what turns practice into progress.

The largest KCSA domain is Kubernetes Cluster Component Security, at 22% of the published weights. If two domains tie for weakest in your tally, start with the heavier one, and keep the other 5 domains ticking over with short reviews.

Adjust the pace to your calendar. If you have more time, spread the same steps over two or three weeks and add a second mixed session at the end of each week. If you have less, keep days 1 to 3 and day 6 and accept a rougher picture. What matters is that every study session starts from a specific weak domain and ends with a check, not that the plan is followed to the letter.

DayTask
1Tally misses per domain and rank the domains from weakest to strongest.
2Read the official curriculum and documentation for the weakest domain.
3Practise that domain in the app and read every explanation.
4Repeat the exercise for the second weakest domain.
5Review the questions you missed on days 3 and 4 without looking at notes.
6Do a mixed session across all domains and compare the result with this page.
7Rest, then retake the 20 questions on this page and note which misses persist.

Practice the full KCSA bank

These 20 questions are a small slice of the GoldenKube KCSA bank, which holds more than 300 questions. In practice mode the app serves the questions you are due to review first, then the domain where you are weakest, and it brings missed questions back after a gap until you answer them correctly. You can answer 10 questions as a guest without an account; after that a free account keeps your progress, and no credit card is asked for at any point. Each answer comes with the same kind of written explanation you saw on this page, so a wrong answer is always followed by the reasoning that fixes it.

Practice mode shows one question at a time and gives the verdict and explanation as soon as you answer. A focus option lets you stay inside a single domain until it feels solid, which is the natural next step after finding your weakest domain on this page. There is no timer and no exam simulation in practice mode; the goal is learning, not performance under pressure.

Frequently asked questions

Are these the real KCSA exam questions?

No. They are practice questions written for GoldenKube to cover the published KCSA domains. GoldenKube does not have the real exam, does not claim any overlap with it, and does not sell or share exam content. Use them to find gaps in your understanding, not to predict what you will be asked.

How many KCSA questions does GoldenKube have?

The KCSA bank holds more than 300 questions as of 2026-10-23. This page shows 20 of them. The full bank is available in practice mode, where the app chooses what to show you next based on what you have already answered and what you got wrong.

Do the answers come with explanations?

Yes. Every question on this page has the correct answer marked and a written explanation of why it is correct and, where useful, why the other options are not. Only questions that have an explanation are published on public pages, and where a question carries references they are listed under the explanation.

Is this free?

Yes. Reading this page needs no account. In the practice app you can answer 10 questions as a guest, and then you create a free account to continue. No credit card is requested at any point.

How were these 20 questions chosen?

A script picks them with a fixed seed, so the set does not change between visits. It considers only questions that have a written explanation and tries to follow the published domain weights. The domain labels in the bank do not always match the official wording, so a domain can be thinly represented in a single set of 20; the full bank is the better measure of coverage.

How often is this page updated?

The exam facts and the domain list were last checked against the Linux Foundation pages on 2026-10-23, and the page shows its update date at the top. When the curriculum changes or questions are added, corrected or removed in the bank, the page is reviewed again.

Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation.