Prepare for the ITGSS Certified DevOps Engineer Test. Review with flashcards and multiple-choice questions, each featuring hints and explanations. Achieve exam success with our tools!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


Which Kubernetes feature is used to control traffic between pods and clusters?

  1. Kubernetes Controllers

  2. Ingress Services

  3. Storage Classes

  4. Kubernetes Network Policies

The correct answer is: Kubernetes Network Policies

Kubernetes Network Policies are essential for controlling the flow of traffic between pods in a Kubernetes cluster. They allow administrators to specify which pods can communicate with each other and which cannot, essentially defining network traffic rules based on specified criteria, such as pod labels and namespaces. This granular control over traffic is crucial in terms of security and management of microservices within a Kubernetes environment. Network Policies can restrict traffic at both ingress (incoming traffic to a pod) and egress (outgoing traffic from a pod) levels, thereby enabling a more controlled and secure network communication pattern. By using these policies, teams can enforce compliance regulations or reduce the attack surface by limiting unnecessary communication between services. The other options, while important components of Kubernetes, do not specifically focus on traffic control between pods: - Kubernetes Controllers are responsible for managing the lifecycle of various resources in the cluster but do not directly manage network traffic. - Ingress Services are used to expose HTTP and HTTPS routes from outside the cluster to services within the cluster but do not define traffic rules among pods themselves. - Storage Classes relate to the dynamic provisioning of storage for Pods but are not concerned with network traffic management. Thus, Kubernetes Network Policies are the correct feature for controlling traffic between pods and clusters, reflecting their role in