
Google Professional Cloud DevOps Engineer
Get started today
Ultimate access to all questions.
Your organization is transitioning its applications to the Cloud and currently uses GitHub for source code version control. You're tasked with setting up a proof-of-concept deployment that links GitHub to Cloud Build for image creation and deployment. What steps should you take to accomplish this with minimal overhead?
Your organization is transitioning its applications to the Cloud and currently uses GitHub for source code version control. You're tasked with setting up a proof-of-concept deployment that links GitHub to Cloud Build for image creation and deployment. What steps should you take to accomplish this with minimal overhead?
Explanation:
The correct answer is to connect to an external repository such as GitHub in Cloud Source Repository (CSR) and authorize Google Cloud Platform to link to the GitHub repository. This approach minimizes overhead by mirroring code commits from GitHub to CSR and triggering Cloud Build automatically. Other options introduce unnecessary steps, such as creating a new repository in CSR or cloning the GitHub repository, which add overhead. Additionally, Cloud Build does not require specific permissions to build images, making such grants redundant. For more details, refer to documentation on mirroring a GitHub repository and integrating with Cloud Build.