Skip to main content

AZ-104 · 15% of the exam

Monitor and maintain Azure resources practice questions

10 free Monitor and maintain Azure resources questions for the Microsoft Certified: Azure Administrator Associate (AZ-104) exam, each with the correct answer and an explanation for every option.

What this domain covers

Watching and protecting Azure resources: monitoring, alerts, logs, backup and recovery.

Exam weight
15%
On a real exam
≈ 8 questions
In our bank
90 questions

Topics that come up most

  • Azure Monitor metrics and alerts
  • Log Analytics and KQL basics
  • Action groups
  • Azure Backup and Recovery Services vaults
  • Azure Site Recovery

How to study it

Learn which service stores what (metrics, logs, backups) and which alert type fires on each; the questions mix them deliberately.

Sample Monitor and maintain Azure resources questions

Try each one before opening the answer. Original questions written to the official exam objectives.

  1. Question 1

    An administrator manages dozens of storage accounts across several subscriptions. The administrator wants a prebuilt view of availability, latency and used capacity across those accounts, with drill-down into individual accounts, and doesn't want to build charts or queries. Which Azure Monitor capability fits?

    • AStorage insights, opened from the Insights section in Azure Monitor
    • BMetrics explorer charts that you build and pin to a dashboard
    • CLog Analytics queries run against storage resource logs
    • DAzure Service Health with its service issue and advisory views
    Show answer and explanation

    Answer: A) Storage insights, opened from the Insights section in Azure Monitor

    Storage insights is a prebuilt Azure Monitor workbook experience that shows availability, latency and capacity across many storage accounts, with drill-down and no configuration. The other tools either need manual charts or queries, or don't report per-account storage metrics.

    • ACorrect. Storage insights gives a unified, prebuilt workbook view of storage performance, capacity and availability across groups of storage accounts, with drill-down into individual accounts. It works with storage metrics that are collected by default, so nothing needs to be enabled.
    • BIncorrect. Metrics explorer can chart storage metrics, but you have to choose the metrics and build each chart yourself, so it isn't a ready-made view across many accounts.
    • CIncorrect. This needs diagnostic settings to send resource logs to a workspace and custom KQL queries, which is exactly the manual work the administrator wants to avoid.
    • DIncorrect. Service Health reports Azure platform incidents, planned maintenance and advisories. It doesn't show capacity, latency or availability metrics for your individual storage accounts.
  2. Question 2

    You need to log IP traffic flowing through a virtual network. You also need to run a point-in-time test of connectivity from a VM to another VM in the same VNet. Which Azure service provides both capabilities?

    • AAzure Network Watcher
    • BAzure Service Health
    • CAzure Application Insights
    • DAzure Advisor
    Show answer and explanation

    Answer: A) Azure Network Watcher

    Azure Network Watcher provides flow logs (virtual network flow logs, which replace the retiring NSG flow logs) and diagnostic tools such as connection troubleshoot, IP flow verify, next hop and packet capture.

    • ACorrect. Network Watcher provides virtual network flow logs for logging IP traffic. Its connection troubleshoot tool tests connectivity from a VM to another VM, an FQDN, a URI or an IP address.
    • BIncorrect. Service Health reports Azure service incidents, planned maintenance and health advisories. It doesn't log VNet traffic or test connections.
    • CIncorrect. Application Insights monitors application performance and telemetry. It doesn't capture VNet IP flows or run network connectivity tests.
    • DIncorrect. Advisor gives best-practice recommendations for cost, security, reliability and performance. It doesn't provide network diagnostics.
  3. Question 3

    You need to be able to restore a production Azure VM to an earlier point in time after accidental data loss. You also need to fail the workload over to a secondary Azure region during a regional outage. Which combination should you set up in advance?

    • AAzure Backup to a Recovery Services vault, plus Azure Site Recovery replication to a secondary region
    • BA CanNotDelete lock on the VM, plus zone-redundant storage for all of the VM's managed disks
    • CScheduled managed disk snapshots, plus an availability set that spans multiple fault domains
    • DAzure Backup to a Recovery Services vault, plus a ReadOnly lock on the VM's resource group
    Show answer and explanation

    Answer: A) Azure Backup to a Recovery Services vault, plus Azure Site Recovery replication to a secondary region

    Azure Backup (Recovery Services vault) handles point-in-time restore, and Azure Site Recovery handles replication and failover to a secondary region. You need both.

    • ACorrect. Azure Backup stores scheduled recovery points in a Recovery Services vault, and you can restore from any of them. Site Recovery continuously replicates the VM to a target region and lets you fail over there and fail back later.
    • BIncorrect. A lock only blocks deletion and creates no recovery points. Zone-redundant storage replicates across availability zones within one region, so it doesn't let you fail over to another region.
    • CIncorrect. Snapshots can give you restore points, but an availability set only spreads VMs across fault domains in one datacenter region. It gives you no cross-region failover.
    • DIncorrect. Azure Backup meets the point-in-time restore requirement, but a ReadOnly lock only prevents changes. It doesn't replicate the VM or orchestrate failover to another region.
  4. Question 4

    A Log Analytics workspace's data retention costs are rising. Auditors need security tables kept for 2 years and look at older data only a few times a year, but day-to-day queries only cover the last 30 days. Which configuration meets the requirements most cost-effectively?

    • ASet analytics retention to 30 days and total retention to 730 days, and use search jobs for older data
    • BSet analytics retention to 730 days on every table so audit queries can run interactively
    • CMove the tables to the Basic plan and leave total retention at the 30-day default
    • DConfigure a daily cap on the workspace and keep the default 30-day workspace retention
    Show answer and explanation

    Answer: A) Set analytics retention to 30 days and total retention to 730 days, and use search jobs for older data

    Log Analytics keeps data in two states: analytics retention for everyday queries and low-cost long-term retention for the rest of the total retention period. A short analytics period plus a 730-day total, with search jobs for older data, meets the audit need at the lowest cost.

    • AAfter the 30-day analytics period, data moves to low-cost long-term retention for the rest of the 730-day total. Auditors can get it back with search jobs (or a restore) when they need it.
    • BAnalytics retention beyond the included period costs extra. Keeping 2 years of data queryable is the expensive option, and day-to-day work only uses 30 days.
    • CBasic tables have a 30-day total retention by default, so data older than 30 days would be deleted and the 2-year audit requirement fails. Basic also limits query features.
    • DA daily cap only stops collection after a set volume each day. With 30-day retention, the audit history is still deleted long before 2 years.
  5. Question 5

    Which Azure Monitor data type provides near-real-time numeric values at one-minute granularity, suitable as the trigger source for autoscale?

    • AMetrics
    • BLogs
    • CThe activity log
    • DResource Health events
    Show answer and explanation

    Answer: A) Metrics

    • APlatform metrics are lightweight numeric time-series collected at one-minute frequency by default and are the standard trigger for autoscale rules.
    • BLogs are richer records queried with KQL but are ingested with more latency and aren't the native, low-latency autoscale trigger.
    • CThe activity log records control-plane operations (who did what to a resource), not performance data.
    • DResource Health reports whether a resource is reported healthy by the platform; it isn't a granular numeric metric stream.
  6. Question 6

    Windows VMs run the Azure Monitor Agent. Only Security log events with event ID 4625 (failed sign-ins) should be sent to a Log Analytics workspace, and all other events must be filtered out. What should you configure?

    • AA data collection rule with a custom XPath query
    • BA diagnostic setting on each VM resource
    • CA data collection endpoint linked to the workspace
    • DVM insights enabled on each of the VMs
    Show answer and explanation

    Answer: A) A data collection rule with a custom XPath query

    With the Azure Monitor Agent, a data collection rule decides what data is collected. A custom XPath query in its Windows Event Logs data source narrows collection to specific event IDs such as 4625.

    • ACorrect. A data collection rule (DCR) defines what the Azure Monitor Agent collects and where it sends it. The Windows Event Logs data source supports custom XPath queries, such as Security!*[System[EventID=4625]], for event-level filtering.
    • BIncorrect. Diagnostic settings route platform metrics, resource logs and the activity log. They don't collect Windows event logs from inside the guest OS, and they can't filter within a category.
    • CIncorrect. A data collection endpoint provides the configuration and ingestion endpoints (for example, for Private Link). It doesn't define which events are collected; the DCR does that.
    • DIncorrect. VM insights focuses on performance data and, optionally, dependency mapping. It isn't the mechanism for choosing specific Windows Security event IDs to collect.
  7. Question 7

    Next Saturday, the VMs in resource group RG-App will have a four-hour planned maintenance window. Several alert rules cover these VMs, and some also cover resources outside RG-App. You must stop notifications for RG-App's alerts during the window without editing or disabling any alert rule. What should you create?

    • AAn alert processing rule with a suppression action and a one-time schedule
    • BAn edited action group with its email and SMS receivers temporarily removed
    • CA maintenance configuration assigned to the VMs through Azure Update Manager
    • DA CanNotDelete resource lock applied to the RG-App resource group
    Show answer and explanation

    Answer: A) An alert processing rule with a suppression action and a one-time schedule

    Alert processing rules change alerts as they fire. A suppression rule scoped to a resource group with a scheduled window silences maintenance notifications without touching the alert rules themselves.

    • AAn alert processing rule can be scoped to a resource group and set to suppress notifications on a one-time or recurring schedule. Alerts still fire and are visible, but their action groups aren't triggered. The alert rules themselves stay unchanged and keep working for resources outside the scope.
    • BAny alert rule can use an action group, including rules for resources outside RG-App. Changing it would silence those notifications too, and someone has to remember to restore it by hand.
    • CMaintenance configurations control when platform or guest updates are applied. They don't suppress Azure Monitor alert notifications.
    • DA resource lock stops resources from being deleted or modified. It has no effect on whether alerts fire or notifications are sent.
  8. Question 8

    A subscription has 60 Azure virtual machines spread across six resource groups. Half of the VMs are in East US and half are in West Europe. You need Azure Monitor metric alerts when Percentage CPU exceeds 85% on any VM, and you want to keep the number of metric alert rules to a minimum. How many metric alert rules should you create?

    • ATwo rules, one scoped to each Azure region
    • BOne rule scoped to the entire subscription
    • CSix rules, one scoped to each resource group
    • DSixty rules, one targeting each VM
    Show answer and explanation

    Answer: A) Two rules, one scoped to each Azure region

    Multi-resource metric alert rules can target many VMs at once, but only VMs in the same Azure region. Covering two regions takes at least two rules.

    • ACorrect. A multi-resource metric alert rule can monitor resources of the same type only if they're in the same Azure region. For VMs, the scope can be all VMs in one region within a subscription, so you need one rule per region.
    • BIncorrect. A metric alert rule can be scoped to a subscription, but only for VMs in one region. A single rule can't cover both East US and West Europe.
    • CIncorrect. You don't need one rule per resource group, because a rule can cover all VMs in a region across the subscription or across several resource groups. A rule per resource group would also fail if a group contained VMs from both regions.
    • DIncorrect. Multi-resource metric alerts exist to avoid one rule per VM. The rule evaluates each VM's time series separately and fires an alert per VM.
  9. Question 9

    When a VM's average CPU exceeds 90% for 15 minutes, the on-call team should get an email and a message in a Teams channel via webhook. How do you configure this in Azure Monitor?

    • AA metric alert rule on the CPU metric with the threshold and window, linked to an action group that contains the email and webhook actions
    • BA diagnostic setting that emails the team
    • CA Log Analytics workspace with no alert rule
    • DAn Azure Policy assignment on the VM
    Show answer and explanation

    Answer: A) A metric alert rule on the CPU metric with the threshold and window, linked to an action group that contains the email and webhook actions

    • AThe alert rule defines the condition; an action group is a reusable set of notifications/actions (email, SMS, push, webhook, Logic App, runbook) that the rule triggers when it fires.
    • BDiagnostic settings route logs/metrics to destinations; they don't evaluate thresholds or send notifications.
    • CA workspace stores data; without an alert rule nothing is evaluated or sent.
    • DAzure Policy governs configuration compliance, not runtime metric alerting.
  10. Question 10

    A table in a Log Analytics workspace uses the Analytics plan. Its data must be available for real-time queries for 30 days, then kept at the lowest cost until it's two years old for audit purposes. Other tables in the workspace must not be affected. How should you configure retention?

    • ASet the table's analytics retention to 30 days and its total retention to 730 days
    • BSet the workspace's default data retention to 730 days on the Usage and estimated costs page
    • CSet the table's analytics retention to 730 days and its total retention to 730 days
    • DSet the table's analytics retention to 30 days and leave its total retention at the default
    Show answer and explanation

    Answer: A) Set the table's analytics retention to 30 days and its total retention to 730 days

    Log Analytics lets you set analytics retention and total retention per table. Any period beyond analytics retention is low-cost long-term retention that you can reach through search jobs.

    • AThis per-table setting keeps 30 days of analytics retention. The remaining 700 days become low-cost long-term retention, which you can reach with search jobs when an audit needs the data.
    • BThis keeps two years of data in the more expensive analytics state. It also changes every Analytics table that still uses the workspace default.
    • CThis meets the duration but keeps all two years in analytics retention, which costs extra. It misses the lowest-cost requirement.
    • DBy default, total retention equals analytics retention, so the table gets no long-term retention. Data would be removed after about 30 days and the two-year audit requirement would fail.

Monitor and maintain Azure resources: FAQs

How much of the AZ-104 exam is Monitor and maintain Azure resources?

Monitor and maintain Azure resources is 15% of the AZ-104 exam by the official exam guide's weighting, which on a 50-question form works out to roughly 8 questions. The real exam's exact split varies by form.

What does the Monitor and maintain Azure resources domain cover?

Watching and protecting Azure resources: monitoring, alerts, logs, backup and recovery.

How should I study Monitor and maintain Azure resources for AZ-104?

Learn which service stores what (metrics, logs, backups) and which alert type fires on each; the questions mix them deliberately.

Where can I practise more Monitor and maintain Azure resources questions?

This page has 10 free Monitor and maintain Azure resources questions with answers. CertRidge's AZ-104 question bank has 90 questions in this domain. Every practice exam result breaks your score down by domain, and Review Mode re-drills the questions you missed.

Get Monitor and maintain Azure resources exam-ready

The full AZ-104 bank has 90 Monitor and maintain Azure resources questions. Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.

Not affiliated with Microsoft; questions are original and never copied from the real exam.