Google Cloud Associate Cloud Engineer — Question 70

You are using Google Kubernetes Engine with autoscaling enabled to host a new application. You want to expose this new application to the public, using HTTPS on a public IP address. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because creating a Kubernetes Service of type NodePort along with a Kubernetes Ingress allows for proper exposure of the application via a Cloud Load Balancer, enabling HTTPS access. Option B is incorrect as ClusterIP services are not accessible from outside the cluster. Option C does not provide a scalable solution and requires configuring each node's IP, which is not efficient. Option D introduces unnecessary complexity with HAProxy when Kubernetes Ingress can handle load balancing effectively.