CNCF / Linux Foundation · Free Practice Questions · Last reviewed May 2026
36real exam-style questions organised by domain, each with the correct answer highlighted and a plain-English explanation of why it's right — and why the others are wrong.
Under the Pod Security Standards, a developer attempts to deploy a pod with 'privileged: true' in a namespace labeled with 'pod-security.kubernetes.io/enforce=baseline'. What will happen?
The admission controller will reject the pod creation request with an error.
Privileged mode violates the baseline policy, causing the admission controller to deny the request.
The pod will run in a restricted sandbox environment automatically.
The pod will be created successfully, but a warning will be logged in the audit log.
The kubelet will automatically strip the 'privileged: true' setting and run the pod safely.
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?
NetworkPolicy
NetworkPolicies control ingress and egress traffic for pods.
Ingress
FirewallRule
Service
You are auditing a Kubernetes cluster and notice that a specific ServiceAccount has been granted the 'impersonate' verb on users. What security risk does this permission introduce?
It automatically generates valid X.509 client certificates for cluster nodes.
It allows the pod to intercept network traffic of other pods on the same node.
It permits the ServiceAccount to bypass the Kubernetes API server and write directly to etcd.
It allows the ServiceAccount to act as any user or service account, leading to privilege escalation.
Impersonation grants the ability to assume other identities, bypassing standard RBAC restrictions if high-privilege identities can be assumed.
An application pod requires read access to secrets in the 'production' namespace. You need to bind a pre-existing ClusterRole named 'secret-reader' to a service account named 'app-sa' in that namespace. Which RBAC resource accomplishes this?
ClusterRoleBinding referencing the Role 'secret-reader'
NamespaceRoleBinding referencing the ClusterRole
RoleBinding referencing the ClusterRole 'secret-reader'
A RoleBinding in the target namespace can bind to a ClusterRole, granting access scoped to that namespace.
ServiceAccountBinding referencing the ClusterRole
You have deployed a NetworkPolicy in a namespace that selects backend pods, defining an 'ingress' rule with a 'from' block. No other NetworkPolicies exist in the namespace. What is the default behavior for traffic from pods not matched by the 'from' selector?
All ingress traffic remains allowed by default.
The policy fails to apply because an egress rule must also be defined.
Only traffic from other namespaces is denied; same-namespace traffic is still allowed.
All ingress traffic from unmatched pods is denied.
NetworkPolicies are additive and restrictive; defining an ingress rule makes the targeted pods default-deny for unspecified sources.
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?
Create a MutatingWebhookConfiguration that injects security contexts into every pod spec.
Apply labels such as 'pod-security.kubernetes.io/enforce=restricted' to the namespace metadata.
Namespace labels are the standard method for configuring the Pod Security admission controller.
Modify the kubelet configuration file on every worker node to enable restricted mode.
Deploy a custom PodSecurityPolicy object targeting the namespace selector.
Want more Kubernetes Security Fundamentals practice?
Practice this domainUnder the cloud native shared responsibility model, who is responsible for ensuring that the underlying physical servers and hardware security modules (HSMs) are secure and compliant?
The container registry administrator
The application developer
The Kubernetes administrator
The cloud service provider
The provider is responsible for security 'of' the cloud, including physical hardware.
An enterprise is deploying a zero-trust architecture across their Kubernetes environments. They mandate that all container images must be signed using Cosign and verified at admission time using Kyverno. This technical control directly hardens which of the 4Cs layers?
Code layer
Cloud layer
Container layer
Image signatures and registry verification protect the integrity of the Container layer.
Cluster layer
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?
Container base images like Alpine Linux
Application dependency libraries in package.json
Application dependencies and source code belong to the Code layer.
Kubernetes API server authorization policies
Cloud provider IAM roles
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?
Cloud layer
Cluster layer
Container layer
Code layer
Third-party library vulnerabilities are addressed at the Code layer via dependency scanning and patching.
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?
Container
Cluster
Code
Shift-left security primarily targets the Code layer by scanning source code and dependencies early.
Cloud
An organization uses AWS IAM to restrict access to their EKS cluster control plane endpoints. According to the shared responsibility model, configuring and maintaining these access entries and cluster RBAC roles is the responsibility of whom?
The Linux kernel maintainers
The cloud provider only
The CNCF security committee
The customer
Customers are responsible for configuring IAM policies and Kubernetes RBAC.
Want more Overview OF Cloud Native Security practice?
Practice this domainAn 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?
ValidatingWebhookConfiguration
NetworkPolicy
ClusterRoleBinding
ClusterRoleBindings assign permissions to subjects across the cluster, enforcing RBAC.
ResourceQuota
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?
Clusters
Cloud
Cloud represents the foundational infrastructure and physical data centers.
Code
Containers
According to the CIS Kubernetes Benchmark, anonymous requests to the Kubernetes API server should be disabled. Which kube-apiserver flag enforces this setting?
--authorization-mode=Node,RBAC
--anonymous-auth=false
Setting anonymous-auth to false rejects unauthenticated requests.
--enable-admission-plugins
--insecure-port=0
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?
Log shippers
Packet analyzers
Static code analysis and admission controllers
Admission controllers enforce policy compliance at deployment time.
Kernel debuggers
A security team is implementing NIST SP 800-190 guidelines for container runtime security. Which kernel feature is leveraged by container runtimes to restrict system calls and meet least-privilege execution requirements?
Seccomp profiles
Seccomp restricts the system calls a containerized process can make.
cgroups v2
AppArmor MAC profiles
Namespaces
A security engineer is reviewing the NIST SP 800-190 container security application and needs to identify the primary control category for securing container image registries. Under NIST guidelines, which layer is primarily responsible for verifying the integrity of images before deployment?
Host OS security
Registry security
Registry security involves securing image repositories and verifying image integrity/provenance.
Runtime orchestration security
Cluster networking
Want more Compliance And Security Frameworks practice?
Practice this domainYou 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?
--auto-tls=true for all endpoints.
--client-cert-auth=true and --peer-client-cert-auth=true along with valid CA and key pair paths.
Enabling client certificate authentication forces both clients (like the API server) and cluster peers to present valid, signed certificates.
--insecure-transport=false combined with HTTP proxy routing.
--cipher-suites=TLS_RSA_WITH_AES_128_CBC_SHA
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?
Configure an RBAC ClusterRoleBinding for system:anonymous.
Enable PodSecurityStandards in enforcing mode.
Apply a NetworkPolicy blocking ingress traffic to port 1055.
Set readOnlyPort: 0 in the kubelet configuration file.
Setting the readOnlyPort to 0 completely disables the insecure read-only port.
When configuring the Kubernetes API server authorization modes, which mode evaluates requests against Kubernetes RBAC policies?
RBAC
RBAC is the standard authorization mode for defining fine-grained user and service account permissions.
Webhook
Node
AlwaysAllow
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?
It bypasses all authentication and authorization modules, granting full administrative access to anyone who reaches the port.
The insecure port does not enforce authn/authz, making it a critical vulnerability.
It prevents the kubelet from communicating with the control plane nodes.
It restricts API access exclusively to read-only operations.
It forces all clients to downgrade their TLS encryption cipher suites to plaintext.
A security auditor discovers that anonymous authentication is accidentally enabled on the Kubernetes API server, allowing unauthenticated read access to cluster health endpoints. Which API server flag must be modified to disable anonymous requests?
--secure-port=0
--authorization-mode=AlwaysAllow
--anonymous-auth=false
This is the correct flag to disable anonymous requests on the kube-apiserver.
--disable-anonymous=true
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?
Node
Enabling the Node authorizer ensures kubelets operate under the principle of least privilege regarding node resources.
ABAC
AlwaysDeny
PodSecurity
Want more Kubernetes Cluster Component Security practice?
Practice this domainAn 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?
CoreDNS
kube-proxy
kube-scheduler
kube-apiserver
All administrative commands, manifest submissions, and internal component communications flow through the kube-apiserver.
A cluster administrator wants to mitigate supply chain risks stemming from vulnerable base images used by developers. Where in the software lifecycle should vulnerability scanning ideally be integrated first to shift-left security?
Manual inspection of etcd database backups
Configuring kube-dns forwarding rules to external resolvers
Setting up PersistentVolume backup retention policies
CI/CD pipeline build and image registry push stages
Scanning container images inside the CI/CD pipeline prevents vulnerable artifacts from ever being published to registries or deployed to production clusters.
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?
Configuring Horizontal Pod Autoscalers to limit request rates
Enabling Pod Security Standards in baseline mode across all namespaces
Mandatory client certificate authentication and rigorous RBAC authorization on API endpoints
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.
Disabling the Kubelet read-only port on all worker nodes
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?
NamespaceLifecycle admission plugin
ValidatingAdmissionWebhook executing a policy engine integrated with Cosign image signature verification
Using a validating webhook with a policy engine allows checking cryptographic signatures against a trusted public key before allowing pod creation.
DefaultStorageClass admission controller
LimitRanger
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?
Denial of Service via CPU exhaustion
Tampering of container image layers at rest
Elevation of Privilege and Information Disclosure
Sharing the host network allows bypassing namespace isolation, letting the pod capture host traffic and access local network services bound to localhost.
Repudiation of database audit logs
A security team discovers that an application container running as root has successfully mounted the host's Docker socket (`/var/run/docker.sock`). What is the primary attack vector enabled by this misconfiguration?
Bypassing Kubernetes NetworkPolicies across different worker nodes
Direct modification of the etcd database state via local unix socket tunneling
Container escape and full node takeover by orchestrating new sibling containers with host mounts
The Docker socket is the API endpoint for the container engine; sending commands to it lets the container spawn arbitrary containers on the underlying host node.
Automatic escalation of RBAC roles assigned to the API server
Want more Kubernetes Threat Model practice?
Practice this domainA 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?
/var/log/containers/
/etc/kubernetes/manifests/
/var/lib/kubelet/seccomp/
Kubelet and container runtimes look for localhost seccomp profiles relative to the kubelet root directory's seccomp folder.
/etc/containerd/certs.d/
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?
readOnlyRootFilesystem: false
allowPrivilegeEscalation: false
Setting allowPrivilegeEscalation to false ensures that child processes cannot gain more privileges than their parent process.
privileged: true
runAsNonRoot: false
You are troubleshooting a container image vulnerability scan report that flagged a high-severity CVE in a base image layer. The development team wants to ensure that vulnerable container images are automatically prevented from being deployed to any namespace in the cluster. Which Kubernetes mechanism should you implement?
Enable resource quotas on the default namespace
Rotate the cluster certificate authority
Add network policies to restrict outbound CVE database queries
Configure a validating admission webhook to inspect image metadata and reject deployments with known CVEs
Validating admission webhooks can block pods that use images with unresolved vulnerabilities.
Your security team has discovered that an application container image contains outdated packages with known remote code execution vulnerabilities. Which phase of the software development lifecycle is the most effective place to initially scan and remediate these vulnerabilities?
Node OS package manager updates
Kubelet container startup phase
CI/CD pipeline build stage
Scanning during the CI/CD build phase catches vulnerabilities early and prevents vulnerable images from entering registries.
Kubernetes API server audit logging
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?
ingress.kubernetes.io/backend-protocol
nginx.ingress.kubernetes.io/auth-tls-secret
This specific annotation tells the NGINX Ingress controller which secret contains the CA certificate for validating client certificates.
kubernetes.io/ingress.class
nginx.ingress.kubernetes.io/ssl-redirect
An organization requires that all container images pulled into a Kubernetes cluster are cryptographically signed and verified before execution. Which tool integrates with Kubernetes admission control to enforce signature verification using Cosign?
Cilium CNI plugin
Metrics-server
Kyverno policy engine
Kyverno supports native image verification rules using Cosign signatures and public keys.
Helm package manager
Want more Platform Security practice?
Practice this domainThe KCSA exam is performance-based — there are no multiple-choice questions. It is a hands-on lab exam completed within 120 minutes. You complete practical tasks in a live or simulated environment. Courseiva practice questions cover the underlying concepts.
Hands-on labs and command-line tasks in a live Kubernetes cluster.
The exam covers 6 domains: Kubernetes Security Fundamentals, Overview OF Cloud Native Security, Compliance And Security Frameworks, Kubernetes Cluster Component Security, Kubernetes Threat Model, Platform Security. Questions are weighted by domain — higher-weight domains appear more on your actual exam.
No. These are original exam-style practice questions written against the official CNCF / Linux Foundation KCSA exam objectives. They are not copied from the real exam. Courseiva focuses on genuine understanding, not memorisation of braindumps.
Courseiva tracks your accuracy per domain and routes you toward weak areas automatically. Free, no account required.