DockerDocker
DCA · Question #65
DCA Question #65: Real Exam Question with Answer & Explanation
The correct answer is B: No. The traffic from a pod labeled tier: backend to a pod labeled tier: frontend will not be blocked by the NetworkPolicy.
Submitted by asante_acc· Apr 18, 2026Networking
Question
The Kubernetes yaml shown below describes a networkPolicy. Will the networkPolicy BLOCK this traffic? Solution: a request issued from a pod bearing the tier: backend label, to a pod bearing the tier: frontend label
Options
- AYes
- BNo
Explanation
The traffic from a pod labeled tier: backend to a pod labeled tier: frontend will not be blocked by the NetworkPolicy.
Common mistakes.
- A. If the traffic were blocked, the NetworkPolicy would need to select the destination pod and lack an
ingressrule permitting traffic fromtier: backend, or select the source pod and lack anegressrule permitting traffic totier: frontend.
Concept tested. Kubernetes NetworkPolicy ingress/egress rules
Reference. https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-networkpolicy-resource
Topics
#Kubernetes NetworkPolicy#Ingress Rules#Pod Label Selectors#Network Security
Community Discussion
No community discussion yet for this question.