Associate Cloud Engineer Exam QuestionsBrowse all questions from this exam

Associate Cloud Engineer Exam - Question 16


You have a single binary application that you want to run on Google Cloud Platform. You decided to automatically scale the application based on underlying infrastructure CPU usage. Your organizational policies require you to use virtual machines directly. You need to ensure that the application scaling is operationally efficient and completed as quickly as possible. What should you do?

Show Answer
Correct Answer: B

To meet the requirement of automatically scaling a single binary application based on infrastructure CPU usage while using virtual machines directly, the most efficient approach is to create an instance template and use it in a managed instance group with autoscaling configured. This setup allows the system to dynamically adjust the number of virtual machines based on real-time CPU load, ensuring operational efficiency and quick scaling response. Unlike time-based or third-party solutions, this method leverages native GCP capabilities for optimal performance and ease of implementation.

Discussion

17 comments
Sign in to comment
mohdafiuddinOption: B
Dec 27, 2020

I'll take a simple and logical approach for answering this. Let's first break down the question into key requirements - 1. automatically scale the application based on underlying infrastructure CPU usage. 2. use virtual machines directly. A. Not feasible because VMs are not used directly here. B. This is the correct answer. C. Time of Day... Easy elimination because this does not scale on CPU usage and time of day is mentioned NOWHERE. D. Third Party Tools.... Nobody would use GCP if they needed third party tools to do something as simple as scaling based on CPU usage. all popular cloud providers have native solutions for this including GCP.

kopper2019
Apr 11, 2021

and also D is out because why would I use a third party tool when is a GCP exam

RMO000
Oct 9, 2021

If the resource/solution is not available. It's a possibility.

coldparOption: B
Mar 15, 2020

correct is B as you have to use VM instances directly.

BuruguduystunstugudunstuyOption: B
Dec 29, 2022

The correct answer is Option B. Creating an instance template and using it in a managed instance group with autoscaling configured will allow you to automatically scale the application based on underlying infrastructure CPU usage and will be operationally efficient and completed quickly. Option A is incorrect because it involves using Kubernetes, which is not required in this scenario. Option C is incorrect because it involves scaling based on the time of day, which is not specified as a requirement. Option D involves using third-party tools and is not necessary for this scenario.

gcp_world123Option: B
Aug 16, 2022

Our requirements are as per the question 1. Use Virtual Machines directly (i.e. not container-based) 2. Scale Automatically 3. Scaling is efficient & is quick B is correct Managed instance groups offer autoscaling capabilities that let you automatically add or delete instances from a managed instance group based on increases or decreases in load (CPU Utilization in this case). Autoscaling helps your apps gracefully handle increases in traffic and reduce costs when the need for resources is lower. You define the autoscaling policy and the autoscaler performs automatic scaling based on the measured load (CPU Utilization in this case). Autoscaling works by adding more instances to your instance group when there is more load (upscaling), and deleting instances when the need for instances is lowered (downscaling). Ref: https://cloud.google.com/compute/docs/autoscaler

BlueJay20Option: B
Feb 4, 2023

B correct answer.

YourCloudGuruOption: B
Sep 25, 2023

The correct answer is B. This option is the most efficient way to scale your application based on CPU usage, because it uses Google Cloud's built-in autoscaling capabilities. Autoscaling allows you to specify a minimum and maximum number of instances, and Google Cloud will automatically add or remove instances as needed to maintain your desired CPU utilization. Options A, C, and D are not as efficient, because they require more manual intervention to scale your application. Here are the steps to create a managed instance group with autoscaling configured: 1. Create an instance template. 2. Create a managed instance group from the instance template. 3. Configure autoscaling for the managed instance group. Once you have configured autoscaling, the managed instance group will automatically add or remove instances as needed to maintain your desired CPU utilization.

leogorOption: B
Oct 23, 2022

B, managed instance group (VM instances) with autoscaling

ChristNOption: B
Nov 30, 2022

automatic scale

cslinceOption: B
Dec 3, 2022

correct is B

_adiiiOption: B
Dec 8, 2022

B, as MIG with autoscaling is best choice

Paras_vohrAOption: B
Jul 16, 2023

B is correct

Captain1212Option: B
Sep 1, 2023

B, is the right answer because, in b you can use the vm's directly and it will be autoconfigured

tombatlkapOption: B
Sep 14, 2023

It sounds appropriate.

Evan7557Option: C
Oct 11, 2023

Answer C

tlopsmOption: B
Nov 5, 2023

B is the answers you can autoscale based on CPU Usage. D is wrong as it suggests that the triggering is time of day

BAofBKOption: B
Nov 5, 2023

The correct answer is B

sh00001Option: B
Jun 30, 2024

The correct option is B as it manges the VMs