Question

Difficulty: HardAzure Monitor and Log Analytics

An organization hosts a multi-container web application on Azure. The IT team needs to implement a monitoring solution that allows them to perform both of the following actions:

1. Detect and diagnose performance bottlenecks and exceptions within the web application's application code.
2. Consolidate and run custom query analysis on container system logs across multiple resource groups.

Which two features of Azure Monitor should the team use to meet these requirements?

  1. Application InsightsAnswer
  2. Log Analytics workspacesAnswer
  3. C
    Azure Service Health
  4. D
    Azure Policy

Answer

Application Insights and Log Analytics workspaces
The correct features are Application Insights and Log Analytics workspaces. Application Insights is specifically designed to monitor live application code and diagnose performance bottlenecks and exceptions. Log Analytics workspaces serve as the central repository where logs from various sources (such as containers) are stored and queried using Kusto Query Language (KQL).

Step-by-Step Solution

1
Identify the requirement to monitor and diagnose issues within the application code.
Determine that Application Insights is the Azure Monitor feature designed for application performance management (APM) and code-level diagnostics.
Application Insights collects telemetry data such as exceptions, response times, and page views from running apps.
2
Identify the requirement to consolidate and query container system logs across multiple resource groups.
Determine that a Log Analytics workspace is the centralized repository in Azure Monitor where log data is stored and queried using Kusto Query Language (KQL).
Log Analytics allows querying logs aggregated from various infrastructure sources, including container logs.

Key Concept

Azure Monitor features and use cases
Rate this question