mediummultiple choiceObjective-mapped

Engineers need a single Log Analytics workspace to investigate incidents by querying Windows event logs from a VM and Azure resource logs from a storage account. What should the administrator configure?

Question 1mediummultiple choice
Full question →

Engineers need a single Log Analytics workspace to investigate incidents by querying Windows event logs from a VM and Azure resource logs from a storage account. What should the administrator configure?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Create a resource lock on the workspace and let each team send emails when incidents happen.

A lock protects the workspace from changes, but it does not collect logs or make them available for KQL analysis.

B

Best answer

Use Azure Monitor Agent with a data collection rule for the VM and diagnostic settings for the storage account, both sending data to the same workspace.

VM guest logs require the Azure Monitor Agent and a data collection rule, while storage account platform logs are exported with diagnostic settings. Sending both to one Log Analytics workspace gives the team a single place to correlate incidents with KQL.

C

Distractor review

Move the VM and storage account into the same availability set so their logs appear together.

Availability sets provide resiliency for VMs only and do not centralize or combine telemetry from different services.

D

Distractor review

Enable a private endpoint for the workspace and disable all diagnostic collection.

Private connectivity can be useful, but it does not replace telemetry collection, and disabling diagnostic collection would prevent troubleshooting.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Use Azure Monitor Agent with a data collection rule for the VM and diagnostic settings for the storage account, both sending data to the same workspace. — This scenario requires two different log sources to land in the same analysis workspace. VM guest events are collected with the Azure Monitor Agent and a data collection rule, while storage account logs are exported by diagnostic settings. Once both streams are in the same Log Analytics workspace, engineers can use KQL to correlate the VM behavior and the storage-side events during an incident. Why others are wrong: A is wrong because locks do not collect or analyze telemetry. C is wrong because availability sets are unrelated to log aggregation. D is wrong because private endpoints affect network access, not log collection, and turning off diagnostics removes the data needed for troubleshooting.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.