AZ-104 practice question 9 of 35
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…
Choose your answer, then check it against the explanation and the full breakdown below.
Domain Manage Azure identities and governance
Question breakdown
Key idea: Alerts based on Windows event log content require the events to be sent to a Log Analytics workspace and queried with a log search alert rule.
How to reach the answer
- The goal is to count error events in the System log over a one-hour window, which is a log query condition.
- Log search alerts in Azure Monitor run KQL against a Log Analytics workspace, not against a storage account.
- The agent (MMA, or now AMA with a data collection rule) must send events to a workspace.
- Clue: the solution names a storage account with SAS as the alert source, which is not a valid source for this kind of alert, so the answer is No.
Each option
Common trap: Storage accounts can hold diagnostic data, so it seems plausible that alerts could read from them, but alert rules query workspaces, not blobs or tables.
In practice: Admins monitoring VM event logs usually set up a data collection rule that sends Windows events to a Log Analytics workspace. They then create a log search alert with a count threshold and an evaluation window.
Remember: Event-log-based alerting means workspace plus agent plus log search alert; storage accounts are for archiving, not alert sources.
Official documentation: Azure Monitor Agent overview · What are Azure Monitor alerts?
Drafted with AI assistance and checked against the answer key.
Keep practicing
Take the free AZ-104 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AZ-104 practice questions
- Question 1You have an Azure App Services web app named App1. You plan to deploy App1 by using Web D…
- Question 2Your company has an azure subscription that includes a storage account, a resource group,…
- Question 3You have an Azure Active Directory (Azure AD) tenant named contoso.com. You have a CSV fil…
- Question 5You have an Azure subscription. You plan to deploy an Azure Kubernetes Service (AKS) clus…
- Question 6You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure Res…
- Question 7You need to ensure that VM1 can communicate with VM4. The solution must minimize administ…
