Azure Administrator · Domain 5 of 5 · 14% of the exam

Azure Administrator Domain 5: Monitor and Maintain Azure Resources

28 free practice questions for Monitor and Maintain Azure Resources in the Microsoft Azure Administrator Associate (AZ-104) exam. Try each question first, then open "Show answer" for the correct option and explanation.

Monitor and Maintain Azure Resources practice questions

  1. Question 1. Which agent should you install on VMs to send guest OS logs and performance counters to Azure Monitor?

    1. Azure File Sync agent
    2. Azure Monitor Agent
    3. Azure Connected Machine agent
    4. Log Analytics legacy MMA only
    Show answer

    Answer: B. Azure Monitor Agent

    Azure Monitor Agent replaces legacy agents and uses data collection rules.

  2. Question 2. What defines which data Azure Monitor Agent collects and where it sends it?

    1. A data collection rule (DCR)
    2. A diagnostic setting on the VNet
    3. A workbook template
    4. An action group
    Show answer

    Answer: A. A data collection rule (DCR)

    DCRs specify data sources, transformations, and destinations for the agent.

  3. Question 3. How do you send a storage account's resource logs to a Log Analytics workspace?

    1. Create a diagnostic setting on the resource
    2. Add a tag named Logs to the storage account
    3. Enable boot diagnostics on the account
    4. Install the Azure Monitor Agent on the account
    Show answer

    Answer: A. Create a diagnostic setting on the resource

    Diagnostic settings route platform logs and metrics to workspaces, storage, or event hubs.

  4. Question 4. Which query language is used in Log Analytics?

    1. GraphQL
    2. Transact-SQL (T-SQL)
    3. Kusto Query Language (KQL)
    4. XPath
    Show answer

    Answer: C. Kusto Query Language (KQL)

    Log Analytics and Azure Resource Graph use KQL.

  5. Question 5. Which KQL query returns heartbeat records from the last hour?

    1. Get-Heartbeat -Last 1h
    2. SELECT * FROM Heartbeat WHERE time > 1h
    3. Heartbeat.filter(time > now - 1h)
    4. Heartbeat | where TimeGenerated > ago(1h)
    Show answer

    Answer: D. Heartbeat | where TimeGenerated > ago(1h)

    KQL pipes a table into operators like where, with ago() for relative times.

  6. Question 6. Which alert type fires based on the result of a query against log data?

    1. Service Health alert
    2. Log search alert
    3. Metric alert
    4. Activity log alert
    Show answer

    Answer: B. Log search alert

    Log search alerts run KQL queries on a schedule and fire on results.

  7. Question 7. You need to be notified when anyone deletes a VM in a subscription. Which alert type fits best?

    1. Activity log alert
    2. Metric alert
    3. Log search on performance counters
    4. Smart detection alert
    Show answer

    Answer: A. Activity log alert

    Activity log alerts fire on control-plane events like delete operations.

  8. Question 8. What do alert processing rules allow you to do?

    1. Convert log alerts into metric alerts automatically
    2. Grant users permission to acknowledge alerts
    3. Create new metrics for resources that lack them
    4. Suppress or add action groups to alerts, for example during maintenance
    Show answer

    Answer: D. Suppress or add action groups to alerts, for example during maintenance

    Alert processing rules modify fired alerts, such as suppressing notifications in a maintenance window.

  9. Question 9. Which Azure Monitor feature offers interactive reports that combine text, queries, and metrics?

    1. Action groups
    2. Workbooks
    3. Data collection rules
    4. Recovery points
    Show answer

    Answer: B. Workbooks

    Workbooks provide flexible, interactive visual reports.

  10. Question 10. Which Azure Monitor insight gives performance and dependency maps for VMs?

    1. VM insights
    2. Application Insights
    3. Network insights for storage
    4. Container insights
    Show answer

    Answer: A. VM insights

    VM insights show performance charts and, optionally, maps of processes and connections.

  11. Question 11. Which resource stores backup data for Azure VMs managed by Azure Backup?

    1. A storage account in the archive tier
    2. An Azure Compute Gallery
    3. A Recovery Services vault
    4. A Log Analytics workspace
    Show answer

    Answer: C. A Recovery Services vault

    VM backups are managed through a Recovery Services vault (or a Backup vault for some workloads).

  12. Question 12. Which workloads use a Backup vault rather than a Recovery Services vault?

    1. Site Recovery replication of VMs across regions
    2. Azure Blobs, managed disks, and Azure Database for PostgreSQL
    3. Azure virtual machines and SQL in Azure VMs
    4. Azure Files shares and on-premises servers with MARS
    Show answer

    Answer: B. Azure Blobs, managed disks, and Azure Database for PostgreSQL

    Backup vaults support newer data sources such as blobs, disks, and PostgreSQL.

  13. Question 13. What does a backup policy define?

    1. When backups run and how long recovery points are kept
    2. Which region the VMs run in after a restore
    3. How many CPU cores each backup job can use
    4. Which users can sign in to the backed-up VMs
    Show answer

    Answer: A. When backups run and how long recovery points are kept

    Policies define schedule and retention for daily, weekly, monthly, and yearly points.

  14. Question 14. Can a Recovery Services vault back up VMs from a different region?

    1. Only if the VMs use zone-redundant disks
    2. Yes, a vault can protect VMs in every region
    3. No, the vault must be in the same region as the VMs
    4. Yes, but only VMs in the paired region
    Show answer

    Answer: C. No, the vault must be in the same region as the VMs

    VMs must be backed up to a vault in the same region.

  15. Question 15. You need to recover a single file from a VM backup without restoring the whole VM. What should you use?

    1. A soft-deleted blob restore on the OS disk
    2. Site Recovery test failover in another region
    3. File recovery, which mounts the recovery point
    4. A new deployment from the VM image gallery
    Show answer

    Answer: C. File recovery, which mounts the recovery point

    File recovery mounts disks from a recovery point so you can copy individual files.

  16. Question 16. What does soft delete for Azure Backup protect against?

    1. Backup data being lost if backups are deleted, kept for 14 days
    2. VM disks being deleted by users in the portal
    3. Recovery Services vaults moving to another region
    4. Backup jobs failing because of network errors
    Show answer

    Answer: A. Backup data being lost if backups are deleted, kept for 14 days

    Deleted backup data is retained for 14 extra days by default, protecting against accidental or malicious deletion.

  17. Question 17. What must you do before deleting a Recovery Services vault?

    1. Stop protection and delete backup data for all items
    2. Remove all tags from the vault resource
    3. Change the vault's redundancy to LRS
    4. Move the vault to a different resource group
    Show answer

    Answer: A. Stop protection and delete backup data for all items

    A vault with protected items or backup data can't be deleted.

  18. Question 18. When can you change a Recovery Services vault's storage redundancy from GRS to LRS?

    1. Only after all recovery points expire
    2. Before any items are protected in the vault
    3. At any time, even with existing backups
    4. Only when cross-region restore is enabled
    Show answer

    Answer: B. Before any items are protected in the vault

    Storage replication type must be set before configuring backups.

  19. Question 19. Which feature allows restoring Azure VM backups in the paired secondary region?

    1. Instant Restore
    2. Cross Region Restore
    3. Zone-redundant vault storage
    4. Soft delete
    Show answer

    Answer: B. Cross Region Restore

    Cross Region Restore uses GRS vault data to restore in the secondary region.

  20. Question 20. Which service replicates VMs to another region so they can fail over during a disaster?

    1. Azure Site Recovery
    2. Azure File Sync
    3. Azure Backup
    4. Azure Migrate
    Show answer

    Answer: A. Azure Site Recovery

    Site Recovery orchestrates replication, failover, and failback.

  21. Question 21. How can you validate a disaster recovery plan without affecting production?

    1. Run a test failover to an isolated virtual network
    2. Perform a planned failover during business hours
    3. Disable replication and restore from backup
    4. Delete the source VMs to trigger failover
    Show answer

    Answer: A. Run a test failover to an isolated virtual network

    Test failover creates VMs in an isolated network so production keeps running.

  22. Question 22. In Site Recovery, what does a recovery plan let you do?

    1. Choose how long backup recovery points are kept
    2. Define alert rules for CPU usage on replicated VMs
    3. Set the maximum size of each replicated disk
    4. Group VMs and order their failover with optional scripts
    Show answer

    Answer: D. Group VMs and order their failover with optional scripts

    Recovery plans orchestrate multi-tier app failover in groups and steps.

  23. Question 23. Which metric in Site Recovery indicates how much data could be lost if failover happened now?

    1. Recovery time objective (RTO)
    2. Service level agreement
    3. Recovery point objective (RPO)
    4. Mean time between failures
    Show answer

    Answer: C. Recovery point objective (RPO)

    RPO reflects replication lag, the window of potential data loss.

  24. Question 24. Where can you see backup job status and alerts across many vaults?

    1. The Azure Advisor weekly digest
    2. Backup center (Business Continuity Center)
    3. The Azure Resource Mover hub
    4. The Microsoft Entra audit log
    Show answer

    Answer: B. Backup center (Business Continuity Center)

    Backup center gives a single view of backup jobs, policies, and alerts.

  25. Question 25. Which view shows the current health of a specific VM and past availability events?

    1. Cost analysis
    2. Access reviews
    3. Resource Health
    4. Policy compliance
    Show answer

    Answer: C. Resource Health

    Resource Health reports if a resource is available, degraded, or unavailable.

  26. Question 26. Where do you configure retention of data in a Log Analytics workspace?

    1. In the storage account lifecycle policy
    2. In the diagnostic setting of each resource
    3. In the workspace or per-table retention settings
    4. In the action group attached to alerts
    Show answer

    Answer: C. In the workspace or per-table retention settings

    Retention is set at the workspace level and can be overridden per table.

  27. Question 27. Which Azure Monitor feature proactively detects failure anomalies in web apps?

    1. Resource locks
    2. Application Insights smart detection
    3. Backup soft delete
    4. Cost Management anomaly alerts
    Show answer

    Answer: B. Application Insights smart detection

    Smart detection flags unusual failure rates and performance issues.

  28. Question 28. What is the benefit of dynamic thresholds in metric alerts?

    1. They lower the cost of storing metrics in a workspace
    2. They apply the same threshold to every subscription
    3. They convert metric alerts into log search alerts
    4. They learn normal patterns so you don't set a fixed value
    Show answer

    Answer: D. They learn normal patterns so you don't set a fixed value

    Dynamic thresholds use machine learning on historical data to detect anomalies.

Microsoft and Azure are trademarks of the Microsoft group of companies. These questions are original study material, not questions from the real exam.