PROFESSIONAL-CLOUD-ARCHITECT · Question #367
You need to build a continuous delivery pipeline for a containerized application in Google Cloud. You want to run all your tests in the pipeline to improve your application's quality. What should…
The correct answer is A. 1. After the developers push the code to a central repository, trigger Cloud Build to run unit tests. This approach runs the right tests at the right stages: unit tests before building and publishing the image, integration and acceptance tests in a dedicated testing environment after deployment, and smoke tests after production deployment to validate the release. Running tests…
Question
Options
- A
- After the developers push the code to a central repository, trigger Cloud Build to run unit tests.
- B
- After the developers push the code to a central repository, trigger Cloud Build to build the
- C
- Automatically run unit tests in a local environment once the code is changed. If all tests are
- D
- Run unit tests in the developer's local environment before committing and pushing the code to
How the community answered
(17 responses)- A88% (15)
- B6% (1)
- D6% (1)
Explanation
This approach runs the right tests at the right stages: unit tests before building and publishing the image, integration and acceptance tests in a dedicated testing environment after deployment, and smoke tests after production deployment to validate the release. Running tests throughout the pipeline maximizes quality while preventing untested artifacts from progressing to later stages.
Topics
Community Discussion
No community discussion yet for this question.