D4: Trace Analysis & Isolating Failures
Claude Certified Developer – Foundations exam practice questions · 10 flashcards
Question
What is trace analysis?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Trace Analysis & Isolating Failures practice questions and answers
- What is trace analysis?Inspecting the full record of a run (requests, responses, tool calls, results) to find where it went wrong.
- What should a trace capture?Prompts, model ID, parameters, responses, stop_reason, tool calls/results, latency, tokens and request ID.
- Integration layer vs model output problem?HTTP errors, bad requests or parsing crashes are integration; valid responses with wrong content are model/prompt issues.
- A response is cut off mid-JSON. Likely cause?stop_reason max_tokens: raise max_tokens or reduce output size.
- Claude never calls a tool you expected. What do you check?Tool description clarity, tool_choice and whether the tool was actually included in the request.
- Tool results look wrong. Where to look?The tool's own execution and inputs, which is integration code, not the model.
- How do you reproduce a model-output issue?Re-run the exact logged request (same prompt, model, parameters) and vary one thing.
- Why can identical requests give different results?Sampling is non-deterministic; temperature affects variability.
- What is a failure mode taxonomy?Grouping failures by type (hallucination, format error, wrong tool, refusal, truncation) to prioritize fixes.
- Why log the stop_reason for every call?It quickly reveals truncation, refusals and tool-use states.