Certified Kubernetes Application Developer (CKAD) Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the Certified Kubernetes Application Developer (CKAD) Exam. Gain confidence with flashcards and multiple-choice questions, complete with hints and explanations. Achieve your certification with ease!

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 of the following is a type specified in Kubernetes network policy?

  1. LoadBalancer

  2. ClusterIP

  3. Egress

  4. NodePort

The correct answer is: 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.