Courseiva
Google Cloud Products and ServicesmediumMultiple ChoiceObjective-mapped

Cloud Digital Leader Google Cloud Products and Services Practice Question

A developer wants to trigger a serverless function in response to a file being uploaded to a Cloud Storage bucket. Which Google Cloud service should they use?

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

Cloud Functions

Cloud Functions is an event-driven serverless compute service that can be triggered by Cloud Storage events (e.g., object finalize).

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Compute Engine

    Why it's wrong here

    Compute Engine is a highly customizable IaaS offering where you are responsible for provisioning and maintaining virtual machines, including patching the OS, configuring networking, and scaling capacity. Because it requires always-on infrastructure and is not event-driven by default, it is unsuitable for a serverless function that should react to Cloud Storage events and automatically scale to zero when idle. You could build such a trigger, but you would be managing servers instead of letting the platform handle the event-driven lifecycle.

  • Cloud Functions

    Why this is correct

    Cloud Functions is Google Cloud's fully managed, event-driven serverless compute platform designed specifically for single-purpose functions that respond to Cloud Storage events, HTTP triggers, Pub/Sub messages, and other event sources. It automatically scales to zero when no events occur, eliminating idle cost, and executes code only when a trigger fires, making it the ideal lightweight choice for a developer who wants to run a snippet of code without provisioning or managing infrastructure. Its runtime model directly matches the requirement for a serverless function triggered by a Cloud Storage upload.

  • Cloud Run

    Why it's wrong here

    Cloud Run is a fully managed serverless container platform that can indeed be invoked by Cloud Storage events via Eventarc, but it is optimized for running containerized HTTP-based applications or microservices that may need custom runtimes or multiple concurrent requests. For a simple, single-purpose function triggered by an event, Cloud Functions offers a simpler developer experience with less boilerplate and faster cold starts, whereas Cloud Run requires building and deploying a container image even for small snippets. The question emphasizes a 'serverless function,' and Cloud Functions is the more direct and lightweight answer.

  • App Engine

    Why it's wrong here

    App Engine is a platform-as-a-service (PaaS) designed primarily for hosting web applications and APIs, with built-in scaling and load balancing, but it is not inherently event-driven in the way Cloud Functions is. While App Engine can be triggered via HTTP endpoints or custom extensions, it requires deploying an entire application framework (e.g., a web server) and is not optimized for stateless, event-triggered functions that react to Cloud Storage events. Its architecture is more heavyweight and geared toward long-running services rather than ephemeral, single-event executions.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

Courseiva writes every GCDL question from scratch — 829 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This GCDL 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 GCDL exam.