100% Latest & Updated Linux Foundation KCSA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 240
A threat-model diagram shows a public monitoring subnet with direct connectivity to control-plane state storage. Which caution is important before treating this as solved?
- API audit logs do not necessarily capture an attacker writing directly into an exposed datastore.
- Restricting Pod network egress does not automatically revoke an already exposed API credential.
- An admission policy that disallows privileged Pods does not patch unsafe application logic.
- Increasing application Pod CPU limits does not directly solve overload of kube-apiserver.
Explanation
Correct Answer
A:API audit logs do not necessarily capture an attacker writing directly into an exposed datastore. Even if unapproved workloads cannot access etcd directly and API operations remain attributable., that result alone cannot establish every independent prerequisite or residual risk.
Incorrect Answers
B:Restricting Pod network egress does not automatically revoke an already exposed API credential. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: API audit logs do not necessarily capture an attacker writing directly into an exposed datastore.
C:An admission policy that disallows privileged Pods does not patch unsafe application logic. Here the proposed action is constrain direct backend access and require normal API identity and authorization for routine operations.; the conclusion must also respect: API audit logs do not necessarily capture an attacker writing directly into an exposed datastore.
D:Increasing application Pod CPU limits does not directly solve overload of kube-apiserver. That warning concerns control-plane API flood, not the inference raised by a threat-model diagram shows a public monitoring subnet with direct connectivity to control-plane state storage. The relevant limit is: API audit logs do not necessarily capture an attacker writing directly into an exposed datastore.
Question 241
An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. What technical rule most directly applies to this deployment?
- A compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs.
- A remotely exploitable application bug can run attacker code inside a Pod even when the cluster itself is configured correctly; response needs app remediation and containment.
- A privileged container bypasses many usual runtime restrictions and may expose the host; reduce privileged permissions and restrict admission to exceptional system agents.
- Pod-to-Pod traffic inside a cluster is not inherently encrypted by default; sensitive calls may require application TLS, mesh mTLS or supported network encryption.
Explanation
Correct Answer
A:A compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs. The observed condition is: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. The direct diagnostic is: Inspect the Pod-mounted service account and granted RBAC verbs.
Incorrect Answers
B:A remotely exploitable application bug can run attacker code inside a Pod even when the cluster itself is configured correctly; response needs app remediation and containment. It relates to Exploited application runtime. The incident instead shows: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. The targeted evidence is: Inspect the Pod-mounted service account and granted RBAC verbs.
C:A privileged container bypasses many usual runtime restrictions and may expose the host; reduce privileged permissions and restrict admission to exceptional system agents. A healthy control for Privileged containers and node escape risk does not settle the reported symptom: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. The relevant test is: Inspect the Pod-mounted service account and granted RBAC verbs.
D:Pod-to-Pod traffic inside a cluster is not inherently encrypted by default; sensitive calls may require application TLS, mesh mTLS or supported network encryption. The premise for this rule is not established by the stated observations. The governing condition is: A compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs. Check it with: Inspect the Pod-mounted service account and granted RBAC verbs.
Question 242
An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. Select TWO observations necessary for an informed correction. (Choose TWO.)
- Reproduce safe read-only permission checks using an approved test identity.
- Inspect DaemonSets, controller ownership and Pod privilege settings.
- Inspect the Pod-mounted service account and granted RBAC verbs.
- Inspect privileged securityContext flags and host mounts.
- Inspect MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects.
Explanation
Correct Answers
A:Reproduce safe read-only permission checks using an approved test identity. This observation targets the suspected cause in the case: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. It tests the dependency behind the principle: A compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs. Cross-check with this independent test: Inspect the Pod-mounted service account and granted RBAC verbs. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
C:Inspect the Pod-mounted service account and granted RBAC verbs. This observation targets the suspected cause in the case: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. It tests the dependency behind the principle: A compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs. Cross-check with this independent test: Reproduce safe read-only permission checks using an approved test identity. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
B:Inspect DaemonSets, controller ownership and Pod privilege settings. That measures Malicious privileged DaemonSet persistence. The controlling observation for this case is: Inspect the Pod-mounted service account and granted RBAC verbs.
D:Inspect privileged securityContext flags and host mounts. A successful check here would not settle the reported issue: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. The diagnostic evidence is: Inspect the Pod-mounted service account and granted RBAC verbs.
E:Inspect MutatingWebhookConfiguration and ValidatingWebhookConfiguration objects. It examines Admission webhook persistence and availability, not the dependency shown by: An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. Check: Inspect the Pod-mounted service account and granted RBAC verbs.
Question 243
An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. Which targeted action MOST directly addresses the verified problem?
- Remove unnecessary API permissions and avoid token mounting when not required.
- Limit abusive identities and configure supported control-plane request handling and network protections.
- Remove sensitive logging, rotate leaked values and limit log-reader permissions.
- Replace routine privileged Pods with least-privilege versions and tightly control exceptions.
Explanation
Correct Answer
A:Remove unnecessary API permissions and avoid token mounting when not required. This remediation addresses the failed dependency described in An attacker reads a web Pod's mounted token and uses it to list all cluster Secrets. The technical basis is: A compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs. Before acting, verify: Inspect the Pod-mounted service account and granted RBAC verbs. Then require the acceptance result: The workload keeps required functionality but is denied unrelated API modifications. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
B:Limit abusive identities and configure supported control-plane request handling and network protections. The intervention targets an adjacent dependency, while the case needs: Remove unnecessary API permissions and avoid token mounting when not required. Verify the result through: The workload keeps required functionality but is denied unrelated API modifications.
C:Remove sensitive logging, rotate leaked values and limit log-reader permissions. Its success would not establish the required outcome: The workload keeps required functionality but is denied unrelated API modifications. The needed change is: Remove unnecessary API permissions and avoid token mounting when not required.
D:Replace routine privileged Pods with least-privilege versions and tightly control exceptions. That intervention could improve Privileged containers and node escape risk without resolving the reported symptom. The diagnostic is: Inspect the Pod-mounted service account and granted RBAC verbs. The correction is: Remove unnecessary API permissions and avoid token mounting when not required.
Question 244
A minor application vulnerability becomes a cluster-wide outage because its service account has update Deployments permissions. What evidence would justify closing this case?
- Replacement Pods use the reviewed digest and no malicious replica returns.
- Approved requests work and the previously reproduced malicious request fails.
- Approved resource requests no longer trigger the unexpected webhook behavior.
- The workload keeps required functionality but is denied unrelated API modifications.
Explanation
Correct Answer
D:The workload keeps required functionality but is denied unrelated API modifications. After applying remove unnecessary API permissions and avoid token mounting when not required., this observed result shows the affected service or control meets the stated requirement.
Incorrect Answers
A:Replacement Pods use the reviewed digest and no malicious replica returns. This outcome relates to Compromised image deployment persistence, not the behavior expected after the scoped correction. The acceptance result is: The workload keeps required functionality but is denied unrelated API modifications.
B:Approved requests work and the previously reproduced malicious request fails. A passing result could coexist with the original problem: A minor application vulnerability becomes a cluster-wide outage because its service account has update Deployments permissions. Check instead: The workload keeps required functionality but is denied unrelated API modifications.
C:Approved resource requests no longer trigger the unexpected webhook behavior. It measures a different function, not whether a compromised application Pod can abuse its mounted service-account token if the token grants more API rights than the workload needs. The specific post-change test is: The workload keeps required functionality but is denied unrelated API modifications.
Question 245
A minor application vulnerability becomes a cluster-wide outage because its service account has update Deployments permissions. Which caution BEST prevents a mistaken conclusion here?
- Kubernetes namespace RBAC is not a substitute for cloud object storage authorization.
- Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it.
- Restricting Pod network egress does not automatically revoke an already exposed API credential.
- Restarting or scaling a compromised Deployment can recreate the same unwanted code.
Explanation
Correct Answer
C:Restricting Pod network egress does not automatically revoke an already exposed API credential. The tested response is remove unnecessary API permissions and avoid token mounting when not required.; that action does not by itself justify a stronger conclusion than the evidence supports.
Incorrect Answers
A:Kubernetes namespace RBAC is not a substitute for cloud object storage authorization. The observed result concerns: A minor application vulnerability becomes a cluster-wide outage because its service account has update Deployments permissions. The relevant limitation is more specific: Restricting Pod network egress does not automatically revoke an already exposed API credential.
B:Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: Restricting Pod network egress does not automatically revoke an already exposed API credential.
D:Restarting or scaling a compromised Deployment can recreate the same unwanted code. That warning concerns compromised image deployment persistence, not the inference raised by a minor application vulnerability becomes a cluster-wide outage because its service account has update Deployments permissions. The relevant limit is: Restricting Pod network egress does not automatically revoke an already exposed API credential.
Question 246
After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. Which security distinction BEST explains the risk?
- A remotely exploitable application bug can run attacker code inside a Pod even when the cluster itself is configured correctly; response needs app remediation and containment.
- An attacker with rights to create a privileged DaemonSet can keep host-level code running across nodes; persistence controls must include workload creation rights and runtime policy.
- An attacker who compromises a service account bound to cluster-admin can mutate nearly all API resources; the privilege escalation risk comes from RBAC scope.
- ResourceQuotas cap namespace aggregate resource use and LimitRanges can constrain per-Pod resource requests or defaults; neither is a complete mitigation for external traffic floods.
Explanation
Correct Answer
B:An attacker with rights to create a privileged DaemonSet can keep host-level code running across nodes; persistence controls must include workload creation rights and runtime policy. The observed condition is: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. The direct diagnostic is: Inspect DaemonSets, controller ownership and Pod privilege settings.
Incorrect Answers
A:A remotely exploitable application bug can run attacker code inside a Pod even when the cluster itself is configured correctly; response needs app remediation and containment. Its subject is Exploited application runtime, but the observed symptom is: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. The diagnostic check is: Inspect DaemonSets, controller ownership and Pod privilege settings.
C:An attacker who compromises a service account bound to cluster-admin can mutate nearly all API resources; the privilege escalation risk comes from RBAC scope. It relates to Overbroad cluster-admin role. The incident instead shows: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. The targeted evidence is: Inspect DaemonSets, controller ownership and Pod privilege settings.
D:ResourceQuotas cap namespace aggregate resource use and LimitRanges can constrain per-Pod resource requests or defaults; neither is a complete mitigation for external traffic floods. A healthy control for Resource quotas and limit ranges does not settle the reported symptom: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. The relevant test is: Inspect DaemonSets, controller ownership and Pod privilege settings.
Question 247
After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. Which evidence should be reviewed before changing the configuration?
- Inspect namespace quota and LimitRange objects.
- Inspect the Deployment image digest and update history.
- Inspect DaemonSets, controller ownership and Pod privilege settings.
- Inspect privileged securityContext flags and host mounts.
Explanation
Correct Answer
C:Inspect DaemonSets, controller ownership and Pod privilege settings. This observation targets the suspected cause in the case: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. It tests the dependency behind the principle: An attacker with rights to create a privileged DaemonSet can keep host-level code running across nodes; persistence controls must include workload creation rights and runtime policy. Cross-check with this independent test: Check audit history for DaemonSet creation and unapproved edits. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
A:Inspect namespace quota and LimitRange objects. It examines Resource quotas and limit ranges, not the dependency shown by: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. Check: Inspect DaemonSets, controller ownership and Pod privilege settings.
B:Inspect the Deployment image digest and update history. This observation can be useful, but it does not test the controlling dependency. The direct check is: Inspect DaemonSets, controller ownership and Pod privilege settings.
D:Inspect privileged securityContext flags and host mounts. That investigates privileged containers and node escape risk, but would not establish the required condition: An attacker with rights to create a privileged DaemonSet can keep host-level code running across nodes; persistence controls must include workload creation rights and runtime policy. Check instead: Inspect DaemonSets, controller ownership and Pod privilege settings.
Question 248
After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. Which implementation step is the most appropriate remediation?
- Limit abusive identities and configure supported control-plane request handling and network protections.
- Remove the malicious controller, rotate affected credentials and restrict privileged workload admission.
- Protect the sensitive connection with approved mutually authenticated encryption where required.
- Replace blanket cluster-admin binding with purpose-specific roles and rotate credentials.
Explanation
Correct Answer
B:Remove the malicious controller, rotate affected credentials and restrict privileged workload admission. This remediation addresses the failed dependency described in After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. The technical basis is: An attacker with rights to create a privileged DaemonSet can keep host-level code running across nodes; persistence controls must include workload creation rights and runtime policy. Before acting, verify: Inspect DaemonSets, controller ownership and Pod privilege settings. Then require the acceptance result: Unauthorized system Pods stop reappearing and only approved node agents remain. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
A:Limit abusive identities and configure supported control-plane request handling and network protections. The incident involves: After a rogue Pod is deleted, a matching privileged Pod reappears on each new node. Changing this setting would not substitute for the evidence-based response: Remove the malicious controller, rotate affected credentials and restrict privileged workload admission.
C:Protect the sensitive connection with approved mutually authenticated encryption where required. The intervention targets an adjacent dependency, while the case needs: Remove the malicious controller, rotate affected credentials and restrict privileged workload admission. Verify the result through: Unauthorized system Pods stop reappearing and only approved node agents remain.
D:Replace blanket cluster-admin binding with purpose-specific roles and rotate credentials. Its success would not establish the required outcome: Unauthorized system Pods stop reappearing and only approved node agents remain. The needed change is: Remove the malicious controller, rotate affected credentials and restrict privileged workload admission.
Question 249
Security staff remove an infected container but overlook an attacker-created DaemonSet controller. Select THREE pieces of diagnostic and acceptance evidence. (Choose THREE.)
- Unauthorized system Pods stop reappearing and only approved node agents remain.
- Critical system operations stay responsive during controlled noisy-client tests.
- A noisy tenant is bounded without blocking approved capacity for others.
- Inspect DaemonSets, controller ownership and Pod privilege settings.
- The workload keeps required functionality but is denied unrelated API modifications.
- Check audit history for DaemonSet creation and unapproved edits.
Explanation
Correct Answers
A:Unauthorized system Pods stop reappearing and only approved node agents remain. The intended change—remove the malicious controller, rotate affected credentials and restrict privileged workload admission.—is not accepted merely because it was configured; this is the behavior that must be observed.
D:Inspect DaemonSets, controller ownership and Pod privilege settings. This must be observed after the scoped correction, not inferred from a saved configuration. The correction is: Remove the malicious controller, rotate affected credentials and restrict privileged workload admission.
F:Check audit history for DaemonSet creation and unapproved edits. The intended change—remove the malicious controller, rotate affected credentials and restrict privileged workload admission.—is not accepted merely because it was configured; this is the behavior that must be observed.
Incorrect Answers
B:Critical system operations stay responsive during controlled noisy-client tests. It measures a different function, not whether an attacker with rights to create a privileged DaemonSet can keep host-level code running across nodes; persistence controls must include workload creation rights and runtime policy. The specific post-change test is: Unauthorized system Pods stop reappearing and only approved node agents remain.
C:A noisy tenant is bounded without blocking approved capacity for others. It would not confirm the effect of the scoped change: Remove the malicious controller, rotate affected credentials and restrict privileged workload admission. The required evidence is: Unauthorized system Pods stop reappearing and only approved node agents remain.
E:The workload keeps required functionality but is denied unrelated API modifications. This outcome relates to Workload to Kubernetes API privilege boundary, not the behavior expected after the scoped correction. The acceptance result is: Unauthorized system Pods stop reappearing and only approved node agents remain.
Question 250
Security staff remove an infected container but overlook an attacker-created DaemonSet controller. Which caution is important before treating this as solved?
- Increasing application Pod CPU limits does not directly solve overload of kube-apiserver.
- A namespace named secure does not prevent a privileged Pod from accessing host resources.
- Moving a service account to a new namespace does not neutralize a ClusterRoleBinding to cluster-admin.
- Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it.
Explanation
Correct Answer
D:Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it. The case evidence concerns security staff remove an infected container but overlook an attacker-created DaemonSet controller. This warning limits what can be concluded without checking the affected dependency separately.
Incorrect Answers
A:Increasing application Pod CPU limits does not directly solve overload of kube-apiserver. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it.
B:A namespace named secure does not prevent a privileged Pod from accessing host resources. Here the proposed action is remove the malicious controller, rotate affected credentials and restrict privileged workload admission.; the conclusion must also respect: Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it.
C:Moving a service account to a new namespace does not neutralize a ClusterRoleBinding to cluster-admin. That warning concerns overbroad cluster-admin role, not the inference raised by security staff remove an infected container but overlook an attacker-created DaemonSet controller. The relevant limit is: Deleting a single Pod does not remove its controlling DaemonSet, which may recreate it.
Kubernetes and Cloud Native Security Associate (KCSA) Practice Tests