Exam KCNA All QuestionsBrowse all questions from this exam
Question 59

What is the role of a NetworkPolicy in Kubernetes?

    Correct Answer: B

    A NetworkPolicy in Kubernetes is used to define how groups of pods are allowed to communicate with each other and other network endpoints. One of its primary roles is to classify pods as isolated and non-isolated, thus determining which pods can receive and send traffic to other pods or network endpoints.

Discussion
pulsefireOption: B

B https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-two-sorts-of-pod-isolation:~:text=There%20are%20two,pod%20to%20another.

omerco61Option: B

B corret. https://kubernetes.io/docs/concepts/services-networking/network-policies/#the-two-sorts-of-pod-isolation