Kubernetes and Cloud Native Associate (KCNA) — Question 161
In Kubernetes, which abstraction defines a logical set of Pods and a policy by which to access them?
Answer options
- A. Service Account
- B. NetworkPolicy
- C. Service
- D. Custom Resource Definition
Correct answer: C
Explanation
The correct answer is C, Service, as it defines a logical set of Pods and provides a stable endpoint for accessing them. Options A and D are not related to accessing Pods, while B, NetworkPolicy, is used to control the traffic flow to Pods but does not define a logical group of them.