Courseiva

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

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

Page 1

Page 2 of 5

Page 3
76
MCQmedium

A security engineer is analyzing supply chain risks for container images. An unsigned image from an untrusted public registry is pulled into a secure cluster. Which Admission Controller plugin can be leveraged to prevent the deployment of unsigned container images?

A.NamespaceLifecycle admission plugin
B.ValidatingAdmissionWebhook executing a policy engine integrated with Cosign image signature verification
C.DefaultStorageClass admission controller
D.LimitRanger
AnswerB

Using a validating webhook with a policy engine allows checking cryptographic signatures against a trusted public key before allowing pod creation.

Why this answer

ValidatingAdmissionPolicy or admission webhook controllers like OPA Gatekeeper or Kyverno integrated with cryptographic signature verification (such as Cosign) are used to enforce image signing.

77
MCQmedium

An administrator wants to ensure that a malicious container executing on a worker node cannot query the kubelet API to extract sensitive pod information. Which kubelet configuration setting controls whether requests to the kubelet require authorization?

A.protectKernelDefaults: false
B.tlsCertFile: /etc/certs/kubelet.crt
C.authentication.anonymous.enabled: true
D.authorization.mode: Webhook
AnswerD

Webhook authorization delegates authz checks to the API server.

Why this answer

Setting authorization.mode to Webhook forces the kubelet to verify requests against the API server's RBAC system.

78
MCQhard

An administrator wants to ensure that containers cannot execute any system calls related to module loading or debugging, such as 'init_module' or 'kexec_load'. Which security mechanism in Kubernetes allows applying a predefined system call filter to containers?

A.Pod Disruption Budgets
B.Kubernetes NetworkPolicies
C.ResourceQuotas
D.Seccomp profiles
AnswerD

Seccomp profiles allow or disallow specific system calls to restrict container capabilities and enhance isolation.

Why this answer

Seccomp (Secure Computing Mode) filters system calls made by a container, allowing administrators to block dangerous calls like module loading.

79
MCQeasy

What is the purpose of the Pod Security Standards 'baseline' profile?

A.To disable all security controls and permit unrestricted container execution.
B.To automatically encrypt all container environment variables.
C.To enforce the highest level of security, restricting pods to hardened sandbox environments.
D.To prevent known privilege escalations while maintaining broad compatibility for standard applications.
AnswerD

Baseline strikes a balance between security hardening and application compatibility.

Why this answer

The baseline profile prevents known privilege escalations while allowing the default (minimally specified) pod configuration.

80
MCQhard

An administrator is auditing a managed Kubernetes service (such as Amazon EKS, Google GKE, or Azure AKS) to verify compliance with cloud native security principles. The administrator attempts to SSH directly into the underlying worker node to inspect system logs. The connection is refused. Why is this restriction expected under the cloud native security model?

A.The cloud provider abstracts and manages the underlying Cloud layer, prohibiting direct node access to maintain infrastructure integrity.
B.The kubelet has been disabled by the cloud provider for security compliance.
C.Container runtime security policies have blocked the SSH daemon process.
D.NetworkPolicies applied to the kube-system namespace have dropped incoming port 22 traffic.
AnswerA

Managed Kubernetes services abstract the Cloud layer infrastructure, enforcing management via the Kubernetes API rather than direct OS access.

Why this answer

In managed Kubernetes offerings, the cloud provider manages the underlying virtual machines and restricts direct SSH access to ensure immutable infrastructure and proper separation of responsibilities in the Cloud layer.

81
MCQhard

An adversary successfully compromises a workload and extracts the default service account token. By default, what permission level does this unconfigured service account token possess in modern Kubernetes clusters?

A.Read-only access to all Secrets and ConfigMaps cluster-wide
B.Full administrative rights restricted strictly to its own namespace
C.Zero explicit RBAC permissions (cannot query or modify cluster resources)
D.Cluster-admin permissions across all cluster namespaces
AnswerC

Modern Kubernetes versions ensure default service accounts in custom namespaces have no automatic RBAC privileges, preventing immediate lateral movement.

Why this answer

In Kubernetes 1.22+, automountServiceAccountToken defaults to true unless disabled, but default service accounts have virtually no RBAC permissions unless explicitly bound via ClusterRoleBinding or RoleBinding.

82
MCQhard

A security engineer is configuring kube-apiserver audit logging to satisfy NIST compliance requirements. Which configuration file specifies which requests are logged and at what log level?

A.kubeadm.conf
B.Kubelet configuration file
C.Admission configuration YAML
D.Audit policy file
AnswerD

The audit policy file dictates log retention levels and included event types.

Why this answer

An audit policy file passed via --audit-policy-file defines rules for what events are recorded and what log level is applied in Kubernetes.

83
MCQhard

You want to write a NetworkPolicy that allows backend pods to communicate with an external database located outside the cluster at IP address '203.0.113.50'. Which NetworkPolicy section must you configure?

A.ingress with a namespaceSelector matching the external network
B.ExternalName service mapped to an egress policy
C.egress with an ipBlock matching '203.0.113.50/32'
D.policyTypes set to ["Ingress"] with externalIPs
AnswerC

Egress rules control outgoing traffic, and ipBlock allows specifying external CIDR ranges.

Why this answer

To control traffic leaving the pod to external IPs or destinations outside the pod network, you must configure 'egress' rules with a 'ipBlock'.

84
MCQeasy

Which of the following is a core tenet of Zero Trust architecture in cloud native environments?

A.Grant cluster-admin privileges to all operations engineers
B.Disable all encryption for internal microservice communication to improve speed
C.Verify explicitly, use least privilege access, and assume breach
D.Trust all traffic originating from inside the corporate virtual private cloud (VPC)
AnswerC

These are the foundational pillars of Zero Trust architecture.

Why this answer

Zero Trust mandates continuous verification of identity and device health for every access request, never trusting implicitly based on network location.

85
MCQeasy

A security administrator wants to prevent container processes from writing to any part of their root filesystem except for designated ephemeral volumes. Which security context field should be configured?

A.runAsUser: 1000
B.readOnlyRootFilesystem: true
C.allowPrivilegeEscalation: false
D.privileged: false
AnswerB

This setting makes the container's root filesystem read-only, preventing unauthorized file modifications.

Why this answer

Setting 'readOnlyRootFilesystem: true' in the container's security context makes the root filesystem read-only, enhancing security by preventing attackers from modifying binaries or writing malware.

86
Multi-Selecthard

An auditor is inspecting a Kubernetes cluster for compliance with the CIS Benchmark for etcd security. Which THREE configurations must be verified for the etcd cluster? (Choose THREE)

Select 3 answers
A.Peer communication is encrypted using TLS certificates
B.Client certificate authentication is enabled for etcd (--client-cert-auth=true)
C.etcd auto-compaction is permanently disabled
D.etcd is exposed directly on the public internet without authentication
E.etcd data directory permissions are restricted (e.g., 700)
AnswersA, B, E

etcd cluster peer-to-peer traffic must be encrypted with TLS.

Why this answer

CIS benchmarks for etcd focus on client certificates (mTLS), peer communication encryption, and secure file permissions.

87
Multi-Selectmedium

Which TWO mechanisms are commonly used by container runtime security tools to monitor container activity? (Choose two)

Select 3 answers
A.eBPF (Extended Berkeley Packet Filter) programs attached to kernel tracepoints
B.Kubernetes persistent volume snapshotting
C.Kubernetes Horizontal Pod Autoscaler metrics collection
D.Linux Security Modules (LSM) such as SELinux, AppArmor, or seccomp
E.CoreDNS query log analysis
AnswersA, C, D

eBPF provides high-performance, non-intrusive observation of system calls and network events.

Why this answer

Modern container runtime security tools monitor container behavior using Linux kernel tracing mechanisms such as eBPF and kernel modules or security hooks.

88
Multi-Selecthard

Which TWO statements accurately describe how Kubernetes admission controllers function? (Choose TWO)

Select 2 answers
A.Admission controllers run on the kubelet before container creation on the worker node.
B.Validating admission controllers can reject incoming requests but cannot modify the object content.
C.Admission controllers replace the need for RBAC authentication.
D.If any validating webhook fails and its failurePolicy is 'Ignore', the API server stops processing further webhooks.
E.Mutating admission controllers execute before validating admission controllers and can modify object fields.
AnswersB, E

Validation phase ensures compliance without mutating the payload.

Why this answer

Admission controllers execute in two phases (mutating then validating) and can reject or modify requests before persistence.

89
MCQeasy

When considering the principle of least privilege within a cloud native architecture, what is the recommended approach for granting permissions to a Kubernetes application running in a Pod?

A.Share a single global ServiceAccount across all namespaces in the cluster.
B.Mount the default ServiceAccount token with cluster-admin rights to ensure compatibility.
C.Disable authentication for the application namespace entirely.
D.Create a dedicated ServiceAccount with strictly scoped RBAC roles granting only required API permissions.
AnswerD

Least privilege requires scoping ServiceAccounts to only the necessary permissions.

Why this answer

Applications running in pods should use dedicated ServiceAccounts with minimal permissions rather than default or overly permissive service accounts.

90
MCQhard

An organization is performing a threat modeling exercise for a Kubernetes cluster. They identify that an attacker could exploit a vulnerability in the container runtime (e.g., containerd) to access the underlying host. Which of the 4Cs does the container runtime belong to?

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

The container runtime and container engine belong to the Container layer.

Why this answer

The container runtime executes containers and interfaces with the kernel, placing it in the Container layer.

91
MCQeasy

What is the primary purpose of vulnerability scanning databases (such as Trivy, Grype, or Clair) when integrated into a container platform?

A.To match package versions inside container images against known CVE databases and report vulnerabilities
B.To enforce network microsegmentation rules
C.To balance incoming web traffic across backend replicas
D.To automatically rotate cluster TLS certificates
AnswerA

Vulnerability databases match installed software versions against known CVE records to alert operators to security risks.

Why this answer

Vulnerability scanners match installed package versions in container images against known CVE databases to identify security flaws.

92
MCQeasy

What is the primary function of a container runtime interface (CRI) security boundary in Kubernetes?

A.To provision persistent block storage volumes
B.To manage DNS lookups across cluster namespaces
C.To separate the management of container lifecycles from the kubelet while maintaining isolation
D.To encrypt all secrets stored within Kubernetes Secrets objects
AnswerC

The CRI standardizes the communication between kubelet and container runtimes, ensuring secure management of container creation and execution.

Why this answer

The CRI acts as the interface between the kubelet and the container runtime (such as containerd or CRI-O), ensuring that container isolation and execution are managed securely.

93
MCQhard

An enterprise security policy states that all infrastructure must be defined as code (IaC) and scanned for security misconfigurations before deployment. Which part of the cloud native security lifecycle does this control target?

A.Kernel patch management
B.Physical data center security
C.Pre-deployment configuration and policy-as-code validation
D.Runtime security monitoring
AnswerC

Scanning IaC validates configurations before they reach the cluster or cloud.

Why this answer

Scanning IaC templates (Terraform, CloudFormation, Kubernetes manifests) before deployment is part of the Build/Code phase of security.

94
MCQeasy

An administrator needs to enforce mTLS (Mutual TLS) across all microservices within a service mesh without modifying application code. Which component is automatically injected into each application pod to handle the encryption and decryption of traffic?

A.Container runtime shim
B.Kube-proxy
C.Ingress controller
D.Sidecar proxy
AnswerD

The sidecar proxy intercepts network traffic and handles mTLS encryption and policy enforcement transparently.

Why this answer

Service meshes like Istio or Linkerd inject a sidecar proxy (typically Envoy) into application pods to intercept all incoming and outgoing traffic and handle mTLS transparently.

95
Multi-Selecthard

Which THREE of the following steps are recognized best practices for hardening worker nodes against attacks and container escapes?

Select 3 answers
A.Keeping node host operating system kernels and container runtimes regularly patched
B.Configuring all pods to execute with `securityContext.runAsUser: 0`
C.Disabling the Kubelet read-only port (10255)
D.Allowing anonymous authentication requests on the Kubelet API
E.Restricting direct SSH access to worker nodes and using secure bastion hosts
AnswersA, C, E

Kernel patching mitigates container escape vulnerabilities caused by OS flaws.

Why this answer

Disabling the Kubelet read-only port, keeping host OS kernels updated, and restricting SSH access are key node hardening practices.

96
MCQmedium

An administrator needs to ensure that the Kubernetes API server does not allow insecure cipher suites during TLS handshakes. Which API server flag allows specifying the exact cipher suites permitted?

A.--cipher-list
B.--tls-cipher-suites
C.--secure-ciphers
D.--etcd-cipher-suites
AnswerB

This flag controls the cipher suites allowed during TLS connections.

Why this answer

The --tls-cipher-suites flag allows administrators to define an explicit array of permitted cryptographic cipher suites.

97
MCQeasy

An organization wants to analyze potential threats to their Kubernetes cluster using the STRIDE model. Which STRIDE category maps to an attacker eavesdropping on unencrypted internal cluster traffic between pods?

A.Repudiation
B.Tampering
C.Information Disclosure
D.Denial of Service
AnswerC

Eavesdropping on network communication without authorization results in information disclosure.

Why this answer

Information Disclosure covers the reading or gaining access to data by an unauthorized entity, such as sniffing unencrypted pod-to-pod network traffic.

98
MCQhard

You are auditing the Kubernetes control plane and notice that the API server is configured with an insecure port (--insecure-port=8080). What is the primary security implication of leaving this port enabled?

A.It bypasses all authentication and authorization modules, granting full administrative access to anyone who reaches the port.
B.It prevents the kubelet from communicating with the control plane nodes.
C.It restricts API access exclusively to read-only operations.
D.It forces all clients to downgrade their TLS encryption cipher suites to plaintext.
AnswerA

The insecure port does not enforce authn/authz, making it a critical vulnerability.

Why this answer

The insecure port serves HTTP requests without performing any authentication or authorization checks, allowing anyone who can reach the port full cluster access.

99
MCQhard

You are hardening a production Kubernetes control plane. You need to ensure that etcd client-to-server and peer communications are strictly encrypted in transit and require mutual TLS (mTLS). Which etcd configuration flag combination enforces this requirement?

A.--auto-tls=true for all endpoints.
B.--client-cert-auth=true and --peer-client-cert-auth=true along with valid CA and key pair paths.
C.--insecure-transport=false combined with HTTP proxy routing.
D.--cipher-suites=TLS_RSA_WITH_AES_128_CBC_SHA
AnswerB

Enabling client certificate authentication forces both clients (like the API server) and cluster peers to present valid, signed certificates.

Why this answer

Securing etcd requires configuring both server-side and client-side TLS certificates along with client certificate verification flags.

100
MCQeasy

When discussing cloud native security, what does 'ephemeral infrastructure' refer to, and why is it beneficial for security?

A.Network connections that automatically drop after one second
B.Short-lived workloads and nodes that are frequently destroyed and recreated, reducing an attacker's persistence window
C.Virtual machines stored in volatile RAM without disk storage
D.Infrastructure that is permanent and never updated to prevent downtime
AnswerB

Ephemeral resources prevent long-term attacker dwell time because compromised instances are quickly destroyed.

Why this answer

Ephemeral infrastructure means workloads and nodes are short-lived and frequently replaced, limiting the persistence window for attackers.

101
MCQhard

A security analyst reviews an incident where an attacker compromised a container running with the `CAP_SYS_ADMIN` capability and subsequently escaped to the host node. Which cloud native security principle was violated during the initial pod configuration?

A.Zero-trust network architecture
B.Principle of least privilege
C.Shared responsibility model
D.Ephemeral infrastructure design
AnswerB

Containers should run with minimal privileges; `CAP_SYS_ADMIN` grants broad root-like privileges.

Why this answer

Granting unnecessary capabilities like `CAP_SYS_ADMIN` violates the principle of least privilege.

102
MCQeasy

An administrator needs to grant read-only access to Pods specifically within the 'development' namespace to a new user. Which RBAC configuration correctly scopes this permission?

A.Create a ClusterRole for Pod read access and bind it to the user using a RoleBinding in the 'development' namespace.
B.Annotate the user's ServiceAccount with namespace read permissions.
C.Create a Role for Pod read access in the 'development' namespace and bind it to the user using a RoleBinding in the same namespace.
D.Create a Role for Pod read access and bind it globally using a ClusterRoleBinding.
AnswerC

A Role combined with a RoleBinding in the target namespace properly restricts permissions to that namespace only.

Why this answer

A Role must be used instead of a ClusterRole when scoping permissions to a single namespace. The Role must be bound via a RoleBinding within that same namespace.

103
MCQeasy

You need to restrict network traffic so that only pods with the label 'tier=frontend' can communicate with pods labeled 'tier=backend' in the same namespace. Which Kubernetes resource should you create?

A.NetworkPolicy
B.Ingress
C.FirewallRule
D.Service
AnswerA

NetworkPolicies control ingress and egress traffic for pods.

Why this answer

A NetworkPolicy is used to restrict pod-to-pod and network traffic at the IP/port/label level.

104
MCQhard

An attacker gains execution inside a container that has the `CAP_SYS_ADMIN` capability enabled and shares the host's IPC namespace. How does `CAP_SYS_ADMIN` facilitate container escape?

A.By encrypting all network traffic traversing the CNI plugin bridge
B.By permitting system administration operations like mounting host filesystems and manipulating cgroups
C.By enabling automated horizontal scaling of replica sets
D.By automatically granting cluster-admin Kubernetes RBAC permissions
AnswerB

CAP_SYS_ADMIN bypasses numerous kernel safety checks, allowing actions like mount() system calls that enable escaping the container namespace confinement.

Why this answer

CAP_SYS_ADMIN is a powerful capability that grants privileges similar to root across many subsystem operations, including mounting filesystems, manipulating cgroups, and interacting with core kernel features that often lead to escape.

105
MCQhard

An attacker gains execution inside a container and attempts to modify the container's root filesystem. The platform team has configured the deployment with `securityContext.readOnlyRootFilesystem: true`. What security mechanism does this enforce?

A.Filesystem immutability and prevention of unauthorized file modifications
B.Automatic container image re-signing
C.Kernel capability escalation blocking
D.Network isolation via NetworkPolicies
AnswerA

Read-only root filesystems prevent attackers from modifying binaries or dropping malware.

Why this answer

Setting `readOnlyRootFilesystem: true` prevents write operations to the container root filesystem, mitigating unauthorized file creation or tampering.

106
MCQeasy

A platform engineer wants to configure a container runtime security tool that monitors system calls and sends alerts about potential threats in a Kubernetes cluster. Which component of the container runtime architecture intercepts these system calls?

A.eBPF kernel probes
B.The coreDNS plugin
C.The Kubernetes storage controller
D.The kube-apiserver admission webhook
AnswerA

eBPF allows safe execution of programs in the Linux kernel space to capture system calls and monitor runtime behavior efficiently.

Why this answer

The Linux kernel relies on security modules and tracing mechanisms, while the container runtime uses interfaces like seccomp or Linux Security Modules (LSM) to interact with the kernel. Container runtime monitors often use eBPF programs attached to kernel tracepoints to observe system calls without modifying the kernel.

107
MCQeasy

Which Kubernetes feature allows administrators to define mandatory security baselines, such as disallowing privileged containers, across an entire namespace or cluster?

A.Horizontal Pod Autoscaler
B.PersistentVolume security controller
C.kube-dns policy mapper
D.Pod Security Admission
AnswerD

Pod Security Admission is the built-in admission controller that enforces Pod Security Standards.

Why this answer

Pod Security Standards (enforced via Pod Security admission or admission controllers) define security levels like Privileged, Baseline, and Restricted.

108
Multi-Selecthard

Which THREE components are involved when an external client authenticates to the Kubernetes API server using OpenID Connect (OIDC)? (Choose THREE)

Select 3 answers
A.The OIDC Identity Provider (IdP) issuing ID tokens.
B.The CoreDNS server resolving the OIDC provider domain.
C.The client (such as kubectl) presenting the OIDC token in the Authorization header.
D.The Kubelet running on worker nodes.
E.The kube-apiserver configured with OIDC issuer flags.
AnswersA, C, E

The IdP authenticates the user and provides the JSON Web Token (JWT).

Why this answer

OIDC authentication involves the client (e.g. kubectl), the OIDC identity provider, and the kube-apiserver.

109
MCQeasy

Your organization requires that all container images deployed to the production cluster must be scanned for known Common Vulnerabilities and Exposures (CVEs) before admission. Which component in a cloud-native architecture is primarily responsible for intercepting and blocking deployments if a vulnerability threshold is exceeded?

A.The Kubernetes Scheduler
B.An Admission Controller webhook
C.The kube-proxy daemonset
D.The container runtime (e.g., containerd)
AnswerB

Admission controllers intercept requests to the Kubernetes API server to validate or mutate resources, making them ideal for enforcing image vulnerability policies.

Why this answer

An Admission Controller (such as an OPA/Gatekeeper validating webhook or a specialized image scanning admission webhook) intercepts API requests to the Kubernetes API server and can reject the deployment of vulnerable images.

110
Multi-Selectmedium

Which TWO of the following statements are true regarding Kubernetes Secrets and their security posture by default?

Select 2 answers
A.Mounting a Secret as an environment variable can expose the secret value in container logs or crash dumps.
B.Secrets are strongly encrypted at rest using AES-256 encryption by default in etcd.
C.RBAC can be used to restrict which users and ServiceAccounts can read Secrets within a namespace.
D.Secrets automatically expire and rotate every 30 days unless explicitly disabled.
E.Secrets encoded in base64 provide cryptographic security comparable to robust symmetric encryption.
AnswersA, C

Environment variables are visible via process listings and diagnostic dumps, making volume mounts generally more secure for secrets.

Why this answer

Kubernetes Secrets are base64 encoded (not encrypted) by default in etcd, and access to them can be controlled via RBAC.

111
Multi-Selectmedium

Which THREE options represent valid ways to supply sensitive data to a container using Kubernetes native features? (Choose THREE)

Select 3 answers
A.Placing the Secret inside a persistent volume formatted with LUKS encryption.
B.Mounting the Secret as a volume in the Pod specification.
C.Querying the Kubernetes API server directly from the container using a ServiceAccount with proper RBAC.
D.Embedding the Secret plaintext string in the container image build args.
E.Injecting Secret keys as environment variables.
AnswersB, C, E

Secrets can be mounted as files in a volume.

Why this answer

Secrets can be mounted as volumes, exposed as environment variables, or accessed via the Kubernetes API directly.

112
MCQmedium

An administrator wants to prevent the kubelet from automatically approving certificate signing requests (CSRs) generated by nodes joining the cluster. Which mechanism manages kubelet TLS bootstrapping approval behavior?

A.The etcd consensus module.
B.The kube-scheduler placement policy engine.
C.The API server admission webhook chain.
D.The CSR Approver controller in the kube-controller-manager.
AnswerD

The CSR signing and approval controllers within kube-controller-manager manage node CSR lifecycle.

Why this answer

Kubelet TLS bootstrapping requests can be automatically approved by the kube-controller-manager using the --controllers flag or handled manually/via external controllers.

113
Multi-Selecteasy

Which TWO of the following are valid Kubernetes RBAC rule subjects that can be bound to roles or cluster roles?

Select 2 answers
A.Secret
B.User
C.Namespace
D.ServiceAccount
E.PersistentVolume
AnswersB, D

Users represent human users authenticated to the cluster.

Why this answer

Kubernetes RBAC supports three primary subjects: User, Group, and ServiceAccount.

114
Multi-Selecthard

Which TWO of the following API server configuration flags help enforce cryptographic and transport security? (Choose TWO)

Select 2 answers
A.--tls-cipher-suites to specify permitted strong cryptographic cipher suites.
B.--tls-min-version to enforce a minimum acceptable TLS protocol version.
C.--anonymous-auth to enable unauthenticated cluster access.
D.--insecure-port to allow unencrypted HTTP traffic.
E.--enable-http2=false to disable secure multiplexing.
AnswersA, B

Restricts negotiations to approved secure ciphers.

Why this answer

--tls-min-version and --tls-cipher-suites enforce transport security standards.

115
MCQhard

A security engineer is hardening a Kubernetes cluster against container breakout attacks. They configure AppArmor profiles and ensure pods run with a non-root user. Which of the 4Cs layers are these security measures primarily designed to protect?

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

Runtime security mechanisms like AppArmor and user namespaces protect container isolation.

Why this answer

AppArmor profiles, seccomp, and non-root UID enforcement isolate containers from the host kernel, securing the Container layer.

116
MCQeasy

Which CNCF project acts as a cloud-native runtime security and intrusion detection tool that monitors system calls against predefined security rules?

A.Trivy
B.Fluentd
C.Falco
D.Cert-manager
AnswerC

Falco monitors kernel system calls in real-time for security violations.

Why this answer

Falco is the CNCF incubating runtime security tool that acts as a security camera for containers, detecting anomalous behavior and policy violations.

117
Multi-Selecthard

Which THREE of the following configurations or features represent critical attack vectors or misconfigurations in a Kubernetes cluster threat model?

Select 3 answers
A.Mounting the host Docker socket (`/var/run/docker.sock`) into application pods
B.Exposing the unauthenticated Kubelet read-only port (10255)
C.Enabling Pod Security Admission in restricted mode across all namespaces
D.Running application pods with `securityContext.privileged: true`
E.Configuring etcd encryption at rest with a Secret encryption provider
AnswersA, B, D

Docker socket access allows creating sibling containers that can mount the host root filesystem for node escape.

Why this answer

Leaving the Kubelet unauthenticated/read-only, running containers in privileged mode, and mounting the Docker socket all introduce severe container escape and cluster takeover vectors.

118
MCQeasy

You are auditing a cluster and find a pod that mounts the host's root filesystem directly into the container. Which Pod Security Standard rule does this violate?

A.It is permitted under all standards provided the container runs as a non-root user.
B.It violates both baseline and restricted standards by using a hostPath volume.
C.It is fully compliant with the restricted standard as long as 'readOnly: true' is set.
D.It only violates the restricted standard; baseline permits hostPath mounts.
AnswerB

hostPath volumes provide direct access to the underlying node filesystem and are blocked by default in hardened standards.

Why this answer

Mounting host paths (hostPath volumes) is prohibited by both the baseline and restricted Pod Security Standards because it allows container escape.

119
MCQeasy

When configuring a Pod to run securely, which setting in the container's securityContext should be used to explicitly drop all default Linux capabilities and only retain required ones?

A.capabilities.drop: ["ALL"]
B.runAsNonRoot: true
C.capabilities.add: ["ALL"]
D.privileged: true
AnswerA

Dropping 'ALL' capabilities removes all Linux capabilities, adhering to the principle of least privilege.

Why this answer

The capabilities.drop field allows administrators to drop specific Linux capabilities (or 'ALL'), reducing the attack surface by removing root-like privileges from the container process.

120
Multi-Selecteasy

Which THREE of the following actions can compromise the security of the Kubernetes control plane if left unmitigated? (Choose THREE)

Select 3 answers
A.Granting wildcard cluster-admin permissions to untrusted service accounts.
B.Enabling anonymous authentication on the API server or kubelet.
C.Configuring kubelet authorization mode to Webhook.
D.Enabling etcd encryption at rest with a valid key.
E.Leaving the API server insecure port (--insecure-port) enabled.
AnswersA, B, E

Violates least privilege and allows full cluster compromise.

Why this answer

Leaving the insecure port enabled, enabling anonymous auth, and granting overly broad RBAC permissions compromise control plane security.

121
MCQhard

A security incident response team discovers that a vulnerability in a third-party Python library allowed remote code execution inside a pod. In the context of defense-in-depth and the 4Cs, which layer primarily failed or was unmitigated, requiring remediation at the source?

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

Third-party library vulnerabilities are addressed at the Code layer via dependency scanning and patching.

Why this answer

Vulnerabilities in third-party libraries reside directly within application code and dependencies, placing this remediation squarely in the Code layer.

122
MCQhard

You have configured a NetworkPolicy with an egress rule targeting a specific CIDR block. However, DNS resolution for external domain names fails from within the pods selected by this policy. What is the most likely cause?

A.NetworkPolicies automatically disable CoreDNS across the entire namespace.
B.DNS packets are rejected because they do not contain IP block headers.
C.The external domain name does not have a corresponding Service object.
D.Outgoing DNS traffic on UDP/TCP port 53 to the cluster DNS server was blocked by the default-deny egress behavior.
AnswerD

Egress policies block DNS queries to CoreDNS/kube-dns unless port 53 egress is explicitly permitted.

Why this answer

When an egress policy is applied, all outgoing traffic (including UDP/TCP port 53 to cluster DNS servers) is blocked unless explicitly allowed by an egress rule.

123
MCQeasy

According to the shared responsibility model for a cloud-managed Kubernetes service, who is responsible for managing application data encryption keys (using KMS) and application-level secrets?

A.The cloud provider
B.The customer
C.The Linux Foundation
D.The container runtime vendor
AnswerB

Customers are responsible for application security, data classification, and secrets management.

Why this answer

Application secrets and encryption keys managed via KMS for application payloads are the customer's responsibility.

124
MCQmedium

A security auditor notices that a deployment running in the 'production' namespace is violating the Restricted Pod Security Standard because containers are running as root. How can you enforce compliance using Pod Security Admission?

A.Label the 'production' namespace with 'pod-security.kubernetes.io/enforce=restricted'.
B.Create a NetworkPolicy that blocks root user communication.
C.Enable the SecurityContextDeny legacy admission controller.
D.Update the kube-apiserver flags to globally block non-restricted pods without namespace labels.
AnswerA

Namespace labels are the correct mechanism to configure the Pod Security Admission controller to enforce standards.

Why this answer

Applying the 'pod-security.kubernetes.io/enforce: restricted' label to the namespace enforces the restricted Pod Security Standard for all newly created pods.

125
MCQeasy

When configuring a container to run securely in a Kubernetes cluster, you want to ensure that the container process cannot gain any new privileges during its lifecycle, even if it runs as root or exploits a setuid binary. Which Linux kernel feature should be enabled in the container security context?

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

Setting allowPrivilegeEscalation to false ensures that child processes cannot gain more privileges than their parent process.

Why this answer

The 'allowPrivilegeEscalation' field in the security context controls whether a process can gain more privileges than its parent, which maps directly to the Linux PR_SET_NO_NEW_PRIVS kernel flag.

126
MCQeasy

A developer configures a Kubernetes Pod with `hostNetwork: true`. Under the STRIDE threat model, which threat category is most directly introduced or elevated by this configuration?

A.Denial of Service via CPU exhaustion
B.Tampering of container image layers at rest
C.Elevation of Privilege and Information Disclosure
D.Repudiation of database audit logs
AnswerC

Sharing the host network allows bypassing namespace isolation, letting the pod capture host traffic and access local network services bound to localhost.

Why this answer

Setting hostNetwork to true exposes the host's network namespace to the container, elevating the threat of Elevation of Privilege or Information Disclosure through unauthorized packet sniffing on host interfaces.

127
MCQmedium

An auditor notices that kubelet authentication is set to always allow anonymous access in a cluster configuration. According to the CIS Benchmark, what should the kubelet configuration parameter "authentication.anonymous.enabled" be set to?

A.strict
B.auto
C.true
D.false
AnswerD

Anonymous access must be disabled to secure the kubelet API.

Why this answer

The CIS Benchmark specifies that kubelet anonymous access must be disabled by setting authentication.anonymous.enabled to false.

128
MCQmedium

An administrator notices that unauthorized users can view sensitive ConfigMaps across different namespaces because default RoleBindings were overly permissive. Which security principle was violated?

A.Least privilege access
B.Shared responsibility model
C.Immutable infrastructure
D.Supply chain security
AnswerA

Users were given more access than necessary to perform their roles.

Why this answer

Granting broad read access across namespaces violates the principle of least privilege.

129
Multi-Selectmedium

Which TWO of the following principles are core tenets of cloud native security?

Select 2 answers
A.Shift-left security, integrating security checks early into the development and CI/CD pipeline.
B.Hardcoding administrative credentials directly into source code for operational simplicity.
C.Implicit trust of internal microservices communicating within the same cluster network.
D.Defense-in-depth, implementing multiple overlapping security controls across the 4Cs.
E.Perimeter-only defense, relying exclusively on an external corporate firewall.
AnswersA, D

Shifting security left ensures issues are caught at the Code and Container layers early.

Why this answer

Core tenets of cloud native security include shifting security left into the development and CI/CD pipeline, and implementing defense-in-depth across multiple layers.

130
MCQhard

An application pod requires access to the Kubernetes API to list other pods. To follow secure practices, you create a dedicated ServiceAccount and bind a custom Role to it. How should you configure the Pod specification to prevent the default service account token from being automatically mounted?

A.Delete the 'default' ServiceAccount in the namespace.
B.Set 'automountServiceAccountToken: false' in the Pod specification.
C.Configure the Pod securityContext with 'readOnlyRootFilesystem: true'.
D.Add a deny NetworkPolicy blocking egress to the Kubernetes API service IP.
AnswerB

This setting stops the default token from being mounted into the pod's filesystem.

Why this answer

Setting 'automountServiceAccountToken: false' on either the ServiceAccount or the Pod specification prevents the automatic mounting of the token, reducing the blast radius if compromised.

131
Multi-Selectmedium

Which TWO methods can be used to restrict network traffic between services inside a service mesh? (Choose two)

Select 2 answers
A.Modifying CoreDNS forwarding upstream servers
B.PeerAuthentication resources enforcing STRICT mTLS mode between workloads
C.Configuring Horizontal Pod Autoscalers
D.Kubernetes PersistentVolumeClaim storage resize operations
E.Istio AuthorizationPolicy resources specifying allowed source principals and methods
AnswersB, E

PeerAuthentication ensures that traffic between workloads is encrypted and authenticated via mTLS.

Why this answer

Service mesh traffic is restricted using AuthorizationPolicies for Layer 7 access control and PeerAuthentication for transport encryption requirements.

132
MCQeasy

A cluster administrator needs to grant read-only access to pods within the 'development' namespace using Kubernetes RBAC. Which resource kind should be used to define the permissions?

A.SecurityContextConstraints
B.Role
C.PodSecurityPolicy
D.ClusterRole
AnswerB

Role is used to define permissions within a single namespace.

Why this answer

A Role defines permissions within a specific namespace, whereas a ClusterRole defines cluster-scoped permissions. Since the requirement is restricted to the 'development' namespace, a Role is the correct resource.

133
Multi-Selecthard

An enterprise is conducting a security review of their container build and deployment pipeline. Which TWO security controls should they implement to secure the Container layer? (Choose TWO)

Select 2 answers
A.Scanning container images for known CVEs before deployment
B.Enforcing non-root execution and secure container security contexts
C.Writing application unit tests in Python or Go
D.Procuring dedicated physical server racks from the cloud provider
E.Writing Terraform scripts to provision AWS VPCs
AnswersA, B

Image vulnerability scanning ensures base and application image layers are secure.

Why this answer

Container layer security involves vulnerability scanning of images and enforcing container runtime isolation standards.

134
MCQeasy

When evaluating cloud native security principles, why is reliance on a traditional network firewall (perimeter security) considered insufficient for modern Kubernetes environments?

A.Because Kubernetes natively disables all network traffic by default
B.Because cloud providers prohibit the use of firewalls
C.Because container workloads have dynamic IP addresses and high east-west traffic that perimeter firewalls cannot inspect effectively
D.Because firewalls cannot run on Linux operating systems
AnswerC

Microservices communicate dynamically across nodes (east-west), bypassing traditional static perimeters.

Why this answer

Kubernetes environments feature dynamic IP addresses, east-west traffic between microservices, and ephemeral workloads, making static perimeter firewalls inadequate.

135
MCQeasy

Why should container images be built using multi-stage builds in Dockerfiles from a security perspective?

A.They encrypt the container image layer storage in the registry
B.They automatically enable kernel-level eBPF monitoring
C.They exclude build-time tools, package managers, and source code from the final production image, reducing attack surface
D.They enforce mTLS encryption for all container network traffic
AnswerC

Removing unnecessary build tools and source code significantly shrinks the container image attack surface.

Why this answer

Multi-stage builds allow developers to copy only the compiled binary and essential runtime dependencies into the final image, excluding build tools, package managers, and source code.

136
MCQhard

An external identity provider (OIDC) is integrated with your Kubernetes cluster. You want to restrict a group named 'contractors' so they can only view pods in the 'staging' namespace. Which configuration correctly maps this requirement?

A.A ClusterRole granting pod read access bound via a RoleBinding in the 'staging' namespace to the subject kind 'Group' with name 'contractors'.
B.A Namespace-scoped ServiceAccount configured with an OIDC JWT issuer URL.
C.A Role in the 'staging' namespace bound via a ClusterRoleBinding to the 'contractors' group.
D.An OIDC webhook configuration in the kube-apiserver specifying namespace boundaries.
AnswerA

Binding a ClusterRole via a RoleBinding scopes the permissions strictly to the target namespace for the specified OIDC group.

Why this answer

A ClusterRole providing read access to pods, combined with a RoleBinding in the 'staging' namespace referencing the OIDC group 'contractors'.

137
Multi-Selecteasy

Which THREE of the following are key components of the Kubernetes control plane? (Choose THREE)

Select 3 answers
A.kube-scheduler
B.container runtime (e.g., containerd)
C.kube-controller-manager
D.kube-proxy
E.kube-apiserver
AnswersA, C, E

The scheduler assigns pods to nodes.

Why this answer

The API server, scheduler, and controller manager are core control plane components.

138
MCQeasy

An auditor is evaluating the Kubernetes control plane attack surface. Which component exposes the primary interface for cluster management and must be protected with strong authentication and authorization?

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

All administrative commands, manifest submissions, and internal component communications flow through the kube-apiserver.

Why this answer

The kube-apiserver is the core front-end of the Kubernetes control plane that exposes the REST API.

139
MCQeasy

An application running in a pod needs to securely consume a database password without storing it in plaintext within the container image or deployment manifest. Which native Kubernetes resource is best suited for storing this sensitive key-value data?

A.PersistentVolumeClaim
B.ResourceQuota
C.Secret
D.ConfigMap
AnswerC

Secrets are intended for sensitive data and provide mechanisms to mount them as files or environment variables inside pods.

Why this answer

Kubernetes Secrets are designed specifically to store and manage sensitive information such as passwords, OAuth tokens, and ssh keys.

140
Multi-Selectmedium

Which TWO of the following actions are considered best practices for securing Kubernetes Secrets? (Choose TWO)

Select 2 answers
A.Store database passwords in plaintext ConfigMaps for easier application ingestion.
B.Enable encryption at rest for Secret resources in etcd.
C.Rely on base64 encoding as the primary encryption mechanism for sensitive data.
D.Strictly limit RBAC permissions so that only necessary users and service accounts can read Secrets.
E.Mount Secrets as writable volumes so applications can update their own credentials.
AnswersB, D

Encrypting Secrets at rest protects them if the underlying etcd data store is compromised.

Why this answer

Enabling encryption at rest in etcd and restricting RBAC access to Secrets are core practices. Base64 encoding is not security, and putting secrets in ConfigMaps is insecure.

141
MCQhard

A platform engineer is hardening a container runtime setup on worker nodes. They want to ensure that containers cannot make unauthorized changes to network configurations or mount host filesystems. Which capability must be explicitly dropped from the default container capabilities set?

A.CAP_CHOWN
B.CAP_NET_BIND_SERVICE
C.CAP_SYS_ADMIN
D.CAP_DAC_OVERRIDE
AnswerC

CAP_SYS_ADMIN is a powerful capability often referred to as the root-equivalent capability for system administration tasks and should be dropped.

Why this answer

The 'CAP_SYS_ADMIN' capability grants a broad range of administrative privileges, including mounting filesystems and modifying kernel parameters, and should be dropped in hardened environments.

142
MCQmedium

A security auditor is evaluating a cloud-native deployment. The team states they practice 'shift-left' security. Which of the 4Cs does this practice primarily target?

A.Container
B.Cluster
C.Code
D.Cloud
AnswerC

Shift-left security primarily targets the Code layer by scanning source code and dependencies early.

Why this answer

Shift-left security focuses on integrating security checks into the earliest stages of development, which is the Code layer.

143
MCQhard

A security engineer is configuring a seccomp profile for a critical application pod running in a hardened Kubernetes cluster to restrict system calls. The pod requires access to the networking stack but must block module loading. Where must this custom JSON seccomp profile be placed on a worker node running containerd so that it can be referenced via the pod security spec?

A./var/log/containers/
B./etc/kubernetes/manifests/
C./var/lib/kubelet/seccomp/
D./etc/containerd/certs.d/
AnswerC

Kubelet and container runtimes look for localhost seccomp profiles relative to the kubelet root directory's seccomp folder.

Why this answer

Container runtime implementations like containerd look for custom seccomp profiles relative to the kubelet root directory, specifically inside the seccomp subdirectory (e.g., /var/lib/kubelet/seccomp/).

144
MCQhard

An auditor is evaluating the security posture of an on-premises Kubernetes cluster. The team notices that the etcd data directory is stored without encryption at rest. What is the primary threat this exposes the cluster to?

A.Direct exposure of all Kubernetes Secrets in plain text to anyone with read access to etcd storage
B.Inability of worker nodes to perform TLS handshakes with the API server
C.Immediate failure of HorizontalPodAutoscaler metric polling loops
D.Automatic elevation of all ServiceAccounts to cluster-admin privileges
AnswerA

Without etcd encryption at rest enabled via EncryptionConfiguration, all sensitive data stored in secrets is readable in plain text from storage.

Why this answer

etcd stores all Kubernetes objects in plain text by default, including Secrets. Anyone with access to the etcd data files or snapshots can read all cluster secrets in plain text.

145
MCQeasy

Which protocol and default secure port does the kubelet use to listen for incoming authenticated requests from the API server and metrics collectors?

A.HTTPS on port 10250
B.HTTPS on port 6443
C.TCP on port 2379
D.HTTP on port 10255
AnswerA

Port 10250 is the primary secure port for the kubelet API.

Why this answer

The kubelet listens on TCP port 10250 for secure HTTPS traffic.

146
MCQmedium

You are configuring an Ingress object with TLS termination. The TLS certificate and private key are stored in a Kubernetes Secret. Which specific secret type must be used to ensure the ingress controller recognizes and validates the TLS credentials correctly?

A.kubernetes.io/tls
B.kubernetes.io/service-account-token
C.Opaque
D.kubernetes.io/dockerconfigjson
AnswerA

The 'kubernetes.io/tls' secret type is specifically designed for storing TLS certificates and private keys.

Why this answer

Kubernetes expects TLS-related secrets used by Ingress or other components to be of type 'kubernetes.io/tls', containing 'tls.crt' and 'tls.key' data keys.

147
MCQhard

When configuring a MutatingWebhookConfiguration, you notice that mutating webhooks are executed before validating webhooks. Why is this execution order critical for security and consistency?

A.It ensures that validating webhooks evaluate the final, mutated state of the object rather than the original input.
B.It prevents mutating webhooks from timing out while waiting for validation checks.
C.Mutating webhooks require encryption keys generated during the validation phase.
D.It allows validating webhooks to override any changes made by mutating webhooks if security violations occur.
AnswerA

Validating webhooks need to check the exact object configuration that will be persisted, which includes any changes made by mutating webhooks.

Why this answer

Mutating webhooks can alter the object (e.g., injecting sidecars or default security contexts). Validating webhooks must run after mutation so they validate the final, resulting object state.

148
MCQhard

Your cluster uses the Pod Security admission controller with the 'restricted' profile enforced. A legacy application pod fails to start because it requires running as root (runAsNonRoot: false). How should you handle this securely without disabling the standard?

A.Disable the Pod Security admission controller entirely across the cluster.
B.Configure the Pod Security admission configuration file on the control plane to exempt the specific ServiceAccount or namespace from the restricted check.
C.Set the namespace enforce level to 'privileged' permanently.
D.Mount the host socket inside the pod to bypass user namespace restrictions.
AnswerB

The Pod Security admission plugin supports exemptions for specific usernames, namespaces, and runtime classes via its configuration file.

Why this answer

To accommodate specific pods that need exceptions while maintaining an overall enforce profile, you can use the 'audit' or 'warn' modes for specific versions or adjust the namespace labels, or use an exception mechanism if supported, but best practice is fixing the application or using a targeted bypass/exception if allowed, or applying an explicit exception configuration in the Pod Security admission configuration file.

149
MCQhard

You are reviewing admission webhook configurations and notice that timeoutSeconds is set to 3 seconds for a critical validation webhook. If the webhook server takes 4 seconds to respond, what does the API server do when failurePolicy is 'Ignore'?

A.It quarantines the pod in a Pending state.
B.It rejects the API request immediately.
C.It retries the webhook request indefinitely until it responds.
D.It allows the API request to proceed as if the webhook succeeded.
AnswerD

An 'Ignore' failure policy allows requests to proceed despite webhook errors or timeouts.

Why this answer

When failurePolicy is 'Ignore', a timeout or error reaching the webhook results in the API server ignoring the failure and allowing the request to proceed.

150
MCQeasy

A security engineer wants to apply Pod Security Standards globally across an entire namespace using the modern built-in admission mechanism. Which approach should be used?

A.Create a MutatingWebhookConfiguration that injects security contexts into every pod spec.
B.Apply labels such as 'pod-security.kubernetes.io/enforce=restricted' to the namespace metadata.
C.Modify the kubelet configuration file on every worker node to enable restricted mode.
D.Deploy a custom PodSecurityPolicy object targeting the namespace selector.
AnswerB

Namespace labels are the standard method for configuring the Pod Security admission controller.

Why this answer

The Pod Security admission controller uses namespace labels (such as 'pod-security.kubernetes.io/enforce') to apply enforcement levels like privileged, baseline, or restricted.

Page 1

Page 2 of 5

Page 3

All pages