Question 650
A production AI change request asks the team to correlate model calls and retrieval spans during a multi-step agent request. Which mechanism should be selected?
Explanation
Correct Answer
OpenTelemetry trace instrumentation is the direct mechanism to correlate model calls and retrieval spans during a multi-step agent request. The qualifying acceptance result is that distributed trace shows linked spans from user request through tool completion; the alternative features address separate tasks.
Incorrect Answers
Trace sampling controls is used to reduce observability cost without removing all operational traces for high-volume inference. Its observable result is that sampled traces follow configured selection while request counters remain complete, so it is not the direct choice for the distinct requirement to correlate model calls and retrieval spans during a multi-step agent request.
Tool invocation span is used to locate a slow database tool step separately from the foundation-model generation time. Its observable result is that the trace contains a timed tool-call span with status and parent context, so it is not the direct choice for the distinct requirement to correlate model calls and retrieval spans during a multi-step agent request.
Exception capture in tracing is used to find the actual stack or remote error that caused an agent execution failure. Its observable result is that failed span records exception context with appropriate sensitive-data redaction, so it is not the direct choice for the distinct requirement to correlate model calls and retrieval spans during a multi-step agent request.



Operationalizing Machine Learning and Generative AI Solutions (AI-300) Practice Tests