NCP-AAI practice question 24 of 25
When designing complex agentic workflows that include both sequential and parallel task execution, which orchestration pattern offers the greatest flexibility?
Full set: 118 questionsA graph-based workflow, often represented as a Directed Acyclic Graph (DAG), provides the most flexibility for orchestrating complex agentic tasks. This pattern explicitly models tasks as nodes and dependencies as edges, naturally supporting sequential execution (a linear path), parallel execution (forking into multiple branches), and synchronization (joining branches). The inclusion of conditional branches allows the workflow to dynamically alter its path based on the outcomes of previous tasks, making it highly adaptive. This structure is superior to fixed linear pipelines or purely reactive event-driven models for designing and managing intricate, multi-step agentic processes.
B. A linear pipeline is inherently rigid, supporting only a fixed sequence of tasks and offering no flexibility for parallel execution or conditional logic.
C. While event-driven orchestration is flexible, a graph-based model provides a more structured and explicit framework for defining and visualizing complex dependencies and conditional logic upfront.
1. LangChain Documentation. (2024). LangGraph. The documentation for LangGraph, a library for building stateful, multi-actor applications, explicitly describes using graphs (nodes and edges) to create cyclical and complex workflows that go beyond the limitations of DAGs used in traditional orchestration. Section: "Introduction to LangGraph".
2. Apache Airflow Documentation. (2023). Airflow Concepts: DAGs. Apache Software Foundation. This documentation explains how Directed Acyclic Graphs (DAGs) are a core concept for defining workflows, showing how they orchestrate tasks with clear dependencies, enabling complex sequential and parallel execution patterns.
3. University of California, Berkeley. (2022). CS 162: Operating Systems and System Programming, Lecture 19: Distributed Systems. Lecture notes often cover workflow orchestration in distributed systems, explaining how graph-based models like DAGs are used to manage task dependencies and optimize for parallel execution.
Keep practicing
Take the free NCP-AAI practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other NCP-AAI practice questions
- Question 1Which two design goals are MOST important for human-in-the-loop agent systems in regulate…
- Question 2A company plans to launch a multi-agent system that must serve thousands of users simulta…
- Question 3Which two orchestration methods are MOST suitable for implementing complex agentic workfl…
- Question 4You are designing an AI agent for summarizing medical documents that include images and t…
- Question 5A company is deploying a multi-agent AI system to handle large-scale customer interaction…
- Question 6A multi-agent workflow is failing because one agent completes tasks before dependent stat…
