100% Latest & Updated Linux Foundation KCSA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 150
A team assumes a privileged system-agent Pod will automatically satisfy Restricted because its image came from a trusted registry. Which caution is important before treating this as solved?
- Two separate peer selector entries do not mean logical AND; they represent alternative allowed sources.
- Changing a Secret object does not automatically update environment variables in already running processes.
- Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide.
- A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities.
Explanation
Correct Answer
D:A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities. This is the inference boundary for the operation described: A team assumes a privileged system-agent Pod will automatically satisfy Restricted because its image came from a trusted registry. Keep the conclusion within the evidence actually obtained.
Incorrect Answers
A:Two separate peer selector entries do not mean logical AND; they represent alternative allowed sources. That warning concerns networkPolicy peer selector intersection, not the inference raised by a team assumes a privileged system-agent Pod will automatically satisfy Restricted because its image came from a trusted registry. The relevant limit is: A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities.
B:Changing a Secret object does not automatically update environment variables in already running processes. The stated evidence is narrower: A team assumes a privileged system-agent Pod will automatically satisfy Restricted because its image came from a trusted registry. Avoid the unsupported conclusion described by: A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities.
C:Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide. The observed result concerns: A team assumes a privileged system-agent Pod will automatically satisfy Restricted because its image came from a trusted registry. The relevant limitation is more specific: A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities.
Question 151
A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. What technical rule most directly applies to this deployment?
- A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role.
- Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request.
- Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation.
- An egress default-deny policy isolates outbound connections and may break DNS; allow required DNS destination and port without opening all traffic.
Explanation
Correct Answer
B:Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. The scenario is: A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. A direct diagnostic is: Inspect namespace PSA labels for enforce, warn and audit levels.
Incorrect Answers
A:A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. It relates to RoleBinding and ClusterRoleBinding scope. The incident instead shows: A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. The targeted evidence is: Inspect namespace PSA labels for enforce, warn and audit levels.
C:Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. The premise for this rule is not established by the stated observations. The governing condition is: Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. Check it with: Inspect namespace PSA labels for enforce, warn and audit levels.
D:An egress default-deny policy isolates outbound connections and may break DNS; allow required DNS destination and port without opening all traffic. Its subject is Explicit egress DNS allowance, but the observed symptom is: A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. The diagnostic check is: Inspect namespace PSA labels for enforce, warn and audit levels.
Question 152
A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. Select TWO observations necessary for an informed correction. (Choose TWO.)
- Test DNS responses inside the restricted namespace.
- Inspect effective Role or ClusterRole rules for the requested API verb.
- Create controlled compliant and noncompliant test Pods and examine API/audit results.
- Inspect namespace PSA labels for enforce, warn and audit levels.
- Read the container's added and dropped capability sets.
Explanation
Correct Answers
C:Create controlled compliant and noncompliant test Pods and examine API/audit results. This observation targets the suspected cause in the case: A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. It tests the dependency behind the principle: Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. Cross-check with this independent test: Inspect namespace PSA labels for enforce, warn and audit levels. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
D:Inspect namespace PSA labels for enforce, warn and audit levels. This observation targets the suspected cause in the case: A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. It tests the dependency behind the principle: Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. Cross-check with this independent test: Create controlled compliant and noncompliant test Pods and examine API/audit results. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
A:Test DNS responses inside the restricted namespace. That measures Explicit egress DNS allowance. The controlling observation for this case is: Inspect namespace PSA labels for enforce, warn and audit levels.
B:Inspect effective Role or ClusterRole rules for the requested API verb. That investigates RBAC verb/resource precision, but would not establish the required condition: Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. Check instead: Inspect namespace PSA labels for enforce, warn and audit levels.
E:Read the container's added and dropped capability sets. This observation can be useful, but it does not test the controlling dependency. The direct check is: Inspect namespace PSA labels for enforce, warn and audit levels.
Question 153
A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. Which targeted action MOST directly addresses the verified problem?
- Protect the value with least-privilege reads and approved encryption at rest or an external secret provider.
- Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence.
- Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.
- Drop ALL unneeded capabilities and add back only justified permissions.
Explanation
Correct Answer
B:Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence. This remediation addresses the failed dependency described in A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. The technical basis is: Built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. Before acting, verify: Inspect namespace PSA labels for enforce, warn and audit levels. Then require the acceptance result: A violating Pod is rejected by enforcement and the test generates expected diagnostic records. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
A:Protect the value with least-privilege reads and approved encryption at rest or an external secret provider. The intervention targets an adjacent dependency, while the case needs: Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence. Verify the result through: A violating Pod is rejected by enforcement and the test generates expected diagnostic records.
C:Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function. That intervention could improve Privilege escalation flag without resolving the reported symptom. The diagnostic is: Inspect namespace PSA labels for enforce, warn and audit levels. The correction is: Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence.
D:Drop ALL unneeded capabilities and add back only justified permissions. The incident involves: A production namespace is labeled pod-security.kubernetes.io/audit=restricted but privileged test Pods still start. Changing this setting would not substitute for the evidence-based response: Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence.
Question 154
An operator expects a warn=restricted setting to reject workloads rather than display warning messages. What evidence would justify closing this case?
- Valid users identify correctly and forged unauthenticated requests are rejected.
- The application operates while unintended privilege increases are not permitted.
- A violating Pod is rejected by enforcement and the test generates expected diagnostic records.
- Old credentials are revoked and consumers authenticate with the replacement.
Explanation
Correct Answer
C:A violating Pod is rejected by enforcement and the test generates expected diagnostic records. After applying set the intended enforce level after assessing workload impact, retaining warnings and audit evidence., this observed result shows the affected service or control meets the stated requirement.
Incorrect Answers
A:Valid users identify correctly and forged unauthenticated requests are rejected. A passing result could coexist with the original problem: An operator expects a warn=restricted setting to reject workloads rather than display warning messages. Check instead: A violating Pod is rejected by enforcement and the test generates expected diagnostic records.
B:The application operates while unintended privilege increases are not permitted. It measures a different function, not whether built-in Pod Security Admission can enforce, warn and audit policies separately: enforce rejects violating Pods; warn and audit report violations without rejecting the request. The specific post-change test is: A violating Pod is rejected by enforcement and the test generates expected diagnostic records.
D:Old credentials are revoked and consumers authenticate with the replacement. This could be true while the stated problem persists: An operator expects a warn=restricted setting to reject workloads rather than display warning messages. Acceptance requires: A violating Pod is rejected by enforcement and the test generates expected diagnostic records.
Question 155
An operator expects a warn=restricted setting to reject workloads rather than display warning messages. Which caution BEST prevents a mistaken conclusion here?
- Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide.
- TLS between clients and the API server does not encrypt API data at rest in etcd.
- Container stdout logging is not a substitute for API server audit records.
- An audit-only namespace label does not prevent the unsafe Pod from starting.
Explanation
Correct Answer
D:An audit-only namespace label does not prevent the unsafe Pod from starting. The case evidence concerns an operator expects a warn=restricted setting to reject workloads rather than display warning messages. This warning limits what can be concluded without checking the affected dependency separately.
Incorrect Answers
A:Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: An audit-only namespace label does not prevent the unsafe Pod from starting.
B:TLS between clients and the API server does not encrypt API data at rest in etcd. Here the proposed action is set the intended enforce level after assessing workload impact, retaining warnings and audit evidence.; the conclusion must also respect: An audit-only namespace label does not prevent the unsafe Pod from starting.
C:Container stdout logging is not a substitute for API server audit records. That warning concerns API audit policy and review, not the inference raised by an operator expects a warn=restricted setting to reject workloads rather than display warning messages. The relevant limit is: An audit-only namespace label does not prevent the unsafe Pod from starting.
Question 156
A service runs as a non-root UID but starts a helper that attempts a setuid escalation. Which security distinction BEST explains the risk?
- A default-deny ingress NetworkPolicy must select the intended Pods and include Ingress in policyTypes; it does not automatically isolate egress.
- Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints.
- Linux capabilities grant specific privileged operations, and a least-privilege container should drop unnecessary capabilities rather than relying only on its user ID.
- Kubernetes authentication establishes user identity from supported credentials; usernames embedded in a request body do not authorize API operations.
Explanation
Correct Answer
B:Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. The distinction applies because a service runs as a non-root UID but starts a helper that attempts a setuid escalation. A direct check is: Inspect the container securityContext privilege escalation setting.
Incorrect Answers
A:A default-deny ingress NetworkPolicy must select the intended Pods and include Ingress in policyTypes; it does not automatically isolate egress. The premise for this rule is not established by the stated observations. The governing condition is: Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. Check it with: Inspect the container securityContext privilege escalation setting.
C:Linux capabilities grant specific privileged operations, and a least-privilege container should drop unnecessary capabilities rather than relying only on its user ID. The observed fault is: A service runs as a non-root UID but starts a helper that attempts a setuid escalation. Its underlying mechanism is: Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. Test it with: Inspect the container securityContext privilege escalation setting.
D:Kubernetes authentication establishes user identity from supported credentials; usernames embedded in a request body do not authorize API operations. It relates to User authentication and API identity. The incident instead shows: A service runs as a non-root UID but starts a helper that attempts a setuid escalation. The targeted evidence is: Inspect the container securityContext privilege escalation setting.
Question 157
A service runs as a non-root UID but starts a helper that attempts a setuid escalation. Which evidence should be reviewed before changing the configuration?
- Check the source Secret revision and exposed credential age.
- Inspect the container securityContext privilege escalation setting.
- Inspect audit policy stages, resources and selected levels.
- Test DNS responses inside the restricted namespace.
Explanation
Correct Answer
B:Inspect the container securityContext privilege escalation setting. This observation targets the suspected cause in the case: A service runs as a non-root UID but starts a helper that attempts a setuid escalation. It tests the dependency behind the principle: Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. Cross-check with this independent test: Test whether the process depends on privileged transitions. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
A:Check the source Secret revision and exposed credential age. A successful check here would not settle the reported issue: A service runs as a non-root UID but starts a helper that attempts a setuid escalation. The diagnostic evidence is: Inspect the container securityContext privilege escalation setting.
C:Inspect audit policy stages, resources and selected levels. This observation can be useful, but it does not test the controlling dependency. The direct check is: Inspect the container securityContext privilege escalation setting.
D:Test DNS responses inside the restricted namespace. That measures Explicit egress DNS allowance. The controlling observation for this case is: Inspect the container securityContext privilege escalation setting.
Question 158
A service runs as a non-root UID but starts a helper that attempts a setuid escalation. Which implementation step is the most appropriate remediation?
- Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.
- Add minimum DNS egress allowance alongside approved application endpoints.
- Apply default-deny ingress and explicit minimal allow rules using a policy-capable CNI.
- Apply an appropriate supported standard and revise the workload without suppressing legitimate controls.
Explanation
Correct Answer
A:Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function. This remediation addresses the failed dependency described in A service runs as a non-root UID but starts a helper that attempts a setuid escalation. The technical basis is: Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. Before acting, verify: Inspect the container securityContext privilege escalation setting. Then require the acceptance result: The application operates while unintended privilege increases are not permitted. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
B:Add minimum DNS egress allowance alongside approved application endpoints. The incident involves: A service runs as a non-root UID but starts a helper that attempts a setuid escalation. Changing this setting would not substitute for the evidence-based response: Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.
C:Apply default-deny ingress and explicit minimal allow rules using a policy-capable CNI. That change concerns Default-deny ingress targeting, while the reported failure is: A service runs as a non-root UID but starts a helper that attempts a setuid escalation. The supported correction is: Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.
D:Apply an appropriate supported standard and revise the workload without suppressing legitimate controls. The intervention targets an adjacent dependency, while the case needs: Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function. Verify the result through: The application operates while unintended privilege increases are not permitted.
Question 159
A platform team assumes a non-root image cannot gain rights despite allowing privilege escalation. Select THREE pieces of diagnostic and acceptance evidence. (Choose THREE.)
- Inspect the container securityContext privilege escalation setting.
- The workload runs without an unused API token in its filesystem.
- Test whether the process depends on privileged transitions.
- Approved API calls continue across token rotation and stale tokens cease working.
- The workload starts and the unnecessary privileged operation cannot succeed.
- The application operates while unintended privilege increases are not permitted.
Explanation
Correct Answers
A:Inspect the container securityContext privilege escalation setting. The intended change—set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.—is not accepted merely because it was configured; this is the behavior that must be observed.
C:Test whether the process depends on privileged transitions. After applying set allowPrivilegeEscalation false for workloads that do not require escalation and verify function., this observed result shows the affected service or control meets the stated requirement.
F:The application operates while unintended privilege increases are not permitted. The intended change—set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.—is not accepted merely because it was configured; this is the behavior that must be observed.
Incorrect Answers
B:The workload runs without an unused API token in its filesystem. It measures a different function, not whether setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. The specific post-change test is: The application operates while unintended privilege increases are not permitted.
D:Approved API calls continue across token rotation and stale tokens cease working. This could be true while the stated problem persists: A platform team assumes a non-root image cannot gain rights despite allowing privilege escalation. Acceptance requires: The application operates while unintended privilege increases are not permitted.
E:The workload starts and the unnecessary privileged operation cannot succeed. This outcome relates to Linux capabilities allowlist, not the behavior expected after the scoped correction. The acceptance result is: The application operates while unintended privilege increases are not permitted.
Question 160
A platform team assumes a non-root image cannot gain rights despite allowing privilege escalation. Which caution is important before treating this as solved?
- A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities.
- Running as non-root by itself is not a complete substitute for blocking escalation paths.
- Denying ingress alone does not block an infected Pod from initiating outbound connections.
- An audit-only namespace label does not prevent the unsafe Pod from starting.
Explanation
Correct Answer
B:Running as non-root by itself is not a complete substitute for blocking escalation paths. The tested response is set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.; that action does not by itself justify a stronger conclusion than the evidence supports.
Incorrect Answers
A:A Restricted policy is not equivalent to automatically scanning application code for vulnerabilities. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: Running as non-root by itself is not a complete substitute for blocking escalation paths.
C:Denying ingress alone does not block an infected Pod from initiating outbound connections. That warning concerns default-deny ingress targeting, not the inference raised by a platform team assumes a non-root image cannot gain rights despite allowing privilege escalation. The relevant limit is: Running as non-root by itself is not a complete substitute for blocking escalation paths.
D:An audit-only namespace label does not prevent the unsafe Pod from starting. The stated evidence is narrower: A platform team assumes a non-root image cannot gain rights despite allowing privilege escalation. Avoid the unsupported conclusion described by: Running as non-root by itself is not a complete substitute for blocking escalation paths.
Kubernetes and Cloud Native Security Associate (KCSA) Practice Tests