Google Cloud Professional Cloud Developer — Question 285
You work for a company that operates an ecommerce website. You are developing a new integration that will manage all order fulfillment steps after orders are placed. You have created multiple Cloud Functions to process each order. You need to orchestrate the execution of the functions, using the output of each function to determine the flow. You want to minimize the latency of this process. What should you do?
Answer options
- A. Use Workflows to call the functions, and use callbacks to handle the execution logic.
- B. Use Workflows to call the functions, and use conditional jumps to handle the execution logic.
- C. Use Cloud Composer to call the functions, and use an Apache Airflow HTTP operator to handle the execution logic.
- D. Use Cloud Composer to call the functions, and use an Apache Airflow operator to handle the execution logic.
Correct answer: B
Explanation
The correct answer is B, as Workflows allows for conditional jumps which can effectively determine the flow of execution based on the output of each Cloud Function, thus minimizing latency. Option A suggests using callbacks, which can add complexity and increase latency. Options C and D involve Cloud Composer and Apache Airflow, which are better suited for more complex workflows and might not achieve the minimal latency desired in this scenario.