Google Cloud Professional Cloud Architect — Question 39
A development team at your company has created a dockerized HTTPS web application. You need to deploy the application on Google Kubernetes Engine (GKE) and make sure that the application scales automatically.
How should you deploy to GKE?
Answer options
- A. Use the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance the HTTPS traffic.
- B. Use the Horizontal Pod Autoscaler and enable cluster autoscaling on the Kubernetes cluster. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.
- C. Enable autoscaling on the Compute Engine instance group. Use an Ingress resource to load-balance the HTTPS traffic.
- D. Enable autoscaling on the Compute Engine instance group. Use a Service resource of type LoadBalancer to load-balance the HTTPS traffic.
Correct answer: A
Explanation
The correct answer is A because using the Horizontal Pod Autoscaler allows the application to scale based on demand, and enabling cluster autoscaling adjusts the number of nodes in the cluster accordingly. Options B, C, and D do not provide both the horizontal scaling of pods and the appropriate load balancing for HTTPS traffic as effectively as option A.