KCNA practice question 24 of 25
How many different Kubernetes service types can you define?
Full set: 240 questionsKubernetes defines four distinct service types to control how a set of Pods is exposed as a network service. These types are specified in the spec.type field of the Service manifest. The four types are: ClusterIP (default, internal exposure), NodePort (exposes the service on each node's IP at a static port), LoadBalancer (exposes the service externally using a cloud provider's load balancer), and ExternalName (maps the service to a CNAME record). Each type serves a different networking purpose, from internal-only communication to external access.
A. This is incorrect; there are more than two service types available in Kubernetes.
B. This is incorrect; it omits one of the four standard service types.
D. This is incorrect; Kubernetes currently defines only four service types.
1. Kubernetes Documentation. (n.d.). Service. Kubernetes. Retrieved from https://kubernetes.io/docs/concepts/services-networking/service/. (See the "Publishing Services (ServiceTypes)" section, which lists and describes all four types).
3. Beyer, B., Jones, C., Petoff, J., & Murphy, N. R. (2016). Site Reliability Engineering. O'Reilly Media. Chapter 19, "Running SRE," discusses Kubernetes networking primitives, including the different service types.
Keep practicing
Take the free KCNA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other KCNA practice questions
- Question 1Which of these commands is used to retrieve the documentation and field definitions for a…
- Question 2Kubernetes Secrets are specifically intended to hold confidential dat a. Which API object…
- Question 3What is the practice of bringing financial accountability to the variable spend model of …
- Question 6In Kubernetes, which command is the most efficient way to check the progress of a Deploym…
- Question 7What Kubernetes component handles network communications inside and outside of a cluster,…
- Question 8Kubernetes supports multiple virtual clusters backed by the same physical cluster. These …
