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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
TotoroChina
Highly Voted 2 years, 10 months ago
Answer should be C, obviously.
upvoted 46 times
...
AdGlad
Highly Voted 2 years, 9 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 38 times
...
Gino17m
Most Recent 1 week, 5 days 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
...
Gall
2 months, 3 weeks ago
Selected Answer: C
C but.... "build container and add to the registry" ???? Not container but image.
upvoted 1 times
...
convers39
3 months, 3 weeks ago
Selected Answer: C
Nah, no way to be A.
upvoted 1 times
...
AWS_Sam
4 months ago
The correct answer is C.
upvoted 1 times
...
AdityaGupta
7 months ago
Selected Answer: C
Agreed with omermahgoub Answer should be C.
upvoted 1 times
...
balajisreenivas
1 year, 1 month ago
Selected Answer: C
By elimination method, the answer is C.
upvoted 1 times
...
kopasz93
1 year, 1 month ago
Selected Answer: C
The answer is C.
upvoted 1 times
...
Dr_Ramzus
1 year, 3 months ago
Selected Answer: C
Clearly C
upvoted 1 times
...
omermahgoub
1 year, 4 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, 4 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, 4 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, 5 months ago
Selected Answer: C
C is ok
upvoted 1 times
...
minmin2020
1 year, 6 months 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
...
Amit_arch
1 year, 7 months ago
Selected Answer: D
C doesn't include test success. D should be the option.
upvoted 1 times
zr79
1 year, 6 months ago
It does include tests succuss, the question is using CI/CD
upvoted 1 times
...
zellck
1 year, 7 months ago
Vulnerability Scanning is not relevant though for the question.
upvoted 1 times
...
...
shayke
1 year, 9 months ago
Selected Answer: C
C- the only answer
upvoted 2 times
...
gardislan18
1 year, 9 months ago
Selected Answer: C
The answer should be C, we eliminate A and B because we should use Cloud Build trigger instead, now we eliminate D because the deployment step is done manually and the requirement says automatically So answer is C, it leverages Cloud Build trigger, tests the code, and uses deployment pipeline
upvoted 3 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 ...