Courseiva
Google Cloud Products and ServiceseasyMultiple ChoiceObjective-mapped

Cloud Digital Leader Google Cloud Products and Services Practice Question

A developer wants to deploy a containerized application that can scale down to zero when not in use and charges only for the resources consumed during request processing. Which Google Cloud compute service should they choose?

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 Run

Cloud Run is a serverless container platform that automatically scales to zero and charges per request, making it ideal for intermittent workloads. Compute Engine and GKE require always-on infrastructure. App Engine Flexible also requires at least one instance running.

Answer analysis

Option-by-option breakdown

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

  • Google Kubernetes Engine (GKE)

    Why it's wrong here

    GKE manages Kubernetes clusters that require a minimum of one worker node, and even if you scale your application's replicas to zero, the worker nodes and the cluster control plane continue to run and incur compute and management costs. Autoscaling in GKE cannot reduce the cluster below a single node, so achieving zero cost while idle would require manually deleting or recreating the entire cluster, which is neither automatic nor practical for event-driven workloads.

  • Compute Engine

    Why it's wrong here

    Compute Engine provides raw infrastructure-as-a-service VMs that run continuously from the moment they are created until they are explicitly stopped, with per-second billing based on allocated vCPU and memory regardless of actual utilization. It has no built-in mechanism to pause execution or scale to zero when HTTP requests stop, meaning an idle VM still accrues full runtime costs. This makes it a poor fit for a containerized application that should cost nothing when no users are interacting with it.

  • App Engine Flexible Environment

    Why it's wrong here

    App Engine Flexible Environment executes your container inside VMs managed by Google, but it deliberately mandates a minimum of one running instance per service to host your container, so the platform never scales down to zero. The min_instances configuration, which defaults to 1, ensures that you pay for at least one idle machine even during periods of zero traffic. Unlike the App Engine Standard environment, Flexible does not offer true zero-instance scaling, making it unsuitable for a cost-conscious, serverless container deployment that expects to scale to zero.

  • Cloud Run

    Why this is correct

    Cloud Run is a fully managed serverless container platform that automatically scales your container from zero instances up to a number sufficient to handle incoming HTTP requests, and then back down to zero when traffic disappears. You are billed only for the exact time spent processing a request, with a minimum granularity of 100 milliseconds, so when there is no request traffic there are zero compute charges. This gives the developer exactly what they asked for: a containerized application that scales to zero, eliminating infrastructure costs during idle periods.

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

One of 829 original GCDL practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.