Courseiva

Kubernetes and Cloud Native Security Associate (KCSA, CNCF) (KCSA) (KCSA) — Questions 226300

320 questions total · 5pages · All types, answers revealed

Page 3

Page 4 of 5

Page 5
226
MCQeasy

Which NIST framework publication specifically addresses the security of container-based applications and orchestration systems?

A.NIST SP 800-190
B.NIST SP 800-37
C.NIST SP 800-53
D.NIST SP 800-88
AnswerA

SP 800-190 is dedicated to container and application security guidelines.

Why this answer

NIST SP 800-190 is the Application Container Security Guide, providing specific security guidance for container environments.

227
Multi-Selecthard

Which TWO of the following scenarios represent severe security misconfigurations in a Kubernetes cluster control plane? (Choose TWO)

Select 2 answers
A.Etcd is configured with client certificate authentication and mTLS enabled.
B.Kubelet authorization mode is set to Webhook.
C.The API server is configured with --insecure-port pointing to an active HTTP listener.
D.The API server or kubelet has anonymous authentication enabled (--anonymous-auth=true).
E.Secrets are encrypted at rest using an EncryptionConfiguration file.
AnswersC, D

Allows unauthenticated/unauthorized access.

Why this answer

Exposing the API server insecure port and allowing anonymous authentication are severe misconfigurations.

228
MCQhard

You are securing a highly regulated Kubernetes cluster and need to ensure that etcd data is encrypted at rest using a custom encryption key. After creating the EncryptionConfiguration file, which API server flag must be updated to point to this file?

A.--data-encryption-secret
B.--encryption-config-path
C.--encryption-provider-config
D.--etcd-key-file
AnswerC

This flag instructs the API server to load the encryption provider settings.

Why this answer

The --encryption-provider-config flag links the API server to the encryption configuration file.

229
Multi-Selectmedium

Under the cloud native shared responsibility model for a managed Kubernetes service, which TWO tasks are typically the responsibility of the cloud provider? (Choose TWO)

Select 2 answers
A.Writing custom application microservice source code
B.Configuring Kubernetes Role-Based Access Control (RBAC) rules
C.Provisioning and securing physical data center facilities and hardware
D.Managing and patching the managed Kubernetes control plane infrastructure
E.Applying Kubernetes NetworkPolicies between customer pods
AnswersC, D

Physical facilities and hardware security are provider responsibilities.

Why this answer

Cloud providers manage physical infrastructure and the control plane components in managed Kubernetes offerings.

230
Multi-Selecteasy

When modeling threats for a Kubernetes cluster using the STRIDE methodology, identifying scenarios where an attacker intercepts unencrypted traffic between worker nodes or between a client and the API server addresses which TWO STRIDE categories? (Choose TWO)

Select 2 answers
A.Repudiation
B.Denial of Service
C.Tampering
D.Elevation of Privilege
E.Information Disclosure
AnswersC, E

Correct. Unencrypted data in transit can be intercepted and modified maliciously.

Why this answer

Interception of unencrypted network traffic falls under Information Disclosure (reading sensitive data in transit) and Tampering (if the traffic can also be modified in flight without integrity checks).

231
MCQhard

You are tasked with securing a Kubernetes cluster where control plane nodes are hosted in a private network segment. To prevent unauthorized access to the API server from compromised internal workloads, which mechanism restricts which service accounts can access the API server?

A.Setting kubelet readOnlyPort to 8080.
B.Enabling anonymous access.
C.Disabling the Node authorizer.
D.Strict RBAC Role and ClusterRole bindings adhering to the principle of least privilege.
AnswerD

RBAC restricts what actions service accounts and users can perform against the API server.

Why this answer

Role-Based Access Control (RBAC) combined with least-privilege binding ensures service accounts only access permitted API resources.

232
MCQmedium

An enterprise cluster requires that all incoming NetworkPolicies must default to denying all traffic unless explicitly allowed. A developer creates a namespace but forgets to apply any policies. What is the default behavior of Kubernetes regarding inter-pod traffic within a namespace when no NetworkPolicies are present?

A.Only traffic originating from the kube-system namespace is allowed.
B.All traffic between pods is allowed by default.
C.Traffic is allowed only if the pods share the same node.
D.All traffic between pods is denied by default.
AnswerB

Kubernetes network model is non-isolated by default until a NetworkPolicy selects a pod.

Why this answer

By default, Kubernetes namespaces are non-isolated (allow-all). All pods can communicate with all other pods unless a NetworkPolicy explicitly restricts traffic.

233
Multi-Selecthard

Which TWO of the following are valid ways to harden etcd against unauthorized access and data corruption? (Choose TWO)

Select 2 answers
A.Expose etcd directly over unencrypted HTTP on port 2379.
B.Disable client certificate verification to allow unrestricted access.
C.Require mutual TLS (mTLS) for all client and peer connections.
D.Take regular encrypted snapshots using etcdctl snapshot save.
E.Grant public anonymous write access to the etcd raft log.
AnswersC, D

mTLS ensures only trusted components can communicate with etcd.

Why this answer

Enforcing client certificate authentication and taking regular encrypted snapshots secure etcd.

234
MCQmedium

An external penetration tester managed to achieve remote code execution inside a container. They attempt to query the Kubernetes API server using the service account token mounted inside the container. To minimize the blast radius of such an attack, which setting should be explicitly configured on the Pod spec?

A.shareProcessNamespace: false
B.automountServiceAccountToken: false
C.hostIPC: false
D.hostNetwork: false
AnswerB

Disabling automatic service account token mounting ensures pods that do not need to interact with the Kubernetes API server lack credentials inside the container filesystem.

Why this answer

Setting automountServiceAccountToken to false prevents Kubernetes from automatically mounting the service account API credentials into the container, effectively blocking unauthorized local API access if the container is compromised.

235
Multi-Selecteasy

Which TWO of the following are primary components of the 4Cs of Cloud Native Security model? (Choose TWO)

Select 2 answers
A.Container
B.Client
C.Crypto
D.Code
E.Compliance
AnswersA, D

Container is one of the 4Cs, encompassing base images and runtime.

Why this answer

The 4Cs of Cloud Native Security are Code, Container, Cluster, and Cloud.

236
MCQmedium

You are troubleshooting a container image vulnerability scan report that flagged a high-severity CVE in a base image layer. The development team wants to ensure that vulnerable container images are automatically prevented from being deployed to any namespace in the cluster. Which Kubernetes mechanism should you implement?

A.Enable resource quotas on the default namespace
B.Rotate the cluster certificate authority
C.Add network policies to restrict outbound CVE database queries
D.Configure a validating admission webhook to inspect image metadata and reject deployments with known CVEs
AnswerD

Validating admission webhooks can block pods that use images with unresolved vulnerabilities.

Why this answer

An admission controller, specifically a validating webhook or a policy engine like OPA Gatekeeper or Kyverno, can intercept image creation requests and block images that fail vulnerability checks.

237
MCQmedium

Under NIST guidelines for continuous monitoring in cloud-native environments, which Kubernetes mechanism allows operators to enforce cryptographic integrity of container images at runtime?

A.Image signing and verification via admission controllers
B.Increasing pod memory limits
C.Disabling the default namespace
D.Using ClusterRoleBindings with wildcards
AnswerA

Cryptographic signatures verify image provenance prior to runtime admission.

Why this answer

Admission controllers like Gatekeeper or Kyverno working alongside image signature verification tools (like Cosign) enforce cryptographic image signatures before admission.

238
Multi-Selecthard

Which THREE mechanisms are used in a zero-trust platform security model for cloud-native applications? (Choose three)

Select 3 answers
A.Granting cluster-admin permissions to all application service accounts
B.Implementing microsegmentation via Kubernetes NetworkPolicies and service mesh auth policies
C.Enforcing mutual TLS (mTLS) for all internal service-to-service communications
D.Applying strict admission webhook policies to validate workloads before creation
E.Assuming internal cluster networks are fully secure and trusting all pods by default
AnswersB, C, D

Microsegmentation restricts lateral movement by explicitly defining allowed network paths.

Why this answer

A zero-trust model relies on continuous verification, including mutual TLS encryption, strict admission controls, and principle of least privilege via network and authorization policies.

239
MCQhard

An administrator wishes to defend against supply chain attacks involving malicious third-party Kubernetes operators installed from public catalogs. What security practice is most effective before installing such operators?

A.Reviewing requested RBAC permissions, operator manifests, and verifying image provenance
B.Enabling Horizontal Pod Autoscaling for CoreDNS replicas
C.Disabling the Kubernetes Dashboard service deployment
D.Configuring liveness probes on all worker nodes to check kubelet responsiveness
AnswerA

Malicious or overly permissive operators often request cluster-admin rights; reviewing manifests and RBAC scopes before installation prevents unauthorized privilege escalation.

Why this answer

Inspecting CustomResourceDefinitions (CRDs), controller manifests, RBAC permissions requested by the operator, and pulling container images from verified registries ensures the operator does not request excessive privileges (e.g., cluster-admin).

240
Multi-Selecteasy

Which TWO of the following actions are risks associated with leaving the Kubernetes API server's insecure port enabled? (Choose TWO)

Select 2 answers
A.Enforcement of strict TLS 1.3 encryption on all connections.
B.Complete bypass of all authentication mechanisms.
C.Mandatory mutual TLS client certificate verification.
D.Automatic activation of etcd encryption at rest.
E.Complete bypass of all authorization checks (RBAC).
AnswersB, E

The insecure port does not require authentication.

Why this answer

The insecure port allows unauthenticated and unencrypted access.

241
MCQmedium

A cluster operator is enforcing the Pod Security Standards "restricted" profile across a namespace. A developer attempts to deploy a container running as root (runAsUser: 0). What will happen during the admission phase?

A.The pod will be created, but the kubelet will override the user ID to 65534 at runtime.
B.The pod will start successfully in audit mode, generating a warning event in the API server logs.
C.The PodSecurity admission controller will reject the pod creation request.
D.The container will drop all Linux capabilities and proceed with deployment.
AnswerC

The restricted profile forbids containers running as root, causing the Pod Security admission controller to deny the request.

Why this answer

The restricted Pod Security Standard explicitly prohibits containers from running as root and enforces a non-root user. The request will be rejected by the Pod Security admission controller.

242
Multi-Selectmedium

Which TWO components are involved when an Ingress controller routes external HTTPS traffic to a backend service in Kubernetes? (Choose two)

Select 2 answers
A.The kube-apiserver etcd storage backend encryption key
B.The coreDNS server managing TLS private keys
C.The persistent volume CSI controller
D.The Ingress resource object defining routing rules and TLS hosts
E.The Ingress Controller pod implementing the reverse proxy logic
AnswersD, E

The Ingress resource specifies the routing rules, hostnames, and TLS secret mappings.

Why this answer

Ingress routing involves the Ingress resource defining routing rules and the Ingress Controller (such as NGINX or Traefik) implementing those rules and terminating TLS.

243
MCQhard

An organization requires compliance auditing of etcd access to ensure unauthorized clients cannot communicate with the data store. According to CIS benchmarks, how should etcd client communication be secured?

A.IPsec tunnel encapsulation
B.Mutual TLS (mTLS) client certificates
C.HTTP with token bearer headers
D.Plaintext loopback interface binding
AnswerB

CIS benchmarks dictate that etcd client-server communication must use client certificates (mTLS).

Why this answer

CIS benchmarks require etcd client communication to be authenticated and encrypted using mutual TLS (mTLS).

244
MCQeasy

What is the primary function of the 'automountServiceAccountToken: false' setting in a Pod specification?

A.It deletes the ServiceAccount object from the cluster when the pod terminates.
B.It prevents the pod from communicating with the Kubernetes API server entirely.
C.It disables RBAC authorization checks for the pod.
D.It prevents the ServiceAccount API token from being automatically mounted inside the pod.
AnswerD

This setting disables token auto-mounting for enhanced security.

Why this answer

Setting automountServiceAccountToken to false prevents the automatic mounting of the ServiceAccount API token into the pod's filesystem, reducing the attack surface if the pod is compromised.

245
Multi-Selecteasy

Which TWO of the following files or directories on a control plane node contain critical static pod manifests for core components? (Choose TWO)

Select 2 answers
A./etc/kubernetes/manifests/etcd.yaml
B./var/lib/kubelet/config.yaml
C./etc/default/kube-proxy
D.~/.kube/config
E./etc/kubernetes/manifests/kube-apiserver.yaml
AnswersA, E

Contains the etcd static pod definition.

Why this answer

The /etc/kubernetes/manifests directory holds static pod yaml files for kube-apiserver, etcd, etc.

246
Multi-Selectmedium

Which TWO of the following metrics or health endpoints should be protected against unauthenticated access on control plane nodes? (Choose TWO)

Select 2 answers
A.Container runtime image download caches.
B.Etcd metrics and health endpoints (typically port 2379/2380).
C.Public load balancer health check probe targets configured for external routing.
D.CoreDNS internal DNS query forwarding ports.
E.Kubelet metrics and operational endpoints (port 10250).
AnswersB, E

Etcd metrics expose internal storage and performance data.

Why this answer

API server metrics and etcd health/metrics endpoints contain sensitive operational and cluster data.

247
MCQmedium

An administrator needs to configure an Ingress resource to route traffic securely to a backend service using HTTPS (TLS between the ingress controller and the backend pod). Which NGINX Ingress annotation enables this backend HTTPS communication?

A.nginx.ingress.kubernetes.io/ssl-redirect: "true"
B.nginx.ingress.kubernetes.io/proxy-connect-timeout
C.nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
D.nginx.ingress.kubernetes.io/cors-allow-origin
AnswerC

This annotation informs the NGINX Ingress controller to use HTTPS when proxying traffic to backend pods.

Why this answer

The NGINX Ingress controller supports annotations like 'nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"' to instruct the proxy to communicate with backend pods over HTTPS.

248
MCQhard

An administrator needs to restrict a container from accessing any devices on the host system via device nodes. By default, how does Docker or containerd handle device access for containers when no custom security profile is applied?

A.By disabling all system calls related to file I/O
B.By routing all device access requests through kube-proxy
C.By applying a default device allowlist that restricts access to essential devices like /dev/null and /dev/random
D.By mounting the entire host /dev directory in read-write mode
AnswerC

Container runtimes apply a restrictive default device cgroup policy permitting only basic safe devices.

Why this answer

Container runtimes like containerd and Docker apply a default set of cgroups and device rules that restrict access, but can be further locked down using device plugins or cgroup rules.

249
MCQeasy

A developer accidentally committed plain-text database passwords into a public Git repository. The password was stored in a Kubernetes Secret manifest. What immediate remediation step should be taken regarding the Secret?

A.Apply a DenyAll NetworkPolicy to the namespace.
B.Delete the Secret object and restart all cluster nodes.
C.Rotate the credential in the underlying database, then update the Kubernetes Secret with the new value.
D.Change the Secret manifest encoding from base64 to hex format.
AnswerC

Since the secret was exposed, the credential itself is compromised and must be rotated at the source.

Why this answer

Rotate the compromised password in the database immediately, then update the Kubernetes Secret with the new password.

250
MCQmedium

A DevOps team is building container images using Dockerfiles. They decide to use official minimal distroless base images instead of standard Ubuntu images containing package managers and shell utilities. Which security benefit does this provide?

A.It reduces the container attack surface by removing unused binaries and shells
B.It encrypts the container image layers at rest in the registry
C.It automatically configures cloud IAM roles for the container
D.It guarantees zero vulnerabilities in application code dependencies
AnswerA

Removing shells and package managers prevents attackers from executing commands if a container is compromised.

Why this answer

Distroless images reduce the attack surface by excluding unnecessary binaries, package managers, and shells.

251
MCQeasy

Why is running containers as the root user discouraged in Kubernetes platform security best practices?

A.It prevents the kubelet from starting the pod
B.It disables network policy enforcement
C.It stops container image vulnerability scanning
D.It increases the impact of potential container breakout or compromise by granting root privileges inside the container
AnswerD

Running as non-root limits the potential damage an attacker can do if they compromise the container application.

Why this answer

Running as root inside a container means that if an attacker achieves container escape or remote code execution, they may have elevated privileges on the host or inside the container namespace.

252
MCQeasy

When managing Kubernetes clusters on Google Cloud Platform (GKE), Google manages the control plane infrastructure. Under the shared responsibility model, what is the customer primarily responsible for securing?

A.The physical security of the data center housing the servers
B.The underlying virtualization hypervisors of the physical data center
C.The internal etcd cluster database consensus protocol implementation
D.The Kubernetes worker node operating systems and cluster configuration
AnswerD

Customers are responsible for worker nodes, node OS updates, network policies, and cluster workloads.

Why this answer

In managed Kubernetes (like GKE or EKS), the cloud provider manages the control plane, while the customer is responsible for configuring worker nodes, IAM, cluster networking, and workloads.

253
MCQhard

You need to ensure that a Secret containing database credentials cannot be read by anyone except the database application controller, even if they have broad RBAC read permissions in the namespace. Which feature should you consider?

A.Enable the ValidatingAdmissionPolicy to inspect the user's decryption key.
B.Store the credentials in an external secrets manager and use an Operator to inject them directly into pod environment variables, avoiding the creation of Kubernetes Secret objects entirely.
C.Set the secret data encoding to AES-256 within the manifest metadata.
D.Apply a Role restricting Secret viewing by adding a label selector to the RoleBinding.
AnswerB

Avoiding Kubernetes Secret objects eliminates the risk of users with namespace Secret read permissions accessing the credentials.

Why this answer

Standard Kubernetes RBAC is resource-based and does not support cell-level or secret-value level restrictions natively within a namespace once read access to secrets is granted. However, migrating to an external secrets manager or using advanced admission control can restrict access. Within native Kubernetes, RBAC allows reading secrets if 'get' or 'list' is granted on 'secrets'.

To strictly isolate secrets, external secret operators injecting secrets via environment variables or volume mounts without granting direct secret API access is standard practice.

254
MCQmedium

An administrator wants to ensure that no container in a specific namespace runs with a root User ID (UID 0). Which security context setting should be enforced?

A.privileged: false
B.readOnlyRootFilesystem: true
C.runAsNonRoot: true
D.allowPrivilegeEscalation: false
AnswerC

runAsNonRoot ensures containers fail to start if they run as root.

Why this answer

Setting 'runAsNonRoot: true' in the security context forces the container runtime to reject containers that attempt to run as UID 0.

255
Multi-Selecthard

Which TWO statements are true regarding Kubernetes NetworkPolicy default behaviors?

Select 2 answers
A.NetworkPolicies automatically block all traffic across all namespaces upon cluster installation.
B.By default, all pods in a cluster are non-isolated and accept traffic from any source.
C.When a NetworkPolicy selects a pod and specifies ingress rules, unallowed ingress traffic is blocked.
D.Egress traffic is blocked by default even if no NetworkPolicy is created.
E.NetworkPolicies apply to cluster nodes rather than individual pods.
AnswersB, C

Cluster networking is open by default until policies are applied.

Why this answer

By default, pods are non-isolated (all traffic allowed). When a NetworkPolicy selects pods and specifies ingress/egress, those specific directions become deny-by-default.

256
Multi-Selecteasy

Which TWO actions help secure Ingress traffic in a Kubernetes cluster? (Choose two)

Select 2 answers
A.Exposing all internal debugging endpoints via unencrypted HTTP on port 80
B.Enforcing TLS termination with strong cipher suites and valid certificates
C.Disabling all authentication mechanisms at the ingress gateway
D.Restricting ingress controller exposure and using Web Application Firewalls (WAF)
E.Storing TLS private keys in plaintext ConfigMaps
AnswersB, D

TLS encryption protects data in transit between clients and the ingress controller.

Why this answer

Securing ingress traffic involves enforcing TLS encryption for all incoming web traffic and restricting ingress access using appropriate firewall or network policies.

257
MCQmedium

A security engineer is reviewing the NIST SP 800-190 container security application and needs to identify the primary control category for securing container image registries. Under NIST guidelines, which layer is primarily responsible for verifying the integrity of images before deployment?

A.Host OS security
B.Registry security
C.Runtime orchestration security
D.Cluster networking
AnswerB

Registry security involves securing image repositories and verifying image integrity/provenance.

Why this answer

NIST SP 800-190 emphasizes that image integrity must be validated at the registry and build pipeline level using cryptographic signing and vulnerability scanning.

258
MCQmedium

You are hardening etcd and want to ensure that sensitive data stored in Kubernetes secrets is encrypted at rest within etcd. Which API server configuration file parameter specifies how secrets should be encrypted?

A.--etcd-encryption-key
B.--secrets-encryption-enabled
C.--encryption-provider-config
D.--etcd-ca-file
AnswerC

This flag points to the configuration file defining encryption providers like aescbc or secretbox.

Why this answer

Encryption at rest is configured using an EncryptionConfiguration file passed to the API server via the --encryption-provider-config flag.

259
Multi-Selectmedium

An auditor evaluates network security controls in a Kubernetes cluster. Which TWO configurations help mitigate lateral movement and network-based attacks between pods?

Select 2 answers
A.Disabling CNI network plugins to run pods in bridge mode
B.Implementing a service mesh (such as Istio or Linkerd) with strict mTLS enforcement
C.Exposing all internal microservices via NodePort services on worker nodes
D.Mounting the host network namespace (`hostNetwork: true`) on all application pods
E.Enforcing Kubernetes NetworkPolicies to restrict pod-to-pod ingress and egress traffic
AnswersB, E

A service mesh encrypts traffic and authenticates service identities at layer 7.

Why this answer

Deploying CNI-level network policies and implementing a service mesh for mTLS traffic encryption and authentication mitigate lateral movement.

260
Multi-Selecthard

Which THREE of the following mechanisms are used by the Kubernetes API server to authorize requests after authentication succeeds? (Choose THREE)

Select 3 answers
A.RBAC (Role-Based Access Control) authorizer.
B.Node authorizer for restricting kubelet operations.
C.Etcd consensus authorizer.
D.Kube-proxy IPVS routing authorizer.
E.Webhook authorizer for external authorization evaluation.
AnswersA, B, E

Standard RBAC checks roles and bindings.

Why this answer

Kubernetes supports Node, RBAC, and Webhook authorization modes.

261
MCQhard

An auditor notices that default ServiceAccounts in newly created namespaces are automatically mounting their API tokens into pods, creating an unnecessary attack surface. How can an administrator permanently disable automatic token mounting for all new service accounts in a specific namespace?

A.By applying a PodSecurityPolicy with spec.hostNetwork set to false.
B.By editing the kube-apiserver manifest to include the --disable-service-account-tokens flag.
C.By setting automountServiceAccountToken: false on the default ServiceAccount within that namespace.
D.By creating a LimitRange that restricts secret volume mounts.
AnswerC

Pods referencing that ServiceAccount will no longer automatically mount the token unless explicitly overridden in the pod spec.

Why this answer

Setting automountServiceAccountToken: false on the ServiceAccount resource prevents the token from being automatically mounted into pods using that service account.

262
MCQeasy

Which RBAC verb allows a user to delete an existing resource in a Kubernetes namespace?

A.delete
B.remove
C.purge
D.destroy
AnswerA

The 'delete' verb grants permission to remove resources.

Why this answer

The 'delete' verb specifically authorizes removing resources.

263
MCQmedium

A security engineer needs to verify that control plane component pods (such as kube-apiserver and etcd) have correct file ownership on the control plane node. According to CIS benchmarks, who should own these manifest files located in "/etc/kubernetes/manifests"?

A.nobody:nogroup
B.root:root
C.daemon:daemon
D.kube:kube
AnswerB

Manifest files must be owned by root:root to prevent unauthorized modification.

Why this answer

CIS benchmarks state that control plane manifest files must be owned by the root user and root group (root:root).

264
Multi-Selecthard

Which TWO of the following mechanisms help secure the kubelet API from unauthorized access and container inspection? (Choose TWO)

Select 2 answers
A.Enabling Webhook authorization mode so kubelet requests are validated against API server RBAC.
B.Removing all TLS certificates from the kubelet configuration.
C.Setting kubelet authorization mode to AlwaysAllow.
D.Disabling anonymous authentication on the kubelet.
E.Enabling the kubelet read-only port 10255.
AnswersA, D

Webhook authorization delegates authz to the API server.

Why this answer

Setting authorization mode to Webhook and disabling anonymous access protect the kubelet API.

265
MCQeasy

Where are static pods for a control plane node typically defined so that the kubelet can automatically create and manage them?

A.In the directory specified by staticPodPath in the kubelet configuration file (default /etc/kubernetes/manifests).
B.In the ~/.kube/config file of the root user.
C.In the etcd database under the /registry/staticpods prefix.
D.In the kube-system namespace as standard Deployment objects.
AnswerA

Kubelet watches this directory and automatically creates static pods for any yaml manifests found within.

Why this answer

Static pods are defined by manifest files placed in the directory specified by the kubelet's --pod-manifest-path flag or staticPodPath configuration setting.

266
Multi-Selectmedium

A security team is implementing Pod Security Standards (restricted, baseline, privileged) across namespaces. Which THREE controls are enforced under the Restricted Pod Security profile? (Choose THREE)

Select 3 answers
A.Requiring all capabilities to be dropped except NET_BIND_SERVICE or dropping all (capabilities.drop: [ALL])
B.Requiring containers to run as a non-root user (runAsNonRoot: true)
C.Disallowing privilege escalation (allowPrivilegeEscalation: false)
D.Allowing unrestricted use of the host network and host PID namespaces
E.Enabling privileged mode for all standard workloads
AnswersA, B, C

Restricted profile requires dropping dangerous capabilities.

Why this answer

The restricted profile enforces running as non-root, dropping capabilities, and preventing privilege escalation.

267
MCQmedium

Under the Pod Security Standards, a developer attempts to deploy a pod with 'privileged: true' in a namespace labeled with 'pod-security.kubernetes.io/enforce=baseline'. What will happen?

A.The admission controller will reject the pod creation request with an error.
B.The pod will run in a restricted sandbox environment automatically.
C.The pod will be created successfully, but a warning will be logged in the audit log.
D.The kubelet will automatically strip the 'privileged: true' setting and run the pod safely.
AnswerA

Privileged mode violates the baseline policy, causing the admission controller to deny the request.

Why this answer

The 'baseline' profile prohibits privileged containers. The admission controller will reject the pod creation request.

268
Multi-Selecteasy

Which TWO entities can be assigned RBAC permissions in a Kubernetes cluster? (Choose TWO)

Select 2 answers
A.ConfigMap
B.Namespace
C.ServiceAccount
D.PersistentVolume
E.User
AnswersC, E

ServiceAccounts are standard non-human identities in Kubernetes.

Why this answer

RBAC bindings can be assigned to Users, Groups, and ServiceAccounts.

269
MCQhard

You are performing a security assessment on an existing Kubernetes cluster. You discover that the kubelet API permits users with valid service account tokens to read sensitive container environment variables and logs. How should you configure the kubelet authorization mode to prevent unauthorized token holders from reading arbitrary pod data?

A.Set kubelet authorization mode to Webhook so the API server evaluates RBAC permissions for kubelet requests.
B.Set kubelet authorization mode to AlwaysAllow.
C.Enable anonymous access on port 10250.
D.Disable the kubelet authentication certificate.
AnswerA

Webhook authorization forces the kubelet to delegate access checks to the API server's RBAC authorizer.

Why this answer

Enabling Webhook authorization on the kubelet ensures that API server RBAC rules govern access to kubelet subresources like logs and exec.

270
MCQmedium

An auditor notices that a cluster allows users to create Pods that mount host paths (`hostPath`). Which threat does this pose to the underlying node integrity?

A.Arbitrary read/write access to the host filesystem, enabling node compromise
B.Automatic failure of Kubernetes liveness and readiness health probes
C.Inability of the CNI plugin to assign IP addresses to pods
D.Immediate corruption of the etcd distributed consensus state
AnswerA

Mounting host directories lets a compromised container modify critical host files, leading directly to host takeover.

Why this answer

hostPath mounts allow containers to read and write directly to the host node's filesystem, enabling attackers to tamper with system files, cron jobs, or SSH authorized keys for node takeover.

271
MCQhard

A security team is implementing NIST SP 800-190 guidelines for container runtime security. Which kernel feature is leveraged by container runtimes to restrict system calls and meet least-privilege execution requirements?

A.Seccomp profiles
B.cgroups v2
C.AppArmor MAC profiles
D.Namespaces
AnswerA

Seccomp restricts the system calls a containerized process can make.

Why this answer

Seccomp (secure computing mode) filters system calls made by containers, aligning with NIST guidelines to restrict container capabilities and reduce attack surface.

272
Multi-Selectmedium

In the context of Kubernetes API server security, which TWO mechanisms are used to authenticate incoming API requests?

Select 2 answers
A.Kubernetes NetworkPolicy egress CIDR blocks
B.PersistentVolume claim capacity metadata
C.X509 Client Certificates presented during TLS handshakes
D.Container image pull secrets stored in private registries
E.Bearer Tokens (including ServiceAccount JWT tokens)
AnswersC, E

The API server validates client certificates signed by the cluster CA for authentication.

Why this answer

X509 client certificates and Service Account bearer tokens are standard Kubernetes authentication mechanisms.

273
MCQmedium

A security engineer is reviewing the security posture of an enterprise Kubernetes deployment. They note that developers push container images directly to a private registry without vulnerability scanning. Which of the 4Cs is directly impacted by this gap?

A.Code layer
B.Cluster layer
C.Cloud layer
D.Container layer
AnswerD

Container image vulnerability management is a core component of Container security.

Why this answer

Unscanned container images introduce vulnerabilities into the Container layer.

274
MCQhard

An attacker with compromised Kubernetes credentials attempts to hide malicious activity by deleting Kubernetes audit logs on the worker node. Where should audit logs ideally be stored and managed in a securely hardened cluster to prevent tampering and ensure non-repudiation?

A.Written to the container image layer cache of the local container runtime
B.Stored inside unencrypted ConfigMaps within the default namespace
C.Saved locally in an ephemeral emptyDir volume inside the kube-system namespace
D.Forwarded to an external centralized SIEM or secure remote storage backend
AnswerD

Centralized logging ensures that even if an attacker gains root access to control plane or worker nodes, they cannot alter or delete historical audit records.

Why this answer

Audit logs should be sent synchronously or asynchronously out of the control plane nodes to an external, write-once-read-many (WORM) storage or centralized SIEM system where local node compromise does not affect log integrity.

275
MCQmedium

An administrator wants to prevent users from creating pods that mount the host network ('hostNetwork: true'). Which tool or feature is best suited to enforce this restriction natively across the cluster?

A.ResourceQuota limiting network interfaces
B.Pod Security admission controller with baseline or restricted profile
C.RBAC ClusterRole restricting pod creation
D.NetworkPolicy with a deny-all rule
AnswerB

Both baseline and restricted Pod Security profiles disallow hostNetwork.

Why this answer

The Pod Security admission controller's 'restricted' or 'baseline' profile automatically blocks pods that set 'hostNetwork: true'.

276
MCQhard

A platform engineer needs to secure an Ingress resource using TLS termination, ensuring that sensitive private keys are stored securely within the cluster and referenced safely. Which Kubernetes resource should be created to store the TLS certificate and private key pair?

A.Secret of type kubernetes.io/tls
B.PersistentVolumeClaim
C.CertificateSigningRequest
D.ConfigMap
AnswerA

The kubernetes.io/tls secret type standardizes the storage of tls.crt and tls.key fields for Ingress and other components.

Why this answer

Kubernetes Secrets of type kubernetes.io/tls are specifically designed to store TLS certificates and private keys securely, allowing them to be referenced directly within the Ingress spec.

277
MCQhard

You want to enable encryption at rest for Kubernetes Secrets in your cluster using an external KMS (Key Management Service) provider. Which component on the control plane reads the EncryptionConfiguration file and handles this encryption?

A.kube-controller-manager
B.kube-apiserver
C.kubelet
D.etcd daemon directly
AnswerB

The API server handles encryption at rest and integrates with the EncryptionConfiguration resource and KMS plugins.

Why this answer

The kube-apiserver is responsible for interacting with etcd and applies the EncryptionConfiguration to encrypt secrets before writing them to etcd and decrypting them when read.

278
MCQeasy

An administrator needs to secure access to the Kubernetes API server from an external CI/CD pipeline. Which mechanism should be used to authenticate the pipeline using an existing external identity provider without embedding long-lived static tokens?

A.Store the administrative kubeconfig file in a public ConfigMap.
B.Configure the API server with --oidc-issuer-url and related flags to validate JSON Web Tokens issued by the IDP.
C.Enable anonymous requests on the API server for the CI/CD CIDR block.
D.Create a shared static password file and pass it via --basic-auth-file.
AnswerB

This is the native method for integrating external OIDC identity providers with the Kubernetes API server.

Why this answer

OpenID Connect (OIDC) tokens allow Kubernetes API servers to authenticate users and service accounts via an external identity provider, avoiding static tokens.

279
MCQmedium

A cluster administrator needs to intercept and reject any resource creation requests that do not include a mandatory security-context label. Which admission controller type should be implemented?

A.MutatingAdmissionWebhook
B.ServiceAccount
C.ValidatingAdmissionWebhook
D.NamespaceLifecycle
AnswerC

Validating admission webhooks inspect incoming requests and can reject them if they fail specific organizational policies.

Why this answer

Validating admission webhooks are executed after all mutation phases are complete and can accept or reject requests based on custom validation logic.

280
Multi-Selectmedium

Which TWO of the following mechanisms are standard methods used by container runtimes (such as containerd or CRI-O) to isolate container workloads from the host kernel and other containers? (Choose TWO)

Select 2 answers
A.Disabling the Linux virtual memory manager cluster-wide
B.Hypervisor-based hardware virtualization for every container instance
C.Executing all container processes inside the host root process namespace
D.Control Groups (cgroups)
E.Linux Namespaces
AnswersD, E

Cgroups limit, account for, and isolate the resource usage (CPU, memory, disk I/O) of a collection of processes.

Why this answer

Container runtimes rely heavily on Linux kernel namespaces (to isolate system views such as network, process IDs, and mounts) and control groups (cgroups, to limit CPU, memory, and I/O resources).

281
MCQeasy

You are troubleshooting a pod that fails to start because it attempts to run a container with privileges. The cluster enforces the 'baseline' Pod Security Standard. Which container configuration will cause the Pod Security Admission controller to reject the pod?

A.Mounting an emptyDir volume into the container.
B.Omitting the 'runAsUser' field, allowing the container to run as UID 0 by default.
C.Setting 'securityContext.privileged: true' on the container.
D.Adding the 'NET_BIND_SERVICE' capability to the container.
AnswerC

Privileged containers are explicitly prohibited by both baseline and restricted Pod Security Standards.

Why this answer

The baseline standard disallows privileged containers. Setting 'securityContext.privileged: true' violates the baseline standard and will be rejected.

282
MCQeasy

Which of the following describes a recommended security practice when managing Kubernetes Secrets?

A.Use ConfigMaps for passwords and Secrets for plain text configuration.
B.Store secret values in plain text inside public Git repositories for easy collaboration.
C.Limit RBAC access so that only necessary users and service accounts can read secrets.
D.Disable authentication on the Kubernetes API server to simplify secret retrieval.
AnswerC

Principle of least privilege applies strongly to secrets access.

Why this answer

Restricting RBAC permissions to secrets ensures that only authorized users and workloads can read sensitive data.

283
MCQmedium

Your team is storing sensitive database credentials in Kubernetes Secrets. A security review reveals that base64 encoding does not provide encryption at rest. What mechanism should you enable to ensure Secrets are encrypted when stored in etcd?

A.Apply a MutatingWebhookConfiguration to automatically hash passwords using bcrypt.
B.Enable TLS encryption for all intra-cluster communication using kubeadm configuration.
C.Configure an EncryptionConfiguration file and reference it via the '--encryption-provider-config' flag on the kube-apiserver.
D.Set the secret type to 'kubernetes.io/encrypted-secret'.
AnswerC

This is the native Kubernetes mechanism for encrypting Secret resources at rest in etcd.

Why this answer

Enabling EncryptionConfiguration with providers like aescbc or kms ensures that API server encrypts secret data before writing it to etcd.

284
MCQmedium

You need to grant a monitoring tool permission to perform HTTP GET requests against health endpoints across all pods in the cluster, but no other API access. How should you define the RBAC rules?

A.Assign the tool to the system:masters group.
B.Grant cluster-admin access and restrict requests using a kube-proxy firewall rule.
C.Create a ClusterRole with API groups [''] and resources ['pods/status'].
D.Create a ClusterRole with verbs ['get'] and nonResourceURLs ['/healthz', '/readyz'].
AnswerD

Non-resource URLs grant access to cluster endpoints that do not correspond to API resource objects.

Why this answer

Non-resource URLs like '/healthz' or pod subresources like '/pods/{name}/proxy' are specified using 'nonResourceURLs' or subresource permissions in rules.

285
MCQhard

A security engineer is configuring a service mesh using Istio to ensure that all east-west traffic between microservices is mutually authenticated and encrypted. Which custom resource must be configured with a STRICT mTLS mode to enforce this requirement cluster-wide?

A.PeerAuthentication
B.EnvoyFilter
C.AuthorizationPolicy
D.DestinationRule
AnswerA

PeerAuthentication defines whether mTLS is enabled or disabled for workloads in a specific namespace or the entire mesh, supporting STRICT mode.

Why this answer

Istio uses the PeerAuthentication custom resource to define how traffic is authenticated between services. Setting it to STRICT mode ensures that all incoming traffic to the workload must be TLS encrypted and authenticated via mTLS.

286
MCQmedium

An engineer is reviewing the threat model of a Kubernetes cluster exposed to the public internet via a LoadBalancer service. Which configuration flaw most commonly leads to unintended external exposure of administrative dashboards?

A.Configuring liveness probes with HTTP GET requests instead of TCP socket checks
B.Exposing management dashboards via LoadBalancer or NodePort services without authentication or IP whitelisting
C.Setting imagePullPolicy to IfNotPresent on production deployments
D.Using ClusterIP service types for internal database connectivity
AnswerB

Unauthenticated or loosely secured dashboards exposed to the public internet allow arbitrary attackers to gain administrative cluster control.

Why this answer

Deploying management tools (like Kubernetes dashboards, monitoring UIs, or debugging tools) with external LoadBalancer services or NodePorts without authentication or network restriction is a major threat vector.

287
MCQeasy

Which open-source auditing tool provides compliance scores and checks against Kubernetes security frameworks such as NSA-CISA and CIS?

A.Kube-dns
B.Metric-server
C.Cilium
D.Kubescape
AnswerD

Kubescape is an open-source Kubernetes security platform for risk and compliance analysis.

Why this answer

Datree or Kubescape are prominent tools for compliance scoring. Kubescape specifically evaluates Kubernetes clusters against multiple security frameworks including CIS and NSA-CISA.

288
Multi-Selecthard

Which THREE of the following features or configurations are associated with securing Ingress traffic in a Kubernetes cluster? (Choose THREE)

Select 3 answers
A.Configuring TLS blocks in the Ingress resource referencing a kubernetes.io/tls Secret.
B.Directly exposing internal Pod clusterIPs to the public internet via kube-proxy bypass rules.
C.Integrating Web Application Firewall (WAF) modules or OAuth/OIDC authentication filters via Ingress annotations or middleware.
D.Removing all network policies so the Ingress controller can freely probe unmanaged host ports.
E.Using annotations to enforce HTTP-to-HTTPS redirection so unencrypted traffic is automatically upgraded.
AnswersA, C, E

This enables secure HTTPS communication by terminating TLS at the Ingress controller using stored certificate keys.

Why this answer

Ingress security involves terminating TLS securely using TLS secrets, enforcing HTTPS redirects for unencrypted traffic, and applying authentication or Web Application Firewalls (WAF) at the Ingress layer.

289
MCQhard

You are troubleshooting a secure etcd cluster where a new control plane node cannot join the cluster. The logs indicate a TLS handshake failure between etcd peers. Which etcd configuration flag specifies the trusted CA certificate used to verify peer certificates?

A.--trusted-ca-file
B.--peer-client-cert-auth
C.--peer-trusted-ca-file
D.--etcd-ca-file
AnswerC

This flag ensures peer certificates are validated against the correct CA.

Why this answer

The --peer-trusted-ca-file flag specifies the CA certificate used to verify peer-to-peer TLS connections in etcd.

290
Multi-Selectmedium

Which TWO types of selectors can be used within a Kubernetes NetworkPolicy ingress rule to specify allowed traffic sources?

Select 2 answers
A.serviceSelector
B.namespaceSelector
C.ingressSelector
D.nodeSelector
E.podSelector
AnswersB, E

namespaceSelector matches entire source namespaces based on labels.

Why this answer

Ingress 'from' blocks support podSelector and namespaceSelector to match traffic sources.

291
MCQeasy

When configuring the Kubernetes API server authorization modes, which mode evaluates requests against Kubernetes RBAC policies?

A.RBAC
B.Webhook
C.Node
D.AlwaysAllow
AnswerA

RBAC is the standard authorization mode for defining fine-grained user and service account permissions.

Why this answer

The RBAC (Role-Based Access Control) authorization mode uses cluster roles and bindings to govern access.

292
Multi-Selecthard

An enterprise is enforcing the CIS Kubernetes Benchmark for control plane configuration. Which TWO parameters must be correctly configured on the kube-apiserver to meet strict compliance auditing standards? (Choose TWO)

Select 2 answers
A.--audit-policy-file
B.--service-account-lookup=false
C.--enable-bootstrap-auth-only=true
D.--profiling=true
E.--audit-log-path
AnswersA, E

An audit policy file must be specified to govern what events are recorded.

Why this answer

CIS benchmarks require enabling auditing via audit log path and audit policy file configuration on the kube-apiserver.

293
MCQeasy

Which of the following is a key component of the Kubernetes threat model concerning the compromise of node kubelets via insecure configuration?

A.Leaving the Kubelet read-only port (10255) enabled and accessible
B.Enforcing Pod Security Admission in restricted mode
C.Using secure HTTPS client certificates for API server communication
D.Enabling RBAC authorization mode across the control plane
AnswerA

Port 10255 provides unauthenticated read access to node data, exposing sensitive environment variables and pod metadata.

Why this answer

Exposing the Kubelet read-only port (10255) allows unauthenticated retrieval of pod specifications, container logs, and environment variables without any credentials.

294
Multi-Selecthard

An attacker manages to compromise a low-privilege pod inside a Kubernetes cluster and attempts to escalate privileges or pivot to other cluster components. Which THREE of the following misconfigurations or weaknesses would significantly aid the attacker's lateral movement or privilege escalation? (Choose THREE)

Select 3 answers
A.Etcd is encrypted at rest using a customer-managed KMS encryption provider.
B.The cluster uses a properly configured PodSecurityStandard of Restricted across all namespaces.
C.The pod's ServiceAccount has a ClusterRoleBinding granting cluster-admin permissions.
D.The pod is configured with hostNetwork: true, allowing it to sniff traffic on the node's network interface.
E.The cloud provider's instance metadata service is accessible without IMDSv2 token restrictions from the pod network.
AnswersC, D, E

Correct. Overly permissive RBAC allows the compromised token to control the entire cluster.

Why this answer

Attackers exploit weak RBAC rules, insecure access to the API server or cloud metadata, and overly permissive host namespaces to move laterally or escape.

295
MCQeasy

Which component provides network routing and iptables/IPVS rule management across worker nodes for Kubernetes Services?

A.kube-scheduler
B.kube-apiserver
C.etcd
D.kube-proxy
AnswerD

Kube-proxy manages service networking on nodes.

Why this answer

kube-proxy maintains network rules on nodes allowing network communication to pods.

296
MCQmedium

A security team discovers that an application container running as root has successfully mounted the host's Docker socket (`/var/run/docker.sock`). What is the primary attack vector enabled by this misconfiguration?

A.Bypassing Kubernetes NetworkPolicies across different worker nodes
B.Direct modification of the etcd database state via local unix socket tunneling
C.Container escape and full node takeover by orchestrating new sibling containers with host mounts
D.Automatic escalation of RBAC roles assigned to the API server
AnswerC

The Docker socket is the API endpoint for the container engine; sending commands to it lets the container spawn arbitrary containers on the underlying host node.

Why this answer

Access to the Docker socket allows a container to create sibling containers on the host, often mounting the host root filesystem (`/`) and achieving full node compromise.

297
Multi-Selecthard

When designing a defense-in-depth strategy across the 4Cs, which THREE independent security controls can be applied at different layers? (Choose THREE)

Select 3 answers
A.Relying solely on the cloud provider's default network security group for all protection
B.Container image signing with Cosign and admission verification for Container
C.Kubernetes NetworkPolicies for microservice isolation in the Cluster
D.Granting all developers cluster-admin permissions for operational speed
E.Static Application Security Testing (SAST) scanning in the CI/CD pipeline for Code
AnswersB, C, E

Image signing secures the Container layer.

Why this answer

Defense-in-depth spans multiple layers: SAST/SCA for Code, image signing for Container, and NetworkPolicies for Cluster.

298
MCQeasy

What is the primary security benefit of using immutable container base distroless images?

A.They prevent the API server from restarting during control plane upgrades.
B.They automatically encrypt persistent storage volumes attached to the pod.
C.They eliminate unnecessary shells and package managers, drastically reducing the attack surface.
D.They configure automatic mTLS between all pods in the cluster via CNI.
AnswerC

Removing package managers and shell utilities stops attackers from downloading or executing arbitrary scripts even if remote code execution is achieved.

Why this answer

Distroless images contain only the application and its runtime dependencies, stripping out shells, package managers, and utilities, which drastically reduces the attack surface and prevents attackers from executing shell commands if compromised.

299
Multi-Selectmedium

An organization is performing a STRIDE-based threat model on their Kubernetes deployment. Which TWO of the following threats map directly to the 'Tampering' category in a Kubernetes environment?

Select 2 answers
A.An attacker altering container image layers stored in an insecure registry
B.An attacker modifying Kubernetes API objects stored directly or in transit via compromised credentials
C.An attacker flooding the API server with requests to exhaust control plane memory
D.An attacker sniffing unencrypted pod-to-pod network traffic across the CNI bridge
E.An administrator denying that they executed a cluster deletion command due to missing logs
AnswersA, B

Modifying image contents in a registry constitutes tampering with the software supply chain.

Why this answer

Tampering involves unauthorized modification of data or code. Modifying container images in a registry and tampering with Kubernetes manifests in etcd/Git repository are prime examples.

300
Multi-Selecthard

Which THREE practices are critical for securing container registries and image distribution pipelines? (Choose three)

Select 3 answers
A.Enabling automated vulnerability scanning upon image push
B.Enforcing role-based access control (RBAC) on registry repositories
C.Storing registry admin credentials in plaintext inside Dockerfiles
D.Allowing anonymous write access to public repositories
E.Using image signing and verification (e.g., Notary or Cosign) to guarantee artifact integrity
AnswersA, B, E

Scanning images immediately upon upload ensures vulnerabilities are identified before distribution.

Why this answer

Securing container registries involves implementing role-based access control, enabling vulnerability scanning on push, and enforcing image signing.

Page 3

Page 4 of 5

Page 5

All pages