Microsoft Azure Developer Associate AZ-204 Practice Question
A .NET 6 Web API is already running in an Azure App Service for Windows. The operations team wants to start collecting request, dependency, and exception telemetry with Azure Application Insights, but the development team cannot modify or redeploy the application code. Which action will enable server-side telemetry collection with the least effort?
Enable a diagnostic setting on the App Service that sends platform logs to an Azure Log Analytics workspace.
In the App Service configuration blade, switch Application Insights to On and link an existing Application Insights resource.
Add the Microsoft.ApplicationInsights.AspNetCore package to the project and redeploy the application.
Insert the Application Insights instrumentation key into appsettings.json and restart the application.
Turning on Application Insights from the Azure App Service blade attaches the Application Insights site extension and injects the required monitoring agent at runtime. This codeless, auto-instrumentation approach works for .NET Core applications hosted on Azure App Service and begins sending request, dependency, and exception telemetry to the selected Application Insights resource without any code changes or redeployment. Adding the SDK NuGet package, editing appsettings.json, or configuring diagnostic settings either requires code changes or does not provide full Application Insights telemetry, so they do not meet the requirement.
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 Azure Application Insights?
Open an interactive chat with Bash
What is the purpose of codeless auto-instrumentation in Azure App Service?
Open an interactive chat with Bash
How does Application Insights differ from Azure Log Analytics?
Open an interactive chat with Bash
Microsoft Azure Developer Associate AZ-204
Monitor and troubleshoot Azure solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .