Q12 AKS Domain 1 · 20–25% of exam

An application requires the same pod to handle both incoming HTTP and TCP traffic. Which Kubernetes Service type exposes multiple ports?

  1. A ClusterIP
  2. B NodePort
  3. C LoadBalancer (correct answer)
  4. D ExternalName

Shortcut: LoadBalancer services can expose multiple ports. ports array. Each port gets its own rule on the Azure Load Balancer.

LoadBalancer services can expose multiple ports. You define them in the spec.ports array. Each port gets its own rule on the Azure Load Balancer.