Courseiva

Google PCA Practice Question: Managing and Provisioning a Solution Infrastructure

A development team wants to automate the process of building container images from their GitHub repository and storing them in Artifact Registry. Which Google Cloud service should they use to create a build trigger that runs on every push to the main branch?

⚠ Common exam trap

PCA often tests the distinction between building and storing container images, so candidates might confuse Artifact Registry (storage) with Cloud Build (building).

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

Cloud Build is the correct service because it provides build triggers that can be configured to automatically build container images from source repositories like GitHub. When a push to the main branch occurs, Cloud Build can execute a build using a Dockerfile or buildpack, and then push the resulting image to Artifact Registry. This directly addresses the requirement to automate image building and storage.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Container Registry

    Why it's wrong here

    Container Registry is a deprecated image storage service, not a build orchestrator; it cannot watch a GitHub repository or execute triggers. It is tempting because it stores the resulting images, and would fit if the requirement were merely a registry location, but Cloud Build supplies the trigger mechanism the stem demands.

  • ✓

    Cloud Build

    Why this is correct

    Cloud Build provides build triggers that watch a connected GitHub repository and execute a build on each push, then push the resulting image to Artifact Registry. Artifact Registry itself only stores images, and other services do not offer repository-triggered builds.

  • ✗

    Artifact Registry

    Why it's wrong here

    Artifact Registry stores and scans container images and language packages; it exposes no build trigger or GitHub integration, so a push cannot initiate a build. It is tempting because the stem names it as the destination, and it would be correct if the question asked where the built images should be stored.

  • ✗

    Cloud Deploy

    Why it's wrong here

    Cloud Deploy orchestrates progressive delivery of already-built containers to GKE, Cloud Run and Anthos targets; it does not watch source repositories or compile images. It is tempting because it sits in the same CI/CD pipeline, and would be correct if the task were promoting an existing image through staging and production.

About these practice questions

Courseiva writes every PCA question from scratch — 807 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Google Cloud exam blueprint

This PCA 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 PCA exam.