Study. uk . com
  1. Home
  2. All questions
  3. Question 758

CKA study material · question 758 of 1000

Two NetworkPolicies select the same Pod and permit different ingress sources. What may reach the Pod?

  1. Only the sources both policies permit
  2. Only the sources of whichever policy was created first
  3. The sources either policy permits
  4. Nothing, because the policies conflict
Show the answer

Answer: C. The sources either policy permits

NetworkPolicies are additive and never conflict: what is allowed is the union of every applicable policy, so evaluation order cannot change the outcome.

Source: Network Policies (Kubernetes) — The two sorts of pod isolation

Challenge yourself on this topic → Study as cards