Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Linux Foundation Kubernetes and Cloud Native Security Associate KCSA Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 6 Total 59 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Overview of Cloud Native Security

Skill tested: Apply the 4Cs model to classify and prioritize cloud-native security controls.

A company is preparing a Kubernetes-based payment service for production. Its review finds an overly permissive cloud account, an exposed cluster control plane, containers running as root, and an application dependency with a known vulnerability. The team has one sprint to assign remediation owners and wants to use the 4Cs of Cloud Native Security without treating one layer as a substitute for another. Which assignment correctly maps these findings to the 4Cs?

Correct Answer: C. Cloud account to Cloud; control-plane exposure to Cluster; root container to Container; vulnerable dependency to Code
Explanation:

The 4Cs describe layered security concerns: Cloud covers the provider account and infrastructure configuration; Cluster covers Kubernetes control-plane and cluster configuration; Container covers the image and runtime environment; and Code covers application source and dependencies. Thus, an exposed control plane belongs to Cluster, while a vulnerable application library belongs to Code. The other mappings confuse distinct layers and could lead teams to assign controls to the wrong owners. Security at one layer does not compensate for weaknesses at another.

Question 2

New Multiple answers

Topic: Overview of Cloud Native Security

Skill tested: Select complementary provider controls that reduce infrastructure and control-plane exposure.

A team runs a managed Kubernetes cluster in a public cloud. The provider manages the Kubernetes control plane, but the organization remains responsible for its cloud account, worker networking, and workload configuration. Security review finds publicly reachable cluster endpoints and administrative access granted to a broad group. The service must remain reachable to remote operators, and the team cannot replace the managed service or rely on a private corporate network being available at all times. Which TWO actions most directly reduce the relevant cloud and cluster exposure while preserving supported remote administration? Select TWO.

Correct Answer: D. Enable cloud-provider audit and identity controls, and remove unnecessary broad administrative grants.; E. Restrict the API endpoint to approved source ranges or private connectivity, and require authenticated access through the approved remote-access path.
Explanation:

Restricting the API endpoint's network reachability and requiring the approved authenticated access path directly addresses control-plane exposure. Cloud identity and audit controls reduce the chance of unauthorized account-level changes and improve accountability; removing unnecessary broad privileges is essential even when the provider operates the control plane. Private worker subnets do not automatically restrict a separately configured API endpoint. Kubernetes Secrets do not address endpoint exposure, and image signing protects software provenance rather than cloud identity or network access.

Question 3

New Single answer

Topic: Kubernetes Cluster Component Security

Skill tested: Reduce unauthenticated and unauthorized access to the kubelet HTTPS endpoint.

A security assessment discovers that workloads on a cluster can connect to worker-node kubelet HTTPS ports. The kubelets use the API server for normal management, and administrators need to retain the standard control-plane-to-kubelet workflow. No workload has a legitimate need to call kubelet APIs directly. Which configuration change best reduces this attack surface without disabling normal Kubernetes management?

Correct Answer: C. Disable anonymous kubelet authentication and use webhook authorization, while restricting network access to kubelet ports to required control-plane traffic.
Explanation:

Kubelet ports expose node-level APIs and should not be broadly reachable from workloads. Disabling anonymous authentication prevents unauthenticated requests from being accepted, while webhook authorization allows the kubelet to consult the API server for authorization decisions. Network restrictions add defense in depth and preserve the necessary control-plane workflow. AlwaysAllow removes authorization checks, and granting workloads node-level permissions greatly expands privilege rather than limiting it. Firewall rules alone do not justify accepting anonymous kubelet requests.

Question 4

New Multiple answers

Topic: Kubernetes Cluster Component Security

Skill tested: Secure etcd access and protect stored Kubernetes data with transport and encryption controls.

An operations team hosts etcd for a self-managed Kubernetes control plane. A network review shows that several non-control-plane hosts can reach the etcd client port, and a disk review confirms that snapshots and database contents are not encrypted at rest. The API server connects to etcd using TLS. The organization wants to limit both unauthorized access and disclosure of stored Secrets, while keeping API-server access functional. Which TWO changes best meet these requirements? Select TWO.

Correct Answer: D. Restrict etcd client-network access to the API-server hosts and other explicitly required peers.; E. Configure Kubernetes API-server encryption at rest for Secret resources, with appropriate key management.
Explanation:

Network restriction limits which systems can attempt etcd client connections, reducing the reachable attack surface while allowing the API server's required access. API-server encryption-at-rest configuration protects supported resources such as Secrets in etcd, provided encryption keys and configuration are managed appropriately. Kubernetes RBAC governs API requests; it does not make broad direct access to etcd safe. Private networking is not a reason to remove TLS, and base64 encoding is not encryption. Image encryption would not protect Kubernetes data stored in etcd.

Question 5

New Single answer

Topic: Kubernetes Cluster Component Security

Skill tested: Distinguish scheduler and controller-manager identities and limit their API permissions.

During a control-plane review, an administrator finds that the scheduler and controller manager both use a shared kubeconfig with broad cluster-administrator permissions. The components are healthy, and the team wants to reduce the impact of a compromised component without changing how scheduling or reconciliation works. What is the best corrective action?

Correct Answer: A. Use the components' intended identities and narrowly scoped permissions, with separate credentials or mechanisms where supported.
Explanation:

The scheduler and controller manager require API access to perform their respective control-plane functions, but they should not share an unnecessarily powerful administrator identity. Using their intended identities and least-privilege permissions limits the effect of credential compromise and improves attribution. Frequent rotation does not reduce the excessive scope of a credential. Removing API access prevents normal operation, and placing components in application namespaces does not replace the required control-plane authorization model.

Question 6

New Multiple answers

Topic: Kubernetes Security Fundamentals

Skill tested: Enforce Pod Security Standards using namespace-level admission policy settings.

A platform team must prevent new application Pods from using privileged containers, host namespaces, or hostPath volumes. Existing application teams should receive useful warnings before a future policy upgrade, while workloads in a separately governed system namespace must retain narrowly reviewed exceptions. The cluster supports the built-in Pod Security Admission controller. Which TWO actions best implement this policy? Select TWO.

Correct Answer: C. Label application namespaces for the restricted Pod Security Standard, using enforce for the required level and warn or audit as appropriate during rollout.; D. Use namespace-scoped Pod Security Admission labels and separately review and document any necessary system-namespace exceptions.
Explanation:

Pod Security Admission applies Pod Security Standards through namespace labels, including enforce, warn, and audit modes. Enforce prevents admission of Pods that violate the selected profile; warning and audit modes support visibility and staged rollout. Applying policy by namespace also permits a controlled exception process for system components, rather than blindly imposing application policy on every system workload. A setting on one Deployment does not cover all Pods, and kubelet configuration is not the general namespace-level admission mechanism for these restrictions.

Question 7

New Single answer

Topic: Kubernetes Security Fundamentals

Skill tested: Choose Kubernetes authentication and authorization controls that support identity-specific auditability.

A company currently distributes one long-lived client certificate to several platform operators. When an API change is made, the audit trail identifies the shared certificate identity but not the individual operator. The organization needs individual attribution and centralized access decisions; it does not want to issue a different static certificate for every human operator. Which approach best meets the requirement?

Correct Answer: B. Use an external identity provider through a supported API-server authentication integration, then authorize individual identities or groups with RBAC.
Explanation:

Authentication establishes the caller's identity, while authorization determines what that identity may do. An external identity integration can provide individual human identities and centralized authentication; RBAC can then grant appropriate permissions to users or groups, producing more meaningful audit attribution. Separate Roles do not distinguish callers that all authenticate as the same shared identity. Anonymous access provides no reliable identity, and service accounts are intended primarily for workloads; cluster-admin bindings would also violate least privilege.

Question 8

New Multiple answers

Topic: Kubernetes Security Fundamentals

Skill tested: Apply default-deny network policies and allow only required application traffic.

A namespace contains a front-end, an API service, and a database. All three currently communicate freely with Pods in other namespaces. The cluster networking plugin enforces Kubernetes NetworkPolicy. Requirements are to block unsolicited ingress to these Pods, allow front-end traffic to the API, allow API traffic to the database, and preserve the DNS queries the workloads need. The team wants policies that remain understandable as new workloads are added. Which TWO policy design actions are most appropriate? Select TWO.

Correct Answer: B. Add narrowly scoped ingress and egress allowances for the front-end-to-API and API-to-database paths, including required DNS egress.; E. Create ingress and egress default-deny policies for the selected Pods, then add explicit rules for required flows.
Explanation:

NetworkPolicy is additive: once a Pod is selected by an ingress or egress policy, traffic is limited to the allowed flows defined by applicable policies. A default-deny baseline followed by explicit application and DNS allowances provides a clear least-privilege model. An allow-all rule defeats isolation, and a policy selecting only the database does not automatically isolate other Pods. Services provide stable discovery and load balancing; they do not function as network access-control policies.

Question 9

New Single answer

Topic: Kubernetes Threat Model

Skill tested: Identify persistence risk from writable host paths and node-level workload access.

A team investigates an incident in which a compromised application Pod modified files under a host-mounted directory. The Pod used a hostPath volume for convenience and was allowed to run with elevated privileges. Investigators cannot yet prove whether the node itself was altered, and the application can be redesigned to use a PVC for its data. What is the most appropriate immediate containment and prevention decision?

Correct Answer: B. Remove the unnecessary hostPath and privileged access, isolate and assess the affected node, and use an appropriately scoped persistent volume for application data.
Explanation:

A writable hostPath exposes node filesystem resources to a workload, and privileged execution can substantially increase the potential impact. Removing those unnecessary capabilities prevents recurrence; a PVC is a better fit for application data. Because node integrity is uncertain, the affected node should be isolated and assessed rather than assumed clean. Readiness probes do not detect or remediate host compromise. Changing namespaces does not remove the host-level trust boundary, and hostNetwork would further increase exposure.

Question 10

New Multiple answers

Topic: Kubernetes Threat Model

Skill tested: Mitigate control-plane denial-of-service risks from excessive workload resource consumption.

A multi-tenant cluster experiences intermittent API-server and node pressure after several teams deploy Pods with no resource requests or limits. One tenant's batch workload can create many replicas and consume substantial memory; the team cannot dedicate separate clusters to every tenant this quarter. The platform must reduce the risk of resource exhaustion while retaining room for approved workload growth. Which TWO measures best address this threat? Select TWO.

Correct Answer: B. Use workload scaling limits and tenant authorization controls to restrict who can create or expand large replica sets.; D. Set namespace ResourceQuota and LimitRange policies that constrain aggregate consumption and require appropriate per-container resource settings.
Explanation:

ResourceQuota limits aggregate namespace consumption, while LimitRange can establish defaults or bounds for individual container resources. Authorization and controlled scaling limits reduce the ability of a tenant or compromised identity to create excessive workloads. These measures address resource exhaustion without imposing a universally tiny limit that could destabilize legitimate applications. NetworkPolicy controls network flows, not memory consumption, and disabling API authentication would worsen the threat rather than mitigate it.

Question 11

New Single answer

Topic: Platform Security

Skill tested: Use image provenance and admission controls to block untrusted workload images.

A platform group needs to prevent production workloads from using images that were not built by its approved pipeline. Developers may publish images to an internal registry, but registry access alone does not prove that an image was produced by the approved process. The cluster must reject noncompliant workload submissions, and the organization is willing to operate a signature-verification admission integration. Which design best meets the requirement?

Correct Answer: A. Require approved pipeline-generated image signatures or attestations and enforce their verification through admission before workloads are accepted.
Explanation:

Registry authentication controls who can access or publish to a repository, but does not by itself establish that an image was built by an approved pipeline. Verifiable signatures or attestations tied to trusted identities, combined with admission enforcement, can reject workloads whose artifacts lack the required provenance before they run. A service mesh primarily addresses service-to-service communication and does not validate image provenance after startup. imagePullPolicy controls fetching behavior, not trust or signature verification.

Question 12

New Multiple answers

Topic: Platform Security

Skill tested: Distinguish PKI and service-mesh controls from workload admission and artifact validation.

A financial services platform has two separate findings. First, east-west service traffic is not consistently encrypted or authenticated. Second, teams can submit Pods that reference images outside the approved repository. The platform already has an admission mechanism available, and it must address both findings without assuming that one control provides both functions. Which TWO actions are appropriate? Select TWO.

Correct Answer: C. Configure the service mesh to provide workload identity and authenticated, encrypted service-to-service communication where supported.; E. Enforce approved image repositories and image verification requirements through admission policy.
Explanation:

A service mesh can use workload identities and certificates to secure service-to-service communication, addressing the east-west transport finding. Admission policy evaluates submitted workload configuration and can reject disallowed registries or require image verification, addressing image use before workloads are admitted. These are complementary controls with different trust boundaries. Mesh traffic encryption does not prove image origin or generally block Pod creation. API-server TLS protects the client-to-API connection, not the provenance of referenced images.