PROFESSIONAL-CLOUD-ARCHITECT · Question #303
Case Study: 11 - TerramEarth Company overview TerramEarth manufactures heavy equipment for the mining and agricultural industries. They currently have over 500 dealers and service centers in 100…
The correct answer is A. Configure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build container. This question tests knowledge of configuring Cloud Build triggers to automate CI/CD container image builds when source code changes are detected in a repository.
Question
Options
- AConfigure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build container
- BConfigure a trigger in Cloud Build for new source changes. The trigger invokes build jobs and
- CCreate a Scheduler job to check the repo every minute. For any new change, invoke Cloud Build
- DConfigure a trigger in Cloud Build for new source changes. Invoke Cloud Build to build one
How the community answered
(27 responses)- A74% (20)
- B15% (4)
- C4% (1)
- D7% (2)
Why each option
This question tests knowledge of configuring Cloud Build triggers to automate CI/CD container image builds when source code changes are detected in a repository.
Configuring a Cloud Build trigger that fires on new source changes and invokes Cloud Build to build container images per microservice is the canonical GCP CI/CD pattern. It reacts to push events in near real-time without polling, builds only what changed, and produces immutable container artifacts ready for deployment, satisfying TerramEarth's goal of rapid, automated software delivery.
This option invokes build jobs and triggers but is structured incorrectly, introducing unnecessary complexity or missing the container image output step required for Kubernetes-based deployments.
Polling a repo every minute with Cloud Scheduler is inefficient, introduces up to a 60-second delay, wastes compute resources checking for changes that may not exist, and is not a recommended CI/CD pattern on GCP.
Building only one container image per trigger invocation does not scale to a microservices architecture where multiple independent services may each need their own image built and versioned.
Concept tested: Cloud Build triggers for automated container CI/CD pipelines
Source: https://cloud.google.com/build/docs/automating-builds/create-manage-triggers
Topics
Community Discussion
No community discussion yet for this question.