Bird
0
0

What is the primary purpose of a Kubernetes NetworkPolicy?

easy📝 Conceptual Q11 of 15
Kubernetes - Networking
What is the primary purpose of a Kubernetes NetworkPolicy?
ATo control traffic flow between pods and namespaces
BTo schedule pods on specific nodes
CTo manage storage volumes for pods
DTo monitor pod resource usage
Step-by-Step Solution
Solution:
  1. Step 1: Understand NetworkPolicy role

    Kubernetes NetworkPolicy is designed to control how pods communicate with each other and with other network endpoints.
  2. Step 2: Identify correct function

    It specifically allows or blocks traffic between pods and namespaces to improve security.
  3. Final Answer:

    To control traffic flow between pods and namespaces -> Option A
  4. Quick Check:

    NetworkPolicy controls pod traffic = A [OK]
Quick Trick: NetworkPolicy controls pod communication, not scheduling or storage [OK]
Common Mistakes:
  • Confusing NetworkPolicy with pod scheduling
  • Thinking NetworkPolicy manages storage
  • Assuming NetworkPolicy monitors resources

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes