Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 99 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 99
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

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?

  • A. 1. Install a Git hook to require developers to run unit tests before pushing the code to a central repository.
    2. Trigger Cloud Build to build the application container. Deploy the application container to a testing environment, and run integration tests.
    3. If the integration tests are successful, deploy the application container to your production environment, and run acceptance tests.
  • B. 1. 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.
    2. Trigger Cloud Build to deploy the application container to a testing environment, and run integration tests and acceptance tests.
    3. 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.
  • C. 1. Trigger Cloud Build to build the application container, and run unit tests with the container.
    2. If unit tests are successful, deploy the application container to a testing environment, and run integration tests.
    3. If the integration tests are successful, the pipeline deploys the application container to the production environment. After that, run acceptance tests.
  • D. 1. 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.
    2. Trigger Cloud Build to deploy the container to a testing environment, and run integration tests and acceptance tests.
    3. If all tests are successful, the pipeline deploys the application to the production environment and runs smoke tests
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
PrayasMohanty
Highly Voted 1 year, 1 month ago
I vote for B
upvoted 6 times
...
nhiguchi
Highly Voted 1 year, 1 month ago
Selected Answer: D
I think D
upvoted 5 times
...
surfer111
Most Recent 3 months, 2 weeks ago
D, you need a container to be built so you can run the tests against it folks. D is the right answer.
upvoted 1 times
...
xhilmi
11 months, 3 weeks ago
Selected Answer: D
The optimal approach for establishing a CI/CD pipeline for a containerized application in Google Cloud is (Option D). In this method, unit tests are seamlessly integrated into the initial stages of the pipeline, automatically triggered when code is pushed. Successful unit tests then prompt Cloud Build to construct and push the application container to a central registry. The pipeline subsequently orchestrates the deployment of the container to a testing environment, where comprehensive integration and acceptance tests are executed. Only when all tests pass successfully does the pipeline advance to deploying the application to the production environment, accompanied by the execution of smoke tests. This systematic and thorough process ensures that any code changes undergo rigorous testing at various stages, ensuring high-quality standards and instilling confidence in the deployment process to production.
upvoted 3 times
...
PGontijo
1 year, 1 month ago
You can use Cloud Build to build a container. A is correct.
upvoted 1 times
...
florian_cartron
1 year, 1 month ago
Selected Answer: D
I would chose D as question states that we want to run all tests in the pipeline, which is not the case with a hook for unit tests. Option D also adds smoke tests in production env.
upvoted 3 times
surfer111
3 months, 3 weeks ago
D is fully automated. "The pipeline deploys..."
upvoted 1 times
...
PrayasMohanty
1 year, 1 month ago
Smoke testing is the practice of testing fundamental and core elements of a software program in the early phases of development to identify minor issues that might delay the product's release. At its core, smoke testing is used to establish whether the released software build is reliable or not.
upvoted 2 times
...
...
ManishKS
1 year, 1 month ago
Answer Should be B
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...