Which of the following lists all four types of Kubernetes Services?

Study for the Kubernetes Certified Network Administrator Exam. Our test offers comprehensive flashcards, multiple-choice questions, and detailed explanations. Be confident for your exam!

Multiple Choice

Which of the following lists all four types of Kubernetes Services?

Explanation:
Understanding Kubernetes Service types is essential for knowing how workloads are exposed inside and outside the cluster. The four standard service types are ClusterIP, NodePort, LoadBalancer, and ExternalName. ClusterIP gives an internal, cluster-internal IP for in-cluster access. NodePort adds a port on every node so you can reach the service from outside the cluster using a node IP and port. LoadBalancer requests an external load balancer from the cloud provider to route traffic to the service. ExternalName maps the service to an external DNS name, effectively pointing to an external service. Other options mix in items that aren’t service types. Ingress is a separate resource used to expose HTTP(S) traffic, not a Service type. PodIP isn’t a service type. Headless is a special configuration of a Service (setting clusterIP to None) rather than its own distinct type. So the correct set is ClusterIP, NodePort, LoadBalancer, ExternalName.

Understanding Kubernetes Service types is essential for knowing how workloads are exposed inside and outside the cluster. The four standard service types are ClusterIP, NodePort, LoadBalancer, and ExternalName. ClusterIP gives an internal, cluster-internal IP for in-cluster access. NodePort adds a port on every node so you can reach the service from outside the cluster using a node IP and port. LoadBalancer requests an external load balancer from the cloud provider to route traffic to the service. ExternalName maps the service to an external DNS name, effectively pointing to an external service.

Other options mix in items that aren’t service types. Ingress is a separate resource used to expose HTTP(S) traffic, not a Service type. PodIP isn’t a service type. Headless is a special configuration of a Service (setting clusterIP to None) rather than its own distinct type. So the correct set is ClusterIP, NodePort, LoadBalancer, ExternalName.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy