What the KCSA exam covers
- Overview of Cloud Native Security67 questions
- Kubernetes Cluster Component Security140 questions
- Kubernetes Security Fundamentals179 questions
- Kubernetes Threat Model99 questions
- Platform Security127 questions
- Compliance and Security Frameworks50 questions
Free KCSA practice test questions
A sample of 10 questions with answers and explanations. A free account includes a fixed set of 20 practice questions for this exam, retryable anytime. Paid access unlocks the full 662-question bank.
-
The '4Cs of Cloud Native Security' model describes defense in depth across which layers?
- AControl, Compute, Cache, Code
- BCloud, CDN, Cache, Cluster
- CContainer, CNI, CSI, CRI
- DCloud, Cluster, Container, CodeCorrect
✓ Correct answer: DThe 4Cs of Cloud Native Security, a named topic in domain 1 of the CNCF KCSA curriculum, describe defense in depth as four nested layers: Cloud (the infrastructure and account controls), Cluster (the Kubernetes control plane and its configuration), Container (the image, runtime and container settings) and Code (the application and its dependencies). Each outer layer is the base the inner one stands on, so an attacker has to get past several independent boundaries before reaching full compromise. Current kubernetes.io security pages frame cloud native security by lifecycle phase instead, but the 4Cs layering remains the model the KCSA curriculum names.
Why the other options are wrong- AControl, Compute, Cache and Code mix one real layer name with terms that are not layers of the 4Cs model named in the KCSA curriculum; the model starts from Cloud and Cluster, not control and compute.
- BCloud, CDN, Cache, Cluster replaces the legitimate Container and Code layers with CDN and Cache, which are networking and caching concerns rather than independent security tiers in the 4Cs model.
- CContainer, CNI, CSI, CRI conflates the single Container layer with three Kubernetes plugin interfaces (CNI for networking, CSI for storage, CRI for container runtimes), none of which represent the four hierarchical defense layers of the 4Cs model.
-
A Kubernetes cluster has Audit Policy configured with level 'RequestResponse' for the 'secrets' resource. What information is captured in the audit log for each API request to a Secret?
- AOnly the HTTP verb and the resource name, with no body content.
- BThe request metadata, request body, and response body, including the secret data.Correct
- COnly the metadata (user, verb, resource) without request or response bodies.
- DOnly failed requests; successful reads are not logged at RequestResponse level.
✓ Correct answer: BThe audit levels are None, Metadata, Request, and RequestResponse. At RequestResponse the entry includes the response body, which for a Secret read contains the Secret object with its base64-encoded data rather than decoded plaintext, yet that encoded data is still sensitive. Because of this, the documented practice is to log Secrets at the Metadata level so secret values are not written into the audit log at all.
Why the other options are wrong- ALogging only the verb and resource name is a subset of the Metadata level, not RequestResponse.
- CLogging only metadata corresponds to the Metadata audit level; RequestResponse includes the request and response bodies as well.
- DAudit logging records requests at the configured level regardless of success or failure, so successful reads are logged too.
-
An operator wants to ensure kube-controller-manager-generated service account tokens are signed and that the controller manager uses a dedicated key. Which flag is most relevant to securing the controller manager's token signing role?
- A--service-account-private-key-file, which supplies the private key the controller manager uses to sign service account tokensCorrect
- B--root-ca-file, which supplies the public CA bundle the controller manager injects into service account token secrets
- C--use-service-account-credentials, which makes each internal controller run under its own dedicated service account
- D--cluster-signing-cert-file, which is the CA cert the controller manager uses when signing kubelet certificate requests
✓ Correct answer: AThe kube-controller-manager runs the service account token controller and uses the private key from --service-account-private-key-file to sign tokens it issues. The API server verifies them with the matching public key from --service-account-key-file. Protecting and properly scoping these keys is part of hardening the control plane, separate from any kubelet or etcd flags.
Why the other options are wrong- B--root-ca-file provides the public CA distributed to workloads for trust rather than the private signing key, so token signing itself relies on --service-account-private-key-file instead.
- C--use-service-account-credentials scopes which identity individual controllers run as for least privilege, but it does not configure the key used to sign service account tokens.
- D--cluster-signing-cert-file governs signing certificate signing requests such as kubelet CSRs, which is a separate CA function from signing service account bearer tokens.
-
An etcd member runs with the flags below. ``` --client-cert-auth=true --trusted-ca-file=/etc/etcd/ca.crt --peer-client-cert-auth=false ``` What exposure does this leave?
- AClients on port 2379 can connect without certificates, since peer and client checks share one switch
- BA host that can reach the peer port 2380 can talk to the member as a peer without a verified certificateCorrect
- CThe API server falls back to plaintext on port 2379 whenever a peer connection fails verification
- DMembers stop replicating, since peer TLS cannot start without --peer-client-cert-auth set to true
✓ Correct answer: BThe etcd security guide treats client and peer traffic separately: --client-cert-auth checks clients on the client port, while with --peer-client-cert-auth set 'etcd will check all incoming peer requests from the cluster for valid client certificates signed by the supplied CA.' With the peer check off, the member does not verify who connects on the peer port, which carries Raft replication of all cluster state, including Secrets. Both checks need to be on.
Why the other options are wrong- AClient and peer checks are separate flags. --client-cert-auth still requires certificates from clients on port 2379.
- Cetcd has no fallback that drops client TLS because of a peer problem; the client listener keeps its own TLS settings.
- DMembers still replicate with --peer-client-cert-auth off; the setting only removes the certificate check on incoming peer connections.
-
How does building on a minimal (for example distroless) base image improve security?
- AFewer packages and binaries (no shell or package manager) mean less attack surface and fewer CVEsCorrect
- BIt applies a RuntimeDefault seccomp profile to every container built from that base image
- CIt makes the container's root filesystem read-only at runtime, so attackers cannot write files
- DIt runs the workload on its own guest kernel, isolating it like a sandboxed runtime does
✓ Correct answer: ADistroless images contain the application and its runtime dependencies without a shell, package manager or debugging tools. Fewer installed packages means fewer CVEs reported by scanners, and an attacker who gets code execution has no shell or tools to work with. Seccomp, a read-only root filesystem and sandboxed runtimes are separate controls set in the pod spec or RuntimeClass, not by the image (Security checklist).
Why the other options are wrong- BA seccomp profile is set in the pod or container securityContext, or by the kubelet's seccompDefault setting; the base image does not set one.
- CA read-only root filesystem comes from readOnlyRootFilesystem in the securityContext; a minimal image is still writable unless that is set.
- DDistroless images run on the node's shared kernel like any container; a separate guest kernel needs a sandboxed runtime such as Kata.
-
An application keeps its database password in a ConfigMap, and a reviewer flags this. Which change follows Kubernetes guidance for confidential data?
- AKeep the ConfigMap, mark it immutable, and limit get, list and watch on it with RBAC
- BMove it to a Secret, restrict get, list and watch on it, and enable encryption at restCorrect
- CMove it to a Secret, relying on base64 encoding to hide the value in etcd
- DMove it into the Deployment's env values so it is no longer a separate object
✓ Correct answer: BA ConfigMap provides no secrecy or encryption, and Kubernetes says to use a Secret for confidential data. A Secret alone is still stored unencrypted in etcd by default, so the guidance is to enable encryption at rest and restrict get, list and watch on Secrets, since list and watch also reveal contents (ConfigMaps; Secrets; RBAC good practices).
Why the other options are wrong- AImmutability only prevents changes, and a ConfigMap is not treated as confidential; Kubernetes says to use a Secret for such data.
- Cbase64 is an encoding, not encryption; without encryption at rest the value is readable in etcd.
- DAn env value in the Deployment spec is readable by anyone who can read the Deployment, so this exposes it more widely.
-
A pod sets securityContext.seccompProfile.type: RuntimeDefault. What does this do?
- AKeeps the node's default behaviour, which is Unconfined unless the kubelet has seccompDefault enabled
- BApplies the seccomp profile supplied by the container runtime, which blocks a set of system callsCorrect
- CLoads a seccomp profile file from the kubelet's seccomp directory on the node, named in the pod spec
- DApplies the AppArmor profile supplied by the container runtime, which limits file and network access
✓ Correct answer: BValid seccompProfile types are RuntimeDefault, Unconfined and Localhost. The seccomp tutorial explains that without the kubelet's seccompDefault setting, a pod with no profile runs Unconfined, while RuntimeDefault applies the profile defined by the container runtime on any node. That profile blocks rarely needed and dangerous system calls while keeping normal workloads working, and the restricted Pod Security Standard accepts it.
Why the other options are wrong- AThat describes leaving seccompProfile unset: the default is Unconfined unless seccompDefault is enabled. Setting RuntimeDefault explicitly applies the runtime's profile everywhere.
- CLoading a profile from the node is type Localhost, with localhostProfile giving its path relative to the kubelet's seccomp profile directory.
- DAppArmor is set through the separate appArmorProfile field, which has its own RuntimeDefault type. seccompProfile controls system call filtering only.
-
A team builds defense in depth across the 4C's for a public-facing service. Which TWO pairs place complementary controls at two different layers, rather than two controls at the same layer? (Choose TWO)
- AScanning the app's dependencies in CI, plus a minimal base image that runs as non-rootCorrect
- BLeast-privilege cloud IAM for the node identity, plus RBAC that limits API accessCorrect
- CScanning images for vulnerable OS packages, plus signing each image at build time
- DNetwork access lists for the API endpoint, plus access lists that limit who reaches the nodes
✓ Correct answer: A, BThe 4C's overview places third-party dependency scanning under Code, non-root users under Container, least-privilege cloud provider access under Cloud, and RBAC for API access under Cluster. It lists image vulnerability scanning and image signing both under Container, and network access lists for the control plane and for the nodes both in the Cloud infrastructure table, so those pairs add depth inside a single layer.
Why the other options are wrong- CThe overview lists container vulnerability scanning and image signing both under the Container layer, so this pair adds depth within one layer.
- DNetwork access to the API server and network access to the nodes are both rows of the Cloud layer's infrastructure table, so this pair stays in one layer.
-
The kube-apiserver has anonymous authentication enabled, and a ClusterRoleBinding grants the built-in view ClusterRole to the group system:unauthenticated. What can an attacker who reaches the API endpoint do?
- ARead every object in every namespace, including Secrets, without presenting any credentials
- BRead most namespaced objects in every namespace, but not Secrets, without presenting any credentialsCorrect
- CNothing, because system:unauthenticated requests are rejected before any authorizer is consulted
- DOnly call discovery and health endpoints, because RBAC ignores bindings to unauthenticated groups
✓ Correct answer: BWith anonymous authentication enabled, requests that no authenticator rejects are treated as system:anonymous in the group system:unauthenticated, and RBAC then applies any bindings to that group. The view ClusterRole allows read-only access to most objects in a namespace, but does not allow viewing Secrets or Roles. Bound with a ClusterRoleBinding, it applies in every namespace.
Why the other options are wrong- Aview deliberately excludes Secrets, because reading them would expose ServiceAccount credentials. Secrets stay unreadable here.
- CWith anonymous authentication enabled, anonymous requests proceed to authorization like any other. RBAC bindings to system:unauthenticated apply to them.
- DRBAC treats system:unauthenticated like any other group. A binding to it grants the bound role's rights to anonymous callers.
-
A platform engineer wants workloads to obtain X.509 credentials from a cluster-managed issuer through the Kubernetes API, with an approver or controller deciding on each one before anything is issued. Which built-in API object holds the pending item that awaits that decision?
- AA Secret of type kubernetes.io/tls
- BTokenRequest
- CClusterTrustBundle
- DCertificateSigningRequestCorrect
✓ Correct answer: DKubernetes documents that once created, a CertificateSigningRequest must be approved before it can be signed, and that depending on the signer it may be approved automatically by a controller. The signer then writes the issued certificate into the object's status. A ClusterTrustBundle publishes CA certificates for trust, TokenRequest issues service account tokens, and a TLS Secret only stores an existing certificate and key.
Why the other options are wrong- AA kubernetes.io/tls Secret stores a certificate and key that already exist. It has no approval workflow.
- BTokenRequest issues a bound service account token immediately. There is no approval step and no certificate.
- CA ClusterTrustBundle distributes trust anchors, such as signer CA certificates. It does not carry a request awaiting approval.
Who this KCSA practice exam is for
This practice set is for anyone preparing for the KCSA: Kubernetes and Cloud Native Security Associate exam at the intermediate level - from first-time candidates building a foundation to experienced Cloud Native practitioners doing a final review before test day. If you learn best by working through realistic questions and reading why each answer is right or wrong, it is built for you.
How to use this KCSA practice exam
- Start with the free sample questions above to gauge your current baseline.
- Read the full explanation on every question, including why each wrong option is wrong.
- Track your weak domains and focus your study where you are losing the most marks.
- Once you are scoring consistently well, take a timed, full-length mock exam.
- Use your readiness score to decide when you are ready to book the real KCSA exam.
Related Cloud Native resources
- KCSA study guideKey concepts
- Cloud Native practice examsAll Cloud Native
- Certification pathWhere this fits
- Certification exam guides & tipsBlog
- Plans & pricingFree & paid
- Hands-on kcsa labsLearn
- KCSA security review cheat sheetCheat sheet
- How these questions are written and reviewedMethodology
- Report a problem with a questionCorrections
- OTCA practice examRelated
- Prometheus Certified Associate (PCA) practice examRelated
- CBA practice examRelated
KCSA practice exam FAQ
How many questions are in the KCSA practice exam on CertGrid?
CertGrid has 662 practice questions for KCSA: Kubernetes and Cloud Native Security Associate, covering 6 exam domains. The real KCSA exam is 60 qs in 90 min. CertGrid's timed mock is a fixed 60 questions.
What is the passing score for KCSA?
The KCSA exam passing score is 75%, and you have about 90 min to complete it. CertGrid scores your practice attempts the same way so you know when you are ready.
Are these official KCSA exam questions?
No. CertGrid is an independent practice platform. We do not provide real or leaked exam questions. Our questions are original and designed to help you practice the concepts, scenarios, and difficulty style of the KCSA: Kubernetes and Cloud Native Security Associate exam.
Is there a free KCSA practice test?
Yes. You can take a free KCSA: Kubernetes and Cloud Native Security Associate practice test straight away: a fixed set of 20 practice questions for this exam, retryable as often as you like, with no credit card required. You get readiness scoring and a weak-domain breakdown on those questions. Paid plans unlock the full 662-question bank, timed mock exams and full-bank domain analytics.
What CertGrid is (and is not)
CertGrid is an independent IT certification practice platform for Azure, AWS, Google, Cisco, Security, Linux, Kubernetes, Terraform, and other certification tracks. It provides objective-mapped practice questions, readiness scoring, weak-domain drills, and explanations to help learners understand what to study next.
Independent & original. CertGrid is an independent practice platform and is not affiliated with or endorsed by the Cloud Native Computing Foundation. Questions are original practice items designed to mirror certification concepts and exam style. CertGrid does not provide official exam questions or braindumps.