100% Latest & Updated Linux Foundation KCSA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 230
A new database ingress allowance appears ineffective because source namespace egress still blocks the connection. Which caution is important before treating this as solved?
- Allowing UDP 53 to every destination is broader than allowing the intended cluster DNS endpoints.
- Changing a Secret object does not automatically update environment variables in already running processes.
- Disabling token mounts does not remove API access from a different separately supplied credential.
- A rule allowing source egress cannot override an independent destination ingress denial.
Explanation
Correct Answer
D:A rule allowing source egress cannot override an independent destination ingress denial. The case evidence concerns a new database ingress allowance appears ineffective because source namespace egress still blocks the connection. This warning limits what can be concluded without checking the affected dependency separately.
Incorrect Answers
A:Allowing UDP 53 to every destination is broader than allowing the intended cluster DNS endpoints. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: A rule allowing source egress cannot override an independent destination ingress denial.
B:Changing a Secret object does not automatically update environment variables in already running processes. Here the proposed action is allow only the required source-destination-port tuple in both relevant directions.; the conclusion must also respect: A rule allowing source egress cannot override an independent destination ingress denial.
C:Disabling token mounts does not remove API access from a different separately supplied credential. That warning concerns service-account token automatic mounting, not the inference raised by a new database ingress allowance appears ineffective because source namespace egress still blocks the connection. The relevant limit is: A rule allowing source egress cannot override an independent destination ingress denial.
Question 231
A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. What technical rule most directly applies to this deployment?
- 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.
- Base64 in a Secret manifest is an encoding, not cryptographic protection; Secret data needs RBAC and appropriately configured storage encryption.
- RBAC permissions bind specific verbs and resource scopes; granting list Pods does not automatically grant get Secrets or delete Deployments.
Explanation
Correct Answer
A:Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. The scenario is: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. A direct diagnostic is: Inspect audit policy stages, resources and selected levels.
Incorrect Answers
B:An egress default-deny policy isolates outbound connections and may break DNS; allow required DNS destination and port without opening all traffic. The premise for this rule is not established by the stated observations. The governing condition is: Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. Check it with: Inspect audit policy stages, resources and selected levels.
C:Base64 in a Secret manifest is an encoding, not cryptographic protection; Secret data needs RBAC and appropriately configured storage encryption. Its subject is Base64 secret encoding versus encryption, but the observed symptom is: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. The diagnostic check is: Inspect audit policy stages, resources and selected levels.
D:RBAC permissions bind specific verbs and resource scopes; granting list Pods does not automatically grant get Secrets or delete Deployments. The observed fault is: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. Its underlying mechanism is: Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. Test it with: Inspect audit policy stages, resources and selected levels.
Question 232
A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. Select TWO observations necessary for an informed correction. (Choose TWO.)
- Inspect the YAML nesting of namespaceSelector and podSelector in each peer entry.
- Check whether the Secret is merely base64 represented in a YAML file.
- Inspect audit policy stages, resources and selected levels.
- Test DNS responses inside the restricted namespace.
- Verify the configured audit sink receives a controlled test request.
Explanation
Correct Answers
C:Inspect audit policy stages, resources and selected levels. This observation targets the suspected cause in the case: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. It tests the dependency behind the principle: Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. Cross-check with this independent test: Verify the configured audit sink receives a controlled test request. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
E:Verify the configured audit sink receives a controlled test request. This observation targets the suspected cause in the case: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. It tests the dependency behind the principle: Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. Cross-check with this independent test: Inspect audit policy stages, resources and selected levels. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
A:Inspect the YAML nesting of namespaceSelector and podSelector in each peer entry. That investigates networkPolicy peer selector intersection, but would not establish the required condition: Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. Check instead: Inspect audit policy stages, resources and selected levels.
B:Check whether the Secret is merely base64 represented in a YAML file. A successful check here would not settle the reported issue: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. The diagnostic evidence is: Inspect audit policy stages, resources and selected levels.
D:Test DNS responses inside the restricted namespace. This observation can be useful, but it does not test the controlling dependency. The direct check is: Inspect audit policy stages, resources and selected levels.
Question 233
A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. Which targeted action MOST directly addresses the verified problem?
- Use scoped projected tokens with supported rotation and audience validation.
- Configure appropriate security-relevant audit coverage with retention and access protection.
- Combine namespace and Pod selectors in a single peer entry for an intersection of authorized peers.
- Apply default-deny ingress and explicit minimal allow rules using a policy-capable CNI.
Explanation
Correct Answer
B:Configure appropriate security-relevant audit coverage with retention and access protection. This remediation addresses the failed dependency described in A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. The technical basis is: Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. Before acting, verify: Inspect audit policy stages, resources and selected levels. Then require the acceptance result: An important API action leaves an attributable record while audit storage remains healthy. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
A:Use scoped projected tokens with supported rotation and audience validation. Its success would not establish the required outcome: An important API action leaves an attributable record while audit storage remains healthy. The needed change is: Configure appropriate security-relevant audit coverage with retention and access protection.
C:Combine namespace and Pod selectors in a single peer entry for an intersection of authorized peers. The incident involves: A reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. Changing this setting would not substitute for the evidence-based response: Configure appropriate security-relevant audit coverage with retention and access protection.
D: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 reviewer investigates deletion of a Secret but the API audit policy omitted the relevant verb. The supported correction is: Configure appropriate security-relevant audit coverage with retention and access protection.
Question 234
An API server logs all requests in memory but its audit backend never receives or retains the entries. What evidence would justify closing this case?
- An important API action leaves an attributable record while audit storage remains healthy.
- Conforming Pods start while the prohibited Pod configuration is denied.
- A violating Pod is rejected by enforcement and the test generates expected diagnostic records.
- The authorized Pod obtains the value while unauthorized readers and storage observers are denied.
Explanation
Correct Answer
A:An important API action leaves an attributable record while audit storage remains healthy. It demonstrates the effect of configure appropriate security-relevant audit coverage with retention and access protection. for the observed issue: An API server logs all requests in memory but its audit backend never receives or retains the entries.
Incorrect Answers
B:Conforming Pods start while the prohibited Pod configuration is denied. A passing result could coexist with the original problem: An API server logs all requests in memory but its audit backend never receives or retains the entries. Check instead: An important API action leaves an attributable record while audit storage remains healthy.
C:A violating Pod is rejected by enforcement and the test generates expected diagnostic records. It measures a different function, not whether Kubernetes audit policy selects which API requests are logged and at what level; retaining usable records requires configured backends, access controls and rotation. The specific post-change test is: An important API action leaves an attributable record while audit storage remains healthy.
D:The authorized Pod obtains the value while unauthorized readers and storage observers are denied. It would not confirm the effect of the scoped change: Configure appropriate security-relevant audit coverage with retention and access protection. The required evidence is: An important API action leaves an attributable record while audit storage remains healthy.
Question 235
An API server logs all requests in memory but its audit backend never receives or retains the entries. Which caution BEST prevents a mistaken conclusion here?
- TLS between clients and the API server does not encrypt API data at rest in etcd.
- A legacy static service-account Secret token may remain usable until explicitly revoked.
- Container stdout logging is not a substitute for API server audit records.
- Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide.
Explanation
Correct Answer
C:Container stdout logging is not a substitute for API server audit records. The tested response is configure appropriate security-relevant audit coverage with retention and access protection.; that action does not by itself justify a stronger conclusion than the evidence supports.
Incorrect Answers
A:TLS between clients and the API server does not encrypt API data at rest in etcd. The observed result concerns: An API server logs all requests in memory but its audit backend never receives or retains the entries. The relevant limitation is more specific: Container stdout logging is not a substitute for API server audit records.
B:A legacy static service-account Secret token may remain usable until explicitly revoked. Its premise is not established by this incident. For the recorded behavior, the appropriate warning is: Container stdout logging is not a substitute for API server audit records.
D:Referencing a ClusterRole from a RoleBinding does not make the binding cluster-wide. That warning concerns roleBinding and ClusterRoleBinding scope, not the inference raised by an API server logs all requests in memory but its audit backend never receives or retains the entries. The relevant limit is: Container stdout logging is not a substitute for API server audit records.
Question 236
A development container opens an unprotected etcd client port and changes stored cluster objects. Which security distinction BEST explains the risk?
- The API server mediates authenticated and authorized Kubernetes object changes; direct access to backend control-plane storage can bypass that normal trust boundary.
- 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.
- 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 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.
Explanation
Correct Answer
A:The API server mediates authenticated and authorized Kubernetes object changes; direct access to backend control-plane storage can bypass that normal trust boundary. The case involves: A development container opens an unprotected etcd client port and changes stored cluster objects. The direct diagnostic is: Map the requester, API endpoint and datastore routes.
Incorrect Answers
B: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. Its subject is Unencrypted service traffic, but the observed symptom is: A development container opens an unprotected etcd client port and changes stored cluster objects. The diagnostic check is: Map the requester, API endpoint and datastore routes.
C: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. The observed fault is: A development container opens an unprotected etcd client port and changes stored cluster objects. Its underlying mechanism is: The API server mediates authenticated and authorized Kubernetes object changes; direct access to backend control-plane storage can bypass that normal trust boundary. Test it with: Map the requester, API endpoint and datastore routes.
D: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: A development container opens an unprotected etcd client port and changes stored cluster objects. The targeted evidence is: Map the requester, API endpoint and datastore routes.
Question 237
A development container opens an unprotected etcd client port and changes stored cluster objects. Which evidence should be reviewed before changing the configuration?
- Map the requester, API endpoint and datastore routes.
- Inspect the Deployment image digest and update history.
- Inspect the provider identity assumed by the affected Pod.
- Inspect the Pod-mounted service account and granted RBAC verbs.
Explanation
Correct Answer
A:Map the requester, API endpoint and datastore routes. This observation targets the suspected cause in the case: A development container opens an unprotected etcd client port and changes stored cluster objects. It tests the dependency behind the principle: The API server mediates authenticated and authorized Kubernetes object changes; direct access to backend control-plane storage can bypass that normal trust boundary. Cross-check with this independent test: Check whether direct datastore access is restricted to approved control-plane components. The evidence should be gathered before changing security or workload configuration so that the correct layer is adjusted.
Incorrect Answers
B:Inspect the Deployment image digest and update history. It examines Compromised image deployment persistence, not the dependency shown by: A development container opens an unprotected etcd client port and changes stored cluster objects. Check: Map the requester, API endpoint and datastore routes.
C:Inspect the provider identity assumed by the affected Pod. This observation can be useful, but it does not test the controlling dependency. The direct check is: Map the requester, API endpoint and datastore routes.
D:Inspect the Pod-mounted service account and granted RBAC verbs. That measures Workload to Kubernetes API privilege boundary. The controlling observation for this case is: Map the requester, API endpoint and datastore routes.
Question 238
A development container opens an unprotected etcd client port and changes stored cluster objects. Which implementation step is the most appropriate remediation?
- Restrict object-store access to required prefixes and rotate affected credentials.
- Protect the sensitive connection with approved mutually authenticated encryption where required.
- Constrain direct backend access and require normal API identity and authorization for routine operations.
- Patch the vulnerable application, rotate exposed credentials and contain its runtime permissions.
Explanation
Correct Answer
C:Constrain direct backend access and require normal API identity and authorization for routine operations. This remediation addresses the failed dependency described in A development container opens an unprotected etcd client port and changes stored cluster objects. The technical basis is: The API server mediates authenticated and authorized Kubernetes object changes; direct access to backend control-plane storage can bypass that normal trust boundary. Before acting, verify: Map the requester, API endpoint and datastore routes. Then require the acceptance result: Unapproved workloads cannot access etcd directly and API operations remain attributable. Avoid broader changes that could widen privileges or interrupt unrelated workloads.
Incorrect Answers
A:Restrict object-store access to required prefixes and rotate affected credentials. That intervention could improve Cloud storage permissions after compromise without resolving the reported symptom. The diagnostic is: Map the requester, API endpoint and datastore routes. The correction is: Constrain direct backend access and require normal API identity and authorization for routine operations.
B:Protect the sensitive connection with approved mutually authenticated encryption where required. The incident involves: A development container opens an unprotected etcd client port and changes stored cluster objects. Changing this setting would not substitute for the evidence-based response: Constrain direct backend access and require normal API identity and authorization for routine operations.
D:Patch the vulnerable application, rotate exposed credentials and contain its runtime permissions. The intervention targets an adjacent dependency, while the case needs: Constrain direct backend access and require normal API identity and authorization for routine operations. Verify the result through: Unapproved workloads cannot access etcd directly and API operations remain attributable.
Question 239
A threat-model diagram shows a public monitoring subnet with direct connectivity to control-plane state storage. Select THREE pieces of diagnostic and acceptance evidence. (Choose THREE.)
- Unauthorized system Pods stop reappearing and only approved node agents remain.
- Unapproved workloads cannot access etcd directly and API operations remain attributable.
- Map the requester, API endpoint and datastore routes.
- Replacement Pods use the reviewed digest and no malicious replica returns.
- Normal diagnostic events remain useful without exposing credential material.
- Check whether direct datastore access is restricted to approved control-plane components.
Explanation
Correct Answers
B:Unapproved workloads cannot access etcd directly and API operations remain attributable. The intended change—constrain direct backend access and require normal API identity and authorization for routine operations.—is not accepted merely because it was configured; this is the behavior that must be observed.
C:Map the requester, API endpoint and datastore routes. The result tests the affected function in: A threat-model diagram shows a public monitoring subnet with direct connectivity to control-plane state storage. The corrective action is: Constrain direct backend access and require normal API identity and authorization for routine operations.
F:Check whether direct datastore access is restricted to approved control-plane components. It demonstrates the effect of constrain direct backend access and require normal API identity and authorization for routine operations. for the observed issue: A threat-model diagram shows a public monitoring subnet with direct connectivity to control-plane state storage.
Incorrect Answers
A:Unauthorized system Pods stop reappearing and only approved node agents remain. This outcome relates to Malicious privileged DaemonSet persistence, not the behavior expected after the scoped correction. The acceptance result is: Unapproved workloads cannot access etcd directly and API operations remain attributable.
D:Replacement Pods use the reviewed digest and no malicious replica returns. It would not confirm the effect of the scoped change: Constrain direct backend access and require normal API identity and authorization for routine operations. The required evidence is: Unapproved workloads cannot access etcd directly and API operations remain attributable.
E:Normal diagnostic events remain useful without exposing credential material. This could be true while the stated problem persists: A threat-model diagram shows a public monitoring subnet with direct connectivity to control-plane state storage. Acceptance requires: Unapproved workloads cannot access etcd directly and API operations remain attributable.
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.
Kubernetes and Cloud Native Security Associate (KCSA) Practice Tests