
Answer-first summary for fast verification
Answer: Use the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance the HTTPS traffic.
The correct answer is A. In order to deploy a dockerized HTTPS web application on Google Kubernetes Engine (GKE) and ensure it scales automatically, you should use the Horizontal Pod Autoscaler to manage the scaling of pods, and enable cluster autoscaling to manage the scaling of nodes. Additionally, for handling HTTPS traffic, it's best to use an Ingress resource, as it is specifically designed for managing HTTP(S) load balancing in Kubernetes. The Ingress controller on GKE will create a Google Cloud HTTP(S) Load Balancer to route traffic to the application. This setup ensures that the application can handle traffic dynamically and scales effectively as per the demand.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your company has a development team that has created a dockerized HTTPS web application. The goal is to deploy this application on Google Kubernetes Engine (GKE) and ensure that it can automatically scale based on demand. Which of the following approaches should you take to deploy it appropriately on GKE?
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.
No comments yet.