0
0
Agentic AIml~20 mins

CrewAI for multi-agent teams in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
CrewAI Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding CrewAI's Team Coordination

In CrewAI, multiple agents work together to solve complex tasks. What is the primary mechanism that enables these agents to coordinate effectively?

AAgents share a centralized memory to exchange information and update their states.
BEach agent works independently without any communication to avoid conflicts.
CAgents randomly select tasks without any coordination to increase diversity.
DAgents rely solely on external human input to decide their next actions.
Attempts:
2 left
💡 Hint

Think about how agents can keep track of what others are doing to avoid repeating work.

Predict Output
intermediate
2:00remaining
Output of CrewAI Agent Interaction Code

Consider the following simplified Python code snippet simulating two CrewAI agents updating a shared task list. What will be the final content of shared_tasks after running?

Agentic AI
shared_tasks = ['task1']

def agent1():
    shared_tasks.append('task2')

def agent2():
    shared_tasks.append('task3')

agent1()
agent2()
print(shared_tasks)
A['task2', 'task3']
B['task1', 'task2', 'task3']
C['task1', 'task3', 'task2']
D['task1']
Attempts:
2 left
💡 Hint

Both agents add tasks sequentially to the shared list.

Model Choice
advanced
2:30remaining
Choosing the Best Model Architecture for CrewAI Agents

You want to design CrewAI agents that can remember past interactions and adapt their strategies over time. Which model architecture is best suited for this?

ASimple linear regression model
BFeedforward Neural Network without memory components
CConvolutional Neural Network (CNN) designed for image data
DRecurrent Neural Network (RNN) with gated units like LSTM or GRU
Attempts:
2 left
💡 Hint

Think about models that can handle sequences and remember previous inputs.

Hyperparameter
advanced
2:30remaining
Optimizing CrewAI Agent Collaboration via Hyperparameters

In CrewAI, agents communicate through messages. Which hyperparameter adjustment would most likely improve the quality of their collaboration?

ADisabling message passing to speed up computation
BReducing the number of agents to a single agent
CIncreasing the message passing frequency between agents
DSetting the learning rate to zero
Attempts:
2 left
💡 Hint

More frequent communication can help agents stay updated.

🔧 Debug
expert
3:00remaining
Debugging CrewAI Agent Deadlock Scenario

Two CrewAI agents are stuck waiting for each other's messages indefinitely, causing a deadlock. Which change will fix this deadlock?

Agentic AI
agent1_waiting = True
agent2_waiting = True

while agent1_waiting and agent2_waiting:
    # Both agents wait for each other's message
    pass

# Fix needed here
AIntroduce a timeout mechanism so agents stop waiting after a fixed time
BIgnore message passing and let agents act randomly
CMake both agents wait longer to ensure messages arrive
DRemove the while loop to let agents run without waiting
Attempts:
2 left
💡 Hint

Think about how to prevent infinite waiting in real life.