Cloud Digital Leader Google Cloud Products and Services Practice Question
A company wants to deploy a web application that automatically scales based on traffic, and they do not want to manage infrastructure. The application is written in Python and uses a Flask framework. Which TWO Google Cloud services could 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 Run
App Engine Standard supports Python and Flask, automatically scaling to zero. Cloud Run can run containerized Flask applications, scaling to zero based on requests. Compute Engine requires VM management. Cloud Functions is for small snippets, not full web apps. GKE requires cluster management.
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
Why it's wrong here
Google Kubernetes Engine (GKE) is a managed Kubernetes service, but it still requires you to create and manage a node pool, configure cluster autoscaling, and handle node pool upgrades and patching. You are responsible for capacity planning and infrastructure monitoring, so it is not a fully serverless experience. For a simple containerized Flask web application, GKE adds operational overhead without providing a clear benefit, making it a heavier-weight choice than Cloud Run.
- ✗
Cloud Functions
Why it's wrong here
Cloud Functions is designed for single-purpose, event-driven functions that execute in response to triggers such as Cloud Storage changes or Pub/Sub messages. It imposes a maximum execution timeout and encourages a function-based architecture, not a full web application with multiple routes and persistent state. Deploying a Flask app on Cloud Functions would require rearchitecting it into discrete functions and potentially adding an API gateway, which is unnecessarily complex for a standard web service.
- ✓
Cloud Run
Why this is correct
Cloud Run is a fully managed serverless container platform that can run any containerized HTTP service, including a Flask web application. It automatically scales from zero to handle traffic, scaling up as requests increase and scaling down to zero when idle, so you only pay for resources used during request processing. Unlike GKE, Cloud Run abstracts away cluster management entirely, making it ideal for a containerized Flask app that needs automatic scaling with minimal operational effort.
- ✗
Compute Engine
Why it's wrong here
Compute Engine provides virtual machines that give you full control over the environment, but this also means you are responsible for OS patching, security hardening, VM configuration, and setting up managed instance groups if you want autoscaling. You must also provision a load balancer to distribute traffic and handle capacity planning manually. This is not a serverless option and introduces significant operational overhead for a simple Flask web application, making it less suitable than a fully managed platform.
- ✓
App Engine Standard
Why this is correct
App Engine Standard is a fully managed serverless PaaS that natively supports the Python runtime and common web frameworks like Flask. It automatically scales your application based on traffic, handling infrastructure management behind the scenes. However, it requires your application to conform to the App Engine runtime environment and deployment model, which can be more restrictive than the generic container-based approach offered by Cloud Run. Both are valid serverless options, but Cloud Run provides greater flexibility for containerized workloads.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Cloud Run
Cloud Run is a fully managed compute platform from Google Cloud that lets you run containerized applications in a serverless environment, automatically scaling from zero to thousands of requests.
Key term
App Engine
App Engine is a fully managed serverless platform from Google Cloud that lets developers build and deploy applications without worrying about the underlying infrastructure.
About these practice questions
This GCDL question is part of Courseiva's 829-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
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.