Medium1 markMultiple Choice
Subtask 4.1: Technical ProcessesCI/CDCloud BuildDevOps

GCP PCA · Question 39 · Technical Processes

You are setting up a CI/CD pipeline using Cloud Build. You want the pipeline to automatically trigger whenever a developer pushes code to the 'main' branch in Cloud Source Repositories. Which TWO components must you configure? (Select TWO)

Answer options:

A.

A Cloud Build Trigger

B.

A cloudbuild.yaml configuration file

C.

A Cloud Scheduler job

D.

A Compute Engine VM to run the build

E.

A Cloud Function to parse the git commit

How to approach this question

Identify the two essential parts of a Cloud Build setup: the listener and the instructions.

Full Answer

A Cloud Build Trigger, A cloudbuild.yaml configuration file
To automate CI/CD in GCP, you need a Cloud Build Trigger (which connects to the repository and listens for specific events like a push to a branch) and a `cloudbuild.yaml` file in the repository (which contains the declarative steps for building and deploying the application).

Common mistakes

Thinking you need to provision VMs (D) for Cloud Build.

Practice the full GCP Professional Cloud Architect Practice Exam 5

50 questions · hints · full answers · grading

More questions from this exam