Google Cloud Professional Cloud Developer — Question 58
Your application is deployed in a Google Kubernetes Engine (GKE) cluster. You want to expose this application publicly behind a Cloud Load Balancing HTTP(S) load balancer.
What should you do?
Answer options
- A. Configure a GKE Ingress resource.
- B. Configure a GKE Service resource.
- C. Configure a GKE Ingress resource with type: LoadBalancer.
- D. Configure a GKE Service resource with type: LoadBalancer.
Correct answer: A
Explanation
The correct option is A, as a GKE Ingress resource is specifically designed to manage external access to services within a Kubernetes cluster, enabling HTTP(S) load balancing. Options B and D involve configuring services but do not provide the Ingress capabilities necessary for HTTP(S) load balancing. Option C incorrectly suggests that Ingress can be configured with a LoadBalancer type, which is not applicable.