Home / Kubernetes and Cloud Native Security Associate (KCSA) / Mock exam
Kubernetes and Cloud Native Security Associate (KCSA) Exam-style mock test

KCSA Kubernetes and Cloud Native Security Associate Practice Exams|Practice test

Full explanations Exam format Pass line 75%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Overview of Cloud Native Security
A fintech platform team is mapping its security controls to the 4C's of Cloud Native Security model. The team wants to place its controls in order from the broadest, outermost layer inward to the most specific layer. Which ordering reflects the correct outer-to-inner sequence of the 4C's?
✓Cloud, Cluster, Container, Code
Correct. The 4C's layer from the outermost Cloud through Cluster and Container down to the innermost Code.
・Code, Container, Cluster, Cloud
Incorrect. This reverses the model, running from the innermost Code outward to Cloud.
・Cluster, Cloud, Code, Container
Incorrect. Cloud is the outermost layer, so it cannot sit inside Cluster in this ordering.
・Container, Code, Cloud, Cluster
Incorrect. The layers are jumbled and do not follow the broad-to-specific nesting of the model.
Explanation
The 4C's of Cloud Native Security nest from broadest to narrowest: Cloud, then Cluster, then Container, then Code, with each inner layer depending on the security of the layers around it.
Example2 · Kubernetes Cluster Component Security
A fintech platform team audits their cluster and finds the kube-apiserver flag --anonymous-auth=true is set. Attackers can reach the API endpoint over the network. What is the most direct risk of leaving this flag enabled?
✓Unauthenticated requests are accepted and evaluated against the system:anonymous user, widening the attack surface
Correct. With anonymous auth on, requests without credentials are mapped to system:anonymous and still pass authentication, so only authorization protects the API.
・The scheduler will refuse to bind pods because anonymous service accounts cannot be resolved by the controller manager at admission time
Incorrect. Anonymous auth does not change how the scheduler binds pods, and it does not involve controller manager admission of service accounts.
・Audit logs are silently disabled for every namespace
Incorrect. Audit logging is configured independently and is not toggled by the anonymous auth setting.
・etcd automatically switches to an unencrypted transport
Incorrect. etcd transport security is configured separately and is unaffected by the API server anonymous auth flag.
Explanation
Anonymous authentication lets unauthenticated callers be treated as system:anonymous, so disabling it reduces exposure on a network-reachable API server.
Example3 · Kubernetes Security Fundamentals
A fintech platform team wants to block any Pod that requests privileged containers or host namespaces across their payments namespace, using only built-in Kubernetes mechanisms. Which approach enforces this at admission time?
✓Label the namespace to enforce the Pod Security Standards 'restricted' profile
Correct. Labeling the namespace with pod-security.kubernetes.io/enforce=restricted activates the built-in Pod Security admission controller, which rejects privileged Pods and host namespaces.
・Add a readinessProbe to each Deployment so the scheduler rejects privileged Pods before they ever start running
Incorrect. A readinessProbe affects traffic routing after a Pod starts and does not evaluate or block privileged security settings.
・Set a ResourceQuota on the payments namespace limiting the total CPU and memory privileged Pods consume
Incorrect. ResourceQuota caps aggregate resource consumption but does not inspect or reject privileged security context fields.
・Annotate every Service account so the kubelet refuses to mount privileged container images at node level
Incorrect. The kubelet does not reject images based on Service account annotations, and that mechanism does not enforce Pod Security Standards.
Explanation
Pod Security admission applies Pod Security Standards (privileged, baseline, restricted) at the namespace level using labels, and the restricted profile disallows privileged containers and host namespaces.
Example4 · Kubernetes Threat Model
A healthcare cloud team discovers that an attacker, after a brief intrusion, left behind a mechanism that re-grants them access every time a specific namespace spins up new workloads. Which threat category from the Kubernetes threat model does this describe?
・Denial of service
Incorrect. Denial of service aims to disrupt availability, not maintain a hidden foothold across redeployments.
✓Persistence
Correct. Persistence is the threat category where an attacker establishes a durable foothold that survives restarts and new deployments.
・Credential theft
Incorrect. Credential theft captures stealing secrets, which may enable persistence but is a distinct category.
・An attacker gaining a durable foothold so access survives reboots and redeployments
Incorrect. This is an accurate description of persistence, but it is a definition and not the named threat category being asked for.
Explanation
Persistence is the Kubernetes threat model category describing an attacker maintaining access over time despite restarts or redeployments.
Example5 · Platform Security
A healthcare cloud team runs patient-facing services on Kubernetes and must ensure only images from their vetted internal registry are ever deployed. During an audit, someone pulled a public image to debug a billing bug. Which control best stops unapproved registries at admission time?
✓An admission policy that rejects any Pod whose image is not approved
Correct. An admission control policy evaluating the image registry prefix blocks non-approved sources before the Pod is created.
・A NetworkPolicy that blocks all outbound egress traffic originating from each of the worker nodes
Incorrect. Blocking node egress is coarse, breaks legitimate traffic, and does not inspect image provenance.
・A nightly cron job that scans the cluster and emails a report of foreign images
Incorrect. A nightly scan detects after the fact; the foreign image already ran, so it is not prevention.
・A ResourceQuota that caps the number of Pods allowed in the namespace
Incorrect. A quota limits Pod counts but places no constraint on which registry images come from.
Explanation
Image repository hardening is enforced at admission by validating the registry source, not by network or quota controls.
Example6 · Compliance and Security Frameworks
A healthcare cloud team must prove their Kubernetes control plane meets an industry-accepted hardening baseline during an audit. Auditors ask which framework the team used to check settings like API server flags, etcd encryption, and kubelet authorization. Which framework directly provides these prescriptive, version-specific checks for Kubernetes components?
✓The CIS Kubernetes Benchmark
Correct. The CIS Kubernetes Benchmark gives prescriptive, version-specific configuration checks for components such as the API server, etcd, and kubelet.
・The OWASP Top Ten web risks
Incorrect. The OWASP Top Ten focuses on common web application risks and does not provide Kubernetes component configuration checks.
・The MITRE ATT&CK knowledge base
Incorrect. MITRE ATT&CK catalogs adversary tactics and techniques rather than prescribing component hardening settings.
・The ISO 9001 quality management standard
Incorrect. ISO 9001 addresses quality management processes and has nothing to do with Kubernetes hardening.
Explanation
The CIS Kubernetes Benchmark is the recognized source of prescriptive hardening checks for Kubernetes components, making it the right fit for the auditors' request.
Example7 · Overview of Cloud Native Security
A retail platform team is mapping their security controls against the 4C's of Cloud Native Security. According to this model, which layer forms the outermost boundary that all other layers depend on for their security?
✓The Cloud (or corporate datacenter) layer
Correct. Cloud is the outermost of the 4C's, and weak controls here undermine every inner layer.
・The Container image build and runtime layer
Incorrect. Containers sit inside the cluster, not at the outer boundary.
・The Code layer where application logic lives
Incorrect. Code is the innermost layer, fully dependent on the layers around it.
・The Cluster layer managed by Kubernetes
Incorrect. The cluster is protected by the cloud layer that surrounds it.
Explanation
The 4C's are Cloud, Cluster, Container, and Code, ordered from outermost to innermost, with each layer depending on the security of the one outside it.
Example8 · Overview of Cloud Native Security
The retail platform team wants their checkout service protected even if one control fails. Which security principle best describes layering multiple independent controls so no single failure exposes the system?
・Security through obscurity
Incorrect. Hiding details is not a reliable layered control strategy.
✓Defense in depth
Correct. Defense in depth stacks independent controls so one failure does not break security.
・Single sign-on federation
Incorrect. SSO federates identity but is not about layering controls.
・Role-based access control
Incorrect. RBAC governs permissions but is only one control, not a layering strategy.
Explanation
Defense in depth deploys multiple overlapping controls so that the failure of any single layer does not compromise the overall system.
Example9 · Overview of Cloud Native Security
The retail platform team runs its catalog service on a managed Kubernetes service from a cloud provider. Under the shared responsibility model, which task remains the team's own responsibility rather than the provider's?
・Patching the underlying physical host hardware
Incorrect. Physical hardware patching is handled by the cloud provider.
・Securing the data plane of the cloud region network
Incorrect. The provider secures the underlying region network infrastructure.
✓Configuring RBAC and securing their workloads
Correct. Workload configuration and RBAC stay with the customer in the shared model.
・Maintaining the availability of the managed control plane
Incorrect. Managed control plane availability is the provider's duty.
Explanation
In a managed Kubernetes offering, the provider handles the control plane and infrastructure, while the customer remains responsible for securing their workloads, configurations, and access policies.
Example10 · Overview of Cloud Native Security
A manufacturing company runs small Kubernetes clusters inside each factory to control robotic welding cells. A security architect maps their defenses using the 4Cs model. In this model, which layer is the OUTERMOST and underpins the security of everything layered on top of it?
✓Cloud, the hosting infrastructure layer
Correct. In the 4Cs model (Cloud, Cluster, Container, Code) the Cloud layer is the outermost ring; for edge sites it is the trusted physical/data-center infrastructure that all other layers depend on.
・The Container runtime and image packaging layer
Incorrect. The Container layer sits inside the Cluster layer and is not the outermost ring.
・The innermost application Code layer itself
Incorrect. Code is the innermost layer, closest to the application, not the outermost.
・The Kubernetes Cluster control plane layer
Incorrect. The Cluster layer is inside the Cloud layer rather than the outermost ring.
Explanation
The 4Cs are nested from outside in: Cloud, Cluster, Container, Code. The Cloud (or equivalent edge infrastructure) is the base that everything else trusts.
Example11 · Overview of Cloud Native Security
On the factory edge platform, an engineer proposes relying solely on a perimeter firewall around each plant, assuming nothing malicious can reach the welding-cell clusters. Which cloud native security principle does this assumption most directly violate?
✓Defense in depth, needing multiple independent layers
Correct. Defense in depth requires layered, independent controls so that a breach of one layer (the firewall) does not compromise the whole system.
・Encryption at rest, keeping stored data confidential on disk
Incorrect. Encryption at rest protects stored data and is unrelated to assuming a single perimeter is sufficient.
・Immutability, forbidding changes to any running workload
Incorrect. Immutability concerns not modifying running workloads, not perimeter trust.
・Auditability, recording actions for later security review
Incorrect. Auditability concerns recording actions for later review, not layered perimeter defenses.
Explanation
Trusting a single perimeter control contradicts defense in depth, which mandates multiple overlapping layers of protection.
Example12 · Overview of Cloud Native Security
A SaaS platform team is mapping its defenses onto the 4Cs model. An engineer argues that hardening the application code alone is enough because the inner layer is the closest to the business logic. Why is this reasoning flawed under the 4Cs model?
✓Each outer layer provides the foundation inner layers depend on, so weak outer layers undermine even well-written code
Correct. The 4Cs are nested; each outer layer secures the ones within it, so poor Cloud, Cluster, or Container security exposes code regardless of its quality.
・The Code layer is actually by far the least important of the four and can therefore be safely ignored
Incorrect. The Code layer is essential and the model does not rank it as least important.
・Only the Cloud layer genuinely matters here because the managed provider takes care of securing everything else
Incorrect. All four layers matter; relying only on the Cloud layer ignores the cluster, container, and code defenses.
・The 4Cs model requires that code be rewritten whenever the cluster changes
Incorrect. The model does not require rewriting code when the cluster changes; it describes layered dependencies.
Explanation
The 4Cs model is defense-in-depth with nested layers, so outer-layer weaknesses expose inner layers no matter how secure the code is.
Example13 · Overview of Cloud Native Security
A SaaS platform team runs workloads on a managed Kubernetes service. During an audit they assume the cloud provider patches their application containers. Under the shared responsibility model, what is the correct understanding?
✓The provider secures the control plane and infrastructure, while the team secures its own workloads
Correct. Managed providers secure the infrastructure and often the control plane, but customers stay responsible for their workloads, images, and configurations.
・The provider handles absolutely everything across the stack, so the team is left with no security duties at all
Incorrect. The provider does not handle everything; customer workloads remain the customer's duty.
・The team is required to install, operate, and physically manage the underlying server hardware entirely by itself
Incorrect. The provider manages the physical hardware, not the customer.
・The provider assumes full liability for any vulnerable application code the team deploys
Incorrect. The provider is not liable for vulnerable application code that the customer deploys.
Explanation
Shared responsibility splits duties: the provider secures the platform, the customer secures what runs on it.
Example14 · Overview of Cloud Native Security
A government cloud team is mapping its defenses to the 4Cs of Cloud Native Security model. They want to document which layer sits at the outermost boundary, where decisions about the underlying provider and infrastructure are made. Which layer is that?
✓Cloud
Correct. The Cloud layer is the outermost of the 4Cs and covers the provider and underlying infrastructure.
・The Container layer, which governs image provenance and runtime isolation for each workload the team deploys
Incorrect. The Container layer concerns image and runtime isolation, not the outermost infrastructure boundary.
・Code
Incorrect. Code is the innermost layer and addresses application security, not infrastructure.
・Cluster
Incorrect. Cluster sits inside Cloud and concerns Kubernetes components, not the provider boundary.
Explanation
The 4Cs nest from outside in: Cloud, Cluster, Container, Code. The outermost layer representing the provider and infrastructure is Cloud.
Example15 · Overview of Cloud Native Security
A government cloud team must comply with a shared responsibility model when hosting clusters on a managed Kubernetes service. Which security concern remains the customer's responsibility rather than the provider's?
・Physical security of the data centers that house the servers running the managed control plane nodes
Incorrect. Physical data center security belongs to the cloud provider in the shared responsibility model.
・Patching the hypervisor on the provider's compute hosts
Incorrect. Hypervisor patching on provider hosts is the provider's duty.
✓Workload and RBAC configuration
Correct. Configuring workloads and RBAC inside the cluster is always the customer's responsibility.
・Maintaining the provider's underlying network backbone hardware
Incorrect. The provider maintains its own network backbone hardware.
Explanation
Under shared responsibility, the provider secures the infrastructure while the customer configures and secures what runs on it, including RBAC and workloads.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)