CAS-004 Security Architecture Practice Question
A security team is hardening a Kubernetes cluster. Which resource should be used to define fine-grained rules for which pods can communicate with each other?
⚠ Common exam trap
CAS-005 often tests the distinction between NetworkPolicy and other Kubernetes security resources like RBAC or PodSecurityPolicy, leading candidates to choose RBAC for network segmentation.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
NetworkPolicy
NetworkPolicy is the Kubernetes resource used to define fine-grained rules for pod-to-pod communication. It acts as a firewall for pods, allowing or denying traffic based on labels, namespaces, and ports. This is essential for microsegmentation and hardening cluster security.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Admission Controller
Why it's wrong here
Admission controllers intercept API requests to validate or mutate objects at creation, governing configuration rather than pod-to-pod traffic. They are tempting because they enforce cluster policy, but NetworkPolicy objects select pods by label and define ingress and egress rules controlling which pods may communicate.
- ✗
PodSecurityPolicy
Why it's wrong here
PodSecurityPolicy governs pod specification constraints — privileged mode, host mounts, capabilities — not which pods may reach each other. It is tempting because it hardens workloads, but NetworkPolicy is the resource that selects pods by label and enforces ingress and egress communication rules.
- ✗
RBAC
Why it's wrong here
RBAC governs which users or service accounts may perform API actions, not pod-to-pod traffic; it cannot express Layer 3/4 allow rules between workloads. It is tempting because RBAC is the native Kubernetes authorisation mechanism, and it would be correct for restricting who can create, read or delete cluster resources.
- ✓
NetworkPolicy
Why this is correct
NetworkPolicy objects select pods via label selectors and enforce ingress and egress rules at layer 3/4, restricting traffic to explicitly permitted pod, namespace, or CIDR combinations. This satisfies the stem's requirement for fine-grained pod-to-pod communication control, which Kubernetes denies by default until a policy selects the pod.
About these practice questions
Courseiva writes every CAS-005 question from scratch — 973 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official CompTIA exam blueprint
This CAS-005 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CAS-005 exam.