KCNA · Question #24
What is the name of the Kubernetes resource used to expose an application?
The correct answer is B. Service. The Kubernetes Service resource is used to abstractly expose an application running on a set of Pods as a network service with a stable IP address and DNS name.
Question
What is the name of the Kubernetes resource used to expose an application?
Options
- APort
- BService
- CDNS
- DDeployment
How the community answered
(23 responses)- A4% (1)
- B91% (21)
- C4% (1)
Why each option
The Kubernetes Service resource is used to abstractly expose an application running on a set of Pods as a network service with a stable IP address and DNS name.
A port is a network concept used within a Service definition, but it is not the Kubernetes resource itself that exposes the application.
A Kubernetes Service defines a logical set of Pods and a policy by which to access them, providing a stable network endpoint and load balancing for applications running inside the cluster or exposed externally.
DNS (Domain Name System) is a naming service that a Kubernetes Service leverages to provide discoverability, but it is not the resource itself that facilitates application exposure.
A Deployment manages the lifecycle and scaling of Pods but does not directly provide a stable network endpoint for exposing the application.
Concept tested: Kubernetes Service for application exposure
Source: https://kubernetes.io/docs/concepts/services-networking/service/
Topics
Community Discussion
No community discussion yet for this question.