nerdexam
Microsoft

AZ-204 · Question #226

You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an Azure Storage account. The web application makes HTTP r

Sign in or unlock AZ-204 to reveal the answer and full explanation for question #226. The question stem and answer options stay visible for context.

Submitted by paula_co· Mar 30, 2026Monitor, troubleshoot, and optimize Azure solutions

Question

You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an Azure Storage account. The web application makes HTTP requests to external services as part of normal operations. The web application is instrumented with Application Insights. The external services are OpenTelemetry compliant. You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system. What should you do?

Options

  • ACreate a new SpanContext with the TraceRags value set to the customer ID for the signed in
  • BOn the current SpanContext, set the Traceld to the customer ID for the signed in user.
  • CAdd the customer ID for the signed in user to the CorrelationContext in the web application.
  • DSet the header Ocp-Apim-Trace to the customer ID for the signed in user.

Unlock AZ-204 to see the answer

You've previewed enough free AZ-204 questions. Unlock AZ-204 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Application Insights#OpenTelemetry#distributed tracing#CorrelationContext
Full AZ-204 Practice