KCSA: Kubernetes and Cloud Native Security Associate

KCSA: Kubernetes and Cloud Native Security Associate practice questions, page 4 of 5, with answer review and explanations.

Question 16

A cluster administrator wants to enforce the use of a different container runtime depending on the application a workload belongs to. How could a mutating admission controller be configured to achieve this?

  1. By manually modifying the container runtime for each workload after it has been created.
  2. By configuring a mutating admission controller webhook that intercepts new workload creation requests and modifies the container runtime based on the application label.
  3. By modifying the kube-apiserver configuration file to specify the desired container runtime for each application.
  4. By configuring a validating admission controller webhook that verifies the container runtime based on the application label and rejects requests that do not comply.

Question 17

When should soft multitenancy be used over hard multitenancy?

  1. When the priority is enabling fine-grained control over tenant resources
  2. When the priority is enabling complete isolation between tenants.
  3. When the priority is enabling resource sharing and efficiency between tenants.
  4. When the priority is enabling strict security boundaries between tenants.

Question 18

What is the name for the process of assessing the validity of vulnerabilities detected in the code or dependencies of a piece of software?

  1. Static Code Analysis
  2. Vulnerability Triage
  3. Vulnerability Scanning
  4. Penetration Testing

Question 19

In Kubernetes, what is Public Key Infrastructure used for?

  1. To manage networking in a Kubernetes cluster.
  2. To manage certificates and ensure secure communication in a Kubernetes cluster.
  3. To automate the scaling of containers in a Kubernetes cluster
  4. To monitor and analyze performance metrics of a Kubernetes cluster.

Question 20

An attacker has access to the network segment that the cluster is on. What happens when a compromised Pod attempts to connect to the API server?

  1. The compromised Pod connects to the API server and is granted elevated privileges by default.
  2. The compromised Pod attempts to connect to the API server, but its requests may be blocked due to network policies.
  3. The compromised Pod is allowed to connect to the API server without any restrictions.
  4. The compromised Pod is automatically isolated from the network to prevent any connections to the API server.