Google Cloud Professional Cloud Developer — Question 170

Your development team has been tasked with maintaining a .NET legacy application. The application incurs occasional changes and was recently updated. Your goal is to ensure that the application provides consistent results while moving through the CI/CD pipeline from environment to environment. You want to minimize the cost of deployment while making sure that external factors and dependencies between hosting environments are not problematic. Containers are not yet approved in your organization. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because using Cloud Build to create a new Compute Engine image for each build ensures that the application is consistent across all environments, addressing the need for reliability without the complications of containerization. Option A suggests rewriting the application, which may not be feasible or cost-effective. Option C relies on MS Web Deploy, which doesn't ensure environment consistency as effectively as a dedicated image for each build. Option D introduces Kubernetes, which is not an option since containers are not approved.