Which two of the following are valid ways to expose a Deployment externally to the internet? (Select TWO)
LoadBalancer provisions an external load balancer and assigns a public IP.
Why this answer
Option C is correct because a Service of type LoadBalancer provisions an external load balancer (e.g., in cloud environments like AWS, GCP, or Azure) that assigns a public IP or DNS name, making the Deployment directly accessible from the internet. This is a standard method for exposing services externally in Kubernetes.
Exam trap
The trap here is that candidates often confuse Ingress as a standalone external exposure method, forgetting that Ingress requires a backing Service (typically NodePort or LoadBalancer) to actually route traffic from the internet.