Does MMA Extension Meet Azure Alert Goal?
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
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?
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
- https://learn.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-overview
- https://learn.microsoft.com/en-us/azure/azure-monitor/vm/vminsights-enable-portal
These links open the official vendor documentation in a new tab.
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?
Can I use MMA to collect Windows Event Logs?
Community Votes
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
-
mlantonis 👍 160Correct 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
-
Lapiduse 👍 42I 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
-
JoeRogersHi 👍 17What 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.
-
Sahir 👍 15add or install, its not a tricky one question.. Childish
-
Goofer 👍 13In 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
-
Indy429 👍 12Another 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.
-
magichappens 👍 11That 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"?
-
diligent176 👍 10Yes, 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
-
eduhazard 👍 7Agree, 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?
-
pieronegri 👍 7"extension" is the keyword here
-
ZUMY 👍 6A 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.
-
Chris76 👍 6This is beyond fked up. Install vs Add. Questions should be based on knowledge, concepts, and intents, not on contextual interpretation of polysemantic words.
-
omhari 👍 6You 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
-
ThatDowntownSmell 👍 5The 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.
-
Bursuc03 👍 5Answer 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.
-
Scoobysnaks86 👍 5add vs install??? really? In a field that we often use the two words interchangeably, THIS is the trick question they decided to ask. ffs
-
fedztedz 👍 5Corret. the answer is no
-
toniiv 👍 4Answer 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
-
BenStokes 👍 4Answer 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.
-
RRupesh 👍 4dont overthink guys..adding extension doesn't meet the goal thats it..
-
JohnAvlakiotis 👍 4Based on the answer given it should be "Yes", which I find correct.
-
best_yunus 👍 4tricky part is "add" we need to install
-
PtOlOmY 👍 3the 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.
-
AubinBakana 👍 3Answer 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.
-
58b2872 👍 3 Answered Bsuch 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.
-
silver_bullet666 👍 3I 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.
-
awssecuritynewbie 👍 3there 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.
-
Shubham_KP 👍 3Tricky 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).
-
WeepingMaplte 👍 3 Answered AIt is possible now. Question is 4 years ago. https://learn.microsoft.com/en-us/services-hub/unified/health/mma-setup
-
SnakePlissken 👍 3The 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.
Related Analysis
Practice All AZ-104 Questions
Access 100 questions with complete answers and detailed explanations.
View Full AZ-104 Practice Test →