0
0
Agentic AIml~20 mins

Agent communication protocols in Agentic AI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Agent Communication Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main purpose of an agent communication protocol?
In multi-agent systems, why do agents use communication protocols?
ATo ensure agents understand each other by following agreed rules for message exchange
BTo increase the speed of individual agent computations
CTo store large amounts of data locally within each agent
DTo prevent agents from interacting with each other
Attempts:
2 left
💡 Hint
Think about how agents coordinate and share information.
Model Choice
intermediate
2:00remaining
Which protocol is best suited for negotiation between agents?
You want agents to negotiate offers and counteroffers to reach an agreement. Which communication protocol fits best?
AContract Net Protocol
BPublish-Subscribe Protocol
CRequest-Response Protocol
DHeartbeat Protocol
Attempts:
2 left
💡 Hint
Consider protocols designed for task allocation and bidding.
Predict Output
advanced
2:00remaining
What is the output of this agent message parsing code?
Given the code below that parses a message in a simple agent protocol, what will be printed?
Agentic AI
message = 'REQUEST:fetch_data'
command, content = message.split(':')
if command == 'REQUEST':
    print(f"Agent received request to {content}")
else:
    print("Unknown command")
AUnknown command
BAgent received request to REQUEST
CAgent received request to fetch_data
Dfetch_data
Attempts:
2 left
💡 Hint
Look at how the message string is split and used.
Metrics
advanced
2:00remaining
Which metric best measures communication efficiency in multi-agent protocols?
You want to evaluate how efficiently agents communicate in a system. Which metric is most appropriate?
AAgent computation time per task
BMessage overhead ratio (number of messages sent vs. useful information exchanged)
CMemory usage of each agent
DNumber of agents in the system
Attempts:
2 left
💡 Hint
Think about measuring communication cost versus benefit.
🔧 Debug
expert
3:00remaining
Why does this agent communication code cause a deadlock?
Two agents use the following code to send and wait for messages. Why does this cause a deadlock? Agent A: response = agent_b.send('REQUEST') result = response.wait() Agent B: request = agent_a.receive() agent_a.send('RESPONSE') Options:
AAgent B tries to send a response before receiving the request, causing a deadlock
BAgent B receives the request but never sends a response, so Agent A waits forever
CAgent A sends a request but never waits for a response, so Agent B waits forever
DAgent A waits for a response before Agent B has received the request, causing both to wait indefinitely
Attempts:
2 left
💡 Hint
Consider the order of send and wait calls and how agents block.