Conquer the CKAD Challenge 2025: Unleash Your Kubernetes Power!

Image Description

Question: 1 / 400

Which of the following is a type specified in Kubernetes network policy?

LoadBalancer

ClusterIP

Egress

In Kubernetes, network policies are used to control the traffic between pods and/or namespaces. The key function of a network policy is to specify how groups of pods are allowed to communicate with each other and with other network endpoints.

Egress refers specifically to the rules governing traffic that leaves a pod. When defining a network policy, you can designate the allowed egress traffic, which enables administrators to restrict which external services a pod can access or interact with. By setting egress rules, you can ensure that only permitted connections can be made to destinations outside the defined pods, thereby enhancing the security posture of the applications running in the cluster.

The other terms mentioned—LoadBalancer, ClusterIP, and NodePort—are types of Kubernetes services rather than network policy types. These service types mainly define how to expose applications running in pods, controlling the method of accessing those applications from outside or within the cluster. They do not directly specify traffic rules like egress does. Therefore, egress is the correct choice in the context of Kubernetes network policy.

Get further explanation with Examzify DeepDiveBeta

NodePort

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy