Question 970
After implementing a fix for: A chat request takes ten seconds, but developers cannot tell whether delay comes from PostgreSQL vector lookup or model inference. Which observed result best validates the outcome?
Explanation
Correct Answer
A slow test request identifies the dominant time-consuming stage in a waterfall. The scenario specifically states: A chat request takes ten seconds, but developers cannot tell whether delay comes from PostgreSQL vector lookup or model inference. Distributed spans can separate retrieval, queueing, model call and response-generation latency. This result directly measures the intended change after implementation. The corresponding corrective action is Instrument each relevant stage with consistent trace context and named spans. The important remaining qualification is: A trace pinpoints latency distribution but not necessarily the underlying root cause.
Incorrect Answers
W3C trace context can propagate causal trace IDs through supported messaging headers to downstream spans. In the present case the governing issue is Distributed spans can separate retrieval, queueing, model call and, which this does not resolve.
KQL percentile aggregation can summarize tail latency rather than only mean. That observation may hold without resolving the relevant issue: A slow test request identifies the dominant time-consuming stage.
KQL summarize with countif and bin can calculate time-bucketed failure rates. It does not verify the requested outcome; here the decisive check concerns A slow test request identifies the dominant time-consuming stage.