Google Cloud Professional Cloud DevOps Engineer — Question 89

You need to build a CI/CD pipeline for a containerized application in Google Cloud. Your development team uses a central Git repository for trunk-based development. You want to run all your tests in the pipeline for any new versions of the application to improve the quality. What should you do?

Answer options

Correct answer: D

Explanation

Option D is correct because it establishes a thorough CI/CD process by automatically triggering unit tests upon code push, ensuring early detection of issues. The other options either lack the initial unit test trigger or do not adequately integrate the testing phases before deployment, which could lead to potential problems in the production environment.