Networkpolicy — Certified Kubernetes Administrator (CKA) Practice Questions
A NetworkPolicy is a Kubernetes resource that uses label selectors to control which pods and namespaces are allowed to send or receive traffic at the IP and port level. By default, Kubernetes allows all pod-to-pod communication, and NetworkPolicies are the mechanism to enforce least-privilege network segmentation within the cluster. CKA candidates must be able to write ingress and egress rules, understand the additive nature of multiple policies, and know that a CNI plugin capable of enforcing NetworkPolicies must be installed for the rules to take effect.
Free questions on networkpolicy
What is the purpose of a NetworkPolicy in Kubernetes?
Free question · medium · full answer + explanation
More networkpolicy questions in the full bank
- How do you test if a NetworkPolicy is correctly blocking traffic? Unlock answer & explanation →
- What does a NetworkPolicy selector field target? Unlock answer & explanation →
- Pod-to-pod communication fails within the cluster. What could be wrong? Unlock answer & explanation →