KCNA · Question #93
What is a Service?
The correct answer is B. A way to expose an application running on a set of Pods. A Kubernetes Service is an abstraction that defines a logical set of Pods and a policy by which to access them, primarily used to expose network applications.
Question
What is a Service?
Options
- AA static network mapping from a Pod to a port.
- BA way to expose an application running on a set of Pods.
- CThe network configuration for a group of Pods.
- DAn NGINX load balancer that gets deployed for an application.
How the community answered
(39 responses)- B92% (36)
- C3% (1)
- D5% (2)
Why each option
A Kubernetes Service is an abstraction that defines a logical set of Pods and a policy by which to access them, primarily used to expose network applications.
Services are dynamic and can load balance across multiple Pods, not just a static mapping to a single Pod.
A Service in Kubernetes acts as a stable network endpoint for a group of Pods, providing a consistent way to access an application even as Pods are created, deleted, or moved, thereby abstracting away their ephemeral IP addresses.
A Service defines how to *access* Pods, not the network *configuration* of the Pods themselves; Pod network configuration is handled by the CNI plugin.
While a Service might leverage a load balancer for external exposure, a Service itself is a Kubernetes API object, not specifically an NGINX load balancer.
Concept tested: Kubernetes Service purpose
Source: https://kubernetes.io/docs/concepts/services-networking/service/
Topics
Community Discussion
No community discussion yet for this question.