Microsoft Azure Administrator Associate AZ-104 Practice Question
You are an Azure administrator at a company that uses Azure Monitor Logs to collect and analyze logs from various Azure resources. You need to find all the error-level events generated in the last day by a virtual machine named AppServer1. Which query should you run in Log Analytics?
You selected this option
Heartbeat | where SourceSystem == "AppServer1" and TimeGenerated >= ago(1d)
You selected this option
AzureDiagnostics | where Resource == "AppServer1" and Level == "Warning" and TimeGenerated >= ago(1d)
You selected this option
Syslog | where Host == "AppServer1" and SeverityLevel == "Error" and TimeGenerated >= now() - 24h
You selected this option
Event | where Computer == "AppServer1" and Level == "Error" and TimeGenerated >= ago(1d)
The correct query is Event | where Computer == "AppServer1" and Level == "Error" and TimeGenerated >= ago(1d). This query searches the Event table for entries where the Computer field matches "AppServer1", the Level is "Error", and the TimeGenerated is within the last day. The Event table contains Windows event logs collected by Azure Monitor.
Option 2 is incorrect because it queries the AzureDiagnostics table and filters on Level == "Warning", which would return warning-level events, not errors.
Option 3 is incorrect because it queries the Syslog table, which contains Linux system logs, and uses Host == "AppServer1". If AppServer1 is a Windows machine, its logs won't be in the Syslog table.
Option 4 is incorrect because it queries the Heartbeat table, which contains heartbeat data for monitoring whether the agent is running, and it doesn't include event logs.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Azure Monitor Logs and how does it work?
Open an interactive chat with Bash
What is Kusto Query Language (KQL) and its significance?
Open an interactive chat with Bash
What are the different tables in Azure Monitor Logs and their purposes?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Monitor and maintain Azure resources
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access