Planning and implementing a cloud solution: 5 GCP-ACE Questions with Full Explanations

Planning and implementing a cloud solution is a recurring theme in the Google Cloud Associate Cloud Engineer (GCP-ACE) exam. About 30% of the exam comes from this domain. The 5 questions below come with a full explanation of why each option is right or wrong.

GCP-ACE Planning and implementing a cloud solution: 5 practice questions

Google Cloud Associate Cloud Engineer (GCP-ACE) · Planning and implementing a cloud solution · 5 questions with answers and explanations

📊 This set at a glance

Exam: GCP-ACE · 55 questions (estimate) · 120 minutes
This set: 4 applied, 1 advanced · 2 comparison, 1 scenario, 1 trade-off, 1 troubleshooting
Topics: Compute Engine, managed instance groups, Spot VMs, Infrastructure Manager, Terraform, Managed Service for Apache Kafka, Pub/Sub, VPC, VPC Network Peering, VM Manager

🧭 Before you start

This is the widest domain. A workload arrives with a few hard constraints (lowest cost, no code rewrite, no servers to run, automatic recovery) and you choose the compute, data, network or deployment product that fits. Several options are usually real Google Cloud services, so the deciding detail is often operational, such as who manages the cluster or whether a network mode supports peering.

Tips for this set

• If existing clients and tools must stay unchanged, prefer the managed version of the same technology over a Google-native service that would need a rewrite.
• For cheap batch workers that can be interrupted, think about what recreates a lost VM: the provisioning model and the managed instance group work as a pair.
• Before choosing a networking fix, check the network mode and IP ranges; auto mode VPC networks have limits that custom mode networks with planned, non-overlapping ranges avoid.

Question 1 of 5

A media startup renders video frames pulled from a work queue. Each frame is independent and can simply be retried, and the goal is the lowest compute cost. When Compute Engine reclaims a worker VM, the team wants a replacement worker created automatically from the same configuration without anyone stepping in. What should the team set up?

AStandard VMs on a sole-tenant node group, with the automatic restart policy enabled so that crashed workers come back
BAn unmanaged instance group of Spot VMs, each created by hand, with a load balancer health check pointed at the group
COne large Spot VM with automatic restart turned on, so that Compute Engine restarts it on another host after preemption
DA managed instance group whose instance template uses the Spot provisioning model, so the group recreates preempted VMs
Show answer

✅ Answer: D

Difficulty: applied · Topic: Compute Engine, managed instance groups, Spot VMs

Spot VMs inside a managed instance group
A managed instance group (MIG) keeps a set of identical VMs created from an instance template. One of its built-in services is automatic repair: if a VM in the group stops, crashes, gets preempted (Spot VMs) or is deleted by something other than the MIG, the MIG recreates it from the template.
Putting the Spot provisioning model in the template therefore gives two things at once:
• the Spot discount on every worker;
• self-healing capacity: preempted workers come back as soon as Compute Engine has capacity again.

Why this fits queue workers
Work pulled from a queue is naturally retryable: a frame that was in progress on a preempted VM goes back to the queue and another worker picks it up.

Why each option works or fails
• ✗ A. Sole-tenant standard VMs: dedicated hosts cost more than shared standard VMs, which goes against the lowest-cost goal, and automatic restart does not help with scaling a worker fleet.
• ✗ B. Unmanaged instance group: unmanaged groups have no instance template, autohealing or autoscaling, and a load balancer health check only steers traffic; nobody would recreate preempted workers.
• ✗ C. Single Spot VM with auto restart: Spot VMs cannot be configured to restart automatically on host events, and one large VM is a single point of failure for the whole render job.
• ✓ D. MIG with a Spot template (correct): the template makes every worker a discounted Spot VM, and the MIG's automatic repair recreates preempted VMs from that template, so the fleet refills itself without manual action.

Question 2 of 5

A small platform team wants to deploy Terraform configurations that live in a Git repository, keep a history of deployments and revisions, and preview what a change would do, all through a Google-managed service. They do not want to run Terraform on engineers' laptops or operate their own build servers. Which service fits?

AConfig Connector, which applies Terraform files from Git to a Cloud Storage bucket through a Kubernetes controller
BCloud Run functions, which run Terraform inside an HTTP function triggered by commits to the repository
CCloud Deployment Manager, which deploys YAML templates and is supported for new deployments
DInfrastructure Manager, which runs Terraform configurations as managed deployments with revisions and previews
Show answer

✅ Answer: D

Difficulty: advanced · Topic: Infrastructure Manager, Terraform

Managed Terraform on Google Cloud
Infrastructure Manager (Infra Manager) is a managed service that automates deployment of Google Cloud resources with Terraform configurations. It can deploy configurations stored in Cloud Storage buckets, Git repositories or local directories, tracks deployments and revisions, and offers preview deployments that show how a change would affect the infrastructure before applying it. Deployments run with a service account you choose.

Distinctions
• Cloud Deployment Manager reached end of support on 2026-03-31; Google points to Infrastructure Manager or Terraform instead.
• Config Connector manages Google Cloud resources as Kubernetes objects, using Kubernetes manifests rather than Terraform.
• Plain Terraform works from any machine with state in a Cloud Storage bucket, but then the team runs and secures the runner itself.

Why each option works or fails
• ✗ A. Config Connector: it reconciles Kubernetes resource manifests into Google Cloud resources and does not read Terraform files.
• ✗ B. Function running Terraform: it would mean building and maintaining your own runner, state handling and timeouts, which is the opposite of a managed service.
• ✗ C. Deployment Manager: it uses YAML templates, not Terraform, and its end of support on 2026-03-31 means it should not be chosen for new work.
• ✓ D. Infrastructure Manager (correct): it is the managed Google Cloud service for Terraform, with Git sources, deployments, revisions and previews, so no laptops or build servers are needed.

Question 3 of 5

A logistics company runs dozens of services that produce and consume events with Apache Kafka client libraries and Kafka Connect, on a self-managed cluster. They want Google Cloud to run the cluster for them without rewriting producers or consumers. Which service should they choose?

APub/Sub, whose topics and subscriptions receive the existing Kafka producer and consumer calls with no code changes
BDataflow, whose streaming jobs act as Kafka brokers that the existing Kafka clients connect to as their bootstrap servers
CMemorystore for Redis, whose streams store the events and accept the existing Kafka producer calls with no code changes
DManaged Service for Apache Kafka, which provisions and patches open source clusters behind private bootstrap URLs
Show answer

✅ Answer: D

Difficulty: applied · Topic: Managed Service for Apache Kafka, Pub/Sub

Two messaging options on Google Cloud
• Pub/Sub is Google's own serverless, asynchronous messaging service. It uses its own API with per-message leasing instead of Kafka-style partitions. Moving Kafka applications to it means changing the producer and consumer code.
• Google Cloud Managed Service for Apache Kafka runs real open source Apache Kafka clusters for you. You set the total vCPU and memory, the service provisions brokers, handles patching and storage (tiered storage), and exposes private bootstrap URLs in your VPCs through Private Service Connect. Clients authenticate with SASL (IAM principals) or mTLS.

Choosing
If code already uses Kafka APIs and tools, the managed Kafka service keeps them unchanged. If you are building new event-driven services and want no cluster to size, Pub/Sub is usually simpler.

Why each option works or fails
• ✗ A. Pub/Sub without code changes: Pub/Sub has its own API and per-message delivery model; Kafka producers and consumers must be rewritten or bridged to use it.
• ✗ B. Dataflow as brokers: Dataflow runs Apache Beam processing pipelines; it can read from and write to Kafka but is not a Kafka broker that clients connect to.
• ✗ C. Redis streams: Memorystore is an in-memory store with the Redis protocol; it does not speak the Kafka protocol and is not a durable event log for Kafka clients.
• ✓ D. Managed Service for Apache Kafka (correct): it runs genuine Apache Kafka clusters managed by Google, so existing Kafka clients and tooling keep working while the team stops operating brokers.

Question 4 of 5

Two teams each use the default network in their own project. They want the VMs of both projects to talk over internal IPs and try to set up VPC Network Peering between the two default networks, but it cannot be created. What is the correct way forward?

ACreate the peering from one project only; the other side is created automatically
BConvert both default networks to custom mode with one command, then create the peering connection between them
CCreate a custom mode VPC network in each project with non-overlapping ranges, move the workloads there, and peer those
DAdd a Cloud Router to each default network so that the peering exchanges its routes dynamically
Show answer

✅ Answer: C

Difficulty: applied · Topic: VPC, VPC Network Peering

Auto mode networks cannot be peered together
A new project starts with the default network, which is an auto mode VPC network: it has one automatically created subnet per region, all taken from the same predefined block 10.128.0.0/9. Peered networks always exchange subnet routes, so their subnet ranges must not overlap. Because every auto mode network uses the same block, two auto mode networks cannot be peered.

Why converting does not help
You can switch auto mode to custom mode (a one-way change with gcloud compute networks update NETWORK --switch-to-custom-subnet-mode), but the existing subnets keep their ranges, which still overlap.

Fix
Create new custom mode networks with chosen, non-overlapping ranges, migrate the workloads and peer them. A custom network can peer with an auto mode one only if it has no range inside 10.128.0.0/9.

Why each option works or fails
• ✗ A. One-sided peering: each side of a peering must be created separately in its own network, and it only becomes active when both exist; nothing is created automatically.
• ✗ B. Convert to custom mode: the conversion is one-way and leaves the same overlapping 10.128.0.0/9 subnets in place, so the peering would still be refused.
• ✓ C. New custom mode networks (correct): with ranges you choose and no overlap, the peering can be created; this is the documented way around the auto mode restriction.
• ✗ D. Cloud Router: peering exchanges subnet routes through its own mechanism; Cloud Router is used with VPN and Interconnect, and does not fix overlapping ranges.

Question 5 of 5

A security team requires that a specific monitoring package be installed on every Linux VM labeled env=prod, and that it be reinstalled automatically if someone removes it. The team wants to use a VM Manager feature rather than writing its own tooling. Which feature should it use?

AOS policies, which describe the desired package state for the selected VMs and keep that state in place
BA startup script in the instance metadata of each production VM that installs the package at every boot
COS inventory management, which collects and reports which packages are present on each selected VM
DPatch deployments, which apply operating system updates to the selected VMs on a recurring schedule
Show answer

✅ Answer: A

Difficulty: applied · Topic: VM Manager

The three VM Manager services
• Patch: applies operating system patches on demand or on a schedule, with patch approvals, pre- and post-patch scripts and compliance reporting.
• OS inventory management: collects operating system information (installed packages, OS version) and lets you review it.
• OS policies: install, remove and auto-update software packages on a selected set of VMs. You declare the desired state, and the OS Config agent brings each VM back to it.

Desired state vs one-time actions
A startup script runs only when the VM boots, so a package removed an hour after boot stays missing until the next reboot. A desired-state policy is checked again and again by the agent.

Why each option works or fails
• ✓ A. OS policies (correct): they declare that the package must be installed on VMs matching the selection, and the agent enforces that state, reinstalling the package when it is removed.
• ✗ B. Startup script: it is not a VM Manager feature, and it only runs at boot, so a package removed between reboots stays missing.
• ✗ C. OS inventory management: it reports what is installed, which would show the missing package, but it never installs anything.
• ✗ D. Patch deployments: they apply updates to software that is already installed; they do not make sure a given package exists on the VM.

🎯 What to remember

• Cheap, self-healing batch workers → a MIG whose instance template uses Spot VMs; the MIG recreates preempted instances.
• For Google-managed Terraform deployments with revisions and previews use Infrastructure Manager.
• Keep Kafka APIs but drop cluster operations = Managed Service for Apache Kafka; new Google-native messaging = Pub/Sub.
• Auto mode VPC networks cannot be peered with each other; use custom mode networks with non-overlapping ranges.
• VM Manager: Patch = updates, OS inventory = reporting, OS policies = enforce installed or removed packages.

🔗 Related practice sets

• Can You Answer These 5 GCP-ACE Questions on Setting up a cloud solution environment?
• All GCP-ACE practice sets
• Every exam on this blog

📚 Keep studying GCP-ACE

More GCP-ACE questions: https://hyunhp.github.io/cert-bank/#exam=GCP-ACE
Study guide: https://hyunhp.github.io/cert-bank/study.html#exam=GCP-ACE

These are original practice questions, not real exam questions, and cert-bank is not affiliated with any certification vendor.

Original practice questions written for this blog, not exam dumps.

Comments