easyMultiple ChoiceObjective-mapped
Google ACE Deploy a web application on Compute Engine Practice Question
A company wants to deploy a web application on Compute Engine. They expect variable traffic and want to automatically add or remove virtual machine instances based on CPU utilization. What is the recommended approach?
⚠ Common exam trap
Google Cloud often tests the distinction between managed and unmanaged instance groups, where candidates mistakenly think unmanaged groups can be autoscaled, but only managed instance groups support autoscaling policies.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use a managed instance group with an autoscaling policy based on CPU utilization
A managed instance group (MIG) with an autoscaling policy based on CPU utilization is the recommended approach because it automatically adjusts the number of VM instances in response to real-time CPU load, ensuring the application can handle variable traffic without manual intervention. This aligns with Google Cloud's best practices for elastic scaling of stateless web applications on Compute Engine.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a single large instance and rely on Cloud Load Balancing
Why it's wrong here
A single large instance can only scale vertically, hitting the machine type's vCPU and memory ceiling, and Cloud Load Balancing merely routes traffic to whatever backend instances exist—it does not create new VMs or trigger horizontal scaling. This architecture also creates a single point of failure, since a single instance outage takes the entire application down unless a separate manual failover process is implemented.
- ✗
Use an unmanaged instance group and manually add or remove instances
Why it's wrong here
Unmanaged instance groups require you to manually create, provision, and register each VM instance, and they do not support autoscaling at all. You would have to continuously monitor CPU utilization yourself and then manually add or remove instances, which defeats the purpose of decoupling scaling from operational effort. Google Cloud Autoscaler only works with managed instance groups, so an unmanaged group cannot automatically adjust capacity in response to load.
- ✓
Use a managed instance group with an autoscaling policy based on CPU utilization
Why this is correct
A managed instance group (MIG) automatically creates and manages instances from an instance template, and attaching an autoscaler with a CPU utilization target lets the group dynamically add or remove VMs to keep average CPU near the desired threshold. The autoscaler continually polls Cloud Monitoring metrics and can also use load balancing signals, making it appropriate for a Compute Engine web application that needs horizontal scaling. MIGs integrate with Cloud Load Balancing and instance health checks, enabling both scale-out and automatic recovery of unhealthy instances.
- ✗
Deploy the application on App Engine Standard environment
Why it's wrong here
App Engine Standard is a fully managed serverless platform that abstracts away virtual machines entirely—you deploy application code and Google manages the underlying runtime and infrastructure. The question explicitly requires deployment on Compute Engine, so App Engine Standard is the wrong service; even though it scales automatically, it does not give you direct control over VMs, persistent disks, or the OS, which are key aspects of Compute Engine-based architecture.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Compute Engine
Compute Engine is Google Cloud's Infrastructure-as-a-Service (IaaS) offering that lets you create and run virtual machines on Google's infrastructure.
Key term
Google Cloud
Google Cloud is a suite of cloud computing services offered by Google that provides infrastructure, platform, and software solutions over the internet.
About these practice questions
Courseiva writes every ACE question from scratch — 769 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.