Challenge - 5 Problems
Logging Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of this logging command?
Given the following command to log a tool call and its result, what will be the output in the log file?
Agentic AI
log_tool_call('deploy', {'version': '1.2.3'}) log_tool_result('deploy', 'success')
Attempts:
2 left
💡 Hint
Look carefully at the log levels and exact argument formatting.
✗ Incorrect
The logging function outputs info level messages with the exact dictionary of arguments and the result string as given.
❓ Troubleshoot
intermediate2:00remaining
Which option causes a logging failure?
Which of the following code snippets will cause a runtime error when logging tool calls and results?
Attempts:
2 left
💡 Hint
Check if all required arguments are provided to the logging functions.
✗ Incorrect
Option A calls log_tool_result without the required result argument, causing a TypeError.
❓ Configuration
advanced2:00remaining
Which logging configuration enables detailed tool call tracing?
You want to configure logging to capture detailed tool call arguments and results with timestamps. Which configuration snippet achieves this?
Attempts:
2 left
💡 Hint
Detailed tracing needs info level and timestamps in the format.
✗ Incorrect
INFO level with timestamps in the format string provides detailed logs with time and message level.
🔀 Workflow
advanced2:00remaining
What is the correct sequence to log a tool call and its result?
Arrange the steps in the correct order to properly log a tool call and its result.
Attempts:
2 left
💡 Hint
Logging the call happens before the tool runs, logging the result after it finishes.
✗ Incorrect
First log the call, then run the tool, get the result, and log the result.
✅ Best Practice
expert3:00remaining
Which practice ensures reliable logging of tool calls and results in concurrent environments?
In a system where multiple tool calls happen concurrently, which practice best ensures logs are accurate and not mixed up?
Attempts:
2 left
💡 Hint
Think about how to keep logs clear and traceable when many things happen at once.
✗ Incorrect
Thread-safe logging and unique IDs prevent log entries from different calls mixing and help trace each call separately.
