nerdexam
GoogleGoogle

PROFESSIONAL-CLOUD-DEVELOPER · Question #158

PROFESSIONAL-CLOUD-DEVELOPER Question #158: Real Exam Question with Answer & Explanation

The correct answer is D: Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container. https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on- gke#perform_a_shadow_test With a shadow test, you test the new version of your application by mirroring user traffic from the current application version without impacting the user requests.

Deploying applications to Kubernetes

Question

You are building a CI/CD pipeline that consists of a version control system, Cloud Build, and Container Registry. Each time a new tag is pushed to the repository, a Cloud Build job is triggered, which runs unit tests on the new code builds a new Docker container image, and pushes it into Container Registry. The last step of your pipeline should deploy the new container to your production Google Kubernetes Engine (GKE) cluster. You need to select a tool and deployment strategy that meets the following requirements: - Zero downtime is incurred - Testing is fully automated - Allows for testing before being rolled out to users - Can quickly rollback if needed What should you do?

Options

  • ATrigger a Spinnaker pipeline configured as an A/B test of your new code and, if it is successful,
  • BTrigger a Spinnaker pipeline configured as a canary test of your new code and, if it is successful,
  • CTrigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container
  • DTrigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container

Explanation

https://cloud.google.com/architecture/implementing-deployment-and-testing-strategies-on- gke#perform_a_shadow_test With a shadow test, you test the new version of your application by mirroring user traffic from the current application version without impacting the user requests.

Topics

#GKE Deployment Strategies#CI/CD Pipelines#Cloud Build#Kubernetes CLI

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER PracticeBrowse All PROFESSIONAL-CLOUD-DEVELOPER Questions