Google Cloud Professional Cloud Developer — Question 351
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?
Answer options
- A. Create a Pub/Sub topic, and subscribe the Cloud Run job to the topic.
- B. Configure an Eventarc trigger to invoke the Cloud Run job, and include the trigger in a step of the Workflow.
- C. Use the Cloud Run Admin API connector to execute the Cloud Run job within the Workflow.
- D. Determine the entry point of the Cloud Run job, and send an HTTP request from the Workflow.
Correct answer: C
Explanation
The correct answer is C because using the Cloud Run Admin API connector allows you to execute the Cloud Run job directly within the Workflow, which aligns with Google-recommended practices. Option A is incorrect as subscribing to a Pub/Sub topic does not directly execute the job. Option B, while involving Eventarc, does not utilize the API connector, and option D requires additional HTTP request handling, which is less efficient than using the API connector.