LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Professional Cloud DevOps Engineer

Google Professional Cloud DevOps Engineer

Get started today

Ultimate access to all questions.


Your company has assigned you the task of setting up a Continuous Integration pipeline. This pipeline will automatically build Docker containers for pushing to Container Registry and non-container artifacts for Cloud Storage upon code commit to the source repository. How would you achieve this?

Real Exam




Explanation:

The correct approach involves configuring the Cloud Build config file with both an images field for Docker images to be pushed to the container registry and an artifacts field for non-container artifacts destined for Cloud Storage. This method is effective because:

  • The Cloud Build config file (cloudbuild.yaml or cloudbuild.json) is designed to define pipeline steps and configurations.
  • The images field is specifically for Docker images intended for a container registry.
  • The artifacts field is designated for non-container artifacts to be stored in Cloud Storage.

Incorrect options involve misplacing these configurations in the source repository config file, which is meant for version control settings, not build configurations, or confusing the purposes of the images and artifacts fields.

Powered ByGPT-5