Certified Kubernetes Application Developer (CKAD) 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

What port on the service itself is defined in a NodePort service specification?

targetPort

nodePort

port

In a NodePort service specification, the port defined on the service itself is referred to as the `port`. This is the port that the service listens on internally within the cluster and is what clients within the cluster use to access the service. When a request is made to this port, it gets routed to the appropriate pods based on their labels.

The `nodePort`, on the other hand, is a specific port that Kubernetes assigns to the service on each node in the cluster, allowing external traffic to access the service at that port via the node's IP address. The `targetPort` specifies the port on the container that the traffic should be directed to once it reaches the appropriate pod.

The term `servicePort` is not standard in the context of Kubernetes service specifications, leading to confusion regarding its use. Thus, understanding that the `port` parameter is integral to the functionality of the service helps clarify the role it plays in allowing internal communication within a Kubernetes cluster.

Get further explanation with Examzify DeepDiveBeta

servicePort

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy