Certified Kubernetes Application Developer (CKAD) Practice Test 2025 - Free CKAD Practice Questions and Comprehensive Study Guide

Image Description

Question: 1 / 400

When you create a network policy to allow incoming traffic, what is the right setting to use?

policyTypes set to Ingress

To allow incoming traffic in a Kubernetes cluster, the correct setting is to specify the policyTypes as Ingress. Ingress network policies control the traffic that is allowed to enter a pod, meaning they define rules about what sources are permitted to communicate with the pods targeted by these policies.

When you set policyTypes to Ingress, it explicitly indicates that the defined rules should apply to incoming connections. This enables you to define which pods, namespaces, or CIDR blocks can access the application running on the pod by specifying selectors and rules.

Setting policyTypes to Egress would instead manage outgoing traffic from the pod to other destinations, which is not the purpose when you are aiming to control incoming requests. Similarly, choosing None does not provide any traffic control as it would imply no rules apply, which could lead to unrestricted access depending on your default settings. Setting both Ingress and Egress could over-complicate the scenario when you only want to focus on allowing incoming traffic specifically. Thus, specifying policyTypes set to Ingress is the precise approach for managing incoming network traffic properly.

Get further explanation with Examzify DeepDiveBeta

policyTypes set to Egress

policyTypes set to None

policyTypes set to Both

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy