You must build and deploy a C++ microservice that uses custom libraries, be containerized, and avoid managing infrastructure. How should you deploy it?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Cloud Build to build the container image and deploy it to Cloud Run..
Why this is the answer
The correct option is to use Cloud Build to build the container image and deploy it to Cloud Run. Cloud Run is a fully managed serverless platform for containerized applications, perfectly aligning with the requirement to avoid managing infrastructure. It supports custom runtimes, including C++, and automatically scales based on traffic. Cloud Build is the appropriate tool for building the container image from your C++ code and custom libraries. Cloud Functions is unsuitable because it primarily supports specific runtimes (Node.js, Python, Go, Java, .NET, Ruby, PHP) and is not designed for arbitrary containerized microservices with custom C++ libraries. Using Cloud Shell to containerize and run on a Container-Optimized OS Compute Engine VM or deploy to a standard GKE cluster would involve managing infrastructure (VMs or Kubernetes clusters), which the problem explicitly states to avoid.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed