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

CKA study material · question 259 of 1000

A NetworkPolicy omits policyTypes but contains egress rules. Which types are set?

  1. Neither, so the policy has no effect
  2. Ingress only
  3. Egress only
  4. Both Ingress and Egress
Show the answer

Answer: D. Both Ingress and Egress

Ingress is always set when policyTypes is omitted, and Egress is added when the policy has egress rules.

Source: Network Policies (Kubernetes) — The NetworkPolicy resource

Challenge yourself on this topic → Study as cards