Cloud Digital Leader Google Cloud Products and Services Practice Question
A DevOps team wants to automatically build a Docker image from a GitHub repository and store it in a private registry whenever a new tag is pushed. Which Google Cloud services should they combine?
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 Build and Artifact Registry
Cloud Build can be triggered by GitHub events (like tag push) to build a container image and push it to Artifact Registry. Artifact Registry is the managed container registry. Container Registry is deprecated. Cloud Source Repositories is a Git repository, not a registry. Cloud Functions could trigger a build but is not the primary service.
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 Build and Container Registry
Why it's wrong here
Cloud Build is indeed the correct CI/CD service for building Docker images, but pairing it with Container Registry is obsolete. Container Registry has been deprecated in favor of Artifact Registry, which offers better integration, vulnerability scanning, and multi-region support. Using a deprecated registry creates a future migration risk and misses out on Artifact Registry's enhanced security features.
- ✗
Cloud Source Repositories and Container Registry
Why it's wrong here
Cloud Source Repositories is a Git repository hosting service, not a build pipeline; it cannot compile or package Docker images on its own. While Cloud Build can be integrated with Cloud Source Repositories as a source trigger, the service itself lacks any image-building capability. Additionally, Container Registry is deprecated, so this combination fails on both the build and registry dimensions.
- ✗
Cloud Functions and Artifact Registry
Why it's wrong here
Cloud Functions is a serverless compute platform designed to run event-driven code, not to orchestrate CI/CD pipelines or build container images. Although an HTTP-triggered Cloud Function could invoke Cloud Build, that approach adds unnecessary complexity and is not the standard or intended mechanism for building images. Artifact Registry is the correct image repository, but the build service is fundamentally mismatched here.
- ✓
Cloud Build and Artifact Registry
Why this is correct
Cloud Build natively supports build triggers tied to GitHub events, including tag push events, making it ideal for automatically building a Docker image when a tag is pushed. The built image can then be securely pushed to Artifact Registry, which is the fully managed, regional container registry with IAM integration, vulnerability scanning, and support for Docker and OCI artifacts. This combination is the recommended, maintainable CI/CD approach for tag-driven image builds.
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 Functions
Cloud Functions are serverless compute services that let you run single-purpose code in response to events without managing servers.
Key term
Cloud Build
Cloud Build is a managed service that compiles source code into deployable artifacts, often used in continuous integration and continuous delivery pipelines.
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.