Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the monitoring agent.
Agentic AI
agent.start_monitoring([1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using verbose or debug flags instead of interval
Setting mode to silent disables monitoring
✗ Incorrect
The interval=10 sets the monitoring checks to run every 10 seconds, which is a common default.
2fill in blank
mediumComplete the code to log agent errors to a file.
Agentic AI
agent.configure_logging(log_file=[1]) Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Passing boolean or number instead of a file path
Using None disables logging
✗ Incorrect
The log_file parameter expects a file path as a string to write logs.
3fill in blank
hardFix the error in the code to correctly set the alert threshold.
Agentic AI
agent.set_alert_threshold([1]=75)
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect parameter names like alert or limit
Misspelling threshold
✗ Incorrect
The correct parameter name is threshold to set alert limits.
4fill in blank
hardFill both blanks to filter logs by severity and time.
Agentic AI
filtered_logs = agent.get_logs(severity=[1], since=[2])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using lower severity levels
Incorrect timestamp formats
✗ Incorrect
Filtering logs by severity 'ERROR' and time since '2024-01-01T00:00:00Z' helps focus on recent critical issues.
5fill in blank
hardFill all three blanks to create a summary report with filters.
Agentic AI
report = agent.create_report(type=[1], start_date=[2], end_date=[3])
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing wrong report type
Swapping start and end dates
Using invalid date formats
✗ Incorrect
The report type 'errors' with start and end dates filters the report to April 2024 error data.