Topic 1 Question 99
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?
- Install a Git hook to require developers to run unit tests before pushing the code to a central repository.
- Trigger Cloud Build to build the application container. Deploy the application container to a testing environment, and run integration tests.
- If the integration tests are successful, deploy the application container to your production environment, and run acceptance tests.
- Install a Git hook to require developers to run unit tests before pushing the code to a central repository. If all tests are successful, build a container.
- Trigger Cloud Build to deploy the application container to a testing environment, and run integration tests and acceptance tests.
- If all tests are successful, tag the code as production ready. Trigger Cloud Build to build and deploy the application container to the production environment.
- Trigger Cloud Build to build the application container, and run unit tests with the container.
- If unit tests are successful, deploy the application container to a testing environment, and run integration tests.
- If the integration tests are successful, the pipeline deploys the application container to the production environment. After that, run acceptance tests.
- Trigger Cloud Build to run unit tests when the code is pushed. If all unit tests are successful, build and push the application container to a central registry.
- Trigger Cloud Build to deploy the container to a testing environment, and run integration tests and acceptance tests.
- If all tests are successful, the pipeline deploys the application to the production environment and runs smoke tests
ユーザの投票
コメント(6)
I vote for B
👍 5PrayasMohanty2023/10/05- 正解だと思う選択肢: D
I think D
👍 4nhiguchi2023/10/21 Answer Should be B
👍 2ManishKS2023/10/01
シャッフルモード