A multi-step agent sometimes fails because a tool times out or a streamed response is cut off, and costs vary widely. What should the team set up?
- Exam domain
- Operating, Monitoring, and Securing ML and AI Solutions24% of the exam
- Difficulty
- Hard
- In this mock
- 21 questions on this domainPractise this domain
Why the exam asks this
Task 4.1: Monitor ML and AI model inference and performance.
Objective in the exam guide: Skill 4.1.5: Monitor and automate the management of agent performance and coordination (for example, coordination failure detection, truncated streaming, tool failures).
Agents fail in the middle of multi-step runs, invisibly to standard metrics. Step-level observability is what makes them operable.
Why D is the answer
Agent observability, such as AgentCore Observability or CloudWatch generative AI observability, tracing each step, tool call and its resource use
Step-level tracing of agents shows which tools fail, where streams are cut and what each run consumes.
Remember: Trace agents step by step to find failures and cost drivers.
How it works
An agent run is a chain of model calls and tool calls, any of which can fail or stall.
Agent observability, for example AgentCore Observability or CloudWatch generative AI observability, traces each step with timing, errors and token use.
Those traces reveal failing tools, truncated streams and runs that consume unusual resources.
Clues in the question
The words that point to the answer, and what each one tells you.
- Tool times out or a streamed response is cut off
- Step-level failures.
- Costs vary widely
- Resource use per run must be tracked.
In detail
- Agent monitoring covers coordination failures, tool failures and truncated streaming.
- Resource consumption per run reveals loops and inefficient tool use.
Side by side with look-alikes
| Signal | Finds the failing step? |
|---|---|
| Step-level agent tracing | Yes |
| CPU alarm | No |
| Weekly answer review | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Only an alarm on endpoint CPUWrong
CPU does not show tool failures or truncation.
B. A weekly manual review of final answersWrongMost tempting
Final answers hide which step failed.
Why it tempts: Reviewing outputs is a quality habit. But final answers hide which step failed and why.
C. More tools for the agentWrong
More tools add more ways to fail.
D. Agent observability, such as AgentCore Observability or CloudWatch generative AI observability, tracing each step, tool call and its resource useRight
Trace agents step by step to find failures and cost drivers.
In practice
- Alert on tool error rates and on runs with unusual token use.
Use case
An illustrative scenario, not a real incident.
Traces show one search tool times out on 7% of calls and triggers expensive retries, so the team fixes its timeout.
See how it works
sequenceDiagram participant A as Agent participant M as Model participant S as Search tool A->>M: Plan M-->>A: Call search A->>S: Query S-->>A: Timeout after 30 s A->>S: Retry S-->>A: Result A->>M: Final answer
How to read this chart
- 1. Agent sends "Plan" to Model.
- 2. Agent gets a reply from Model: "Call search".
- 3. Agent sends "Query" to Search tool.
- 4. Agent gets a reply from Search tool: "Timeout after 30 s".
- 5. Agent sends "Retry" to Search tool.
- 6. Agent gets a reply from Search tool: "Result".
- 7. Agent sends "Final answer" to Model.