
Answer-first summary for fast verification
Answer: Establish a managed instance group based on the instance template. Enable autoscaling for HTTP traffic and configure the instance group as the backend service for an HTTP load balancer.
The correct answer is **C** because a managed instance group allows for autoscaling based on demand, which can then be efficiently managed behind a load balancer as a backend service. This approach leverages GCP's capabilities for load balancing and autoscaling, ensuring your application can handle varying traffic loads dynamically. - **Option A** is incorrect because it only exposes a static image, not the application. - **Option B** is incorrect because unmanaged instance groups do not support autoscaling with instance templates. - **Option D** is incorrect because unmanaged instance groups lack autoscaling features, making them unsuitable for dynamic traffic handling.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You have an instance template with a web application and need to deploy it to scale automatically based on HTTP traffic. What is the best approach?
A
Create a VM from the instance template, then a custom image from the VM’s disk. Export the image to Cloud Storage and set up an HTTP load balancer with the Cloud Storage bucket as its backend service.
B
Set up an unmanaged instance group using the instance template. Configure autoscaling for HTTP traffic and use the instance group as the backend service for an HTTP load balancer.
C
Establish a managed instance group based on the instance template. Enable autoscaling for HTTP traffic and configure the instance group as the backend service for an HTTP load balancer.
D
Deploy instances based on peak traffic estimates using the instance template. Form an unmanaged instance group with these instances and assign it as the backend service for an HTTP load balancer.
No comments yet.