Topic 1 Question 315
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?
Create a Cloud Composer environment and run the logic in Cloud Composer.
Create a Dataproc cluster, and use PySpark to apply the logic on your JSON file.
Invoke a Cloud Function instance that uses Python to apply the logic on your JSON file.
Invoke a subworkflow in Workflows to apply the logic on your JSON file.
ユーザの投票
コメント(2)
- 正解だと思う選択肢: C
Cloud Functions is a serverless compute service ideal for executing lightweight, event-driven tasks with low latency.
👍 2FireAtMe2024/12/15 - 正解だと思う選択肢: C
C. Invoke a Cloud Function instance that uses Python to apply the logic on your JSON file.
Using a Cloud Function allows you to run your Python code in a serverless environment, which simplifies deployment and management. It also ensures quick execution and scalability, as Cloud Functions can handle the processing of your JSON response efficiently
👍 2Pime132025/01/06
シャッフルモード