Exam Information
Free practice questions with explanations
Linux Foundation KCSA Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 15
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Compliance and Security Frameworks
A fintech company must demonstrate to auditors that every container image deployed to its production Kubernetes clusters was built from approved base images and that a software bill of materials (SBOM) is retained for each release. The platform team has a CI pipeline that builds images with Tekton and pushes to a private registry. Auditors have asked for evidence that is generated automatically on each build and cannot be altered after the fact. The team has a limited budget and wants to avoid writing custom compliance scripts. Which action BEST meets the requirement?
Correct Answer: DExplanationAttaching SBOMs and signed provenance as OCI referrer artifacts ties the evidence to the image digest, is generated on every build, and can be verified cryptographically, so it cannot be silently altered. Storing a loose text file beside the image does not bind it to the digest, and a manual checklist or weekly spreadsheet is neither automatic nor tamper-evident. Registry vulnerability scanning reports vulnerabilities but does not provide the SBOM or build provenance the auditors asked for.
-
2 Question 2 Single choice Kubernetes Cluster Component Security
A platform team runs a multi-tenant cluster with kubeadm. A security review found that a compromised worker node could read Secrets belonging to pods on other nodes by using its kubelet credentials. The team wants to restrict each kubelet so it can only read Secrets and ConfigMaps for pods actually scheduled on its own node, without changing application manifests or adding third-party components. Which configuration change BEST addresses this?
Correct Answer: DExplanationThe Node authorizer grants kubelets access only to Secrets, ConfigMaps and PVCs referenced by pods bound to that node, and NodeRestriction stops a kubelet from modifying its own Node labels or mirror pods beyond its scope. Setting AlwaysAllow removes authorization entirely, making the problem worse. Disabling anonymous authentication does not limit what an authenticated kubelet can read. Etcd encryption at rest protects data on disk but the API server still decrypts it for any authorized caller.
-
3 Question 3 Multiple choice Kubernetes Security Fundamentals
A company is migrating a legacy application into a namespace named payments on a cluster running Kubernetes 1.29. Pods in the namespace must run as non-root, must not mount host paths, and must not allow privilege escalation. Auditors also require that the enforcement be applied at admission time and that violations be recorded in the audit log rather than silently allowed. The team wants to use built-in mechanisms only. Which TWO actions together meet these requirements? (Choose two.)
Correct Answer: C, DExplanationPod Security Admission reads namespace labels, so enforce=restricted blocks non-compliant pods at admission while audit=restricted records violations in the audit log, and the audit label is the mode that writes to audit events. Gatekeeper is not built in, and warn-only mode neither blocks nor records as the auditors require. A NetworkPolicy controls traffic, not pod spec fields such as host path mounts or privilege escalation.
-
4 Question 4 Single choice Kubernetes Threat Model
A security engineer is reviewing a cluster after a suspected incident. An attacker obtained shell access inside a web frontend container and then tried to reach the Kubernetes API using the default service account token mounted into the pod. Audit logs show 403 Forbidden responses for list pods and get secrets calls. The attacker then began probing the cloud metadata endpoint from the same pod. Which change most directly reduces the blast radius of this specific attack path while preserving the frontend's need to serve traffic?
Correct Answer: CExplanationThe 403 responses show the RBAC layer held, but the token still gave the attacker an identity to test, so disabling automatic token mounting removes that credential from the container entirely. Blocking the metadata address with egress rules addresses the second path. Resource limits do not stop enumeration, token rotation still leaves a valid token mounted, and a PodDisruptionBudget only governs voluntary evictions and does nothing to contain a compromise.
-
5 Question 5 Single choice Overview of Cloud Native Security
A company runs a managed Kubernetes cluster in a public cloud and must document the 4Cs of cloud native security for its architecture review. The security lead notes that the company's engineers have already hardened the container images with minimal base layers and enforced Pod Security Standards at the cluster level. The architecture review asks which layer is most accurately described as the outermost layer that the company does not directly configure in its cluster but must still assess for shared responsibility. Which layer should the architect identify?
Correct Answer: AExplanationThe 4Cs model places Cloud, the infrastructure and provider controls, as the outermost layer, and in a managed service the provider operates much of that layer under a shared responsibility model. Cluster is the layer the company configures through Pod Security Standards and RBAC, and Container and Code are the inner layers the engineers already harden directly. Choosing Cluster ignores that the question targets the layer outside the company's direct configuration.
-
6 Question 6 Single choice Kubernetes Cluster Component Security
A cluster operator notices that after a control plane upgrade, pods on one worker node stay in Pending indefinitely even though the node has spare capacity. Investigation shows the scheduler logs a message about being unable to reach the API server through an expired client certificate. The operator needs to find out which component's client certificate has expired and whether its credential path is the cause. Which component should be checked FIRST to confirm the cause?
Correct Answer: DExplanationThe scheduler authenticates to the API server with the client certificate in its kubeconfig, so an expired certificate there prevents it from watching unscheduled pods and binding them, which explains the Pending state. Etcd peer certificates secure member-to-member traffic and the scheduler never reads etcd directly. Kube-proxy handles service routing, not pod placement, and the kubelet serving certificate is used for inbound kubelet API calls rather than the scheduler's watch.
-
7 Question 7 Single choice Platform Security
A platform team uses Istio in strict mTLS mode across a namespace named orders. A new service in the namespace must receive traffic from a legacy batch job running outside the mesh on a VM. The batch job cannot be injected with a sidecar and must keep working during a six-week migration window. The security team forbids disabling mTLS for the whole namespace. Which approach BEST satisfies both requirements?
Correct Answer: DExplanationA workload-level or port-level PeerAuthentication with mode DISABLE on the specific port lets the non-mesh client connect in plaintext while strict mTLS continues to apply to the rest of the namespace, matching the security team's constraint. PERMISSIVE at namespace scope weakens every workload, not just the migration target. Removing the sidecar takes the service out of the mesh's controls entirely, and RequestAuthentication validates end-user JWTs at the request level but does not encrypt the transport.
-
8 Question 8 Multiple choice Platform Security
A platform team is designing an admission control layer for a production cluster. Requirements: container images must come only from the company's private registry, and images must carry a valid cryptographic signature from the release pipeline before they are admitted. The team wants a solution that works with existing kubectl workflows and avoids modifying application manifests. Which TWO design choices together satisfy these requirements? (Choose two.)
Correct Answer: B, DExplanationA validating admission policy can match image references against an allowed registry prefix, and a signature verification admission controller enforces that images are signed by the release key before the API server accepts the pod. The kubelet does not verify image signatures, and a registry signing images on push does not make the cluster check anything. A sidecar runs after admission, so it cannot prevent an unsigned pod from being created.
-
9 Question 9 Single choice Kubernetes Security Fundamentals
A team runs a cluster where developers authenticate with OIDC through the API server. An audit found that a service account named ci-deployer in the release namespace has been granted a ClusterRoleBinding to the cluster-admin ClusterRole. The team wants to remove this excessive privilege while keeping the CI pipeline able to create and update Deployments only in the release namespace. Which change BEST achieves this with least privilege?
Correct Answer: CExplanationRBAC is additive and has no deny rules, so the only way to remove cluster-admin reach is to delete the ClusterRoleBinding, and a namespaced RoleBinding to a narrow Role grants exactly the needed verbs in release. A deny ClusterRole does not exist in RBAC. Binding cluster-admin through a RoleBinding still grants cluster-admin privileges within the namespace, which is excessive. The view ClusterRole is read-only and cannot perform the required updates.
-
10 Question 10 Single choice Compliance and Security Frameworks
A regulated healthcare company maps its cluster controls to a threat modelling framework for an annual review. The team has used STRIDE to model the API server and must now document a control that addresses the Tampering threat against audit records written by the API server. Available controls are: restricting who can read audit logs, forwarding logs to an append-only external store with integrity protection, increasing the audit policy verbosity to Request level, and enabling RBAC on the audit log file path. Which control is the BEST mapping to the Tampering category for this threat?
Correct Answer: BExplanationTampering is the STRIDE category for unauthorised modification, and append-only external storage with integrity protection addresses modification directly, so a compromised node cannot rewrite earlier audit entries. Restricting read access addresses information disclosure rather than modification. Increasing verbosity does not prevent changes, and Kubernetes RBAC governs API access, not file system permissions on the API server host.
-
11 Question 11 Single choice Kubernetes Cluster Component Security
A team runs a cluster where workloads use a CSI driver to provision persistent volumes. A security review found that a pod in the finance namespace could mount a PersistentVolumeClaim belonging to another namespace by directly referencing the underlying PersistentVolume. The team's fix must prevent cross-namespace claim binding and must work even if a user with create permission on PersistentVolumes attempts the same thing. Which fix BEST addresses this with the Kubernetes storage model?
Correct Answer: BExplanationPersistentVolumes are cluster-scoped, so the defence is to restrict who can create or modify them and rely on the claimRef binding mechanism, which ties a PV to a specific claim in a specific namespace. The reclaim policy controls what happens after release and does not stop a binding at creation time. Encryption protects data at rest but not the binding action, and NetworkPolicy governs pod traffic, not storage attachment.
-
12 Question 12 Multiple choice Kubernetes Threat Model
A security architect reviews a cluster hosting a shared ingress controller and several tenant namespaces. The threat model identifies denial of service from a compromised tenant workload flooding the API server with requests. The architect must choose controls that limit the impact without changing tenant application code. Which TWO controls together best reduce this denial-of-service risk? (Choose two.)
Correct Answer: B, EExplanationAPI Priority and Fairness isolates request flows so one tenant cannot starve others, and ResourceQuota caps how many objects a tenant can create. LimitRange caps per-container resource use, which reduces the chance that a compromised workload exhausts node resources, but it is the second correct answer only because it limits runaway consumption from within the namespace. Raising max-requests-inflight does not isolate tenants and adds load, audit logging increases work rather than limiting it, and a sidecar would require changes to tenant pods that the scenario forbids.
-
13 Question 13 Single choice Kubernetes Security Fundamentals
A cluster administrator must enable audit logging to meet a compliance requirement that all Secret reads and writes be recorded with the request body for writes, while avoiding logging request bodies for other resources to control storage costs. The cluster runs kube-apiserver with --audit-policy-file and --audit-log-path already set. Which audit policy rule set BEST satisfies this with the fewest unnecessary records?
Correct Answer: AExplanationAudit policy rules are evaluated in order and the first match wins, so placing the Secret rule first at RequestResponse records bodies for Secret reads and writes, and the Metadata catch-all keeps other resources to metadata only. The reversed levels in the third option would drop Secret bodies and log full bodies everywhere, which is costly. A single Request catch-all logs bodies for all resources, not only Secrets, and setting None for everything would record nothing for Secrets.
-
14 Question 14 Single choice Platform Security
An organisation runs a cluster with a PKI managed by cert-manager issuing certificates to internal services. A review found that a certificate issued to a payments service has a validity period of two years and the private key was stored as an unencrypted file in a shared volume. The security team requires that keys never be extractable by a cluster administrator and that certificate lifetimes be shorter than 90 days. Which change BEST meets both requirements?
Correct Answer: BExplanationSetting the certificate duration to 60 days satisfies the lifetime limit, and an HSM or KMS-backed signer keeps the private key non-extractable so an administrator reading Kubernetes objects cannot obtain it. Etcd encryption still leaves the key readable to anyone with access through the API server, and rotating the Secret does not change the two-year certificate lifetime. Moving the key into a ConfigMap is strictly worse, since ConfigMaps are unencrypted and unprotected by Secret access controls.
-
15 Question 15 Single choice Overview of Cloud Native Security
A company is choosing between two container isolation approaches for running untrusted customer code on a shared Kubernetes node pool. The security team wants a stronger boundary than a standard container runtime provides, but the platform team needs to keep the same kubectl workflows and pod scheduling. Which option BEST fits both requirements?
Correct Answer: AExplanationA RuntimeClass pointing at a sandboxed runtime such as gVisor or Kata Containers provides a stronger isolation boundary and is selected through the pod spec, so kubectl and scheduling continue to work on the same nodes. Network policies and namespaces do not separate kernels, and quotas govern resource consumption rather than isolation. Dropping privileges reduces attack surface but leaves all containers sharing the host kernel, which the security team has said is insufficient.
These are 15 of the 59 questions in the full KCSA pack.
Get All 59 QuestionsGet all 59 questions & answers
Full access options for Linux Foundation KCSA
Self-study
PDF Version
- 59 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 59 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 59 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the KCSA Exam (Kubernetes and Cloud Native Security Associate) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.