Courseiva

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

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

Page 1 of 5

Page 2
1
Multi-Selecteasy

Which TWO practices are essential for securing container images against supply chain vulnerabilities? (Choose two)

Select 2 answers
A.Running all container processes as the root user by default
B.Disabling container registry authentication
C.Storing plain-text passwords inside image environment variables
D.Using minimal base images (e.g., Distroless or Alpine) to reduce attack surface
E.Scanning container images for known CVEs during the CI/CD pipeline
AnswersD, E

Minimal base images remove unnecessary shells and utilities, significantly reducing potential exploits.

Why this answer

Securing container images requires scanning images for known vulnerabilities and using minimal base images like Distroless or Alpine to reduce the attack surface.

2
MCQeasy

A compliance officer wants to continuously audit Kubernetes resource manifests for misconfigurations against security best practices before they are applied. Which tool type is best suited for this shift-left compliance approach?

A.Log shippers
B.Packet analyzers
C.Static code analysis and admission controllers
D.Kernel debuggers
AnswerC

Admission controllers enforce policy compliance at deployment time.

Why this answer

Policy-as-code engines like OPA Gatekeeper or Kyverno validate and audit Kubernetes manifests prior to admission into the cluster.

3
MCQhard

An auditor is assessing compliance with NIST SP 800-53 controls for access control (AC) within a managed Kubernetes cluster. Which API object enforces fine-grained authorization decisions directly at the Kubernetes API server?

A.ValidatingWebhookConfiguration
B.NetworkPolicy
C.ClusterRoleBinding
D.ResourceQuota
AnswerC

ClusterRoleBindings assign permissions to subjects across the cluster, enforcing RBAC.

Why this answer

Kubernetes Role-Based Access Control (RBAC), implemented via ClusterRole and Role bindings, enforces NIST-aligned access control policies at the API server layer.

4
Multi-Selecthard

Which TWO mechanisms help secure Kubernetes Secrets against unauthorized access or exposure?

Select 2 answers
A.Granting cluster-admin to all application service accounts
B.Enabling encryption at rest using KMS or AES-CBC providers
C.Storing secrets in plaintext ConfigMaps for easier auditing
D.Disabling the Kubernetes audit log
E.Applying strict RBAC least-privilege roles to limit secret reading
AnswersB, E

Encrypts secret data in etcd.

Why this answer

Encryption at rest in etcd and strict RBAC least privilege are key mechanisms for protecting secrets.

5
MCQeasy

What is the security risk of configuring `privileged: true` in a container's SecurityContext?

A.It restricts the container from writing to any attached volume.
B.It disables container isolation, granting full access to host devices and kernel capabilities
C.It forces the API server to reject all incoming TLS client requests.
D.It prevents the application from reading its own environment variables.
AnswerB

Privileged containers share almost all host capabilities and device access, rendering container isolation effectively nonexistent.

Why this answer

A privileged container disables all kernel namespace isolation and security confinement, granting the container full access to all devices and kernel capabilities of the host.

6
MCQhard

A security auditor reviews a Kubernetes cluster threat model and identifies that the Kubelet API on port 10250 permits unauthenticated requests if not configured properly. What authentication and authorization mode should be enforced on the Kubelet to prevent unauthorized remote code execution?

A.Enforcing Basic HTTP Authentication headers in kubelet configuration files
B.Disabling the Kubelet API entirely by turning off port 10250
C.Enabling anonymous requests with strict NetworkPolicy egress rules
D.Kubelet Authentication Mode set to Webhook and Authorization Mode set to Webhook
AnswerD

Webhook authentication and authorization allow the Kubelet to use the API server to verify client tokens and check if the caller has permissions for actions like exec or logs.

Why this answer

Kubelet authentication should be set to Webhook mode, and authorization should also be set to Webhook mode so that Kubelet delegates access decisions back to the Kubernetes API server.

7
MCQhard

An enterprise undergoes an ISO/IEC 27001 audit for their Kubernetes environment. The auditor requests evidence that secrets at rest are encrypted. Which configuration component enables encryption of Secret resources in etcd?

A.EncryptionConfiguration API
B.Kubelet TLS bootstrapping
C.SecretProviderClass CRD
D.ServiceAccount token volume projection
AnswerA

EncryptionConfiguration defines encryption providers for etcd storage.

Why this answer

The EncryptionConfiguration resource passed to the kube-apiserver via --encryption-provider-config enables encryption of sensitive resources like Secrets at rest in etcd.

8
Multi-Selecteasy

Which TWO tasks are typically performed during container image vulnerability scanning? (Choose two)

Select 2 answers
A.Configuring ingress TLS certificates
B.Monitoring active Kubernetes node CPU utilization
C.Checking for insecure configuration settings or exposed secrets within image layers
D.Updating cluster network policies
E.Analyzing OS packages and application dependencies against known CVE databases
AnswersC, E

Scanners also detect embedded secrets (like API keys) and misconfigurations in Dockerfile instructions.

Why this answer

Vulnerability scanning inspects image layers and package managers to identify known CVEs and misconfigurations.

9
Multi-Selecthard

Which THREE of the following practices are recommended when securing container images to prevent supply chain attacks in a Kubernetes environment? (Choose THREE)

Select 3 answers
A.Always run container processes as the root user (UID 0) to ensure maximum compatibility with host mounts.
B.Integrate automated vulnerability scanning into the CI/CD pipeline before pushing images to the container registry.
C.Disable container image pull policies entirely so nodes only rely on locally cached images.
D.Utilize minimal base images (such as distroless or Alpine) to reduce the potential attack surface and remove unnecessary package managers.
E.Reference images by their immutable cryptographic digest (SHA256) rather than mutable tags like latest.
AnswersB, D, E

Scanning images early in the pipeline prevents vulnerable software packages from reaching production registries.

Why this answer

Securing container images involves pinning image digests instead of relying solely on mutable tags, scanning images for known vulnerabilities prior to deployment, and running containers as non-root users.

10
Multi-Selecteasy

Which TWO tools or built-in Kubernetes features are used to secure container privileges and behaviors?

Select 2 answers
A.Pod Security Standards
B.PersistentVolumeClaim
C.SecurityContext
D.HorizontalPodAutoscaler
E.IngressController
AnswersA, C

Defines security profiles for pods.

Why this answer

Pod Security Standards and security contexts are core mechanisms for securing container privileges.

11
MCQmedium

An organization adopts immutable infrastructure principles for their Kubernetes worker nodes. When a patch is required, they replace the entire node instance rather than updating packages in place. This practice primarily enhances security at which of the 4Cs layers?

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

Worker node lifecycle and configuration management belong to the Cluster layer.

Why this answer

Replacing worker nodes with clean, pre-configured images enhances the integrity and security of the Cluster layer.

12
MCQhard

You are securing a Kubernetes cluster control plane and need to ensure that the API server limits request payload sizes to prevent Denial of Service (DoS) attacks via memory exhaustion. Which mechanism or flag controls request body size limits in the Kubernetes API server?

A.The API server enforces built-in request body size limits (e.g., 3MB max for standard requests) to prevent large payload attacks.
B.Set kubelet flag --max-pod-payload.
C.Configure kube-proxy with --max-buffer-size.
D.Configure etcd with --max-request-bytes flag.
AnswerA

Kubernetes API server has hardcoded and configurable request size limits to guard against memory exhaustion.

Why this answer

The API server enforces request body size limits natively for incoming HTTP requests (such as 3MB for standard requests and larger for specific subresources).

13
MCQeasy

When configuring Role-Based Access Control (RBAC), which Kubernetes object grants permissions across the entire cluster rather than within a single namespace?

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

ClusterRole is cluster-scoped and can be bound cluster-wide using a ClusterRoleBinding.

Why this answer

A ClusterRole defines permissions across the entire cluster, and a ClusterRoleBinding applies them cluster-wide.

14
MCQmedium

An administrator wants to verify that etcd database defragmentation is performed periodically to reclaim storage space after large amounts of data churn. Which etcdctl command defragments an etcd member?

A.kubectl etcd-clean
B.etcdctl defrag
C.etcdctl compact
D.etcdctl cleanup storage
AnswerB

etcdctl defrag reclaims storage space on the etcd member.

Why this answer

etcdctl defrag is the command used to defragment the etcd database file.

15
MCQeasy

An organization is adopting Kubernetes and wants to understand where their responsibility lies under the shared responsibility model. According to the 4Cs of Cloud Native Security, who is primarily responsible for configuring the RBAC rules and network policies within the Kubernetes control plane and worker nodes?

A.The cloud service provider
B.The application development team
C.The container runtime vendor
D.The user (cluster administrator)
AnswerD

Cluster security, including RBAC and network policies, is the responsibility of the user organization.

Why this answer

In the shared responsibility model for cloud-native, the cloud provider manages the underlying infrastructure (Cloud), but the user is responsible for the Cluster, Container, and Code layers. Configuring RBAC and network policies falls directly under Cluster security, which is the user's responsibility.

16
MCQhard

An organization wants to prevent supply chain attacks where malicious code is injected into third-party Helm charts before deployment. What mitigation technique provides cryptographic verification of Helm chart integrity and authenticity?

A.Restricting etcd database access using client certificate authentication
B.Verifying Helm chart provenance files using cryptographic signatures and public key rings
C.Disabling anonymous requests in the kube-apiserver configuration
D.Enabling Pod Security Standards in the target namespace
AnswerB

Provenance files (`.prov`) contain cryptographic signatures that verify the chart has not been tampered with and comes from a trusted publisher.

Why this answer

Helm supports cryptographically signing charts using Provenance files and verifying them with public key rings prior to installation.

17
Multi-Selecteasy

Which TWO security features are provided by modern container runtimes like containerd or CRI-O? (Choose two)

Select 2 answers
A.Integration with Linux security modules (Seccomp, AppArmor, SELinux)
B.Management of Kubernetes RBAC roles and cluster permissions
C.Namespace isolation (PID, network, mount, user namespaces) for containers
D.Automatic deployment of service mesh sidecar proxies
E.Automatic generation of Kubernetes Ingress TLS certificates
AnswersA, C

Container runtimes interface with LSMs to enforce system call filtering and access controls.

Why this answer

Modern container runtimes provide security features such as namespace isolation and integration with Linux security modules like seccomp and AppArmor.

18
MCQeasy

An auditor is reviewing container image registries used by a Kubernetes cluster. They notice that public images are pulled directly without verification. Which security best practice should be implemented for image registries?

A.Grant cluster-admin permissions to all developers
B.Store plaintext passwords in ConfigMaps
C.Disable all network policies in the cluster
D.Use private registries with integrated vulnerability scanning and image pull policies
AnswerD

Private registries with vulnerability scanning ensure images are checked and controlled before deployment.

Why this answer

Using private, trusted container registries with vulnerability scanning and access control helps ensure that only approved and secure images are deployed.

19
MCQeasy

An administrator needs to restrict access so that a specific ServiceAccount in the production namespace can only list pods, but cannot delete or modify them. Which core Kubernetes API resource should be configured to achieve this using RBAC?

A.ValidatingWebhookConfiguration
B.ClusterRole combined with a ClusterRoleBinding
C.PodSecurityPolicy
D.Role combined with a RoleBinding
AnswerD

A Role and RoleBinding limit permissions to a single namespace, perfect for restricting a specific ServiceAccount.

Why this answer

A Role defines permissions within a particular namespace. By binding a Role to a ServiceAccount via a RoleBinding, permissions are restricted strictly to that namespace.

20
MCQhard

An enterprise cluster utilizes a service mesh with AuthorizationPolicies. You need to configure a policy that allows GET requests from service A to service B while explicitly denying DELETE requests on all paths. How are Istio AuthorizationPolicies evaluated when both allow and deny rules are present?

A.Only the most recently created authorization policy is evaluated
B.DENY rules take precedence and are evaluated before ALLOW rules
C.ALLOW rules take precedence and override any DENY rules
D.Rules are evaluated in alphabetical order of their object names
AnswerB

Istio evaluates DENY rules before ALLOW rules to ensure strict security guardrails take effect immediately.

Why this answer

Istio AuthorizationPolicies evaluate DENY rules first, followed by ALLOW rules. If a request matches a DENY rule, it is immediately rejected regardless of any matching ALLOW rules.

21
Multi-Selecteasy

Which TWO layers complete the remaining set of the 4Cs of Cloud Native Security model alongside Code and Container? (Choose TWO)

Select 2 answers
A.Cache
B.Cloud
C.Compiler
D.Cluster
E.Containerd
AnswersB, D

Cloud is one of the 4Cs, covering the provider infrastructure.

Why this answer

The four layers of the 4Cs are Code, Container, Cluster, and Cloud.

22
MCQmedium

A security engineer is performing a threat analysis on a Kubernetes cluster and identifies a risk where a compromised container can exhaust the available CPU and memory on the underlying worker node, causing a denial of service for other tenants. Which native Kubernetes admission mechanism is specifically designed to mitigate this threat vector?

A.PodSecurityStandards
B.ValidatingWebhookConfiguration
C.LimitRanger
D.NetworkPolicy
AnswerC

Correct. LimitRanger sets compute resource constraints per pod or container in a namespace to prevent resource exhaustion.

Why this answer

LimitRanger enforces resource allocation limits (min/max) for pods and containers in a namespace, preventing runaway resource consumption that leads to node starvation.

23
MCQeasy

Which Kubernetes control plane component is responsible for noticing and responding when nodes go down or fail health checks?

A.CoreDNS
B.etcd
C.kube-controller-manager
D.kube-proxy
AnswerC

The node lifecycle controller inside kube-controller-manager monitors node health.

Why this answer

The kube-controller-manager runs node lifecycle controllers that monitor node health and update node status.

24
MCQmedium

A security engineer identifies that an enterprise Kubernetes cluster has several cluster-admin bindings granted to user accounts that have left the company. Which Kubernetes security principle has been violated?

A.NetworkPolicy ingress traffic isolation
B.Principle of Least Privilege and proper identity/access lifecycle management
C.Pod Security Standards baseline enforcement
D.Container image vulnerability scanning policies
AnswerB

Users should only have the minimum permissions needed for their role, and credentials must be promptly revoked when personnel depart.

Why this answer

Granting excessive permissions or failing to revoke access upon role changes violates the principle of least privilege and robust identity lifecycle management.

25
MCQmedium

An administrator needs to restrict kubelets so they can only modify resources associated with their own node (such as their own Node object and Pods bound to them). Which authorization mode must be enabled alongside RBAC?

A.Node
B.ABAC
C.AlwaysDeny
D.PodSecurity
AnswerA

Enabling the Node authorizer ensures kubelets operate under the principle of least privilege regarding node resources.

Why this answer

The Node authorization mode is a special-purpose authorization mode that specifically authorizes kubelet API requests.

26
MCQeasy

An administrator notices that a compromised Pod is attempting to access the cloud provider metadata service to retrieve IAM role credentials. Which native Kubernetes resource is best suited to block this specific attack vector at the network layer?

A.ResourceQuota
B.NetworkPolicy
C.ValidatingWebhookConfiguration
D.SecurityContext
AnswerB

A NetworkPolicy can restrict egress traffic to prevent pods from reaching the cloud metadata IP address 169.254.169.254.

Why this answer

NetworkPolicies can be configured to block egress traffic from specific pods to the link-local IP address of cloud provider metadata services (169.254.169.254).

27
MCQmedium

An administrator notices that a container in a Kubernetes cluster running containerd is attempting to write files to the root filesystem (/), which should be strictly immutable. Which configuration in the Pod's securityContext should be enforced to prevent this?

A.Set securityContext.allowPrivilegeEscalation to false
B.Set securityContext.readOnlyRootFilesystem to true
C.Set securityContext.privileged to false
D.Add the SYS_ADMIN capability to securityContext.capabilities.drop
AnswerB

This correctly enforces a read-only root filesystem, requiring explicit volume mounts for any writable paths.

Why this answer

Setting readOnlyRootFilesystem to true in the securityContext ensures that the container's root file system is mounted as read-only, preventing runtime tampering or unauthorized file writes.

28
Multi-Selectmedium

Which THREE fields are required when defining an egress rule in a Kubernetes NetworkPolicy?

Select 3 answers
A.egress list block
B.storageClassName for volume attachment
C.policyTypes containing 'Egress'
D.nodeSelector for worker placement
E.to block specifying destination matchers
AnswersA, C, E

The egress array defines outgoing rules.

Why this answer

Egress rules contain ports, to/ipBlock/etc., but the policy itself must include 'policyTypes' containing 'Egress', and the rules themselves specify destinations ('to') and optional ports.

29
Multi-Selecthard

Which THREE of the following mechanisms are essential for securing the Kubernetes control plane against unauthorized access and privilege escalation?

Select 3 answers
A.Enforcing robust Role-Based Access Control (RBAC) with least privilege principles
B.Requiring mutual TLS (mTLS) for all internal API server and component communications
C.Using mutable `:latest` image tags for all control plane system components
D.Enabling encryption at rest for sensitive data stored in etcd
E.Setting `allowPrivilegeEscalation: true` across all default container security contexts
AnswersA, B, D

RBAC restricts API callers to only the permissions they require.

Why this answer

Enabling mutual TLS for component communication, enforcing robust RBAC, and enabling etcd encryption at rest are fundamental control plane hardening steps.

30
MCQhard

You are auditing a multi-tenant Kubernetes cluster and notice that users can read ServiceAccount tokens belonging to other namespaces through improper RBAC configuration. Which ClusterRole permission should be strictly avoided or audited to prevent token theft via secret inspection?

A.Verbs like 'get' on resource 'pods/status'.
B.Verbs like 'list' on resource 'namespaces'.
C.Verbs like 'create' on resource 'deployments'.
D.Verbs like 'get', 'list', or 'watch' on resource 'secrets' across all namespaces.
AnswerD

Since Kubernetes ServiceAccount tokens are stored as Secrets, granting broad read permissions on secrets enables token theft.

Why this answer

Granting read access to Secrets across namespaces allows malicious actors to harvest ServiceAccount tokens.

31
MCQmedium

A security scan reveals that the kubelet read-only port (typically port 1055) is active and exposes unauthenticated pod and cluster metadata. How should this vulnerability be remediated?

A.Configure an RBAC ClusterRoleBinding for system:anonymous.
B.Enable PodSecurityStandards in enforcing mode.
C.Apply a NetworkPolicy blocking ingress traffic to port 1055.
D.Set readOnlyPort: 0 in the kubelet configuration file.
AnswerD

Setting the readOnlyPort to 0 completely disables the insecure read-only port.

Why this answer

The kubelet read-only port should be disabled by setting its value to 0 in the kubelet configuration file or startup flags.

32
MCQhard

An incident response team suspects that an attacker has gained unauthorized access to the cluster via an unencrypted etcd backup file containing sensitive cluster state. Which etcd utility should be used to securely snapshot and backup etcd data?

A.kubectl cluster-info dump --etcd
B.etcd-backup-controller
C.kubeadm backup etcd
D.etcdctl snapshot save
AnswerD

etcdctl snapshot save captures a consistent point-in-time snapshot of etcd.

Why this answer

etcdctl snapshot save is the official command-line tool used to take point-in-time snapshots of the etcd key-value database.

33
MCQmedium

An attacker gains execution in a container and attempts to perform a denial of service attack on other workloads sharing the same Kubernetes node by consuming all available CPU and memory resources. What Kubernetes feature prevents this cross-workload resource exhaustion?

A.ValidatingWebhookConfiguration rejecting pod creations
B.NetworkPolicy egress blocking rules
C.Container Resource Requests and Limits (CPU and memory)
D.ClusterRoleBindings restricting RBAC permissions
AnswerC

Setting resource limits enforces cgroup constraints that cap CPU and memory usage per container, preventing resource starvation on the node.

Why this answer

ResourceQuotas and LimitRanges/Container Resource Limits (requests and limits) ensure that containers cannot exceed allocated compute resources, preventing noisy neighbor and starvation attacks.

34
MCQhard

You are performing a security review of etcd cluster membership. You need to list all active members of the etcd cluster and check their health status using the command line. Which etcdctl command is correct?

A.etcdctl check membership
B.etcdctl member list and etcdctl endpoint health
C.etcdctl cluster status
D.kubectl get etcdmembers
AnswerB

member list shows cluster nodes and endpoint health verifies their operational status.

Why this answer

etcdctl member list and etcdctl endpoint health are the standard diagnostic commands for checking etcd cluster state.

35
MCQeasy

Which component in the Kubernetes control plane is directly responsible for interacting with etcd to persist and retrieve cluster state?

A.kube-controller-manager
B.kube-scheduler
C.kube-apiserver
D.kubelet
AnswerC

The API server acts as the frontend and is the sole component permitted to query and modify etcd.

Why this answer

The kube-apiserver is the only control plane component that communicates directly with etcd.

36
MCQmedium

According to the CIS Kubernetes Benchmark, anonymous requests to the Kubernetes API server should be disabled. Which kube-apiserver flag enforces this setting?

A.--authorization-mode=Node,RBAC
B.--anonymous-auth=false
C.--enable-admission-plugins
D.--insecure-port=0
AnswerB

Setting anonymous-auth to false rejects unauthenticated requests.

Why this answer

The flag --anonymous-auth=false disables anonymous requests to the secure port of the API server, fulfilling CIS benchmark requirements.

37
Multi-Selecthard

An organization is hardening their Kubernetes cluster configuration to secure the Cluster layer. Which THREE configurations or practices should they implement? (Choose THREE)

Select 3 answers
A.Disabling anonymous requests to the Kubernetes API server
B.Using strong authentication mechanisms (e.g., OIDC) for cluster access
C.Enabling and configuring Kubernetes audit logging
D.Using public distroless base images for Dockerfiles
E.Writing unit tests for JavaScript frontend applications
AnswersA, B, C

Disabling anonymous access prevents unauthenticated API interaction.

Why this answer

Cluster layer security involves API server authentication/authorization, restricting anonymous requests, and securing worker node configurations.

38
MCQeasy

An enterprise is adopting the Cloud Native Security Framework to map their controls. Which of the 4Cs of Cloud Native Security represents the outermost layer encompassing physical data centers and hardware?

A.Clusters
B.Cloud
C.Code
D.Containers
AnswerB

Cloud represents the foundational infrastructure and physical data centers.

Why this answer

The 4Cs of Cloud Native Security are Cloud, Clusters, Containers, and Code. Cloud is the outermost layer representing physical infrastructure and provider security.

39
Multi-Selecteasy

Which THREE methods can be used to inject Kubernetes Secrets into a running pod?

Select 3 answers
A.Injected as environment variables
B.Compiled directly into the container image binary
C.Mounted as files inside a volume
D.Injected via projected volumes
E.Injected through kernel sysctl parameters
AnswersA, C, D

Secrets can populate container environment variables.

Why this answer

Secrets can be injected into pods via environment variables, environment variables from secret keys, or mounted as files in volumes.

40
MCQmedium

By default, how are Kubernetes Secrets stored in etcd when created without additional encryption-at-rest configurations?

A.Hashed using SHA-256 with a random salt
B.Encrypted using the node's TPM chip
C.Encrypted using AES-256 automatically
D.Encoded in Base64 plaintext
AnswerD

Base64 is an encoding mechanism, not encryption; secrets are stored in etcd encoded in Base64.

Why this answer

By default, Kubernetes Secrets are stored encoded in Base64 plaintext within etcd, meaning anyone with etcd access can decode them.

41
Multi-Selectmedium

Which TWO features are typically provided by service mesh architectures to enhance platform security? (Choose two)

Select 2 answers
A.Automatic kernel patch management for worker nodes
B.Fine-grained Layer 7 authorization policies between services
C.Provisioning of persistent block storage volumes
D.Automatic mutual TLS (mTLS) encryption for pod-to-pod communication
E.Managing container registry authentication tokens
AnswersB, D

Service meshes allow operators to define rules specifying which services can communicate and invoke specific methods.

Why this answer

Service meshes enhance security primarily by providing mutual TLS (mTLS) for workload encryption and fine-grained authorization policies.

42
Multi-Selectmedium

Which THREE of the following are official Pod Security Standard enforcement levels recognized by Kubernetes?

Select 3 answers
A.baseline
B.isolated
C.privileged
D.restricted
E.secure
AnswersA, C, D

Baseline prevents known privilege escalations.

Why this answer

The three official levels defined by Kubernetes Pod Security Standards are privileged, baseline, and restricted.

43
Multi-Selecteasy

Which TWO actions can be performed using Kubernetes RBAC rules?

Select 2 answers
A.Granting permission to create deployments cluster-wide
B.Encrypting secret values stored in etcd
C.Allocating storage capacity for PersistentVolumes
D.Enforcing Pod Security Standards on namespaces
E.Granting permission to read ConfigMaps in a namespace
AnswersA, E

ClusterRoles control cluster-wide resource creation.

Why this answer

RBAC rules define API groups, resources, and verbs to control permissions.

44
MCQhard

A security architect is designing a multi-tenant Kubernetes platform. They need to ensure that a compromise in one tenant's namespace cannot allow packet sniffing or unauthorized traffic interception from another tenant's pods. Which Kubernetes feature should they implement to satisfy cloud native network isolation principles?

A.Kubernetes RBAC RoleBindings
B.ResourceQuotas
C.Kubernetes NetworkPolicies
D.PodSecurityStandards
AnswerC

NetworkPolicies restrict traffic flow between pods and namespaces.

Why this answer

Kubernetes NetworkPolicies enforce Layer 3/4 network segmentation between pods and namespaces.

45
Multi-Selecteasy

When evaluating a Kubernetes cluster against security and compliance baselines, which TWO tools are commonly used for automated auditing and benchmarking? (Choose TWO)

Select 2 answers
A.Kustomize
B.kube-bench
C.Helm
D.Kubescape
E.Kubectl
AnswersB, D

kube-bench automates checking Kubernetes against CIS Benchmarks.

Why this answer

Kube-bench and Kubescape are both widely recognized tools for auditing Kubernetes compliance against benchmarks.

46
MCQhard

You are configuring an Ingress resource using the NGINX Ingress Controller to expose a sensitive internal application. To prevent unauthorized clients from connecting, you want to enable mutual TLS authentication at the ingress layer. Which annotation is required in the Ingress resource definition to specify the Kubernetes Secret containing the trusted Client CA certificate?

A.ingress.kubernetes.io/backend-protocol
B.nginx.ingress.kubernetes.io/auth-tls-secret
C.kubernetes.io/ingress.class
D.nginx.ingress.kubernetes.io/ssl-redirect
AnswerB

This specific annotation tells the NGINX Ingress controller which secret contains the CA certificate for validating client certificates.

Why this answer

The NGINX ingress controller uses specific annotations such as 'nginx.ingress.kubernetes.io/auth-tls-secret' to point to the Kubernetes secret containing the CA certificate used to verify client certificates.

47
MCQhard

You want to ensure that a newly created Role in namespace 'finance' cannot be modified or deleted by regular developers who have edit permissions. Which RBAC feature or design prevents unauthorized privilege escalation through Role manipulation?

A.Enabling Pod Security Standards on the finance namespace.
B.Setting the Role resource to immutable via 'immutable: true'.
C.A mandatory MutatingWebhookConfiguration that strips administrative verbs.
D.The API server's built-in privilege escalation prevention check, which blocks users from granting permissions they do not hold.
AnswerD

Users cannot assign permissions via Roles or RoleBindings unless they already possess those exact permissions themselves.

Why this answer

Kubernetes has built-in authorization checks (RBAC privilege escalation prevention) that prevent users from creating or editing roles/rolebindings with permissions they do not themselves possess.

48
MCQeasy

A security analyst wants to scan container images for known Common Vulnerabilities and Exposures (CVEs) as part of a continuous compliance pipeline. Which tool is widely used for this purpose?

A.Envoy
B.CoreDNS
C.Trivy
D.Calico
AnswerC

Trivy scans container images for vulnerabilities.

Why this answer

Trivy is a popular open-source vulnerability scanner for containers, filesystems, and Git repositories.

49
MCQeasy

Which attack vector involves tricking a Kubernetes cluster user or service into executing unintended actions via authenticated sessions, frequently mitigated by robust CSRF defenses and proper API design?

A.Cross-Site Request Forgery (CSRF)
B.Denial of Service via memory leaks
C.Container escape via kernel flaw
D.Image tag mutation
AnswerA

CSRF exploits the trust that a web site has in a user's browser session.

Why this answer

Cross-Site Request Forgery (CSRF) tricks a victim into executing unwanted actions on a web application in which they are currently authenticated.

50
Multi-Selecthard

When configuring Pod Security Standards on a namespace, which THREE security restrictions are enforced by the 'restricted' profile that are NOT enforced by the 'baseline' profile? (Choose THREE)

Select 3 answers
A.Restricting volume types to a safe subset (e.g., configMap, secret, emptyDir).
B.Disallowing escalation of privilege (allowPrivilegeEscalation: false).
C.Requiring containers to run as a non-root user (runAsNonRoot: true).
D.Disallowing privileged containers.
E.Prohibiting hostPort usage entirely.
AnswersA, B, C

Restricted limits volume types significantly more than baseline to prevent host access.

Why this answer

The restricted profile adds requirements such as running as a non-root user, preventing escalation of privileges, and restricting allowed volume types.

51
MCQmedium

To comply with CIS benchmarks regarding pod security, an administrator wants to prevent containers from running with root privileges. Which field in a Pod Security Standard (restricted profile) enforces this?

A.runAsNonRoot: true
B.hostNetwork: true
C.readOnlyRootFilesystem: false
D.privileged: true
AnswerA

runAsNonRoot ensures containers cannot execute as the root user.

Why this answer

The restricted Pod Security Standard profile disallows running containers as root by enforcing runAsNonRoot: true in the securityContext.

52
MCQhard

In a zero-trust Kubernetes architecture, an attacker attempts to exploit the Kubernetes API server via a Server-Side Request Forgery (SSRF) flaw in a poorly written custom controller. Which defense-in-depth mechanism specifically protects against unauthorized API requests originating from inside the cluster network?

A.Configuring Horizontal Pod Autoscalers to limit request rates
B.Enabling Pod Security Standards in baseline mode across all namespaces
C.Mandatory client certificate authentication and rigorous RBAC authorization on API endpoints
D.Disabling the Kubelet read-only port on all worker nodes
AnswerC

The API server requires valid credentials (like a service account token or client cert) and RBAC verification for all requests, preventing anonymous or under-privileged internal access.

Why this answer

Mutual TLS (mTLS) authentication combined with RBAC ensures that callers must present a valid, cryptographically signed client certificate and have explicit authorization rules to talk to the API server.

53
Multi-Selectmedium

Which THREE of the following criteria should be evaluated when reviewing Kubernetes RBAC policies to ensure least privilege? (Choose THREE)

Select 3 answers
A.Carefully audit permissions that allow impersonation or binding of roles.
B.Limit the use of cluster-scoped ClusterRoleBindings to cases where namespace-scoped Roles are insufficient.
C.Ensure anonymous users have write access to all namespaces.
D.Avoid granting wildcard permissions (*) on sensitive resources like secrets or cluster roles.
E.Grant cluster-admin permissions to every service account by default.
AnswersA, B, D

Impersonation and role binding permissions can allow privilege escalation.

Why this answer

RBAC reviews should check for overly broad resource permissions, dangerous verbs like 'impersonate' or 'bind', and cluster-wide bindings.

54
MCQmedium

You need to ensure that an ingress controller processing TLS termination uses strong cryptographic ciphers and disables outdated protocols such as TLSv1.0 and TLSv1.1. Where are these TLS configuration settings typically managed in an NGINX Ingress deployment?

A.Ingress controller ConfigMap parameters such as ssl-ciphers and ssl-protocols
B.The core DNS configuration map
C.The kube-apiserver static pod manifest file
D.Persistent Volume Claim storage classes
AnswerA

Global TLS ciphers and protocols are configured via the NGINX Ingress controller's ConfigMap.

Why this answer

NGINX Ingress Controllers allow global configuration of SSL parameters, ciphers, and protocols via ConfigMap settings or specific ingress annotations.

55
MCQhard

An enterprise Kubernetes cluster uses a service mesh with strict authorization policies configured. A developer complains that their frontend service cannot communicate with the backend database service. Upon inspecting the mesh configuration, you notice a PeerAuthentication resource set to STRICT mode. What does this setting enforce?

A.Pod security standards must be enforced at the baseline level
B.Network policies must block all traffic from outside the namespace
C.All external ingress traffic must pass through a Web Application Firewall
D.All incoming traffic to the targeted workloads must use mutual TLS encryption
AnswerD

STRICT mode rejects all plaintext connections and requires all incoming traffic to be encrypted via mTLS.

Why this answer

In a service mesh like Istio, setting PeerAuthentication to STRICT mode requires all incoming traffic to workloads in that scope to use mutual TLS (mTLS).

56
Multi-Selecthard

Which TWO of the following kubelet security configurations are critical for preventing container escape and unauthorized node API access? (Choose TWO)

Select 2 answers
A.Enable anonymous authentication on the kubelet secure port.
B.Run kubelet containers in privileged mode.
C.Configure kubelet authorization mode to Webhook.
D.Set authorization.mode to AlwaysAllow.
E.Disable the unauthenticated read-only port by setting readOnlyPort to 0.
AnswersC, E

Webhook authorization ensures RBAC rules govern kubelet API calls.

Why this answer

Disabling the read-only port and enforcing webhook authorization on the kubelet secure port are essential node security measures.

57
Multi-Selectmedium

Which TWO of the following practices directly address security concerns within the 'Container' layer of the 4Cs of Cloud Native Security?

Select 2 answers
A.Scanning container images for known Common Vulnerabilities and Exposures (CVEs) prior to deployment.
B.Running containers with a non-root user ID in the Dockerfile.
C.Encrypting data at rest using cloud storage encryption keys.
D.Configuring cloud provider IAM policies for virtual machine instances.
E.Setting up Kubernetes NetworkPolicies between namespaces.
AnswersA, B

Image scanning is a fundamental practice of container security.

Why this answer

Container layer security focuses on hardening the container image and runtime environment. Practices include scanning container images for vulnerabilities and running containers as non-root users.

58
Multi-Selectmedium

Which THREE fields are required when defining a standard Kubernetes NetworkPolicy resource? (Choose THREE)

Select 3 answers
A.metadata
B.securityContext
C.kind (set to NetworkPolicy)
D.imagePullSecrets
E.apiVersion
AnswersA, C, E

Metadata including name and namespace is required.

Why this answer

A NetworkPolicy requires apiVersion, kind, metadata, and spec containing at least podSelector.

59
Multi-Selectmedium

Which TWO actions should be taken when an image vulnerability scanner reports a critical CVE in a running production container? (Choose two)

Select 2 answers
A.Scale the vulnerable deployment replicas to maximum capacity
B.Rebuild the container image with updated base image or patched software packages
C.Redeploy the updated, patched image across the cluster workloads
D.Change all Kubernetes service account tokens to anonymous mode
E.Delete all Kubernetes NetworkPolicies to allow emergency patching traffic
AnswersB, C

Updating vulnerable packages and rebuilding the image is the primary remediation step.

Why this answer

When a critical CVE is found, the image should be rebuilt with patched dependencies and redeployed, and runtime security tools should be checked for anomalous behavior.

60
MCQeasy

An administrator needs to analyze the STRIDE threat model category that encompasses an attacker gaining unauthorized elevation of privilege inside a Kubernetes cluster by exploiting a misconfigured RBAC ClusterRoleBinding. Which threat category does this represent?

A.Tampering
B.Elevation of Privilege
C.Repudiation
D.Information Disclosure
AnswerB

Correct. Escalating privileges beyond intended authorization boundaries maps directly to Elevation of Privilege in STRIDE.

Why this answer

Elevation of privilege corresponds to users gaining capabilities they are not authorized to have, such as using an overly permissive ClusterRoleBinding to impersonate the system:masters group.

61
MCQeasy

A platform engineering team is reviewing security layers for a newly provisioned Kubernetes cluster on AWS using Amazon EKS. Which layer of the 4Cs of Cloud Native Security encompasses patching the underlying Linux kernel of the worker nodes?

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

Cluster security includes Kubernetes components and the worker node operating system/kernel.

Why this answer

The Cluster layer covers Kubernetes configuration, components, and the underlying worker node operating system and kernel.

62
MCQeasy

Which of the following best describes the principle of 'Defense-in-Depth' in cloud native security architectures?

A.Implementing multiple overlapping security controls across the 4Cs so that a single failure does not lead to compromise
B.Outsourcing all security responsibilities to the cloud provider
C.Ensuring every developer has cluster admin access for rapid debugging
D.Relying entirely on a strong perimeter firewall to block all malicious actors
AnswerA

Defense-in-depth uses layered controls across code, containers, clusters, and cloud.

Why this answer

Defense-in-depth relies on multiple layers of security controls so that if one layer fails, subsequent layers prevent a breach.

63
MCQhard

You are hardening etcd on a dedicated control plane host. You want to ensure that etcd database files on disk are protected against unauthorized physical or filesystem access. Which control mechanism is best suited for this?

A.Kubernetes NetworkPolicies applied to the etcd Pod.
B.API server RBAC ClusterRoleBinding.
C.Filesystem or block-level disk encryption (e.g., LUKS) on the host storage volume.
D.Kubelet read-only port disabling.
AnswerC

Disk encryption protects the underlying storage where etcd writes its data files and WALs.

Why this answer

Operating system level disk encryption (such as LUKS) protects files at rest on block storage devices.

64
MCQeasy

You need to isolate a database pod so that only pods with the label 'tier=frontend' within the same namespace can connect to it on port 5432. Which NetworkPolicy resource configuration achieves this?

A.A NetworkPolicy with an ingress rule specifying podSelector for 'tier=frontend' and port 5432.
B.A PodSecurityPolicy enforcing frontend network access.
C.A ServiceMesh AuthorizationPolicy restricting namespace-level routes.
D.A NetworkPolicy with an egress rule allowing frontend pods to reach the database.
AnswerA

This accurately restricts incoming traffic to only authorized frontend pods on the database port.

Why this answer

A NetworkPolicy targeting the database pods with 'podSelector' and defining an 'ingress' rule allowing traffic from pods matching 'tier=frontend' on port 5432.

65
MCQmedium

An administrator is designing a security posture for a microservices application deployed in a Kubernetes cluster. According to the 4Cs of Cloud Native Security, which component falls under the 'Code' layer?

A.Container base images like Alpine Linux
B.Application dependency libraries in package.json
C.Kubernetes API server authorization policies
D.Cloud provider IAM roles
AnswerB

Application dependencies and source code belong to the Code layer.

Why this answer

The Code layer encompasses application source code, third-party libraries, and software dependencies.

66
MCQmedium

An administrator wants to secure the communication channel between the Kubernetes API server and extension API servers (such as metrics-server). Which API server flag specifies the Certificate Authority used to verify extension API server certificates?

A.--requestheader-client-ca-file
B.--extension-ca-file
C.--etcd-ca-file
D.--proxy-client-cert-file
AnswerA

This flag authenticates incoming requests from aggregated API servers.

Why this answer

The --requestheader-client-ca-file flag specifies the CA certificate used to sign client certificates for aggregated API servers.

67
MCQeasy

What role does image scanning play in a shift-left security strategy for platform security?

A.Detecting vulnerabilities and misconfigurations in container images during development and CI/CD
B.Automatically encrypting secrets stored in etcd
C.Generating TLS certificates for ingress controllers
D.Enforcing role-based access control policies
AnswerA

Scanning images early helps developers fix security issues before code reaches production environments.

Why this answer

Shift-left security moves security checks earlier in the development lifecycle, allowing teams to identify and fix image vulnerabilities before deployment.

68
Multi-Selectmedium

Which TWO of the following practices are core principles of cloud native security? (Choose TWO)

Select 2 answers
A.Defense-in-depth across multiple architectural layers
B.Complete reliance on a static network perimeter firewall
C.Static, long-lived infrastructure that is never replaced
D.Sharing administrative credentials among all team members
E.Principle of least privilege for access and execution permissions
AnswersA, E

Defense-in-depth ensures overlapping security controls.

Why this answer

Key cloud native security principles include defense-in-depth and the principle of least privilege.

69
Multi-Selectmedium

When modeling threats related to Kubernetes secrets management, which TWO actions help protect secrets from unauthorized access?

Select 2 answers
A.Granting all namespace users cluster-admin read permissions on Secret objects
B.Integrating external secret management systems (e.g., HashiCorp Vault, AWS Secrets Manager)
C.Disabling RBAC authentication across all API server endpoints
D.Enabling etcd encryption at rest using a dedicated encryption provider configuration
E.Storing database credentials in plain text ConfigMaps in the default namespace
AnswersB, D

External secret stores decouple secrets from etcd storage and provide robust access auditing.

Why this answer

Using external secret stores (like Vault or cloud KMS) and enabling etcd encryption at rest protect secrets effectively.

70
MCQhard

You are troubleshooting a control plane failure where the Kubernetes API server cannot communicate with etcd because of expired client certificates. Which command-line flag on the kube-apiserver specifies the client TLS certificate used for authentication against etcd?

A.--etcd-private-key
B.--etcd-certfile
C.--client-cert-file
D.--etcd-ca-file
AnswerB

This flag provides the client certificate for API server to etcd mTLS authentication.

Why this answer

The --etcd-certfile flag specifies the TLS client certificate used when the API server connects to etcd.

71
MCQmedium

An administrator wants to audit who created or modified specific resources in the cluster. Where are API server audit records sent if configured with the log backend?

A.Directly to the etcd key-value store under /audit/logs.
B.To the container stdout of kube-proxy.
C.To the kubelet systemd journal on worker nodes.
D.To the file path specified by --audit-log-path on the control plane host.
AnswerD

The log backend writes structured JSON audit events to the designated file path.

Why this answer

When using the log audit backend, audit records are written to a file path specified by --audit-log-path.

72
Multi-Selecthard

An auditor is assessing an organization's cloud-native supply chain security posture. Which THREE controls should be in place to ensure artifact integrity and safety across the Code and Container layers? (Choose THREE)

Select 3 answers
A.Granting root SSH access to all developers on production worker nodes
B.Using automated dependency scanners (SCA) to identify vulnerable libraries in source code
C.Manually configuring physical server rack layouts in the data center
D.Cryptographically signing container images and verifying signatures at admission time
E.Generating and storing Software Bills of Materials (SBOMs) for application builds
AnswersB, D, E

SCA secures the Code layer dependencies.

Why this answer

Supply chain security involves software bill of materials (SBOMs), vulnerability scanning, and cryptographic image signing.

73
Multi-Selectmedium

Which THREE of the following statements regarding cloud native security principles are correct? (Choose THREE)

Select 3 answers
A.Security policies should be codified, automated, and enforced throughout the software lifecycle
B.Infrastructure as Code (IaC) templates should be scanned for misconfigurations prior to deployment
C.Developers should have unrestricted administrative access to production clusters for debugging
D.Container workloads should be treated as ephemeral and replaced rather than patched in place
E.Traditional perimeter firewalls are sufficient to secure modern multi-tenant cloud-native clusters
AnswersA, B, D

Policy-as-code and automation ensure consistent security enforcement.

Why this answer

Cloud native security emphasizes automation, ephemeral workloads, and treating infrastructure as code.

74
MCQeasy

A security engineer wants to ensure that a pod cannot escalate its privileges to gain root access on the node. Which securityContext setting should be configured to prevent privilege escalation?

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

This directly prevents processes from gaining additional privileges, such as through setuid/setgid binaries.

Why this answer

Setting allowPrivilegeEscalation: false in the container's securityContext ensures that a process cannot gain more privileges than its parent process (e.g., via setuid binaries).

75
MCQeasy

An administrator needs to store sensitive database credentials securely so that they can be mounted as environment variables inside a specific pod. Which Kubernetes object is designed for this purpose?

A.ResourceQuota
B.PersistentVolume
C.ConfigMap
D.Secret
AnswerD

Secrets are intended for sensitive configuration data.

Why this answer

Secret objects store sensitive data such as passwords, tokens, and keys.

Page 1 of 5

Page 2

All pages