Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Specify observability components, including cross-service trace correlation, structured logging of agent reasoning paths, and agent replay capture for reproducible debugging

A worked example

Single answer

Contoso is designing replay capture for a multi-agent checkout solution in Azure. When a request fails in production, a snapshot is serialized as JSON to Azure Blob Storage and indexed by trace ID. The design must meet these requirements:

  • The snapshot must identify the model version that handled each agent invocation, even if a deployment's model version has since been upgraded.
  • Replay must load the exact system prompt text used in production and alert engineers when the current prompt no longer matches it.
  • Snapshots must not contain customer data returned by tools, and replay must not call live tool APIs.
  • Engineers must be able to load the complete span timeline for the failed request from Application Insights by trace ID.

In addition to the exact customer input, which snapshot contents should you capture?

Choose one answer
Why

Deployment names and model version identifiers preserve which models handled the failed request. Complete prompt text supports loading the original prompts, while SHA-256 hashes support detecting changes. Synthetic tool responses provide data for mock interceptors without retaining customer tool data or calling live APIs. The OpenTelemetry trace ID links the snapshot to the execution timeline in Application Insights.

  • Correct: Per-agent deployment name and model version, full prompt text with its SHA-256 hash, synthetic tool responses in production structure, and the OpenTelemetry trace ID. The source specifies deployment names and model versions to identify the models used, prompt text and hashes for reconstruction and change detection, synthetic tool responses for mocked calls, and a trace ID to retrieve the execution timeline.
  • Not correct: Per-agent deployment name and model version, the SHA-256 hash of each prompt without its text, synthetic tool responses in production structure, and the OpenTelemetry trace ID. A hash lets the framework detect that a prompt changed, but without the stored complete prompt text the original prompt cannot be loaded for replay.
  • Not correct: Per-agent deployment name without model version, full prompt text with its SHA-256 hash, synthetic tool responses in production structure, and the OpenTelemetry trace ID. The source captures the model version identifier alongside the deployment name because behavior can differ between versions. A name alone does not record which version handled the original request.
  • Not correct: Per-agent deployment name and model version, full prompt text with its SHA-256 hash, synthetic tool responses in production structure, and the customer session ID. According to the source, the complete trace ID is what lets the replay framework pull the whole execution timeline from Application Insights and rebuild the call order; a session ID does not serve that purpose.
  • Not correct: Per-agent deployment name and model version, full prompt text with its SHA-256 hash, verbatim production tool responses, and the OpenTelemetry trace ID. Keeping real tool responses raises PII concerns; the recommended design uses mock equivalents with synthetic values that keep the production structure.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free