You need to expose a gRPC API that enqueues asynchronous requests consumed by other services, while minimizing infrastructure management. How should you deploy the API?
Choose an answer
Tap an option to check your answer.
Correct answer: Deploy the API as a Cloud Run service and publish messages to a Pub/Sub topic..
Why this is the answer
Cloud Run is the best choice because it is a fully managed, serverless platform that automatically scales and requires minimal infrastructure management, aligning perfectly with the "minimizing infrastructure management" requirement. It supports gRPC out of the box. Pub/Sub is a fully managed, scalable messaging service ideal for asynchronous communication between services, fulfilling the "enqueues asynchronous requests" need without managing message brokers. App Engine is also serverless but might be less flexible for gRPC compared to Cloud Run, especially for custom runtimes. GKE (Google Kubernetes Engine) and Compute Engine both involve significant infrastructure management (managing clusters, nodes, etc.), which contradicts the requirement to minimize it. Kafka also requires managing a cluster, unlike the fully managed Pub/Sub.
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