CK.V · CKAD practice question
Which NetworkPolicy in namespace isolated denies ALL inbound traffic to all Pods in namespace isolated?
Check answer and explanation
Correct answer: spec: { podSelector: {}, policyTypes: [Ingress] }
Explanation
An empty podSelector: {} selects all Pods in the namespace, and policyTypes: [Ingress] with no ingress allow rules denies all ingress traffic to them.
Common trap
An empty podSelector: {} selects all Pods in the namespace, and policyTypes: [Ingress] with no ingress allow rules denies all ingress traffic to them.
Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.