Medium1 markMultiple Choice
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)
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
Q01CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...HardQ02CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...MediumQ03CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...MediumQ04CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...MediumQ05CASE STUDY: TechStream Gaming
Overview: Gaming company, 500 employees, $100M revenue. 200 on-prem...Easy
Expert