Question 813 of 1,170
Monitor and Maintain Azure ResourcesmediumMultiple ChoiceObjective-mapped

Quick Answer

The answer is to create diagnostic settings on both the storage account and the subscription, sending their logs to the same Log Analytics workspace. This configuration is correct because it allows you to correlate storage errors, such as StorageWrite failures, directly with subscription activity logs that track role assignments or deployments. By funneling both resource-level platform logs and subscription-level activity logs into a single workspace, you can run cross-table queries to pinpoint whether a recent change—like a new role assignment or a deployment—caused the write failures. On the AZ-104 exam, this scenario tests your understanding of diagnostic settings as the bridge between operational troubleshooting and governance auditing, a common trap being to only configure diagnostics on the storage account and miss the subscription side. A useful memory tip: "Same workspace, different sources—resource logs for the 'what' and activity logs for the 'who'."

AZ-104 Monitor and Maintain Azure Resources Practice Question

This AZ-104 practice question tests your understanding of monitor and maintain azure resources. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A storage account is failing writes, and the team also wants to correlate those errors with subscription-level changes such as role assignments or deployments. What should the administrator configure?

Question 1mediummultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Create diagnostic settings on the storage account and the subscription that send logs to the same Log Analytics workspace.

Option B is correct because diagnostic settings on both the storage account and the subscription can stream platform logs (e.g., StorageWrite failures) and activity logs (e.g., role assignments, deployments) to the same Log Analytics workspace. This enables correlated queries across resource-level operational issues and subscription-level changes, allowing the administrator to identify if a recent role assignment or deployment caused the write failures.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Rotate the storage account keys and review access from the portal activity feed.

    Why it's wrong here

    Key rotation can be a security practice, but it does not collect telemetry or centralize error and change data for troubleshooting.

  • Create diagnostic settings on the storage account and the subscription that send logs to the same Log Analytics workspace.

    Why this is correct

    Diagnostic settings are the correct mechanism for exporting both resource logs and subscription Activity log events to Log Analytics. Putting them in the same workspace lets the team correlate storage failures with changes such as deployments or role assignments in one KQL query.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Place the storage account behind an availability set so writes remain available during maintenance.

    Why it's wrong here

    Availability sets apply to virtual machines, not to storage accounts, and they do not provide log correlation or diagnostics.

  • Enable a service endpoint from the application subnet and check whether the firewall blocks the writes.

    Why it's wrong here

    A service endpoint changes network access behavior, but it does not centralize telemetry or help correlate errors with subscription changes.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may think the Activity Log alone (Option A) is sufficient for correlation, but it lacks the resource-level diagnostic data needed to see the actual write failures, while diagnostic settings to a common Log Analytics workspace provide the necessary cross-layer query capability.

Detailed technical explanation

How to think about this question

Under the hood, diagnostic settings on a storage account can send resource logs (e.g., StorageWrite logs with error codes like 403 or 500) to Log Analytics, while subscription diagnostic settings send the Azure Activity Log (including role assignments via Microsoft.Authorization/roleAssignments/write and deployments via Microsoft.Resources/deployments/write). By using Kusto queries in Log Analytics, you can join these tables on timestamps to pinpoint, for example, that a write failure occurred seconds after a role assignment removed the contributor permission. In real-world scenarios, this correlation is critical for root-cause analysis during incidents where a change management process inadvertently breaks storage operations.

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.

TExam Day Tips

  • 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.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

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.

Practice this exam

Start a free AZ-104 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Monitor and Maintain Azure Resources — This question tests Monitor and Maintain Azure Resources — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Create diagnostic settings on the storage account and the subscription that send logs to the same Log Analytics workspace. — Option B is correct because diagnostic settings on both the storage account and the subscription can stream platform logs (e.g., StorageWrite failures) and activity logs (e.g., role assignments, deployments) to the same Log Analytics workspace. This enables correlated queries across resource-level operational issues and subscription-level changes, allowing the administrator to identify if a recent role assignment or deployment caused the write failures.

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

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways this is tested on AZ-104

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A troubleshooting team wants to investigate a storage account write failure and subscription-level role assignment changes in a single Log Analytics workspace. They want to ingest only the telemetry needed for those investigations. Which two sources should they enable? Select two.

medium
  • A.Configure diagnostic settings on the storage account to send resource logs to the workspace.
  • B.Export the subscription Azure Activity log to the same workspace.
  • C.Enable guest-level Windows event collection on a random virtual machine.
  • D.Turn on NSG flow logs for every subnet in the subscription.
  • E.Use Azure Advisor recommendations as the source of telemetry.

Why A: Option A is correct because diagnostic settings on a storage account can be configured to send resource logs (such as storage write operations, including details of failed writes) to a Log Analytics workspace. This allows the team to investigate write failures directly from the storage account's telemetry.

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.