Google Cloud Professional Cloud Architect — Question 75
You are building a continuous deployment pipeline for a project stored in a Git source repository and want to ensure that code changes can be verified before deploying to production. What should you do?
Answer options
- A. Use Spinnaker to deploy builds to production using the red/black deployment strategy so that changes can easily be rolled back.
- B. Use Spinnaker to deploy builds to production and run tests on production deployments.
- C. Use Jenkins to build the staging branches and the master branch. Build and deploy changes to production for 10% of users before doing a complete rollout.
- D. Use Jenkins to monitor tags in the repository. Deploy staging tags to a staging environment for testing. After testing, tag the repository for production and deploy that to the production environment.
Correct answer: D
Explanation
The correct answer is D because it emphasizes the importance of testing in a staging environment before pushing to production, ensuring that any issues can be identified and resolved. Options A and B suggest deploying directly to production, which does not allow for adequate verification of changes. Option C involves a partial rollout that could still expose production to untested changes.