
Answer-first summary for fast verification
Answer: Use Cloud Build to deploy the application as a new Compute Engine image for each build. Use this image in each environment.
The goal is to ensure consistent results across environments without using containers. Option B is correct because using Cloud Build to create a Compute Engine image for each build ensures that the same image is deployed across all environments, minimizing external dependencies and inconsistencies. This approach avoids containers (which are not approved) and leverages VM images, which are cost-effective and reliable. Option C is incorrect because relying on the latest base image introduces variability. Options A and D involve containers (Cloud Run and GKE), which are not approved. Thus, B is the best choice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can you ensure consistent deployment results and minimize costs for a .NET legacy application across environments in a CI/CD pipeline, without using containers, while accounting for external dependencies and hosting environment variations?
A
Rewrite the application using .NET Core, and deploy to Cloud Run. Use revisions to separate the environments.
B
Use Cloud Build to deploy the application as a new Compute Engine image for each build. Use this image in each environment.
C
Deploy the application using MS Web Deploy, and make sure to always use the latest, patched MS Windows Server base image in Compute Engine.
D
Use Cloud Build to package the application, and deploy to a Google Kubernetes Engine cluster. Use namespaces to separate the environments.
No comments yet.