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…

The correct answer is C. Add the customer ID for the signed in user to the CorrelationContext in the web application. OpenTelemetry uses correlation context and it fits the requirements: Correlation context carries user-defined properties. These properties are typically data that you would like to eventually aggregate for correlation analysis or use to filter your trace data, such as a…

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.

How the community answered

(40 responses)
  • A
    13% (5)
  • B
    8% (3)
  • C
    78% (31)
  • D
    3% (1)

Explanation

OpenTelemetry uses correlation context and it fits the requirements: Correlation context carries user-defined properties. These properties are typically data that you would like to eventually aggregate for correlation analysis or use to filter your trace data, such as a customer identifier. https://lightstep.com/opentelemetry/context-propagation

Topics

#Application Insights#OpenTelemetry#distributed tracing#CorrelationContext

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice