AZ-401 Domain 5: Implement an instrumentation strategy
15–20% of the exam (AZ-400: 5–10%). 12 skills in 3 tasks, 4 of them new in AZ-401 and 1 reworded for AI tools. Study notes for each task below, then 6 free questions with answers.
46 Domain 5 questions in the bank, 6 free. Answer them one at a time with explanations.
Practice Domain 5Skill wording is quoted from the official study guide. Tags compare each skill with the AZ-400 guide.
5.1 Configure monitoring for Azure DevOps and GitHub platforms
Task 5.1 covers platform monitoring: Azure Boards Analytics widgets for flow metrics, streaming Azure DevOps and GitHub audit data into Azure, GitHub Insights, and alerts on pipeline and workflow events. Most questions hinge on choosing the right widget or stream target and knowing which event or table the data ends up in.
- 5.1.1Design dashboards, including flow of work, cycle time, time to recovery, and lead time 3 questions
- 5.1.2Configure Azure Monitor and Log Analytics to integrate with Azure DevOps and GitHub 3 questions
- 5.1.3Configure monitoring in GitHub, including enabling GitHub insights and creating and configuring charts 3 questions
- 5.1.4Configure alerts for events in Azure Pipelines and GitHub Actions 3 questions
Which Azure DevOps widget shows lead time, cycle time or time to recovery?
Source: Configure lead time and cycle time widgets; Out Of Box widget catalog
How do I send Azure DevOps audit events to a Log Analytics workspace?
AzureDevOpsAuditing table. The other targets are Splunk (HTTP Event Collector token) and Azure Event Grid (Event Grid Schema only), with at most two streams per target type. Azure DevOps keeps audit data for 90 days and a workspace keeps 30 days by default, so raise the workspace retention for long-term history. A disabled stream that you re-enable catches up on events from up to the previous seven days.Source: Create audit streaming
How does GitHub audit and Git event data reach Azure?
YYYY/MM/DD/HH/MM/<uuid>.json.log.gz. Delivery is at-least-once, so expect occasional duplicates. A health check runs every 24 hours and emails enterprise owners about a misconfigured stream, which must be fixed within six days or events are dropped. Streaming to several endpoints at once is in public preview.Source: Streaming the audit log for your enterprise
What can GitHub Insights show, and who can see it?
View organization Actions metrics. Periods range from current week to last year, plus a custom range of up to 100 days within the past year; skipped and zero-minute runs are excluded. In Projects, a current chart shows today's distribution (for example items per assignee), while a historical chart, created by setting the X-axis to Time, tracks Open, Completed, Closed pull requests and Not planned items over time. Charts are visible to anyone who can view the project.Source: Viewing traffic to a repository; Viewing GitHub Actions metrics for your organization
How do I alert on Azure Pipelines events?
ms.vss-pipelines.run-state-changed-event (filter runResultId on Failed), ms.vss-pipelines.stage-state-changed-event, ms.vss-pipelines.job-state-changed-event and Run stage waiting for approval (ms.vss-pipelinechecks-events.approval-pending). Release deployment approval pending belongs to classic release pipelines. The Web Hooks consumer posts the JSON payload to any HTTP endpoint. For conditions that need a query, such as a new repository or a policy change, stream audit events to Log Analytics and create a log search alert rule on AzureDevOpsAuditing; the attached action group defines notifications such as SMS. Activity log alerts don't fit, because they evaluate Azure control-plane events, not rows in a workspace table.Source: Service hook events; Create or edit a log search alert rule
Who receives GitHub Actions workflow run notifications?
schedule event, later notifications go to that user; editing other parts of the file doesn't move them. If a scheduled workflow is disabled and re-enabled, notifications go to the user who re-enabled it, not to the last person who changed the cron syntax. CODEOWNERS and manual re-runs have no effect on who receives scheduled-run notifications.Source: Notifications for workflow runs
Traps in 5.1 questions
- Cycle Time versus Lead Time: if backlog waiting time must be excluded, pick Cycle Time; if the clock starts when the item is created, as with time to recovery for Bugs, pick Lead Time.
- Azure Monitor Logs (resource ID plus tenant ID) and Event Grid are Azure DevOps audit stream targets; GitHub streams to Event Hubs, Blob Storage, S3, Google Cloud Storage, Datadog or Splunk and never directly to Log Analytics.
- Actions Usage Metrics answer how many minutes were consumed, Actions Performance Metrics answer queue time and failure rate, and neither is the billing usage report.
- Release deployment approval pending is a classic release event; an approval check on a YAML environment raises Run stage waiting for approval.
12 questions in the bank test task 5.1. Practice Domain 5
5.2 Monitor Azure workloads by using AI agents
Task 5.2 is new in AZ-401 and covers two agents: the Azure Copilot Observability Agent in Azure Monitor and Azure SRE Agent. Questions hinge on what each agent needs provisioned, which roles and regions apply, how run modes and approvals gate actions, and what keeps billing running.
- 5.2.1Deploy and configure Azure Copilot Observability Agent New in AZ-4014 questions
- 5.2.2Deploy and configure Azure SRE Agent New in AZ-4014 questions
- 5.2.3Investigate and resolve issues raised by Azure SRE Agent New in AZ-4014 questions
What can the Azure Copilot Observability Agent do without deploying anything?
Copilot for Azure User role to the allowed users or groups; the same page enables or disables individual agents, including Observability. Chat starts from the Observability Agent button on the Logs page of an Application Insights resource or Log Analytics workspace and stays scoped to that resource. Limits: a conversation can't continue beyond 24 hours, the agent supports English only, and customer-managed keys aren't supported for its conversations. Supported regions include East US, Central US, West Europe, UK South, Australia East and East Asia.Source: Azure Copilot Observability Agent; Manage access to Azure Copilot
How do I deploy an Observability Agent resource for autonomous operations?
Issue Contributor on the Azure Monitor workspace and Monitoring Reader on every subscription that holds alert rules and application resources; Monitoring Contributor on each subscription is simpler but broader. On the Operations tab, select the Application Insights resource to monitor (same subscription). Allow the agent to run autonomously is on by default with two operations: Correlation + issue creation, which enables custom instructions (8,192 characters max), and Investigation, which deep-investigates every issue the agent creates. Notifications use the workspace's action groups. Each subscription allows five agents by default.Source: Create an Azure Copilot Observability Agent resource in the Azure portal (preview); Autonomous operations - Azure Copilot Observability Agent (preview)
How does a deep investigation run, and how do I keep its results?
[<AppName>]. One deep investigation is capped at 300 Azure Agent Credits, and autonomous deep investigations are billed from July 1, 2026. The agent never restarts resources or changes configuration on its own.Source: Deep investigations in the Azure Copilot Observability Agent; Azure Monitor issues
What do I need to create an Azure SRE Agent?
sre.azure.com > Create agent. You need Owner, or Contributor plus User Access Administrator, on the subscription or resource group that will hold the agent, so the portal can assign you SRE Agent Administrator; adding Azure scopes needs Owner or User Access Administrator on each scope. The browser must reach *.azuresre.ai. Basics are subscription, resource group, name, region, model provider (such as Azure OpenAI or Anthropic, changeable later) and Application Insights (Create new by default). The region can't be changed after creation and only sets where agent compute runs; supported regions include East US 2, Sweden Central, France Central and UK South, but not West Europe. Deployment creates a user-assigned managed identity (used for Azure RBAC and connectors) and enables a system-assigned one. Connecting Log Analytics or Application Insights assigns Log Analytics Reader and Monitoring Reader to the identity; a subscription scope grants Reader and Monitoring Contributor.Source: Create and set up Azure SRE Agent; Supported regions for Azure SRE Agent
How does SRE Agent pick up Azure Monitor alerts, and what does it cost?
Source: Azure Monitor alerts in Azure SRE Agent; Pricing and billing for Azure SRE Agent
Who can approve SRE Agent actions, and how do I audit what it did?
SRE Agent Administrator can approve. The other roles are Reader (view only), Standard User (chat, request actions, scheduled tasks) and Author (custom agents and response plans, no chat). When the managed identity lacks a permission, the agent requests on-behalf-of access, which only an Administrator with a work or school account can authorize; the permission isn't retained. Tool access policies check deny (global scope only), then allow, then ask, and an ask is auto-approved in Autonomous mode. Every action goes to the customEvents table of the agent's Application Insights, for example AgentAzCliExecution (Azure CLI commands), AgentToolExecution, ApprovalDecision and IncidentActivitySnapshot.Source: Run modes in Azure SRE Agent; Audit agent actions in Azure SRE Agent
Traps in 5.2 questions
- Chat and deep investigations need no Observability Agent resource; choose the resource only when the scenario needs autonomous correlation, automatic investigations or custom instructions.
- Copilot for Azure User decides which people can use Azure Copilot and its agents; the Observability Agent's own identity needs Issue Contributor and Monitoring Reader instead.
- The Observability Agent only correlates, investigates and recommends, while SRE Agent can run mitigations, so a scenario that needs an automated restart or scale-out points to SRE Agent.
- Stopping an SRE Agent or reaching its AAU allocation ends active flow only; the 4 AAU per hour always-on charge stops only when the agent is deleted.
12 questions in the bank test task 5.2. Practice Domain 5
5.3 Analyze metrics from instrumentation by using AI agents
Task 5.3 covers reading VM, application and trace telemetry in Azure Monitor, collecting GitHub Copilot agent activity, and querying logs in natural language or basic KQL. Questions usually hinge on which table or store holds the data, which setting controls sampling or correlation, and where Copilot agent activity is recorded.
- 5.3.1Analyze infrastructure performance indicators, including CPU, memory, disk, and network 4 questions
- 5.3.2Analyze application performance by using telemetry and instrumentation data 4 questions
- 5.3.3Analyze distributed tracing by using Azure Monitor Application Insights 4 questions
- 5.3.4Configure collection and management of GitHub Copilot agent logs New in AZ-4015 questions
- 5.3.5Interrogate logs by using natural language queries or basic Kusto Query Language (KQL) queries Now with AI tools5 questions
Where do CPU, memory, disk and network metrics for a VM come from?
InsightsMetrics, while extra counters added through a data collection rule land in Perf (ObjectName, CounterName, InstanceName, CounterValue). Azure Copilot answers prompts such as "Show me the memory usage trend for my VM over the last 4 hours" with a chart that opens in Metrics explorer.Source: Monitor virtual machines in Azure; Metrics experience for virtual machines in Azure Monitor
How do sampling and live metrics change what I can analyze in Application Insights?
OTEL_TRACES_SAMPLER=microsoft.fixed_percentage with OTEL_TRACES_SAMPLER_ARG as a ratio (0.1 keeps about 10%), or microsoft.rate_limited with traces per second. The Java agent uses APPLICATIONINSIGHTS_SAMPLING_PERCENTAGE. Keep the Azure Monitor sampler: it keeps traces complete and Live Metrics requires it. Metrics are never sampled, so alert on metrics. Each retained item's itemCount says how many originals it represents:
union requests,dependencies,pageViews,browserTimings,exceptions,traces
| where timestamp > ago(1d)
| summarize RetainedPercentage = 100/avg(itemCount) by bin(timestamp, 1h), itemType
A value below 100 means that type is sampled. Live metrics shows data within about one second, keeps nothing after it leaves the chart and is free; Java doesn't support custom filtering.Source: Sampling in Azure Monitor Application Insights with OpenTelemetry; Configure OpenTelemetry in Application Insights
How does Application Insights correlate a distributed trace?
traceparent header (version-traceid-parentid-flags), the trace-id becomes operation_Id (OperationId in Log Analytics), which every item in the trace shares, and operation_ParentId (ParentId) holds the immediate parent. Filter on OperationId to get the whole trace. In transaction diagnostics, a call between two monitored components shows two rows: the caller's outbound dependency and the callee's inbound request. A large gap between their durations points at the network path or a gateway, not the called service. Application map draws one node per cloud role name, which OpenTelemetry builds from service.namespace and service.name (set in code or with OTEL_SERVICE_NAME); service.instance.id sets the role instance. The browser JavaScript SDK sends correlation headers only to the page's own host; for another host or subdomain set enableCorsCorrelation: true, and exclude third-party domains with correlationHeaderExcludedDomains.Source: Application Insights telemetry data model; Microsoft Azure Monitor Application Insights JavaScript SDK configuration
Where are GitHub Copilot agent actions logged, and how do I keep them?
actor:Copilot. action:copilot returns Copilot plan events instead, such as settings, policy and license changes. Agentic events carry actor_is_agent: true, user (the person who started the work) and, for events from an agent session, agent_session_id. The audit log keeps 180 days and excludes client session data such as prompts sent to Copilot locally. For longer history, stream the audit log to a SIEM. To stream Copilot agent session events, enable the Copilot Usage Records Streaming policy under AI controls > Copilot, then configure a stream on the Log streaming page. Microsoft Purview and Microsoft Agent 365 accept only these events and are authorized through Microsoft Entra; Agent 365 includes prompts, responses and tool inputs unless you clear Include raw content. Session event streaming is in public preview and only for Enterprise Managed Users or GHE.com data residency.Source: Audit log events for agents; Streaming the audit log for your enterprise
How do I read and manage Copilot cloud agent session logs?
gh agent-task list lists sessions, gh agent-task view <PR number> --log prints the log and --follow streams it live (GitHub CLI 2.80.0 or later, public preview). Cloud agent sessions that run on GitHub Actions are shared by default with anyone who can access the repository and can be archived but not deleted, so a secret exposed in a log must be rotated. Copilot CLI and Copilot app sessions live under ~/.copilot/session-state/ and sync to GitHub by default; for Copilot Business and Enterprise users, the Store local sessions in the Cloud policy must be at least View from cloud, and users opt out with "remoteExport": false.Source: Managing agent sessions; About GitHub Copilot session data
How do I query logs with natural language or basic KQL?
percentile() is an aggregation, valid in summarize but not extend; bin() goes on the datetime column; join without kind is innerunique, which deduplicates the left side, so use kind=inner to keep every match; AdditionalFields values in AzureDiagnostics need todouble() or toint() before arithmetic.
Perf
| where CounterName == "% Processor Time"
| summarize P95 = percentile(CounterValue, 95) by bin(TimeGenerated, 5m), Computer
| render timechartSource: Chat with your observability data in the Azure Copilot Observability Agent; join operator
Traps in 5.3 questions
- Counters added through a data collection rule land in Perf, not InsightsMetrics, so a query against InsightsMetrics returns nothing even though collection works.
- OperationId holds only the trace-id and is shared by the whole trace, while ParentId is the immediate parent span, so filtering on ParentId returns one hop instead of the trace.
- actor:Copilot finds actions taken by agents; action:copilot finds Copilot license, setting and policy changes.
- URL ping tests are deprecated and retire on September 30, 2028; a POST with custom headers or a certificate-lifetime check needs a Standard availability test.
22 questions in the bank test task 5.3. Practice Domain 5

Free Domain 5 questions
Contoso runs an order API on Azure Kubernetes Service (AKS) with Application Insights. At 02:10, a Sev1 alert for failed requests fires. The on-call engineer wants the Azure Copilot Observability Agent to correlate application, infrastructure, and Azure platform signals around the alert and produce a report with findings and next steps. No Observability Agent resource exists, and the team doesn't want to provision anything new. What should the engineer do?
- Create an Observability Agent resource scoped to the Application Insights resource and leave Investigation selected
- Deploy an Azure SRE Agent and connect Azure Monitor as its incident platform
- Review the Smart Detection failure anomalies rule for the Application Insights resource
- Open the fired alert in the Azure portal and select Investigate
Show answer and explanation
Answer: D. Chat and deep investigations are available without provisioning an Observability Agent resource; the resource is needed only for autonomous operations. Selecting Investigate on a fired Azure Monitor alert is the recommended entry point because it hands the agent the affected resource, symptom, and firing time.
Why the other options are wrong:
- A. An Observability Agent resource is only needed for autonomous correlation, and the team doesn't want to provision anything.
- B. Deploying an SRE Agent provisions a new billable resource, which the team wants to avoid.
- C. Smart Detection rules flag anomalies but don't run a cross-layer investigation that produces findings and next steps.
Documentation: Deep investigations in the Azure Copilot Observability Agent; Azure Copilot Observability Agent
Fabrikam's platform team uses Azure Boards with Analytics enabled. For retrospectives, the team lead wants a dashboard chart that shows how long each user story closed in the last 30 days took from the moment a developer first moved it to Active until it was closed, so that the team can spot stories that stalled during development. Many stories sit in the backlog for months before anyone starts them, and that waiting time must not inflate the metric. What should you add to the team dashboard?
- A Lead Time widget for the Stories backlog level with a 30-day rolling period
- A Cycle Time widget for the Stories backlog level with a 30-day rolling period
- A Cumulative Flow Diagram widget for the Stories backlog over the last 30 days
- A Velocity widget that shows completed story points for the last six sprints
Show answer and explanation
Answer: B. Cycle time is measured from when a work item first enters an In Progress state category until it reaches a Completed state, so backlog waiting time is excluded. The Cycle Time widget plots each closed item as a point over a rolling period, which makes stalled stories visible as outliers.
Why the other options are wrong:
- A. Lead time starts when the work item is created, so months of backlog waiting time would inflate every value.
- C. A cumulative flow diagram shows item counts per board column over time, not the elapsed time of individual closed stories.
- D. Velocity shows completed effort per sprint and says nothing about how long individual stories took.
Documentation: Configure lead time and cycle time widgets
Last month, a team created an Azure SRE Agent named sre-payments in East US 2. A new data residency policy requires the agent's compute to run in a European region. The payment workloads that the agent manages run in West Europe and must stay there. What should you do?
- Change the Region on the agent's Settings page to West Europe, and then restart the agent so the change takes effect
- Redeploy the agent's Bicep template with the location set to westeurope in the same resource group
- Create an agent in Sweden Central and grant its managed identity access to the payment resource groups
- Move the agent resource to a West Europe resource group by using Azure Resource Mover
Show answer and explanation
Answer: C. An agent's region is fixed at creation, so you must create a new agent in a supported European region such as Sweden Central. The region only determines where the agent's compute runs; with permissions on its managed identity, the agent can manage resources in any region, including West Europe.
Why the other options are wrong:
- A. You can't change an agent's region after creation.
- B. West Europe isn't a supported Azure SRE Agent region, and redeploying doesn't change an existing agent's region.
- D. Moving the resource doesn't change its region, and the agent region can't be changed.
Documentation: Supported regions for Azure SRE Agent
A partner reports a failed call to your order API and sends the W3C traceparent header that its client sent: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01. All your services send OpenTelemetry data to one workspace-based Application Insights resource. You need every request, dependency, and exception that your services recorded for that distributed trace. Which filter should you apply to the AppRequests, AppDependencies, and AppExceptions tables?
- where ParentId == "00f067aa0ba902b7"
- where OperationId == "00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01"
- where OperationId == "4bf92f3577b34da6a3ce929d0e0e4736"
- where OperationId == "00f067aa0ba902b7"
Show answer and explanation
Answer: C. A traceparent header has the form version-traceid-parentid-flags. Application Insights maps the W3C trace-id to operation_Id (OperationId in Log Analytics), which every item in the distributed trace shares, while the parent-id maps to the Id of the calling span. Filtering on OperationId therefore returns the whole trace across components.
Why the other options are wrong:
- A. ParentId holds the immediate parent, so this returns only items whose direct parent is the partner's span, not the whole trace.
- B. OperationId stores only the 32-hex-character trace-id, not the whole traceparent header value.
- D. 00f067aa0ba902b7 is the parent-id (span ID) of the caller, not the trace ID that OperationId stores.
Documentation: Microsoft Azure Monitor Application Insights JavaScript SDK configuration; Application Insights telemetry data model
Contoso uses Copilot cloud agent (formerly the coding agent) across 25 organizations in its GitHub Enterprise Cloud enterprise. The audit committee requires that records of agent activity, such as pull requests that Copilot created, be kept for three years and be searchable in the company's SIEM, which ingests data from Azure Event Hubs. What should you do?
- Rely on the actor:Copilot filter in the enterprise audit log, which keeps agent events for three years
- Export each organization's audit log as a CSV file once a month and upload the files to the SIEM
- Enable the Store local sessions in the Cloud policy so that agent session data stays on GitHub.com
- Configure audit log streaming for the enterprise with Azure Event Hubs as the destination
Show answer and explanation
Answer: D. The audit log records agent activity on GitHub, but it retains events for only 180 days. GitHub recommends streaming the audit log to a SIEM for long-term history; enterprise streaming covers all organizations, and Azure Event Hubs is a supported destination.
Why the other options are wrong:
- A. The enterprise audit log keeps events, including agentic events, for 180 days only.
- B. Manual monthly exports across 25 organizations add effort and risk gaps; streaming covers all organizations continuously.
- C. That policy controls syncing of local CLI and app sessions; it doesn't extend audit retention or feed a SIEM.
Documentation: Reviewing audit logs for GitHub Copilot; Streaming the audit log for your enterprise
A Log Analytics workspace receives heartbeats from Azure Monitor Agent on 500 servers. Server SQL07 was shut down three hours ago, and server WEB12 stopped reporting 20 minutes ago. All other servers are healthy and report every minute. You run the following query to find servers that need attention. Which servers does the query return?
Heartbeat
| where TimeGenerated > ago(1h)
| summarize LastHeartbeat = max(TimeGenerated) by Computer
| where LastHeartbeat < ago(15m)
| project Computer, LastHeartbeat
- SQL07 only
- WEB12 only
- Both SQL07 and WEB12
- No servers, because max() returns one latest heartbeat across all computers
Show answer and explanation
Answer: B. The query keeps heartbeats from the last hour, finds each computer's latest heartbeat, and returns computers whose latest one is older than 15 minutes. WEB12 qualifies. SQL07 sent nothing in the last hour, so it has no rows to summarize and doesn't appear; detecting long-silent machines requires a wider time window.
Why the other options are wrong:
- A. SQL07 has no heartbeat in the last hour, so the first where clause removes it before summarize runs.
- C. The one-hour filter excludes servers that have been silent longer than an hour, such as SQL07.
- D. summarize ... by Computer calculates max(TimeGenerated) separately for each computer.
Documentation: Azure Monitor Logs reference - Heartbeat
The full bank has 40 more Domain 5 questions and 20-question Domain 5 drills that serve unseen questions first.
Domain 5 drill: $19.99