Google Cloud Professional Cloud Architect — Question 218

You are using a GitHub repository for your application’s source code. You want to set up an efficient and secure continuous deployment process to automatically build and deploy the application to Cloud Run whenever a pull request is merged. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because it incorporates the Cloud Build GitHub app, which simplifies the integration process for triggers and deployments. Option A incorrectly suggests using a webhook, which is less efficient than the app, while B relies on GitHub Actions and a service account key, which adds unnecessary complexity. Option C mentions GitHub Enterprise, which is not needed for standard deployments.