PROFESSIONAL-CLOUD-DEVELOPER · Question #382
You are building a Workflow to process complex data analytics for your application. You plan to use the Workflow to execute a Cloud Run job while following Google-recommended practices. What should yo
The correct answer is C. Use the Cloud Run Admin API connector to execute the Cloud Run job within the Workflow.. Google Cloud Workflows provides built-in API connectors for Google Cloud services, including the Cloud Run Admin API. Using the Cloud Run Admin API connector within a Workflow step is the direct, recommended way to programmatically create and execute a Cloud Run job run and wait
Question
You are building a Workflow to process complex data analytics for your application. You plan to use the Workflow to execute a Cloud Run job while following Google-recommended practices. What should you do?
Options
- ACreate a Pub/Sub topic, and subscribe the Cloud Run job to the topic.
- BConfigure an Eventarc trigger to invoke the Cloud Run job, and include the trigger in a step of the
- CUse the Cloud Run Admin API connector to execute the Cloud Run job within the Workflow.
- DDetermine the entry point of the Cloud Run job, and send an HTTP request from the Workflow.
How the community answered
(26 responses)- A4% (1)
- B4% (1)
- C77% (20)
- D15% (4)
Explanation
Google Cloud Workflows provides built-in API connectors for Google Cloud services, including the Cloud Run Admin API. Using the Cloud Run Admin API connector within a Workflow step is the direct, recommended way to programmatically create and execute a Cloud Run job run and wait for its result-all orchestrated within the Workflow's execution graph. Option A (Pub/Sub topic subscription) is event-driven and does not give the Workflow direct control or visibility over the job's execution. Option B (Eventarc trigger) is also event-based and inverts the control flow-triggers fire on events, not on Workflow steps. Option D is invalid because Cloud Run jobs do not expose HTTP endpoints; that pattern applies to Cloud Run services.
Topics
Community Discussion
No community discussion yet for this question.