Professional Cloud Developer · Free Practice Question Medium
Question 17
To expose your application publicly behind a Cloud Load Balancing HTTP(S) load balancer, you need to deploy it in a Google Kubernetes Engine (GKE) cluster.
What actions do you need to take?
- A Configure a GKE Ingress resource with LoadBalancer type.
- B Configure a GKE Ingress resource.
- C Configure a GKE Service resource with LoadBalancer type.
- D Configure a GKE Service resource.
Reveal correct answer
Correct answer: B
Explanation
In order to expose a Google Kubernetes Engine (GKE) application publicly behind a Cloud Load Balancing HTTP(S) load balancer, the recommended approach is to configure a GKE Ingress resource. An Ingress is a Kubernetes object that allows external clients to access HTTP or HTTPS services running in a cluster. It provides load balancing, SSL termination, and name-based virtual hosting. In GKE, creating an Ingress resource automatically creates a Cloud Load Balancer and configures it to route traffic to the appropriate backend services. This is the recommended way to expose a GKE application publicly using HTTPS because it provides a scalable, highly available, and secure solution.Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
You must be logged in to post a comment.
