
Enhance Your Career With Available Preparation Guide for KCSA Exam
Get Special Discount Offer of KCSA Certification Exam Sample Questions and Answers
Linux Foundation KCSA Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
NEW QUESTION # 17
An attacker has access to the network segment that the cluster is on.
What happens when a compromised Pod attempts to connect to the API server?
- A. The compromised Pod is automatically isolated from the network to prevent any connections to the API server.
- B. The compromised Pod connects to the API server and is granted elevated privileges by default.
- C. The compromised Pod attempts to connect to the API server, but its requests may be blocked due to network policies.
- D. The compromised Pod is allowed to connect to the API server without any restrictions.
Answer: C
Explanation:
* By default,Pods can connect to the API server(since ServiceAccount tokens are mounted).
* However, whether they succeed in acting depends on:
* Network Policies(may block egress).
* RBAC(controls permissions).
* Exact extract (Kubernetes Docs - API Access):
* "Pods authenticate to the API server using the service account token mounted into the Pod.
Authorization is then enforced by RBAC. NetworkPolicies may further restrict access."
* Clarifications:
* A: No default automatic isolation.
* B: Not always unrestricted; policies may apply.
* D: Pods get minimal default privileges, not automatic elevation.
References:
Kubernetes Docs - API Access to Pods: https://kubernetes.io/docs/concepts/security/service-accounts/ Kubernetes Docs - Network Policies: https://kubernetes.io/docs/concepts/services-networking/network- policies/
NEW QUESTION # 18
When using a cloud provider's managed Kubernetes service, who is responsible for maintaining the etcd cluster?
- A. Cloud provider
- B. Namespace administrator
- C. Application developer
- D. Kubernetes administrator
Answer: A
Explanation:
* Inmanaged Kubernetes services(EKS, GKE, AKS), the control plane is operated by thecloud provider
.
* This includesetcd, API server, controller manager, scheduler.
* Users manageworker nodes(in some models) and workloads, but not the control plane.
* Exact extract (GKE Docs):
* "The control plane, including the API server and etcd database, is managed and maintained by Google."
* Similarly forEKSandAKS, etcd is fully managed by the provider.
References:
GKE Architecture: https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-architecture EKS Architecture: https://docs.aws.amazon.com/eks/latest/userguide/eks-architecture.html AKS Docs: https://learn.microsoft.com/en-us/azure/aks/concepts-clusters-workloads
NEW QUESTION # 19
A container image istrojanizedby an attacker by compromising the build server. Based on the STRIDE threat modeling framework, which threat category best defines this threat?
- A. Spoofing
- B. Denial of Service
- C. Tampering
- D. Repudiation
Answer: C
Explanation:
* In STRIDE,Tamperingis the threat category forunauthorized modification of data or code/artifacts. A trojanized container image is, by definition, an attacker'smodificationof the build output (the image) after compromising the CI/build system-i.e., tampering with the artifact in the software supply chain.
* Why not the others?
* Spoofingis about identity/authentication (e.g., pretending to be someone/something).
* Repudiationis about denying having performed an action without sufficient audit evidence.
* Denial of Servicetargets availability (exhausting resources or making a service unavailable).The scenario explicitly focuses on analtered imageresulting from a compromised build server-this squarely maps toTampering.
Authoritative references (for verification and deeper reading):
* Kubernetes (official docs)- Supply Chain Security (discusses risks such as compromised CI/CD pipelines leading to modified/poisoned images and emphasizes verifying image integrity/signatures).
* Kubernetes Docs#Security#Supply chain securityandSecuring a cluster(sections on image provenance, signing, and verifying artifacts).
* CNCF TAG Security - Cloud Native Security Whitepaper (v2)- Threat modeling in cloud-native and software supply chain risks; describes attackers modifying build outputs (images/artifacts) via CI
/CD compromise as a form oftamperingand prescribes controls (signing, provenance, policy).
* CNCF TAG Security - Software Supply Chain Security Best Practices- Explicitly covers CI/CD compromise leading tomaliciously modified imagesand recommends SLSA, provenance attestation, and signature verification (policy enforcement via admission controls).
* Microsoft STRIDE (canonical reference)- DefinesTamperingasmodifying data or code, which directly fits a trojanized image produced by a compromised build system.
NEW QUESTION # 20
Is it possible to restrict permissions so that a controller can only change the image of a deployment (without changing anything else about it, e.g., environment variables, commands, replicas, secrets)?
- A. No, because granting access to the spec.containers.image field always grants access to the rest of the spec object.
- B. Not with RBAC, but it is possible with an admission webhook.
- C. Yes, with a 'managed fields' annotation.
- D. Yes, by granting permission to the /image subresource.
Answer: B
Explanation:
* RBAC in Kubernetesis coarse-grained: it controlsverbs(get, update, patch, delete) onresources(e.g., deployments), butnot individual fieldswithin a resource.
* There isno /image subresource for deployments(there is one for pods but only for ephemeral containers).
* Therefore,RBAC cannot restrict changes only to the image field.
* Admission Webhooks(mutating/validating)canenforce fine-grained policies (e.g., deny updates that change anything other than spec.containers[*].image).
* Exact extract (Kubernetes Docs - Admission Webhooks):
* "Admission webhooks can be used to enforce custom policies on objects being admitted." References:
Kubernetes Docs - RBAC: https://kubernetes.io/docs/reference/access-authn-authz/rbac/ Kubernetes Docs - Admission Webhooks: https://kubernetes.io/docs/reference/access-authn-authz
/extensible-admission-controllers/
NEW QUESTION # 21
What is a multi-stage build?
- A. A build process that involves multiple developers collaborating on building an image.
- B. A build process that involves multiple containers running simultaneously to speed up the image creation.
- C. A build process that involves multiple repositories for storing container images.
- D. A build process that involves multiple stages of image creation, allowing for smaller, optimized images.
Answer: D
Explanation:
* Multi-stage buildsare a Docker/Kaniko feature that allows building images in multiple stages # final image contains only runtime artifacts, not build tools.
* This reducesimage size, attack surface, and security risks.
* Exact extract (Docker Docs):
* "Multi-stage builds allow you to use multiple FROM statements in a Dockerfile. You can copy artifacts from one stage to another, resulting in smaller, optimized images."
* Clarifications:
* A: Collaboration is not the definition.
* B: Multiple repositories # multi-stage builds.
* C: Build concurrency # multi-stage builds.
References:
Docker Docs - Multi-Stage Builds: https://docs.docker.com/develop/develop-images/multistage-build/
NEW QUESTION # 22
What is the purpose of an egress NetworkPolicy?
- A. To secure the Kubernetes cluster against unauthorized access.
- B. To control the outgoing network traffic from one or more Kubernetes Pods.
- C. To control the incoming network traffic to a Kubernetes cluster.
- D. To control the outbound network traffic from a Kubernetes cluster.
Answer: B
Explanation:
* NetworkPolicycontrols network trafficat the Pod level.
* Ingress rules:controlincomingconnections to Pods.
* Egress rules:controloutgoingconnectionsfrom Pods.
* Exact extract (Kubernetes Docs - Network Policies):
* "An egress rule controls outgoing connections from Pods that match the policy."
* Clarifying wrong answers:
* A/B: Too broad (cluster-level); policies apply per Pod/Namespace.
* C: Security against unauthorized access is broader than egress policies.
References:
Kubernetes Docs - Network Policies: https://kubernetes.io/docs/concepts/services-networking/network- policies/
NEW QUESTION # 23
What information is stored in etcd?
- A. Pod data contained in Persistent Volume Claims (e.g. hostPath).
- B. Application logs and monitoring data for auditing and troubleshooting purposes.
- C. Sensitive user data such as usernames and passwords.
- D. Etcd manages the configuration data, state data, and metadata for Kubernetes.
Answer: D
Explanation:
* etcdis Kubernetes'key-value storeforcluster state.
* Stores: ConfigMaps, Secrets, Pod definitions, Deployments, RBAC policies, and metadata.
* Exact extract (Kubernetes Docs - etcd):
* "etcd is a consistent and highly-available key-value store used as Kubernetes' backing store for all cluster data."
* Clarifications:
* B: Logs/metrics are handled by logging/monitoring solutions, not etcd.
* C: Secrets may be stored here but encoded in base64, not specifically "usernames/passwords" as primary use.
* D: Persistent Volumes are external storage, not stored in etcd.
References:
Kubernetes Docs - etcd: https://kubernetes.io/docs/concepts/overview/components/#etcd
NEW QUESTION # 24
Given a standard Kubernetes cluster architecture comprising a single control plane node (hosting bothetcdand the control plane as Pods) and three worker nodes, which of the following data flows crosses atrust boundary
?
- A. From API Server to Container Runtime
- B. From kubelet to API Server
- C. From kubelet to Controller Manager
- D. From kubelet to Container Runtime
Answer: B
Explanation:
* Trust boundariesexist where data flows between different security domains.
* In Kubernetes:
* Communication between thekubelet (node agent)and theAPI Server (control plane)crosses the node-to-control-plane trust boundary.
* (A) Kubelet to container runtime is local, no boundary crossing.
* (C) Kubelet does not communicate directly with the controller manager.
* (D) API server does not talk directly to the container runtime; it delegates to kubelet.
* Therefore, (B) is the correct trust boundary crossing flow.
References:
CNCF Security Whitepaper - Kubernetes Threat Model: identifies node-to-control-plane communications (kubelet # API Server) as crossing trust boundaries.
Kubernetes Documentation - Cluster Architecture
NEW QUESTION # 25
Which step would give an attacker a foothold in a cluster butno long-term persistence?
- A. Modify Kubernetes objects stored within etcd.
- B. Create restarting container on host using Docker.
- C. Starting a process in a running container.
- D. Modify file on host filesystem.
Answer: C
Explanation:
* Starting a process in a running containerprovides an attacker withtemporary execution (foothold) inside the cluster, but once the container is stopped or restarted, that malicious process is lost. This means the attacker has nolong-term persistence.
* Incorrect options:
* (A) Modifying objects inetcdgrants persistent access since cluster state is stored in etcd.
* (B) Modifying files on thehost filesystemcan create persistence across reboots or container restarts.
* (D) Creating a restarting container directly on the host via Docker bypasses Kubernetes but persists across pod restarts if Docker restarts it.
References:
CNCF Security Whitepaper - Threat Modeling section: Describes howephemeral processes inside containersprovide attackers short-term control but not durable persistence.
Kubernetes Documentation - Cluster Threat Model emphasizes ephemeral vs. persistent attacker footholds.
NEW QUESTION # 26
As a Kubernetes and Cloud Native Security Associate, a user can set upaudit loggingin a cluster. What is the risk of logging every event at the fullRequestResponselevel?
- A. No risk, as it provides the most comprehensive audit trail.
- B. Reduced storage requirements and faster performance.
- C. Improved security and easier incident investigation.
- D. Increased storage requirements and potential impact on performance.
Answer: D
Explanation:
* Audit loggingrecords API server requests and responses for security monitoring.
* TheRequestResponse levellogs the full request and response bodies, which can:
* Significantly increasestorage and performance overhead.
* Potentially log sensitive data (including Secrets).
* Therefore, while comprehensive, it introduces risks of performance degradation and excessive log volume.
References:
Kubernetes Documentation - Auditing
CNCF Security Whitepaper - Logging and monitoring: trade-offs between verbosity, storage, and security.
NEW QUESTION # 27
What kind of organization would need to be compliant with PCI DSS?
- A. Merchants that process credit card payments.
- B. Non-profit organizations that handle sensitive customer data.
- C. Retail stores that only accept cash payments.
- D. Government agencies that collect personally identifiable information.
Answer: A
Explanation:
* PCI DSS (Payment Card Industry Data Security Standard):applies to any entity thatstores, processes, or transmits cardholder data.
* Exact extract (PCI DSS official summary):
* "PCI DSS applies to all entities that store, process or transmit cardholder data (CHD) and
/or sensitive authentication data (SAD)."
* Therefore,merchants who process credit card paymentsmust comply.
* Why others are wrong:
* A: No card payments, so no PCI scope.
* B: This falls underFISMA / NIST 800-53, not PCI DSS.
* C: Non-profits may handle sensitive data, but PCI only applies if they processcredit cards.
References:
PCI Security Standards Council - PCI DSS Summary: https://www.pcisecuritystandards.org/pci_security/
NEW QUESTION # 28
What is the reasoning behind considering the Cloud as the trusted computing base of a Kubernetes cluster?
- A. A Kubernetes cluster can only be trusted if the underlying Cloud provider is certified against international standards.
- B. The Cloud enforces security controls at the Kubernetes cluster level, so application developers can focus on applications only.
- C. A vulnerability in the Cloud layer has a negligible impact on containers due to Linux isolation mechanisms.
- D. A Kubernetes cluster can only be as secure as the security posture of its Cloud hosting.
Answer: D
Explanation:
* The4C's of Cloud Native Security(Cloud, Cluster, Container, Code) model starts withCloudas the base layer.
* If the Cloud (infrastructure layer) is compromised, every higher layer (Cluster, Container, Code) inherits that compromise.
* Exact extract (Kubernetes Security Overview):
* "The 4C's of Cloud Native security are Cloud, Clusters, Containers, and Code. You can think of the 4C's as a layered approach. A Kubernetes cluster can only be as secure as the cloud infrastructure it is deployed on."
* This means the cloud is part of thetrusted computing baseof a Kubernetes cluster.
References:
Kubernetes Docs - Security Overview (4C's): https://kubernetes.io/docs/concepts/security/overview/#the-
4cs-of-cloud-native-security
NEW QUESTION # 29
A Kubernetes cluster tenant can launch privileged Pods in contravention of therestricted Pod Security Standardmandated for cluster tenants and enforced by the built-inPodSecurity admission controller.
The tenant has full CRUD permissions on the namespace object and the namespaced resources. How did the tenant achieve this?
- A. By using higher-level access credentials obtained reading secrets from another namespace.
- B. By tampering with the namespace labels.
- C. By deleting the PodSecurity admission controller deployment running in their namespace.
- D. The scope of the tenant role means privilege escalation is impossible.
Answer: B
Explanation:
* ThePodSecurity admission controllerenforces Pod Security Standards (Baseline, Restricted, Privileged)based on namespace labels.
* If a tenant has full CRUD on the namespace object, they canmodify the namespace labelsto remove or weaken the restriction (e.g., setting pod-security.kubernetes.io/enforce=privileged).
* This allows privileged Pods to be admitted despite the security policy.
* Incorrect options:
* (A) is false - namespace-level access allows tampering.
* (C) is invalid - PodSecurity admission is not namespace-deployed, it's a cluster-wide admission controller.
* (D) is unrelated - Secrets from other namespaces wouldn't directly bypass PodSecurity enforcement.
References:
Kubernetes Documentation - Pod Security Admission
CNCF Security Whitepaper - Admission control and namespace-level policy enforcement weaknesses.
NEW QUESTION # 30
In the event that kube-proxy is in a CrashLoopBackOff state, what impact does it have on the Pods running on the same worker node?
- A. The Pod's security context restrictions cannot be enforced.
- B. The Pod cannot mount persistent volumes through CSI drivers.
- C. The Pod's resource utilization increases significantly.
- D. The Pods cannot communicate with other Pods in the cluster.
Answer: D
Explanation:
* kube-proxy:manages cluster network routing rules (via iptables or IPVS). It enables Pods to communicate with Services and Pods across nodes.
* If kube-proxy fails (CrashLoopBackOff), service IP routing and cluster-wide pod-to-pod networking breaks. Local Pod-to-Pod communication within the same node may still work, butcross-node communication fails.
* Exact extract (Kubernetes Docs - kube-proxy):
* "kube-proxy maintains network rules on nodes. These rules allow network communication to Pods from network sessions inside or outside of the cluster." References:
Kubernetes Docs - kube-proxy: https://kubernetes.io/docs/reference/command-line-tools-reference/kube- proxy/
NEW QUESTION # 31
In order to reduce the attack surface of the Scheduler, which default parameter should be set to false?
- A. --profiling
- B. --secure-kubeconfig
- C. --scheduler-name
- D. --bind-address
Answer: A
Explanation:
* Thekube-schedulerexposes aprofiling/debugging endpointwhen --profiling=true (default).
* This can unnecessarily increase the attack surface.
* Best practice: set --profiling=false in production.
* Exact extract (Kubernetes Docs - kube-scheduler flags):
* "--profiling (default true): Enable profiling via web interface host:port/debug/pprof/."
* Why others are wrong:
* --scheduler-name: just identifies the scheduler, not a security risk.
* --secure-kubeconfig: not a valid flag.
* --bind-address: changing it limits exposure but is not the default risk parameter for profiling.
References:
Kubernetes Docs - kube-scheduler options: https://kubernetes.io/docs/reference/command-line-tools- reference/kube-scheduler/
NEW QUESTION # 32
To restrict the kubelet's rights to the Kubernetes API, whatauthorization modeshould be set on the Kubernetes API server?
- A. AlwaysAllow
- B. Webhook
- C. Node
- D. kubelet
Answer: C
Explanation:
* TheNode authorization modeis designed to specifically limit what kubelets can do when they connect to the Kubernetes API server.
* It authorizes requests from kubelets based on the Pods scheduled to run on their nodes, ensuring kubelets cannot interact with resources beyond their scope.
* Incorrect options:
* (B)AlwaysAllowallows unrestricted access (insecure).
* (C) No kubelet authorization mode exists.
* (D)Webhookmode delegates authorization decisions to an external service, not specifically for kubelets.
References:
Kubernetes Documentation - Node Authorization
CNCF Security Whitepaper - Access control: kubelet authorization and Node authorizer.
NEW QUESTION # 33
What does thecluster-adminClusterRole enable when used in a RoleBinding?
- A. It gives full control over every resource in the cluster and in all namespaces.
- B. It gives full control over every resource in the role binding's namespace, not including the namespace object for isolation purposes.
- C. It gives full control over every resource in the role binding's namespace, including the namespace itself.
- D. It allows read/write access to most resources in the role binding's namespace. This role does not allow write access to resource quota, to the namespace itself, and to EndpointSlices (or Endpoints).
Answer: A
Explanation:
* Thecluster-adminClusterRole is asuperuser rolein Kubernetes.
* Binding it (via RoleBinding or ClusterRoleBinding) grantsunrestricted control over all resources in the cluster, across all namespaces.
* This includes management of cluster-scoped resources (nodes, CRDs, RBAC rules) and namespace- scoped resources.
* Therefore, cluster-admin is equivalent toroot-level accessin Kubernetes and must be used with extreme caution.
References:
Kubernetes Documentation - Default Roles and Role Bindings
CNCF Security Whitepaper - Identity and Access Management: cautions against assigningcluster-admin broadly due to its unrestricted nature.
NEW QUESTION # 34
A user runs a command with kubectl to apply a change to a deployment. What is the first Kubernetes component that the request reaches?
- A. Kubernetes API Server
- B. Kubernetes Controller Manager
- C. Kubernetes Scheduler
- D. kubelet
Answer: A
Explanation:
* Allkubectl requestsgo to theKubernetes API Server.
* The API server is thefront-end of the control planeand validates/authenticates requests before other components act.
* Exact extract (Kubernetes Docs - Components):
* "The API server is a component of the Kubernetes control plane that exposes the Kubernetes API. It is the front end for the Kubernetes control plane."
* Other options clarified:
* Controller Manager: reconciles state after API Server processes the request.
* Scheduler: assigns Pods to nodes after API Server accepts workload objects.
* kubelet: node agent, only communicates after API Server updates desired state.
References:
Kubernetes Docs - Components: https://kubernetes.io/docs/concepts/overview/components/
NEW QUESTION # 35
What was the name of the precursor to Pod Security Standards?
- A. Container Security Standards
- B. Container Runtime Security
- C. Kubernetes Security Context
- D. Pod Security Policy
Answer: D
Explanation:
* Kubernetes originally had a feature calledPodSecurityPolicy (PSP), which provided controls to restrict pod behavior.
* Official docs:
* "PodSecurityPolicy was deprecated in Kubernetes v1.21 and removed in v1.25."
* "Pod Security Standards (PSS) replace PodSecurityPolicy (PSP) with a simpler, policy- driven approach."
* PSP was often complex and hard to manage, so it was replaced by Pod Security Admission (PSA) which enforcesPod Security Standards.
References:
Kubernetes Docs - PodSecurityPolicy (deprecated): https://kubernetes.io/docs/concepts/security/pod- security-policy/ Kubernetes Blog - PodSecurityPolicy Deprecation: https://kubernetes.io/blog/2021/04/06/podsecuritypolicy- deprecation-past-present-and-future/
NEW QUESTION # 36
Which of the following statements best describe container image signing and verification in the cloud environment?
- A. Container image signatures affect the performance of containerized applications, as they increase the size of images with additional metadata.
- B. Container image signatures and their verification ensure their authenticity and integrity against tampering.
- C. Container image signatures are mandatory in cloud environments, as cloud providers would deny the execution of unsigned container images.
- D. Container image signatures are concerned with defining developer ownership of applications within multi-tenant environments.
Answer: B
Explanation:
* Image signing (withNotary, cosign, or similar tools) ensures that images are from a trusted source and have not been modified.
* Exact extract (Sigstore cosign docs):"Cosign allows you to sign and verify container images to ensure authenticity and integrity."
* Why others are wrong:
* B:Ownership can be inferred but it's aboutauthenticity & integritynot tenancy.
* C:Not mandatory; enforcement requiresadmission controllers.
* D:Metadata size is negligible and has no runtime performance impact.
References:
Sigstore Project: https://docs.sigstore.dev/cosign/overview
CNCF Security Whitepaper
NEW QUESTION # 37
In Kubernetes, what isPublic Key Infrastructure (PKI)used for?
- A. To manage networking in a Kubernetes cluster.
- B. To automate the scaling of containers in a Kubernetes cluster.
- C. To manage certificates and ensure secure communication in a Kubernetes cluster.
- D. To monitor and analyze performance metrics of a Kubernetes cluster.
Answer: C
Explanation:
* Kubernetes usesPKI certificatesextensively to secure communication between control plane components (API server, etcd, kube-scheduler, kube-controller-manager) and with kubelets.
* Certificates enablemutual TLS authentication and encryptionacross components.
* PKI does not handle scaling, networking, or monitoring.
References:
Kubernetes Documentation - Certificates
CNCF Security Whitepaper - Cluster communication security and the role of PKI.
NEW QUESTION # 38
Which of the following statements best describes the role of the Scheduler in Kubernetes?
- A. The Scheduler is responsible for assigning Pods to nodes based on resource availability and other constraints.
- B. The Scheduler is responsible for ensuring the security of the Kubernetes cluster and its components.
- C. The Scheduler is responsible for managing the deployment and scaling of applications in the Kubernetes cluster.
- D. The Scheduler is responsible for monitoring and managing the health of the Kubernetes cluster.
Answer: A
Explanation:
* TheKubernetes Schedulerassigns Pods to nodes based on:
* Resource requests & availability (CPU, memory, GPU, etc.)
* Constraints (affinity, taints, tolerations, topology, policies)
* Exact extract (Kubernetes Docs - Scheduler):
* "The scheduler is a control plane process that assigns Pods to Nodes. Scheduling decisions take into account resource requirements, affinity/anti-affinity, constraints, and policies."
* Other options clarified:
* A: Monitoring cluster health is theController Manager's/kubelet's job.
* B: Security is enforced throughRBAC, admission controllers, PSP/PSA, not the scheduler.
* C: Deployment scaling is handled by theController Manager(Deployment/ReplicaSet controller).
References:
Kubernetes Docs - Scheduler: https://kubernetes.io/docs/concepts/scheduling-eviction/kube-scheduler/
NEW QUESTION # 39
......
Updated KCSA Dumps Questions Are Available For Passing Linux Foundation Exam: https://troytec.getvalidtest.com/KCSA-brain-dumps.html