Question 7 of 10Pro Only

What are Network Policies in Kubernetes, and how do they control traffic flow? Provide an example of a common network policy use case.

Sample answer preview

Network Policies are Kubernetes resources that control the traffic flow between pods, namespaces, and external endpoints. They act as a firewall for your pods, allowing you to specify which traffic is allowed to flow in and out.

Network Policypod selectoringressegressCNIdefault deny

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more DevOps Engineer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime