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

CKA study material · question 765 of 1000

Which two things can a NetworkPolicy not do? Choose two.

  1. Target a Service by name
  2. Select peers by Pod label
  3. Log the connections it blocks
  4. Restrict traffic by port
Show the answer

Answer: A. Target a Service by name
C. Log the connections it blocks

NetworkPolicy has no way to name a Service or a node by its Kubernetes identity, and no logging of accepted or blocked connections. Label selection and port restriction are core to it.

Source: Network Policies (Kubernetes) — What you can't do with network policies

Challenge yourself on this topic → Study as cards