Courseiva
How Google Cloud Resources Are ManagedhardMultiple ChoiceObjective-mapped

Cloud Digital Leader How Google Cloud Resources Are Managed Practice Question

A company has a fixed budget for GCP and wants to prevent any cost overrun by automatically disabling all resources when the monthly budget is exceeded. Which approach 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

Create a Cloud Function triggered by a budget alert Pub/Sub message to stop resources.

GCP does not have a built-in mechanism to automatically disable resources when a budget is exceeded. Budget alerts trigger notifications but do not take action. The best practice is to monitor alerts and manually take action, or use Cloud Functions to automate shutdown based on budget alerts.

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 the Cost Management dashboard to manually stop resources.

    Why it's wrong here

    The Cost Management dashboard is a visualization and reporting tool, not an enforcement mechanism. While it lets you inspect spend and manually navigate to resources, stopping them requires human action, which is neither immediate nor reliable for a hard budget cap. Relying on manual steps also scales poorly across many projects and leaves a window where costs continue to accrue after the threshold is crossed.

  • Create a Cloud Function triggered by a budget alert Pub/Sub message to stop resources.

    Why this is correct

    When a budget threshold is exceeded, Cloud Billing publishes a message to a specified Pub/Sub topic. A Cloud Function subscribed to that topic can be triggered to call the Compute Engine API and stop instances, or use the Resource Manager API to disable projects, enforcing the budget automatically. This serverless, event-driven pattern gives near-immediate response and can be customized to stop only tagged resources, making it the correct choice for the stated requirement.

  • Use Active Assist to automatically stop idle resources.

    Why it's wrong here

    Active Assist (including the Recommender service) analyzes usage patterns and generates suggestions such as idle resource shutdown, but it does not act on its own. Moreover, its recommendations are based on low utilization, not on your budget threshold, so even if you automated its suggestions, it would not prevent a specific cost overrun. Acting on these recommendations always requires additional scripting or manual approval, so it does not meet the requirement for budget-driven prevention.

  • Set up a budget alert with the 'disable resource' action.

    Why it's wrong here

    Cloud Billing budget alerts support notifications via email and Pub/Sub, but they do not offer a native 'disable resource' action. There is absolutely no toggle in the Cloud Console that automatically stops resources when a budget alert fires. To actually stop resources, you must build a custom automation, such as a Cloud Function, that listens to the Pub/Sub message—which is exactly what the correct answer does, meaning this option is a nonexistent service feature.

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.