
Answer-first summary for fast verification
Answer: Connect to an external repository in Cloud Source Repository. Authorize Google Cloud Platform to connect to the GitHub repository. Create a trigger in Cloud Build to automate the image creation
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.
Author: LeetQuiz Editorial Team
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?
A
Commit code to the repository in GitHub
B
Connect to an external repository in Cloud Source Repository. Authorize Google Cloud Platform to connect to the GitHub repository. Create a trigger in Cloud Build to automate the image creation
C
Grant the Cloud Build service account the permissions to build the image
D
Create a new repository in Cloud Source Repository. Create a trigger in Cloud Build to automate the image creation. Clone the GitHub repository.
E
Commit code to the new repository in Cloud Source Repository
No comments yet.