Deploy a dockerized HTTPS web app to GKE and ensure automatic scaling. How should you deploy?
Choose an answer
Tap an option to check your answer.
Correct answer: Use the Horizontal Pod Autoscaler and enable cluster autoscaling. Use an Ingress resource to load-balance HTTPS traffic..
Why this is the answer
To deploy a dockerized HTTPS web app on GKE with automatic scaling, you need both pod-level and cluster-level autoscaling. Horizontal Pod Autoscaler (HPA) automatically scales the number of pods based on CPU utilization or other custom metrics, ensuring your application can handle varying loads. Cluster autoscaling automatically adjusts the number of nodes in your GKE cluster to match the resource requirements of your pods, preventing resource exhaustion or over-provisioning. An Ingress resource is the standard way to expose HTTP/HTTPS services externally in Kubernetes, providing advanced routing and SSL termination capabilities, which is necessary for an HTTPS web app. Using a Service of type LoadBalancer directly exposes your service via a network load balancer, which is simpler but offers less flexibility for HTTP/HTTPS routing compared to Ingress. Enabling autoscaling on the Compute Engine instance group directly bypasses Kubernetes' native autoscaling mechanisms, which is not the recommended or most efficient approach for GKE.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed