Cloud Digital Leader Google Cloud Products and Services Practice Question
A team needs to run a machine learning model using custom code in Python with TensorFlow, and they want to train it at scale on GPU hardware without managing infrastructure. Which Google Cloud service is best suited?
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
✓
Vertex AI
Vertex AI provides a unified platform for ML, including managed training jobs with GPU support, hyperparameter tuning, and model serving—all without managing infrastructure. Compute Engine requires manual setup. Cloud Functions and Cloud Run are not designed for distributed training.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Vertex AI
Why this is correct
Vertex AI is a fully managed machine learning platform that supports custom container training, allowing you to bring your own model code and dependencies while leveraging managed GPU and TPU clusters. It provides automatic scaling, hyperparameter tuning, and integrated MLOps tools like model versioning, monitoring, and Vertex Pipelines, which drastically reduce operational overhead compared to raw compute. This makes it the ideal choice for running custom ML models at scale without manually provisioning infrastructure.
- ✗
Cloud Run
Why it's wrong here
Cloud Run is a serverless compute platform for running stateless containers that respond to web requests or events, but it does not currently support GPU acceleration, which is critical for most machine learning training workloads. Additionally, Cloud Run has a maximum request timeout of 60 minutes, which is insufficient for long-running training jobs that can take hours, and it lacks native support for distributed training across multiple workers. Therefore, it is unsuitable for this custom ML training use case.
- ✗
Compute Engine
Why it's wrong here
Compute Engine offers custom virtual machines with GPU support, but it requires you to manually provision, configure, and manage the VM instances, including installing GPU drivers, managing software updates, and handling hardware failures. You also need to manually implement autoscaling and fault tolerance, often using instance groups, and you pay for idle capacity unless you carefully manage lifecycle policies. This operational burden makes it less efficient and more error-prone than a managed ML platform like Vertex AI.
- ✗
Cloud Functions
Why it's wrong here
Cloud Functions is a serverless function-as-a-service platform designed for event-driven, short-lived tasks, with maximum execution times usually around 9 minutes and no support for GPU accelerators. It is not designed for compute-intensive workloads like ML training, as it lacks persistent state, distributed training capabilities, and the ability to handle custom containers with complex dependencies. Thus, it is completely inappropriate for training a custom machine learning model.
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
Vertex AI
Vertex AI is a unified platform from Google Cloud that lets you build, deploy, and scale machine learning models using a single set of tools and services.
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.
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 →
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.