0
0
Azurecloud~20 mins

Application Insights for apps in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Application Insights Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
How does Application Insights collect telemetry data?

Application Insights gathers data from your app to monitor its performance and usage. Which method below correctly describes how it collects telemetry?

ABy scanning the app's source code for errors without running it.
BBy manually exporting logs from the app and uploading them to Azure.
CBy embedding a monitoring SDK in the app that sends telemetry data to Azure.
DBy using Azure Storage to store app files and analyzing them offline.
Attempts:
2 left
💡 Hint

Think about how real-time monitoring tools work inside an app.

Architecture
intermediate
2:00remaining
Which Azure resource is required to enable Application Insights for a web app?

You want to monitor your Azure Web App using Application Insights. Which resource must you create or link to enable this?

AAn Azure Virtual Machine to run the monitoring agent.
BAn Azure SQL Database to log application errors.
CAn Azure Storage account to store telemetry data.
DAn Application Insights resource in the same Azure subscription.
Attempts:
2 left
💡 Hint

Consider what resource directly supports Application Insights data collection.

security
advanced
2:00remaining
What is the best practice to secure Application Insights instrumentation key in your app?

To protect your Application Insights data, how should you handle the instrumentation key in your application?

AHardcode the instrumentation key directly in the app's source code for easy access.
BStore the instrumentation key in environment variables or secure configuration stores, not in source code.
CShare the instrumentation key publicly to allow all team members to monitor the app.
DEmbed the instrumentation key in client-side JavaScript to track user behavior.
Attempts:
2 left
💡 Hint

Think about how to keep sensitive keys safe from unauthorized access.

Configuration
advanced
2:00remaining
What happens if you disable sampling in Application Insights for a high-traffic app?

Sampling reduces the amount of telemetry sent to Application Insights. What is the effect of disabling sampling on a busy app?

ATelemetry volume increases, possibly causing higher costs and slower processing.
BTelemetry volume decreases, improving performance and reducing costs.
CThe app stops sending any telemetry data to Application Insights.
DApplication Insights automatically filters out errors but keeps all traces.
Attempts:
2 left
💡 Hint

Consider what happens when all telemetry is sent without filtering.

🧠 Conceptual
expert
2:00remaining
Which query correctly returns the count of failed requests in Application Insights logs?

You want to find how many requests failed in your app using Application Insights Analytics. Which Kusto query returns the count of failed requests?

Azure
requests | where success == false | summarize count()
Arequests | where success == false | summarize count()
Brequests | where success = false | summarize count()
Crequests | filter success == false | count()
Drequests | where success == false | count
Attempts:
2 left
💡 Hint

Remember the correct syntax for filtering and counting in Kusto Query Language.