KCNA · Question #57
A Kubernetes _____ is an abstraction that defines a logical set of Pods and a policy by which to access them.
The correct answer is C. Service. A Kubernetes Service provides a stable network endpoint and access policy for a logical group of Pods, enabling network access regardless of Pod changes.
Question
A Kubernetes _____ is an abstraction that defines a logical set of Pods and a policy by which to access them.
Options
- ASelector
- BController
- CService
- DJob
How the community answered
(29 responses)- B3% (1)
- C97% (28)
Why each option
A Kubernetes Service provides a stable network endpoint and access policy for a logical group of Pods, enabling network access regardless of Pod changes.
A Selector is a mechanism used by Services (and other resources) to identify a set of Pods based on labels, but it is not the abstraction itself that defines the access policy.
A Controller (e.g., Deployment, ReplicaSet) manages the lifecycle and desired state of Pods, but it does not define the network access policy to a logical set of Pods.
A Kubernetes Service is an abstract way to expose an application running on a set of Pods as a network service. It defines a logical set of Pods, typically identified by a Label Selector, and a policy to access them (e.g., ClusterIP, NodePort, LoadBalancer).
A Job is a Kubernetes resource that creates one or more Pods and ensures a specified number of them successfully terminate, typically for batch processing, not for defining network access policies.
Concept tested: Kubernetes Service definition
Source: https://kubernetes.io/docs/concepts/services-networking/service/
Topics
Community Discussion
No community discussion yet for this question.