Courseiva

KCSA · topic practice

Kubernetes Security Fundamentals practice questions

This domain covers how Kubernetes itself enforces security: RBAC authorization, Pod Security Standards and Admission, Secrets handling, NetworkPolicy segmentation, and workload isolation primitives. KCSA questions here are scenario-based, asking you to pick the correct manifest section, resource kind, or policy behavior rather than recall definitions, so you must map a stated requirement to the exact Kubernetes object and field that satisfies it.

Courseiva uses original exam-style practice questions designed for learning and revision. The goal is to understand the concepts, recognise exam patterns, and improve through explanations — not memorise copied exam dumps.

Editorial oversight:Johnson Ajibi· MSc IT Security, IEEE Senior Member
20 questionsDomain: Kubernetes Security Fundamentals

What the exam tests

What to know about Kubernetes Security Fundamentals

Be able to read a requirement and name the exact Kubernetes object and field: Role/RoleBinding for namespaced RBAC, envFrom or secretKeyRef for Secrets, NetworkPolicy for segmentation, and Pod Security admission labels for enforcement. The key skill is matching scope and default behavior correctly.

Choosing the correct Pod spec section for envFrom, secretKeyRef, and volume-mounted Secrets

RBAC verbs, Role versus ClusterRole, RoleBinding, and namespace-scoped read-only access

NetworkPolicy default allow/deny behavior, ingress and egress rules, and podSelector semantics

Pod Security Standards levels: privileged, baseline, restricted, and their enforcement modes

Watch out for

Common Kubernetes Security Fundamentals exam traps

  • ▸Confusing Role with ClusterRole: a namespaced Role plus RoleBinding grants access only inside that namespace, not cluster-wide.
  • ▸Assuming NetworkPolicy denies all traffic by default; with no policy selecting a pod, all ingress and egress is allowed.
  • ▸Putting Secrets in plain env values or args instead of envFrom/secretKeyRef, or forgetting base64 decoding of Secret data.

Practice set

Kubernetes Security Fundamentals questions

20 questions · select your answer, then reveal the explanation

Which admission controller plugin is responsible for intercepting requests to modify objects and checking whether the user has sufficient RBAC permissions?

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

Which THREE features are enforced or verified by the Kubernetes 'restricted' Pod Security Standard profile?

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

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?

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

An administrator wishes to create a NetworkPolicy that allows incoming traffic from any pod in any namespace, provided those pods have the label 'environment=production'. How should the NetworkPolicy 'ingress' rule be structured?

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

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)

An engineer has written a NetworkPolicy that selects pods with the label app=backend. The policy specifies an ingress rule allowing traffic from pods labeled app=frontend in the same namespace, but does not specify any egress rules. What is the network behavior for outgoing traffic from the backend pods?

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

An administrator is hardening a Kubernetes cluster against container breakout vulnerabilities and node compromise. Which THREE security practices should be implemented?

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?

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?

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?

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?

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?

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?

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 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?

Free account

Track your progress over time

Create a free account to save your results and see which topics improve across sessions.

Focused Kubernetes Security Fundamentals sessions

Start a Kubernetes Security Fundamentals only practice session

Every question in these sessions is drawn from the Kubernetes Security Fundamentals domain — nothing else.

Related practice questions

Related KCSA topic practice pages

Move into related areas when this topic feels solid.

Frequently asked questions

What does the KCSA exam test about Kubernetes Security Fundamentals?
Be able to read a requirement and name the exact Kubernetes object and field: Role/RoleBinding for namespaced RBAC, envFrom or secretKeyRef for Secrets, NetworkPolicy for segmentation, and Pod Security admission labels for enforcement. The key skill is matching scope and default behavior correctly.
How should I use these practice questions?
Select your answer before revealing the explanation. Then read why each option is right or wrong — this active recall approach builds retention far faster than re-reading notes.
Can I practise just Kubernetes Security Fundamentals questions in a focused session?
Yes — the session launcher on this page draws every question from the Kubernetes Security Fundamentals domain. Use a 10-question session first to gauge your baseline, then move to 20 or 30 once the weak spots are clear.
Where can I practise other KCSA topics?
Use the topic links above to move to related areas, or go back to the KCSA question bank to see all topics.
Are these real exam questions or dumps?
These are original practice questions written to test the same concepts the KCSA exam covers. They are not copied from any real exam or dump site.