AZ-204 Exam QuestionsBrowse all questions from this exam

AZ-204 Exam - Question 327


HOTSPOT

-

You have a web app named App1 hosted on you, on-premises web server.

You plan to use the Application Insights JavaScript SDK to implement client-side Real User Monitoring (RUM) of individual pages of App1.

You need to author the script element that will be added to each of the pages.

What should you set for the value of src and cfg keys in the script element of each page? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Exam AZ-204 Question 327
Show Answer
Correct Answer:
Exam AZ-204 Question 327

Discussion

2 comments
Sign in to comment
tafa_had
Feb 8, 2025

Correct The src attribute should point to the Application Insights JavaScript SDK, which is hosted on a CDN. This allows the browser to load the necessary script to send telemetry data. The cfg attribute is used to configure Application Insights, and it requires the connection string to send telemetry data to the correct Application Insights resource.

gfanco
Apr 19, 2025

CORRECT !! <head> <script type="text/javascript"> !(function (cfg){ /* Loader script logic… */ })({ src: "https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js", crossOrigin: "anonymous", cfg: { connectionString: "YOUR_CONNECTION_STRING" } }); </script> <!-- Other head content --> </head> https://learn.microsoft.com/en-us/azure/azure-monitor/app/javascript-sdk?tabs=javascriptwebsdkloaderscript