Cloud Digital Leader Practice Question: Google Cloud products, services, and solutions
A team uses multiple cloud services and wants to deploy all resources — VPCs, Cloud SQL databases, GKE clusters, and IAM roles — using a declarative, open-source infrastructure-as-code tool that works across multiple cloud providers. Which tool integrates natively with Google Cloud for this purpose?
⚠ Common exam trap
Candidates often confuse Cloud Deployment Manager (a Google-native, proprietary tool) with a multi-cloud solution, or mistake Cloud Build (a CI/CD tool) for an IaC tool, when the question explicitly requires an open-source, multi-cloud declarative IaC tool.
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
✓
Terraform
Terraform is the correct choice because it is a declarative, open-source infrastructure-as-code tool that supports multiple cloud providers, including Google Cloud, through its provider plugin architecture. It allows you to manage VPCs, Cloud SQL databases, GKE clusters, and IAM roles using HashiCorp Configuration Language (HCL) and integrates natively with Google Cloud via the google provider.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Cloud Deployment Manager — Google's native IaC service.
Why it's wrong here
Cloud Deployment Manager is Google Cloud's native Infrastructure as Code service. It uses YAML, Python, or Jinja templates to declare GCP resources, but it is entirely vendor-locked: it cannot manage resources on other cloud providers, and its template syntax and capabilities are not portable. Terraform is the open-source, multi-cloud standard that provides a unified HCL workflow across providers, making Deployment Manager unsuitable as the industry standard for managing GCP alongside other clouds.
- ✓
Terraform
Why this is correct
HashiCorp Terraform is an open-source, declarative Infrastructure as Code tool that defines resources in HashiCorp Configuration Language (HCL) and maintains a state file to plan and apply changes. Its Google Cloud provider comprehensively covers all GCP resources, while the same HCL configuration can also manage AWS, Azure, and other clouds, making it the industry standard for multi-cloud infrastructure provisioning. Terraform's resource graph and state-driven planning enable safe, incremental updates that are difficult to achieve with configuration management or CI/CD tools.
- ✗
Cloud Build — it builds and deploys application code.
Why it's wrong here
Cloud Build is Google Cloud's fully managed CI/CD pipeline service that executes build steps in containers, often triggered from source repositories. It can invoke Terraform commands as build steps, but Cloud Build itself does not provide a declarative language for defining infrastructure nor does it track resource state—it simply automates build and deployment workflows. Thus, it is a build automation platform, not an Infrastructure as Code tool for managing GCP resources.
- ✗
Ansible — it automates server configuration management.
Why it's wrong here
Ansible is an agentless configuration management and automation tool that connects over SSH/WinRM and applies procedural playbooks to existing servers—setting up software, files, and services. While it has modules to create cloud resources, its core model is idempotent configuration of already-provisioned machines rather than declarative lifecycle management of infrastructure with state tracking. Terraform, by contrast, maintains a state file and plans incremental changes to the full resource graph, so Ansible is not the provisioning tool described by the question.
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Cloud SQL
Cloud SQL is a fully managed relational database service that lets you set up, maintain, and scale SQL databases (like MySQL, PostgreSQL, and SQL Server) in the cloud without managing the underlying infrastructure.
Key term
Terraform
Terraform is an infrastructure-as-code tool that lets you define and manage your IT infrastructure using configuration files instead of manual processes.
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.