You use Cloud Run and Cloud Source Repositories and have a Cloud Build YAML that builds the container and runs gcloud run deploy. What next step makes deployments most efficient?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a build trigger that runs the build file in response to a repository code being pushed to the development branch..
Why this is the answer
The most efficient next step is to create a build trigger that automatically runs your Cloud Build YAML file whenever code is pushed to your development branch. This establishes a Continuous Integration/Continuous Deployment (CI/CD) pipeline, automating the build and deployment process directly from your source code changes. Creating a Pub/Sub topic and trigger is an indirect and less integrated approach for this specific use case; Cloud Build triggers handle repository events natively. A webhook trigger is useful for external systems initiating builds, but less direct for repository pushes. A Cron job for gcloud builds submit is a scheduled, manual-like approach, lacking the immediate, event-driven efficiency of a build trigger tied to source control.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed