
Answer-first summary for fast verification
Answer: Create an instance template, and use the template in a managed instance group with autoscaling configured.
The correct answer is B. This is because creating an instance template and using it in a managed instance group with autoscaling configured leverages Google Cloud's built-in capabilities to automatically scale the application based on CPU usage. This method is operationally efficient and quick to implement. Option A involves using Google Kubernetes Engine, which does not adhere to the requirement to use virtual machines directly. Option C scales based on the time of day, which is not relevant to the requirement to scale based on CPU usage. Option D suggests using third-party tools, which is unnecessary since GCP provides a native solution for such a task.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your organization has a single binary application that needs to be deployed on Google Cloud Platform (GCP). To enhance performance, you've determined that the application should automatically scale based on the CPU usage of the underlying infrastructure. Additionally, your organizational policies mandate the direct use of virtual machines (VMs). Your goal is to ensure that the scaling process for the application is both operationally efficient and executed as rapidly as possible. What steps should you take to achieve this?
A
Create a Google Kubernetes Engine cluster, and use horizontal pod autoscaling to scale the application.
B
Create an instance template, and use the template in a managed instance group with autoscaling configured.
C
Create an instance template, and use the template in a managed instance group that scales up and down based on the time of day.
D
Use a set of third-party tools to build automation around scaling the application up and down, based on Stackdriver CPU usage monitoring.
No comments yet.