exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 126 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 126
Topic #: 1
[All Professional Cloud Architect Questions]

Your team will start developing a new application using microservices architecture on Kubernetes Engine. As part of the development lifecycle, any code change that has been pushed to the remote develop branch on your GitHub repository should be built and tested automatically. When the build and test are successful, the relevant microservice will be deployed automatically in the development environment. You want to ensure that all code deployed in the development environment follows this process. What should you do?

  • A. Have each developer install a pre-commit hook on their workstation that tests the code and builds the container when committing on the development branch. After a successful commit, have the developer deploy the newly built container image on the development cluster.
  • B. Install a post-commit hook on the remote git repository that tests the code and builds the container when code is pushed to the development branch. After a successful commit, have the developer deploy the newly built container image on the development cluster.
  • C. Create a Cloud Build trigger based on the development branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that watches for new images and deploys the new image on the development cluster. Ensure only the deployment tool has access to deploy new versions.
  • D. Create a Cloud Build trigger based on the development branch to build a new container image and store it in Container Registry. Rely on Vulnerability Scanning to ensure the code tests succeed. As the final step of the Cloud Build process, deploy the new container image on the development cluster. Ensure only Cloud Build has access to deploy new versions.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
TotoroChina
Highly Voted 3 years, 4 months ago
Answer should be C, obviously.
upvoted 46 times
...
AdGlad
Highly Voted 3 years, 3 months ago
Questions say "relevant microservice will be deployed automatically in the development environment." Therefore A and B are out. D says "Rely on Vulnerability Scanning to ensure the code tests succeed." Vulnerability Scanning is not test so D is out. The correct Answer is therefore C.
upvoted 43 times
...
Abhi_ma_cdl_22
Most Recent 1 month ago
Selected Answer: C
By elimination process, the correct answer is C
upvoted 1 times
...
plumbig11
4 months ago
Selected Answer: C
Create a Cloud Build trigger based on the development branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that watches for new images and deploys the new image on the development cluster. Ensure only the deployment tool has access to deploy new versions.
upvoted 1 times
...
de1001c
4 months, 3 weeks ago
Selected Answer: C
Automatic, no developer running stuff, plus relying in pre-commit hooks alone is not a CD strategy. The C over D is because the pipeline in cloudbuild should run the tests, not the Vulnerability Scanner. While vulnerability scanner is useful, it's not required in this context, and there're no tests run in answer D.
upvoted 2 times
...
Gino17m
6 months, 1 week ago
Automatic deployment required in the question and manual deployment by developer in answer marked as correct ! Ance again....Who is responsible for marking answers as correct on examtopics platform ? Enyone from examtopics read responses from community and correct wrong answers ??? A few days after purchasing full access to this platform, I am disgusted :(
upvoted 1 times
ccpmad
4 months, 3 weeks ago
Do not be angry. That the answers are incorrect is on purpose. First so that the pdf is not shared and they are left without business. And secondly so that Google does not change the questions because then there are no correct answers filtered.
upvoted 1 times
...
...
Gall
8 months, 3 weeks ago
Selected Answer: C
C but.... "build container and add to the registry" ???? Not container but image.
upvoted 1 times
...
convers39
9 months, 3 weeks ago
Selected Answer: C
Nah, no way to be A.
upvoted 1 times
...
AWS_Sam
10 months ago
The correct answer is C.
upvoted 1 times
...
AdityaGupta
1 year ago
Selected Answer: C
Agreed with omermahgoub Answer should be C.
upvoted 1 times
...
balajisreenivas
1 year, 7 months ago
Selected Answer: C
By elimination method, the answer is C.
upvoted 1 times
...
kopasz93
1 year, 7 months ago
Selected Answer: C
The answer is C.
upvoted 1 times
...
Dr_Ramzus
1 year, 9 months ago
Selected Answer: C
Clearly C
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
The correct answer is C: Create a Cloud Build trigger based on the development branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that watches for new images and deploys the new image on the development cluster. Ensure only the deployment tool has access to deploy new versions. To automate the build and deployment process for your microservices in the development environment, you can use Cloud Build to set up a trigger that listens for code pushes to the development branch on your GitHub repository. When a code change is pushed to the branch, Cloud Build can test the code, build the container image, and store it in Container Registry. You can then create a deployment pipeline that watches for new images in Container Registry and deploys them automatically on the development cluster. To ensure that only code that has been properly tested and built is deployed in the development environment, you should ensure that only the deployment tool has access to deploy new versions.
upvoted 8 times
omermahgoub
1 year, 10 months ago
Option A is incorrect because installing a pre-commit hook on each developer's workstation does not ensure that the build and test process is followed consistently for all code changes. It also does not provide a centralized way to track the deployments in the development environment. Option B is incorrect for the same reason. A post-commit hook on the remote repository does not provide a centralized way to manage the build and deployment process for all code changes in the development environment. Option D is incorrect because relying on Vulnerability Scanning alone is not sufficient to ensure that the code changes are properly tested and built before being deployed in the development environment. A more comprehensive build and test process, such as the one described in option C, is recommended to ensure the quality and reliability of the code being deployed.
upvoted 3 times
...
...
madmike123
1 year, 10 months ago
Selected Answer: C
"any code change that has been pushed to the remote develop branch on your GitHub repository should be built"...this excludes A and B since both happen locally before a push. Answer 'D' only performs security scanning (no test) and is not automatically deployed which is what was requested.
upvoted 1 times
...
megumin
1 year, 11 months ago
Selected Answer: C
C is ok
upvoted 1 times
...
minmin2020
2 years ago
Selected Answer: C
C. Create a Cloud Build trigger based on the development branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that watches for new images and deploys the new image on the development cluster. Ensure only the deployment tool has access to deploy new versions.
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago