
Ultimate access to all questions.
Your team is embarking on developing a new application using a microservices architecture deployed on Google Kubernetes Engine (GKE). To maintain a robust development lifecycle, any code change pushed to the remote 'develop' branch on your GitHub repository should undergo automated build and testing processes. Upon passing these stages successfully, the appropriate microservice should be automatically deployed to the development environment. You need to ensure that all code deployed in this environment strictly adheres to this workflow. What should you do?
A
Have each developer install a pre-commit hook on their workstation to test the code and build the container when committing to the 'develop' branch. After a successful commit, have the developer deploy the newly built container image to the development cluster.
B
Install a post-commit hook on the remote Git repository to test the code and build the container when code is pushed to the 'develop' branch. After a successful commit, have the developer deploy the newly built container image to the development cluster.
C
Create a Cloud Build trigger based on the 'develop' branch that tests the code, builds the container, and stores it in Container Registry. Create a deployment pipeline that monitors for new images and deploys the new image on the development cluster. Ensure that only the deployment tool has access to deploy new versions.
D
Create a Cloud Build trigger based on the 'develop' 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 that only Cloud Build has access to deploy new versions.