Google Sample Question 22 of 27

You are using Workflows to call an API that returns a 1KB JSON response, apply some complex business logic on this response, wait for the logic to complete, and then perform a load from a Cloud Storage file to BigQuery. The Workflows standard library does not have sufficient capabilities to perform your complex logic, and you want to use Python's standard library instead. You want to optimize your workflow for simplicity and speed of execution. What should you do?

Source: Google Cloud OFFICIAL

Official sample question published by Google Cloud. WiseOwlLearns is not affiliated with Google LLC.

All explanations and Option Analyzer™ content are generated by WiseOwlLearns and are not endorsed by Google Cloud.

A Create a Dataproc cluster, and use PySpark to apply the logic on your JSON file.
B Invoke a Cloud Run function instance that uses Python to apply the logic on your JSON file. ✓ Correct
C Invoke a subworkflow in Workflows to apply the logic on your JSON file.
D Create a Cloud Composer environment and run the logic in Cloud Composer.
🦉 Explanation by WiseOwl Tutor™ — not endorsed by Google

A is not correct because creating a Dataproc cluster to process a 1KB JSON file is not optimized for speed. B is correct because a Cloud Run function is fast to spin up and supports the use of Python. C is not correct because creating a subworkflow will only give you access to Workflows standard library, hence not solving the problem D is not correct because it is not optimizing for simplicity and would be overkill

Ready to practice?

These 27 official sample questions are free to practice on WiseOwlLearns — no account required. Get real-time tutoring from WiseOwl Tutor™ and step-by-step elimination reasoning from Option Analyzer™.