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

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 141 discussion

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

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?

  • A. Trigger a Spinnaker pipeline configured as an A/B test of your new code and, if it is successful, deploy the container to production.
  • B. Trigger a Spinnaker pipeline configured as a canary test of your new code and, if it is successful, deploy the container to production.
  • C. Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a canary test.
  • D. Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a shadow test.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
thewalker
2 months, 2 weeks ago
Selected Answer: B
Zero Downtime: Canary testing allows you to gradually roll out your new container to a small percentage of users while the rest continue using the previous version. This ensures zero downtime during the deployment process. Automated Testing: Spinnaker is a powerful CI/CD platform that can automate your canary testing process, including monitoring the new container's performance and health. Testing Before Rollout: Canary testing allows you to test the new container in a production environment with real users, but with limited impact. This helps identify any issues before a full rollout. Quick Rollback: If the canary test reveals problems, Spinnaker can quickly roll back to the previous version, minimizing disruption to users.
upvoted 1 times
thewalker
2 months, 2 weeks ago
A. Trigger a Spinnaker pipeline configured as an A/B test of your new code and, if it is successful, deploy the container to production: While A/B testing is valuable for comparing different versions of your application, it's not the best choice for zero-downtime deployments. A/B tests typically involve routing traffic to different versions, which can lead to downtime during the transition. C. Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a canary test: While you can manually perform canary testing using the Kubernetes CLI, it's not as efficient or automated as using a dedicated tool like Spinnaker.
upvoted 1 times
thewalker
2 months, 2 weeks ago
D. Trigger another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a shadow test: Shadow testing involves running the new container alongside the existing one, but without routing traffic to it. This is useful for performance testing but doesn't provide real-world user feedback.
upvoted 1 times
...
...
...
__rajan__
1 year, 2 months ago
Selected Answer: B
Spinnaker is a cloud native continuous delivery platform that can be used to deploy applications to a variety of cloud providers, including Google Kubernetes Engine (GKE). Spinnaker is a good choice for deploying applications to GKE because it provides a number of features that make it easy to deploy applications quickly and reliably, including: Canary deployments: Canary deployments allow you to deploy a new version of your application to a small subset of users before rolling it out to all users. This allows you to test the new version of your application and identify any problems before they impact all of your users. Rollback: Spinnaker can be used to quickly rollback to a previous version of your application if you encounter any problems with the new version.
upvoted 1 times
...
purushi
1 year, 3 months ago
Selected Answer: D
Shadow testing is the right choice. Canary is not suitable here since the requirement is to test before rolling new version to users. Option A also comes very closer since it has A/B testing that is done only after releasing the newer version to users that is only small amount of traffic is diverted to dedicated users (testers) who gives faster feedback about newer product/service.
upvoted 1 times
...
omermahgoub
1 year, 10 months ago
Selected Answer: D
Option D, triggering another Cloud Build job that uses the Kubernetes CLI tools to deploy your new container to your GKE cluster, where you can perform a shadow test, could meet the requirements you specified. Shadow testing is a technique where you can test the new version of an application by mirroring user traffic to it, without impacting the user requests to the current version. This way, you can test the new version of your application in a real-world environment with real user traffic, which allows for testing before being rolled out to users and allows for a quick rollback if needed. And with the use of Kubernetes CLI tools you can automate this process, so the testing and deployment is fully automated.
upvoted 2 times
...
zellck
1 year, 11 months ago
Selected Answer: D
D is the answer. 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.
upvoted 2 times
...
test010101
1 year, 11 months ago
Selected Answer: D
vote D
upvoted 1 times
...
gardislan18
1 year, 11 months ago
Selected Answer: D
IMHO by eliminating B and C - uses canary which letting the users use the new version without testing A - canary is often a synonym of A/B testing
upvoted 2 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 ...