
Answer-first summary for fast verification
Answer: Use Workflows to call the functions, and use conditional jumps to handle the execution logic.
To minimize latency in orchestrating Cloud Functions for order fulfillment, Google Cloud Workflows is the optimal choice due to its serverless nature and low overhead. Workflows allows synchronous execution of functions, enabling immediate progression based on outputs. Conditional jumps (Option B) are suitable for dynamically routing execution flow based on function outputs without waiting for external callbacks, which could introduce delays. Cloud Composer (Options C & D) introduces more overhead as it's based on Apache Airflow, which is better suited for complex, scheduled workflows rather than low-latency orchestration. Callbacks (Option A) imply asynchronous handling, which may not align with minimizing latency. Thus, Option B using Workflows with conditional jumps is correct.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are developing an order fulfillment system for an ecommerce website using multiple Cloud Functions to process each order step. You need to orchestrate the execution of these functions, using each function's output to determine the workflow while minimizing latency. What is the recommended approach?
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.
No comments yet.