0
0
Agentic AIml~20 mins

Workflow orchestration across agents in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Master of Workflow Orchestration
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main role of a workflow orchestrator in multi-agent AI systems?

Imagine you have several AI agents working together to complete a complex task. What does the workflow orchestrator do?

AIt manages the order and timing of tasks among agents to ensure smooth collaboration.
BIt trains each agent individually without coordinating their tasks.
CIt only collects data from agents but does not control their actions.
DIt replaces all agents by performing all tasks itself.
Attempts:
2 left
💡 Hint

Think about how a conductor leads musicians in an orchestra.

Model Choice
intermediate
2:00remaining
Which model architecture best supports workflow orchestration across multiple AI agents?

You want to design a system where multiple AI agents communicate and coordinate their actions. Which architecture is most suitable?

ACentralized controller that sends commands and receives feedback from agents.
BIndependent agents working in isolation without communication.
CSingle monolithic model handling all tasks without delegation.
DRandom task assignment without any coordination.
Attempts:
2 left
💡 Hint

Think about a manager who assigns tasks and checks progress.

Metrics
advanced
2:00remaining
Which metric best measures the efficiency of workflow orchestration across agents?

You want to evaluate how well your orchestrator coordinates multiple agents to complete a task quickly and correctly. Which metric should you use?

AMemory usage of each agent individually.
BNumber of agents in the system.
CTotal task completion time combined with task success rate.
DNumber of lines of code in the orchestrator.
Attempts:
2 left
💡 Hint

Think about measuring speed and correctness together.

🔧 Debug
advanced
2:00remaining
Why does this orchestrator code cause deadlock when coordinating agents?

Consider this simplified pseudocode for an orchestrator:

while not all_tasks_done:
    for agent in agents:
        if agent.waiting_for_response:
            continue
        task = get_next_task(agent)
        send_task(agent, task)
        wait_for_agent_response(agent)

Why might this cause a deadlock?

ABecause agents never receive any tasks.
BBecause the orchestrator waits for each agent's response before sending tasks to others, blocking progress.
CBecause the loop never checks if all tasks are done.
DBecause the orchestrator sends tasks too quickly without waiting.
Attempts:
2 left
💡 Hint

Think about waiting for one agent blocking others.

Predict Output
expert
3:00remaining
What is the output of this multi-agent orchestration simulation?

Given the following Python code simulating two agents coordinated by an orchestrator, what is printed?

Agentic AI
class Agent:
    def __init__(self, name):
        self.name = name
        self.tasks_done = 0
    def perform_task(self):
        self.tasks_done += 1
        return f"{self.name} done task {self.tasks_done}"

class Orchestrator:
    def __init__(self, agents):
        self.agents = agents
    def run(self):
        results = []
        for _ in range(2):
            for agent in self.agents:
                results.append(agent.perform_task())
        return results

agents = [Agent("A1"), Agent("A2")]
orch = Orchestrator(agents)
output = orch.run()
print(output)
A["A2 done task 1", "A1 done task 1", "A2 done task 2", "A1 done task 2"]
B["A1 done task 1", "A1 done task 2", "A2 done task 1", "A2 done task 2"]
C["A1 done task 1", "A2 done task 1"]
D["A1 done task 1", "A2 done task 1", "A1 done task 2", "A2 done task 2"]
Attempts:
2 left
💡 Hint

Look at the nested loops: outer loop runs twice, inner loop runs over agents.