
Answer-first summary for fast verification
Answer: Deploy your API as a Cloud Run service. Create a Pub/Sub topic, and configure your API to push messages to the topic.
The question requires deploying an API with a gRPC interface while minimizing infrastructure management. gRPC requires HTTP/2 support, which is natively handled by Cloud Run, a fully managed serverless platform. App Engine (A) may require specific configurations and lacks native gRPC support in some environments. Cloud Run (B) allows containerized deployment with automatic scaling and no infrastructure management. Pub/Sub is a managed messaging service, aligning with the requirement, whereas Kafka (C, D) adds management overhead. GKE (C) and Compute Engine (D) require cluster/instance management, increasing overhead. Thus, B is the best choice.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How should you deploy a new API with a gRPC interface that creates requests on an asynchronous message service, ensuring minimal infrastructure management overhead while allowing consumption by different services?
A
Deploy your API to App Engine. Create a Pub/Sub topic, and configure your API to push messages to the topic.
B
Deploy your API as a Cloud Run service. Create a Pub/Sub topic, and configure your API to push messages to the topic.
C
Deploy your API to a GKE cluster. Create a Kafka cluster, and configure your API to write messages to the cluster.
D
Deploy your API on a Compute Engine instance. Create a Kafka cluster, and configure your API to write messages to the cluster.
No comments yet.