exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 6 question 33 discussion

Actual exam question from Microsoft's AZ-104
Question #: 33
Topic #: 6
[All AZ-104 Questions]

You have an Azure subscription named Subscription1 that contains an Azure Log Analytics workspace named Workspace1.
You need to view the error events from a table named Event.
Which query should you run in Workspace1?

  • A. search in (Event) "error"
  • B. Event | where EventType is "error"
  • C. select * from Event where EventType == "error"
  • D. Get-Event Event | where {$_.EventType == "error"}
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
virgilpza
Highly Voted 2 years, 5 months ago
In this case the answer is A other options are: 1. Event | search "error" 2. Event | where EventType == "error" 3. search in (Event) "error"
upvoted 47 times
meeko86
2 years, 2 months ago
The first and third option works. The second option did not work for me. EventType does not exist. However this worked for me: Event | where EventLevelName == "Error"
upvoted 8 times
...
...
Cowsarered
Highly Voted 2 years, 6 months ago
Selected Answer: A
Answer is Correct
upvoted 12 times
...
Josh219
Most Recent 3 months ago
Selected Answer: A
Correct is A, not B as many are saying B would be correct if it was Event | where EventType == "error" BUT option B in the question is B. Event | where EventType is "error" So, B is wrong. Other command which are correct are below: Event | search "error" Event | where EventType == "error" (Is the best option according to question as it filters out) But its not given in Question.
upvoted 1 times
...
95d0718
3 months, 2 weeks ago
Selected Answer: B
Event | where Category == "Error"
upvoted 1 times
...
jamesf
3 months, 3 weeks ago
Selected Answer: B
Ans is B In this case the answer is A other options are: 1. Event | search "error" 2. Event | where EventType == "error" 3. search in (Event) "error"
upvoted 1 times
...
Gorkhali_
4 months, 1 week ago
To view the error events from a table named `Event` in your Azure Log Analytics workspace named `Workspace1`, you should use the following query: **B. `Event | where EventType == "error"`** This query uses Kusto Query Language (KQL) to filter the `Event` table for rows where the `EventType` column has the value "error".
upvoted 3 times
...
Dankho
4 months, 2 weeks ago
Selected Answer: B
B. Event | where EventType is "error": This is the correct KQL syntax for querying the Event table and filtering for records where the EventType is "error." Not A guys... A. search in (Event) "error": This syntax is not correct for filtering specific events in KQL. The search operator is used for broader searches but not in this format. When you think of Azure Log Analytics workspace, you need to think of the query language KQL
upvoted 2 times
...
TripleFires
1 year ago
Example available at https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/search-operator search in (T1,T2,A*) "err"
upvoted 1 times
...
HiDhiman
1 year, 1 month ago
I find there is problem in the answers https://learn.microsoft.com/en-us/azure/azure-monitor/agents/data-sources-windows-events
upvoted 1 times
HiDhiman
1 year, 1 month ago
Event | where EventLevelName == "Error"
upvoted 1 times
...
...
AnKiLa
2 years ago
Selected Answer: A
Correct answer is A. Answer B is wrong because the operator 'is' is not valid. Instead we have to use '=='. See https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/datatypes-string-operators
upvoted 6 times
...
er101q
2 years ago
Option B is correct because it is written in the Log Analytics query language, which is used to query data in an Azure Log Analytics workspace. The query uses the "Event" table and filters the results to only include events with an "EventType" of "error". The other options are not written in the Log Analytics query language and would not work as written in a Log Analytics workspace.
upvoted 2 times
...
Mo22
2 years ago
Selected Answer: B
Option B is the correct query to use in Azure Log Analytics to view error events from a table named Event. The syntax for Azure Log Analytics queries uses a pipeline style and typically begins with the name of the table, in this case "Event", followed by one or more operators, in this case the "where" operator, which filters the results based on the specified criteria. The correct syntax would be: Event | where EventType is "error"
upvoted 5 times
kodathedog
1 year, 7 months ago
The answer is A The answer can't be B because "is" is NOT a valid operator, the expression would have to read Event | where EventType has "error" to be correct. See https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/whereoperator
upvoted 2 times
...
...
vishalgu
2 years, 1 month ago
option B. explanation:- In Azure Log Analytics, you use the "Kusto Query Language" (KQL) to query the data stored in a Log Analytics workspace. To view the error events from the table named "Event" in Workspace1, you should run the following query: Event | where EventType is "error" This query will filter the "Event" table to only show the events where the "EventType" is "error" and you will be able to see all the events with errors.
upvoted 1 times
mahesha9449295905
1 year, 12 months ago
corrrect
upvoted 1 times
...
...
ccemyilmazz
2 years, 1 month ago
Selected Answer: A
1. Event | search "error" 2. Event | where EventType = "error" 3. search in (Event) "error"
upvoted 6 times
...
klexams
2 years, 4 months ago
A. search in (Event) "error"
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago