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?
Choose an answer
Tap an option to check your answer.
Correct answer: 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..
Why this is the answer
This option correctly outlines an automated CI/CD pipeline. A Cloud Build trigger on the develop branch automates testing, building, and storing the container image in Container Registry. A separate deployment pipeline then deploys the new image to the development cluster, ensuring proper separation of concerns and controlled deployment access. This approach is scalable, reliable, and enforces consistent processes. The first two options rely on client-side or remote Git hooks and manual developer deployment, which is error-prone, not scalable, and doesn't enforce a consistent process across the team. The fourth option incorrectly suggests relying on Vulnerability Scanning for code tests, which is not its primary purpose, and directly deploying from Cloud Build can lead to less controlled deployments than a dedicated deployment pipeline.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed