An agent sometimes calls the same tool ten times in a row, and costs vary wildly between tasks. What should you monitor?
- Exam domain
- Operational Efficiency and Optimization for GenAI Applications12% of the exam
- Difficulty
- Medium
- In this mock
- 12 questions on this domainPractise this domain
Why the exam asks this
Task 4.3: Implement monitoring systems for GenAI applications.
Objective in the exam guide: Skill 4.3.4: Create tool performance frameworks to ensure optimal tool operation and utilization (for example, by using call pattern tracking, tool calling observability and multi-agent coordination tracking, usage baselines for anomaly detection).
Agents can loop or misuse tools without any error being raised, and each call costs money. Tool-level observability is how you catch that.
Why A is the answer
Tool call patterns per task, with baselines and alerts for unusual call counts
Tracking tool calls against a baseline reveals loops and inefficient use, which drive cost.
Remember: Watch how agents use tools: counts, errors and latency against a baseline.
How it works
Agents choose tools at run time, so their behavior varies from task to task.
Tracking each tool call (which tool, how often, latency, errors) shows loops, misuse and slow tools.
Baselines of normal usage let alerts fire on anomalies, such as an unusual number of calls in one task.
Clues in the question
The words that point to the answer, and what each one tells you.
- Same tool ten times in a row
- A loop visible in call patterns.
- Costs vary wildly
- Usage per task must be tracked.
In detail
- Tool performance frameworks track call patterns, latency, errors and usage.
- In multi-agent systems, coordination between agents should be tracked too.
Side by side with look-alikes
| Signal | Reveals loops? |
|---|---|
| Tool call patterns per task | Yes |
| Final answer only | No |
| Self-reported confidence | No |
| Instruction size | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Tool call patterns per task, with baselines and alerts for unusual call countsRight
Watch how agents use tools: counts, errors and latency against a baseline.
B. Only the final answer textWrongMost tempting
The final text hides how many calls it took.
Why it tempts: The answer is what users see, so it feels like what matters. But it hides the ten wasted calls behind it.
C. The agent's self-reported confidenceWrong
Self-reported confidence does not reveal loops.
D. The size of the agent's instructionsWrong
Instruction size is fixed; the behavior varies.
In practice
- Emit a metric for each tool call, tagged with tool name and task ID.
- Alert when calls per task exceed the normal range.
Use case
An illustrative scenario, not a real incident.
An alert on more than five calls to one tool per task catches a looping agent the same day it starts.
See how it works
xychart-beta x-axis ["Task 1", "Task 2", "Task 3", "Task 4", "Task 5"] y-axis "Tool calls" 0 --> 12 bar [3, 4, 11, 3, 4] line [5, 5, 5, 5, 5]
How to read this chart
- Each bar is the number of tool calls one task needed.
- The flat line is the alert threshold based on normal usage.
- Task 3 is far above it: a looping agent worth investigating.