Home » Microsoft » AZ-204 v.2 » Which two dependency telemetry properties should you use? Each correct answer presents part of the solution.
You are developing an ASP.NET Core Web API web service. The web service uses Azure Application Insights for all telemetry and dependency tracking. The web service reads and writes data to a database other than Microsoft SQL Server.
You need to ensure that dependency tracking works for calls to the third-party database.
Which two dependency telemetry properties should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Telemetry.Context.Cloud.RoleInstance
B. Telemetry.Id
C. Telemetry.Name
D. Telemetry.Context.Operation.Id
E. Telemetry.Context.Session.Id
Correct Answer: BD
Explanation/Reference:
Explanation:
Example: public async Task Enqueue(string payload) { // StartOperation is a helper method that initializes the telemetry item // and allows correlation of this operation with its parent and children. var operation = telemetryClient.StartOperation(“enqueue ” + queueName); operation.Telemetry.Type = “Azure Service Bus”; operation.Telemetry.Data = “Enqueue ” + queueName; var message = new BrokeredMessage(payload); // Service Bus queue allows the property bag to pass along with the message.
// We will use them to pass our correlation identifiers (and other context) // to the consumer. message.Properties.Add(“ParentId”, operation.Telemetry.Id); message.Properties.Add(“RootId”, operation.Telemetry.Context.Operation.Id); Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-operations-tracking
Microsoft AZ-204: Developing Solutions for Microsoft Azure
Free dumps for AZ-204 in PDF format also you can read online.
High quality AZ-204 PDF and software. VALID exam to help you pass.
|
|