Certified Kubernetes Application Developer (CKAD) Practice Test

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

Enhance your skills for the CKAD exam. Study with curated quizzes and detailed explanations. Prepare effectively for your success!

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 service type provides a way to access a service from outside the cluster?

  1. ClusterIP

  2. LoadBalancer

  3. NodePort

  4. Ingress

The correct answer is: NodePort

The option that correctly describes a service type that allows access from outside the cluster is NodePort. A NodePort service allocates a port on each node in the cluster, which can be used to access the service from outside the cluster. When you create a NodePort service, Kubernetes automatically assigns a port number (typically in the range of 30000-32767), and it can be accessed using the IP address of any worker node along with that port number. This method is simple and effective for exposing applications, making it possible for external clients to interact with services running within the Kubernetes cluster. NodePort services are often used in scenarios where a straightforward external access method is needed without the complexity of additional routing or load balancing configurations. While LoadBalancer also allows access from outside the cluster by provisioning a cloud load balancer, it is specific to cloud environments and requires support from the underlying infrastructure. Ingress, on the other hand, provides more sophisticated HTTP routing capabilities but typically works in conjunction with an Ingress controller. ClusterIP is solely for internal communication within the cluster and does not allow external access.