Kubernetes and Cloud Native Associate (KCNA) — Question 35

Can a Kubernetes Service expose multiple ports?

Answer options

Correct answer: B

Explanation

The correct answer is B because Kubernetes Services can expose multiple ports, but each port must have a unique name to avoid ambiguity. Options A and D are incorrect as they state that only one port can be exposed, which is not true. Option C is misleading because while different port numbers can be used, naming each port is also a requirement.