Workflows calls an API returning 1KB JSON, needs complex Python standard-library logic, then loads a GCS file to BigQuery; optimize for simplicity and execution speed.
Choose an answer
Tap an option to check your answer.
Correct answer: Invoke a Python Cloud Function to run the logic..
Why this is the answer
A Python Cloud Function is the most suitable choice for this scenario due to its serverless nature, automatic scaling, and direct support for standard Python libraries. It can efficiently handle the API call, complex Python logic, and GCS to BigQuery load without managing infrastructure, optimizing for both simplicity and execution speed. Cloud Composer (managed Apache Airflow) is overkill for a single, straightforward task, adding unnecessary complexity and cost. Dataproc with PySpark is designed for large-scale data processing, not for a small 1KB JSON payload and standard Python logic, leading to high overhead and slow startup times. A Workflows subworkflow would still require an execution environment for the Python logic; Workflows orchestrates, but doesn't execute arbitrary code itself.
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