Microsoft DevOps Engineer Expert AZ-400 Practice Question
Your organization hosts a retail platform in Azure that consists of a React single-page app in Static Web Apps, an ASP.NET Core checkout API in App Service, and an Azure Function that processes orders from an Azure Service Bus queue. All components send telemetry to Application Insights. In the End-to-end transaction view, the function execution appears as a separate trace instead of continuing the original customer request. You must have a single distributed trace that spans the entire workflow. Which action should you take?
Create an Azure Monitor work item integration between the ASP.NET Core API and the Azure Function.
Enable adaptive sampling in the Azure Function's Application Insights configuration to reduce the volume of telemetry.
Change the Azure Function's Application Insights connection string so it is identical to the connection string used by the ASP.NET Core API.
Propagate W3C trace context by adding the traceparent (and optional tracestate) header to the Service Bus message and configure the Azure Function to use W3C distributed tracing.
Application Insights correlates operations by passing a trace context between components. For non-HTTP hops such as Azure Service Bus, the producing service must add the W3C Trace Context headers (traceparent and, optionally, tracestate) to the message and the consumer must read that context when it sends its own telemetry. Enabling adaptive sampling only affects data volume, not correlation. Sharing a connection string or instrumentation key does not propagate operation IDs; it only sends data to the same resource. Azure Monitor work item integrations are unrelated to telemetry correlation. Therefore, injecting and propagating W3C trace headers is required.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is W3C Trace Context?
Open an interactive chat with Bash
How does Azure Function support W3C distributed tracing?