Google Cloud Professional Cloud Developer — Question 260

You are tasked with using C++ to build and deploy a microservice for an application hosted on Google Cloud. The code needs to be containerized and use several custom software libraries that your team has built. You do not want to maintain the underlying infrastructure of the application. How should you deploy the microservice?

Answer options

Correct answer: B

Explanation

The correct answer is B because Cloud Build is designed for creating and managing container images, and deploying on Cloud Run allows you to run containers without managing infrastructure. Option A is incorrect since Cloud Functions is best for serverless functions, not containerized microservices. Option C and D involve using Cloud Shell, which is not as efficient for deployment without infrastructure management as Cloud Run.