GCP-ACE - Planning and implementing a cloud solution - Section 2.1

Plan and implement compute resources, selecting among Compute Engine, Google Kubernetes Engine, Cloud Run, and Cloud Run functions for a workload, launching instances, choosing Compute Engine storage, creating autoscaled managed instance groups, using Spot VMs, and deploying GKE clusters and serverless applications that process Google Cloud events.

Match a workload to the right compute product, weighing Compute Engine, GKE, Cloud Run, and Cloud Run functions against control, portability, operational overhead, and scale-to-zero requirements. Create an autoscaled managed instance group from an instance template, choose zonal against regional Persistent Disk or Hyperdisk, use Spot VMs for interruptible work, deploy GKE Autopilot, regional, and private clusters, and wire serverless services to Pub/Sub, Cloud Storage, and Eventarc events.

Compute EngineGoogle Kubernetes EngineCloud RunCloud Run functionsManaged instance groupsEventarc

Practice question for this objective

Free samplePlanning and implementing a cloud solutionhard

A developer must run small pieces of code in direct response to Google Cloud events, such as an object being written to a Cloud Storage bucket, with the least infrastructure to manage. Which statement about Cloud Run functions is accurate for this event-driven need?

  • ACloud Run functions cannot respond to Cloud Storage events and must instead be invoked only by a scheduled Compute Engine cron job that polls the bucket.
  • BCloud Run functions require you to provision and patch a dedicated node pool in Google Kubernetes Engine before any event trigger will fire.
  • CCloud Run functions handle events but bill for a continuously running Compute Engine VM per function, so they carry the same operational overhead as a self-managed instance.
  • DCloud Run functions run your code in response to events on managed infrastructure, and can be triggered by Cloud Storage events delivered through Eventarc. Correct
Know that Cloud Run functions run event-driven code on managed infrastructure and consume Google Cloud events via Eventarc. Cloud Run functions are a managed serverless runtime that executes on demand in response to events, and Eventarc routes Google Cloud events such as Cloud Storage object changes to them without any customer-run polling or nodes.

Why A is wrong: This is tempting if you assume polling is required, but it is wrong: Cloud Run functions integrate with Eventarc to receive Cloud Storage events directly, so no polling VM is needed.

Why B is wrong: This confuses functions with GKE-hosted workloads; fully managed Cloud Run functions run on Google-managed infrastructure and need no customer-provisioned node pool to receive triggers.

Why C is wrong: This misstates the model: Cloud Run functions scale with events and do not bill for a per-function always-on VM, so their operational overhead is far lower than a self-managed instance.

Why D is correct: Cloud Run functions are the event-driven serverless option that runs code on Google-managed infrastructure and consumes events, including Cloud Storage object changes routed through Eventarc, matching the low-management event need.

See more GCP-ACE practice questions, answers explained.

More in this domain

Back to all Planning and implementing a cloud solution objectives, or the GCP-ACE cert hub.

Examworthy is not affiliated with or endorsed by Google Cloud. Original, blueprint-aligned practice material only.