100% Latest & Updated Linux Foundation KCSA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 180
A service account can get ConfigMaps but receives Forbidden when attempting to read Secrets. Which caution is important before treating this as solved?
- Encoding a password as base64 is not a safe way to commit it to public source control.
- Two separate peer selector entries do not mean logical AND; they represent alternative allowed sources.
- Allowing UDP 53 to every destination is broader than allowing the intended cluster DNS endpoints.
- A broad wildcard RBAC rule can unintentionally include future resource types.
Explanation
Correct Answer
D:A broad wildcard RBAC rule can unintentionally include future resource types. In a service account can get ConfigMaps but receives Forbidden when attempting to read Secrets. successful completion of one check must not be confused with broader assurance about related controls.
Incorrect Answers
A:Encoding a password as base64 is not a safe way to commit it to public source control. The observed result concerns: A service account can get ConfigMaps but receives Forbidden when attempting to read Secrets. The relevant limitation is more specific: A broad wildcard RBAC rule can unintentionally include future resource types.
B:Two separate peer selector entries do not mean logical AND; they represent alternative allowed sources. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: A broad wildcard RBAC rule can unintentionally include future resource types.
C:Allowing UDP 53 to every destination is broader than allowing the intended cluster DNS endpoints. Here the proposed action is grant only the missing approved verb on the precise resource scope.; the conclusion must also respect: A broad wildcard RBAC rule can unintentionally include future resource types.
Question 181
A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. 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.
- A seccomp RuntimeDefault profile restricts syscall use according to the container runtime's supported default policy; Unconfined removes that filter.
- Rotating a Secret value requires updating its source and ensuring each consuming application reloads it; environment-variable consumers usually require Pod restart or rollout.
- Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints.
Explanation
Correct Answer
A:A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. The distinction applies because a developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. A direct check is: Check whether the binding is namespace-scoped or cluster-scoped.
Incorrect Answers
B:A seccomp RuntimeDefault profile restricts syscall use according to the container runtime's supported default policy; Unconfined removes that filter. The observed fault is: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. Its underlying mechanism is: A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. Test it with: Check whether the binding is namespace-scoped or cluster-scoped.
C:Rotating a Secret value requires updating its source and ensuring each consuming application reloads it; environment-variable consumers usually require Pod restart or rollout. It relates to Secret rotation and consumer reload. The incident instead shows: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. The targeted evidence is: Check whether the binding is namespace-scoped or cluster-scoped.
D:Setting allowPrivilegeEscalation false helps prevent container processes from gaining additional privileges through setuid or similar mechanisms, within compatible workload constraints. A healthy control for Privilege escalation flag does not settle the reported symptom: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. The relevant test is: Check whether the binding is namespace-scoped or cluster-scoped.
Question 182
A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. Select TWO observations necessary for an informed correction. (Choose TWO.)
- Check whether the binding is namespace-scoped or cluster-scoped.
- Check source Pod egress isolation and selected rules.
- Inspect audit policy stages, resources and selected levels.
- Inspect the referenced role rules and bound subject identity.
- Inspect the YAML nesting of namespaceSelector and podSelector in each peer entry.
Explanation
Correct Answers
A:Check whether the binding is namespace-scoped or cluster-scoped. This observation targets the suspected cause in the case: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. It tests the dependency behind the principle: A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. Cross-check with this independent test: Inspect the referenced role rules and bound subject identity. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
D:Inspect the referenced role rules and bound subject identity. This observation targets the suspected cause in the case: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. It tests the dependency behind the principle: A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. Cross-check with this independent test: Check whether the binding is namespace-scoped or cluster-scoped. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
B:Check source Pod egress isolation and selected rules. This observation can be useful, but it does not test the controlling dependency. The direct check is: Check whether the binding is namespace-scoped or cluster-scoped.
C:Inspect audit policy stages, resources and selected levels. That measures API audit policy and review. The controlling observation for this case is: Check whether the binding is namespace-scoped or cluster-scoped.
E:Inspect the YAML nesting of namespaceSelector and podSelector in each peer entry. A successful check here would not settle the reported issue: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. The diagnostic evidence is: Check whether the binding is namespace-scoped or cluster-scoped.
Question 183
A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. Which targeted action MOST directly addresses the verified problem?
- Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function.
- Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence.
- Rotate the secret and update or restart consumers using an approved deployment plan.
- Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs.
Explanation
Correct Answer
D:Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs. This remediation addresses the failed dependency described in A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. The technical basis is: A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. Before acting, verify: Check whether the binding is namespace-scoped or cluster-scoped. Then require the acceptance result: The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
A:Set allowPrivilegeEscalation false for workloads that do not require escalation and verify function. The incident involves: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. Changing this setting would not substitute for the evidence-based response: Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs.
B:Set the intended enforce level after assessing workload impact, retaining warnings and audit evidence. That change concerns PSA enforce warn and audit behavior, while the reported failure is: A developer can list Pods in dev but not prod even though both namespaces use a ClusterRole definition. The supported correction is: Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs.
C:Rotate the secret and update or restart consumers using an approved deployment plan. The intervention targets an adjacent dependency, while the case needs: Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs. Verify the result through: The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces.
Question 184
An automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding. What evidence would justify closing this case?
- The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces.
- New and previously stored tested Secrets use the intended protected storage representation.
- The authorized Pod obtains the value while unauthorized readers and storage observers are denied.
- The workload runs without an unused API token in its filesystem.
Explanation
Correct Answer
A:The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces. It demonstrates the effect of use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs. for the observed issue: An automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding.
Incorrect Answers
B:New and previously stored tested Secrets use the intended protected storage representation. A passing result could coexist with the original problem: An automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding. Check instead: The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces.
C:The authorized Pod obtains the value while unauthorized readers and storage observers are denied. It measures a different function, not whether a RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. The specific post-change test is: The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces.
D:The workload runs without an unused API token in its filesystem. It would not confirm the effect of the scoped change: Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs. The required evidence is: The identity operates in its intended namespace and cannot use the same grants across unrelated namespaces.
Question 185
An automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding. Which caution BEST prevents a mistaken conclusion here?
- Denying ingress alone does not block an infected Pod from initiating outbound connections.
- 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.
- A rule allowing source egress cannot override an independent destination ingress denial.
Explanation
Correct Answer
B:Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide. This is the inference boundary for the operation described: An automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding. Keep the conclusion within the evidence actually obtained.
Incorrect Answers
A:Denying ingress alone does not block an infected Pod from initiating outbound connections. The observed result concerns: An automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding. The relevant limitation is more specific: Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide.
C:TLS between clients and the API server does not encrypt API data at rest in etcd. Here the proposed action is use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs.; the conclusion must also respect: Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide.
D:A rule allowing source egress cannot override an independent destination ingress denial. That warning concerns ingress and egress permission intersection, not the inference raised by an automation account accidentally gains cluster-wide Secrets visibility through a ClusterRoleBinding. The relevant limit is: Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide.
Question 186
A static web Pod includes a service account token despite never calling Kubernetes APIs. Which security distinction BEST explains the risk?
- 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.
- Pods often use service account identity for API calls, but applications that do not need Kubernetes API access can disable automatic token mounting.
- Base64 in a Secret manifest is an encoding, not cryptographic protection; Secret data needs RBAC and appropriately configured storage encryption.
- A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role.
Explanation
Correct Answer
B:Pods often use service account identity for API calls, but applications that do not need Kubernetes API access can disable automatic token mounting. The observed condition is: A static web Pod includes a service account token despite never calling Kubernetes APIs. The direct diagnostic is: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
Incorrect Answers
A: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. Its subject is PSA enforce warn and audit behavior, but the observed symptom is: A static web Pod includes a service account token despite never calling Kubernetes APIs. The diagnostic check is: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
C:Base64 in a Secret manifest is an encoding, not cryptographic protection; Secret data needs RBAC and appropriately configured storage encryption. It relates to Base64 secret encoding versus encryption. The incident instead shows: A static web Pod includes a service account token despite never calling Kubernetes APIs. The targeted evidence is: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
D:A RoleBinding grants referenced roles within its namespace; a ClusterRoleBinding grants cluster-wide scope, including namespaced resources covered by its role. A healthy control for RoleBinding and ClusterRoleBinding scope does not settle the reported symptom: A static web Pod includes a service account token despite never calling Kubernetes APIs. The relevant test is: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
Question 187
A static web Pod includes a service account token despite never calling Kubernetes APIs. Which evidence should be reviewed before changing the configuration?
- Check whether the binding is namespace-scoped or cluster-scoped.
- Inspect the recognized authenticated user or service-account subject.
- Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
- Inspect namespace PSA labels for enforce, warn and audit levels.
Explanation
Correct Answer
C:Inspect the Pod's effective serviceAccountName and automountServiceAccountToken. This observation targets the suspected cause in the case: A static web Pod includes a service account token despite never calling Kubernetes APIs. It tests the dependency behind the principle: Pods often use service account identity for API calls, but applications that do not need Kubernetes API access can disable automatic token mounting. Cross-check with this independent test: Check whether the application makes required Kubernetes API requests. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
A:Check whether the binding is namespace-scoped or cluster-scoped. It examines RoleBinding and ClusterRoleBinding scope, not the dependency shown by: A static web Pod includes a service account token despite never calling Kubernetes APIs. Check: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
B:Inspect the recognized authenticated user or service-account subject. This observation can be useful, but it does not test the controlling dependency. The direct check is: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
D:Inspect namespace PSA labels for enforce, warn and audit levels. That investigates PSA enforce warn and audit behavior, but would not establish the required condition: Pods often use service account identity for API calls, but applications that do not need Kubernetes API access can disable automatic token mounting. Check instead: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
Question 188
A static web Pod includes a service account token despite never calling Kubernetes APIs. Which implementation step is the most appropriate remediation?
- Apply default-deny ingress and explicit minimal allow rules using a policy-capable CNI.
- Combine namespace and Pod selectors in a single peer entry for an intersection of authorized peers.
- Disable unnecessary token mounting for non-API workloads and test functionality.
- Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs.
Explanation
Correct Answer
C:Disable unnecessary token mounting for non-API workloads and test functionality. This remediation addresses the failed dependency described in A static web Pod includes a service account token despite never calling Kubernetes APIs. The technical basis is: Pods often use service account identity for API calls, but applications that do not need Kubernetes API access can disable automatic token mounting. Before acting, verify: Inspect the Pod's effective serviceAccountName and automountServiceAccountToken. Then require the acceptance result: The workload runs without an unused API token in its filesystem. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
A:Apply default-deny ingress and explicit minimal allow rules using a policy-capable CNI. The incident involves: A static web Pod includes a service account token despite never calling Kubernetes APIs. Changing this setting would not substitute for the evidence-based response: Disable unnecessary token mounting for non-API workloads and test functionality.
B:Combine namespace and Pod selectors in a single peer entry for an intersection of authorized peers. That change concerns NetworkPolicy peer selector intersection, while the reported failure is: A static web Pod includes a service account token despite never calling Kubernetes APIs. The supported correction is: Disable unnecessary token mounting for non-API workloads and test functionality.
D:Use a namespace RoleBinding for namespace-local work; reserve cluster bindings for justified needs. Its success would not establish the required outcome: The workload runs without an unused API token in its filesystem. The needed change is: Disable unnecessary token mounting for non-API workloads and test functionality.
Question 189
A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. Select THREE pieces of diagnostic and acceptance evidence. (Choose THREE.)
- Approved API calls continue across token rotation and stale tokens cease working.
- Check whether the application makes required Kubernetes API requests.
- Valid users identify correctly and forged unauthenticated requests are rejected.
- The workload runs without an unused API token in its filesystem.
- Approved app-to-database traffic succeeds and an unapproved peer is blocked.
- Inspect the Pod's effective serviceAccountName and automountServiceAccountToken.
Explanation
Correct Answers
B:Check whether the application makes required Kubernetes API requests. After applying disable unnecessary token mounting for non-API workloads and test functionality., this observed result shows the affected service or control meets the stated requirement.
D:The workload runs without an unused API token in its filesystem. It demonstrates the effect of disable unnecessary token mounting for non-API workloads and test functionality. for the observed issue: A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files.
F:Inspect the Pod's effective serviceAccountName and automountServiceAccountToken. The result tests the affected function in: A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. The corrective action is: Disable unnecessary token mounting for non-API workloads and test functionality.
Incorrect Answers
A:Approved API calls continue across token rotation and stale tokens cease working. It measures a different function, not whether pods often use service account identity for API calls, but applications that do not need Kubernetes API access can disable automatic token mounting. The specific post-change test is: The workload runs without an unused API token in its filesystem.
C:Valid users identify correctly and forged unauthenticated requests are rejected. This could be true while the stated problem persists: A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. Acceptance requires: The workload runs without an unused API token in its filesystem.
E:Approved app-to-database traffic succeeds and an unapproved peer is blocked. A passing result could coexist with the original problem: A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. Check instead: The workload runs without an unused API token in its filesystem.
Question 190
A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. Which caution is important before treating this as solved?
- Denying ingress alone does not block an infected Pod from initiating outbound connections.
- Removing capabilities does not patch vulnerabilities in application libraries.
- Allowing UDP 53 to every destination is broader than allowing the intended cluster DNS endpoints.
- Disabling token mounts does not remove API access from a different separately supplied credential.
Explanation
Correct Answer
D:Disabling token mounts does not remove API access from a different separately supplied credential. Even if the workload runs without an unused API token in its filesystem., that result alone cannot establish every independent prerequisite or residual risk.
Incorrect Answers
A:Denying ingress alone does not block an infected Pod from initiating outbound connections. Here the proposed action is disable unnecessary token mounting for non-API workloads and test functionality.; the conclusion must also respect: Disabling token mounts does not remove API access from a different separately supplied credential.
B:Removing capabilities does not patch vulnerabilities in application libraries. That warning concerns linux capabilities allowlist, not the inference raised by a backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. The relevant limit is: Disabling token mounts does not remove API access from a different separately supplied credential.
C:Allowing UDP 53 to every destination is broader than allowing the intended cluster DNS endpoints. The stated evidence is narrower: A backend service needs no cluster control-plane calls but exposes its token when a diagnostic endpoint leaks mounted files. Avoid the unsupported conclusion described by: Disabling token mounts does not remove API access from a different separately supplied credential.
Kubernetes and Cloud Native Security Associate (KCSA) Practice Tests