Kubernetes and Cloud Native Associate (KCNA) — Question 116
What is a Service?
Answer options
- A. A static network mapping from a Pod to a port.
- B. A way to expose an application running on a set of Pods.
- C. The network configuration for a group of Pods.
- D. An NGINX load balancer that gets deployed for an application.
Correct answer: B
Explanation
The correct answer is B because a Service in Kubernetes is designed to expose applications running on a set of Pods, allowing for stable access to those applications. Option A describes a specific mapping, which is not the definition of a Service, while option C refers to network configuration but lacks the aspect of exposure. Option D incorrectly identifies a specific load balancer as a Service, which is not accurate.