Does MMA Extension Meet Azure Alert Goal?

AZ-104 By islever Editorial Last updated

Monitor resources in Azure

Short answer

A The solution meets the goal because the Microsoft Monitoring Agent VM extension successfully forwards System event logs to the Log Analytics workspace, enabling Azure Monitor alerts based on error counts.

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might
meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System event log on VM1 within an hour.
Solution: You create an Azure Log Analytics workspace and configure the data settings. You add the Microsoft Monitoring Agent VM extension to VM1. You create
an alert in Azure Monitor and specify the Log Analytics workspace as the source.
Does this meet the goal?
  1. Yes Correct Answer
  2. No

Key Takeaways

The main trap is confusing the legacy Microsoft Monitoring Agent (MMA) with the newer Azure Monitor Agent (AMA); both work, so MMA is still a correct answer for legacy scenarios.

This page explains why adding the Microsoft Monitoring Agent VM extension to a Windows VM satisfies the requirement to alert on System event errors via Azure Monitor.

Common mistake: Candidates often select 'No' believing that only the Azure Monitor Agent (AMA) is acceptable, ignoring that the Microsoft Monitoring Agent (MMA) is still fully functional and supported for this purpose.

Expert Analysis

The solution presented in the question meets the stated goal. To collect Windows System event logs from an Azure Virtual Machine and create alerts based on them, you need a mechanism to ingest that data into Azure Monitor and a rule to trigger the alert.

First, the creation of an Azure Log Analytics workspace provides the necessary repository for storing log data. Configuring the data settings ensures that the specific log types (such as Windows Event Logs) are enabled for collection.

Second, installing the Microsoft Monitoring Agent (MMA) VM extension on VM1 is the correct method to enable the virtual machine to send these logs to the Log Analytics workspace. The MMA (also known as the Log Analytics agent) is fully supported for collecting Windows event logs. While Microsoft has introduced the newer Azure Monitor Agent (AMA) as the recommended long-term solution, the legacy MMA remains a valid and functional option for this scenario. The comments discussing AMA vs. MMA often confuse candidates, but since MMA is explicitly mentioned and is capable of performing the task, it does not invalidate the solution.

Third, creating an alert in Azure Monitor with the Log Analytics workspace as the source allows you to define a query (typically using Kusto Query Language or KQL). This query can filter for 'Error' events in the 'System' log and set a threshold (e.g., count > 2 within an hour). When the condition is met, the alert triggers.

Therefore, all components required to achieve the goal—data collection via MMA and alerting via Azure Monitor—are present and correctly configured.

Official Reference

Exam Strategy

When evaluating monitoring solutions in AZ-104, verify that the agent type mentioned (MMA or AMA) can actually perform the required data ingestion. Do not automatically reject legacy agents unless the question specifies 'best practice' or 'new deployment'. Focus on whether the data path from VM to Workspace to Alert is complete.

Frequently Asked Questions

Is Microsoft Monitoring Agent (MMA) deprecated?

MMA is not yet deprecated; it is considered a legacy agent. Microsoft recommends the Azure Monitor Agent (AMA) for new deployments, but MMA remains fully supported and functional for existing scenarios.

Can I use MMA to collect Windows Event Logs?

Yes, the Microsoft Monitoring Agent (Log Analytics Agent) can collect Windows Event Logs, including the System log, and send them to a Log Analytics workspace for querying and alerting.

More AZ-104 FAQ →

Community Votes

A
61%
B
39%

61% of anonymous learners picked answer A. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 105 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 30 of 105

  1. mlantonis 👍 160
    Correct Answer: You add the Microsoft Monitoring Agent VM extension to VM1 > This is WRONG You Install the Microsoft Monitoring Agent VM agent to VM1 > This is Correct 1. Log analytics agent - Install in VM. 2. Log analytics workspace - collect the log files from Log Analytics Agent. 3. Azure Monitor - Create alert based on logs read from Log Analytics Workspace. Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
  2. Lapiduse 👍 42
    I think the Answer should be - Yes. You need to click the Add button on Portal-> Settings-> Extensions to Install the Extension on VM. Azure Monitor currently has multiple agents because of recent consolidation of Azure Monitor and Log Analytics. The Azure Monitor Agent is implemented as an Azure VM extension. Windows/Linux name: Microsoft.Azure.Monitor Windows type: AzureMonitorWindowsAgent Linix type: AzureMonitorLinuxAgent https://docs.microsoft.com/en-us/azure/azure-monitor/platform/azure-monitor-agent-install?tabs=ARMAgentPowerShell%2CPowerShellWindows%2CPowerShellWindowsArc%2CCLIWindows%2CCLIWindowsArc
  3. JoeRogersHi 👍 17
    What in the actual uckf. I’m an industry professional, I don’t have time to nitpick over add vs install, or agent vs.extension. Come on, Microsoft.
  4. Sahir 👍 15
    add or install, its not a tricky one question.. Childish
  5. Goofer 👍 13
    In 2023 you can add Microsoft Monitoring Agent VM extension to VM1 See: https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-manage?tabs=azure-portal
Show 25 more comments
  1. Indy429 👍 12
    Another trick question by MS to try and trip you up. I swear more than half of this test just comes down to your comprehensive reading skills.
  2. magichappens 👍 11
    That linked article from @mlantonis actually mentions that [...the Azure Monitor agent is meant to replace the Log Analytics agent, Azure Diagnostic extension and Telegraf agent for both Windows and Linux machines...] and [...The Azure Monitor agent is only available as a virtual machine extension...] so guess nowadays it would be rather "yes"?
  3. diligent176 👍 10
    Yes, this is a "dirty trick" in test question... The word "extension" is what makes it wrong. The name is Azure Monitor Agent. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
  4. eduhazard 👍 7
    Agree, but why MS do that? Why these tricks? This is only to catch guys without attention but if you are doing an exam, nervous, anxiety could easily make a mistake and what it proves?
  5. pieronegri 👍 7
    "extension" is the keyword here
  6. ZUMY 👍 6
    A is answer! Log analytics agent - Install in VM Log analytics workspace - collect the log files from Log Analytics Agent Azure Monitor - Create alert based on logs read from Log Analytics workspace.
  7. Chris76 👍 6
    This is beyond fked up. Install vs Add. Questions should be based on knowledge, concepts, and intents, not on contextual interpretation of polysemantic words.
  8. omhari 👍 6
    You add the Microsoft Monitoring Agent VM extension to VM1 > This is WRONG You Install the Microsoft Monitoring Agent VM agent to VM1 > This is Correct
  9. ThatDowntownSmell 👍 5
    The key here ultimately is that there are two versions of this same question. Only one is going to be "yes", they aren't going to slightly word two test questions differently and both come out as "yes". So "no" if it says add, "yes" if it says install.
  10. Bursuc03 👍 5
    Answer B is correct. There is no "Microsoft Monitoring Agent extension" to add to the VM through Azure. There is the Microsoft Monitoring Agent that you download and install inside the Windows OS.
  11. Scoobysnaks86 👍 5
    add vs install??? really? In a field that we often use the two words interchangeably, THIS is the trick question they decided to ask. ffs
  12. fedztedz 👍 5
    Corret. the answer is no
  13. toniiv 👍 4
    Answer is incorrect, it should be A. since the Azure Monitor Agent is implemented as an Azure VM extensio: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/azure-monitor-agent-install?tabs=ARMAgentPowerShell%2CPowerShellWindows%2CPowerShellWindowsArc%2CCLIWindows%2CCLIWindowsArc#virtual-machine-extension-details
  14. BenStokes 👍 4
    Answer is correct - NO Pay attention to bold words in the action- You ADD the Microsoft Monitoring Agent VM EXTENSION to VM1. Here is the explanation - It should be INSTALL and no mention of EXTENSION respectively.
  15. RRupesh 👍 4
    dont overthink guys..adding extension doesn't meet the goal thats it..
  16. JohnAvlakiotis 👍 4
    Based on the answer given it should be "Yes", which I find correct.
  17. best_yunus 👍 4
    tricky part is "add" we need to install
  18. PtOlOmY 👍 3
    the link supplied clearly states use Extensions to manage agents Yes !! is the correct answer The Azure Monitor agent is only available as a virtual machine extension. The Log Analytics extension for Windows and Linux install the Log Analytics agent on Azure virtual machines. The Azure Monitor Dependency extension for Windows and Linux install the Dependency agent on Azure virtual machines. These are the same agents described above but allow you to manage them through virtual machine extensions. You should use extensions to install and manage the agents whenever possible.
  19. AubinBakana 👍 3
    Answer is correct. Microsoft tries not to have everything installed for memory, storage, and performance. Installing and adding are 2 different things. This question is important because if you're in a work environment and try to add and it's not there, you might not know what to do unless you know that the extension need to be installed first before it appears It's not a trick.
  20. 58b2872 👍 3 Answered B
    such a trap !! You add the Microsoft Monitoring Agent VM extension to VM1 > This is WRONG You Install the Microsoft Monitoring Agent VM agent to VM1 > This is Correct 1. Log analytics agent - Install in VM. 2. Log analytics workspace - collect the log files from Log Analytics Agent. 3. Azure Monitor - Create alert based on logs read from Log Analytics Workspace.
  21. silver_bullet666 👍 3
    I would like to note that adding the MicrosoftMonitoringAgent Extension via the VM > Extensions panel is not a thing afaik, I have done this recently and it should be done from the LAWS, "Workspace Data Sources" heading "Virtual Machines", then you click the VM where it's not connected and click Connect... This installs the Extension and software inside the VM.
  22. awssecuritynewbie 👍 3
    there is a extension called log analytics which is the MMA agent, it will auto install it you can do it via the "auto provisional " section under the environmental settings.. so it will install the MMA agent on the machine without needing to do it. The question is old as the new methods of installing MMA is possible.
  23. Shubham_KP 👍 3
    Tricky One. When you go and try to add Extension is says in next page that. Install Extension. You Install an extension in the VM>Extentions>(+)Add> Install Extension (Shown in Page).
  24. WeepingMaplte 👍 3 Answered A
    It is possible now. Question is 4 years ago. https://learn.microsoft.com/en-us/services-hub/unified/health/mma-setup
  25. SnakePlissken 👍 3
    The answer is No, based on the next question, but I'm really disgusted by the nitpicking of this question!

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AZ-104 Questions

Access 100 questions with complete answers and detailed explanations.

View Full AZ-104 Practice Test →

← Back to AZ-104 Study Guide