AZ-104 Monitor and Maintain Azure Resources Practice Question
This AZ-104 practice question tests your understanding of monitor and maintain azure resources. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. 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.
Exhibit
Storage account diagnostic settings
- Destination: Log Analytics workspace
- Categories: allLogs
- Export mode: Resource-specific
Troubleshooting note:
- A coworker ran: AzureDiagnostics | where ResourceProvider == "MICROSOFT.STORAGE"
- Result: No matching records
Based on the exhibit, why does a query against AzureDiagnostics return no rows after the storage account diagnostic setting was changed?
Exhibit
Storage account diagnostic settings
- Destination: Log Analytics workspace
- Categories: allLogs
- Export mode: Resource-specific
Troubleshooting note:
- A coworker ran: AzureDiagnostics | where ResourceProvider == "MICROSOFT.STORAGE"
- Result: No matching records
A
The storage account cannot send logs to Log Analytics when public network access is disabled.
Why wrong: Network access does not determine the log table format used in Log Analytics.
B
The logs are written to resource-specific tables instead of AzureDiagnostics.
When diagnostic settings use resource-specific mode, Azure writes records to service-specific tables rather than the legacy AzureDiagnostics table. The query failed because it looked in the wrong table. The administrator should query the table that matches the storage log source or switch the destination format if a unified table is preferred.
C
The diagnostic setting only sends metrics, not logs, to the workspace.
Why wrong: The exhibit shows allLogs were selected, so logs are being collected rather than metrics only.
D
The workspace retention period automatically deletes all records after one hour.
Why wrong: Workspace retention does not explain why the query returned no rows immediately after logging was enabled.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The logs are written to resource-specific tables instead of AzureDiagnostics.
Option B is correct because when you change a diagnostic setting for a storage account from 'AzureDiagnostics' mode to 'Resource-specific' mode, logs are no longer sent to the AzureDiagnostics table. Instead, they are written to dedicated resource-specific tables (e.g., StorageReadLogs, StorageWriteLogs). Since the query targets AzureDiagnostics, it returns no rows because the logs are now stored in the new table format.
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.
✗
The storage account cannot send logs to Log Analytics when public network access is disabled.
Why it's wrong here
Network access does not determine the log table format used in Log Analytics.
When this WOULD be correct
This would be correct if the question described a scenario where a storage account has public network access disabled (e.g., using a private endpoint) and the diagnostic setting is configured to send logs to a Log Analytics workspace. In that case, network isolation would prevent log delivery, resulting in no rows in AzureDiagnostics.
✓
The logs are written to resource-specific tables instead of AzureDiagnostics.
Why this is correct
When diagnostic settings use resource-specific mode, Azure writes records to service-specific tables rather than the legacy AzureDiagnostics table. The query failed because it looked in the wrong table. The administrator should query the table that matches the storage log source or switch the destination format if a unified table is preferred.
Related concept
Read the scenario before looking for a memorised answer.
✗
The diagnostic setting only sends metrics, not logs, to the workspace.
Why it's wrong here
The exhibit shows allLogs were selected, so logs are being collected rather than metrics only.
When this WOULD be correct
This option would be correct if the diagnostic setting was configured to send only metrics (e.g., 'AllMetrics') to the Log Analytics workspace, and the query was for log data. For example, a question where the setting exports only performance counters and no log categories.
✗
The workspace retention period automatically deletes all records after one hour.
Why it's wrong here
Workspace retention does not explain why the query returned no rows immediately after logging was enabled.
When this WOULD be correct
This option would be correct if the question stated that the workspace retention period was explicitly set to 1 hour and the query was run after that period, causing data to be deleted.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓The logs are written to resource-specific tables instead of AzureDiagnostics.Correct answer▾
Why this is correct
When diagnostic settings use resource-specific mode, Azure writes records to service-specific tables rather than the legacy AzureDiagnostics table. The query failed because it looked in the wrong table. The administrator should query the table that matches the storage log source or switch the destination format if a unified table is preferred.
✗The storage account cannot send logs to Log Analytics when public network access is disabled.Wrong answer — click to see why▾
Why this is wrong here
The question states that the diagnostic setting was changed, not that public network access was disabled. AzureDiagnostics table is used for resource-specific logs only when the diagnostic setting sends logs to the legacy Azure Diagnostics mode; changing to resource-specific tables causes logs to go to separate tables, not AzureDiagnostics.
★ When this WOULD be the correct answer
This would be correct if the question described a scenario where a storage account has public network access disabled (e.g., using a private endpoint) and the diagnostic setting is configured to send logs to a Log Analytics workspace. In that case, network isolation would prevent log delivery, resulting in no rows in AzureDiagnostics.
Why candidates choose this
Candidates may confuse network restrictions with log routing changes, assuming that disabling public access blocks all log flow, but Azure Diagnostics can still send logs over private links or via the Azure backbone network.
✗The diagnostic setting only sends metrics, not logs, to the workspace.Wrong answer — click to see why▾
Why this is wrong here
The diagnostic setting explicitly includes 'send to Log Analytics' for logs, not just metrics. The question states the setting was changed to send logs to a Log Analytics workspace, so option C is incorrect because logs are being sent.
★ When this WOULD be the correct answer
This option would be correct if the diagnostic setting was configured to send only metrics (e.g., 'AllMetrics') to the Log Analytics workspace, and the query was for log data. For example, a question where the setting exports only performance counters and no log categories.
Why candidates choose this
Candidates may confuse the diagnostic setting's ability to send both metrics and logs, or assume that a change to the setting might have inadvertently disabled log collection, leading them to think only metrics are sent.
✗The workspace retention period automatically deletes all records after one hour.Wrong answer — click to see why▾
Why this is wrong here
The workspace retention period does not automatically delete records after one hour; the default retention is 30 days (or longer), and the question's scenario involves a change in diagnostic setting, not retention.
★ When this WOULD be the correct answer
This option would be correct if the question stated that the workspace retention period was explicitly set to 1 hour and the query was run after that period, causing data to be deleted.
Why candidates choose this
Candidates may confuse the concept of retention period with the immediate absence of data, assuming that a short retention explains why no rows are returned, especially if they overlook the diagnostic setting change.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume logs are always written to the AzureDiagnostics table, overlooking that the diagnostic setting can be configured to use resource-specific tables, which changes the destination table name and causes queries against AzureDiagnostics to return no rows.
Trap categories for this question
Command / output trap
The exhibit shows allLogs were selected, so logs are being collected rather than metrics only.
Detailed technical explanation
How to think about this question
Under the hood, Azure Monitor diagnostic settings support two destination table modes: 'Azure Diagnostics' (legacy) which aggregates all resource logs into a single AzureDiagnostics table, and 'Resource-specific' which creates separate tables per log category (e.g., StorageReadLogs, StorageWriteLogs). When you switch modes, existing data in AzureDiagnostics remains, but new logs flow only to the resource-specific tables. This is critical for storage accounts because the schema is more granular and query performance improves with smaller, targeted tables. In real-world scenarios, if you migrate to resource-specific mode without updating your KQL queries, you will see zero results in AzureDiagnostics, leading to false assumptions of data loss.
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.
Related glossary terms
Concepts from this question explained
These glossary pages explain the core terms tested in this AZ-104 question in full detail.
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: The logs are written to resource-specific tables instead of AzureDiagnostics. — Option B is correct because when you change a diagnostic setting for a storage account from 'AzureDiagnostics' mode to 'Resource-specific' mode, logs are no longer sent to the AzureDiagnostics table. Instead, they are written to dedicated resource-specific tables (e.g., StorageReadLogs, StorageWriteLogs). Since the query targets AzureDiagnostics, it returns no rows because the logs are now stored in the new table format.
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 →
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.
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.
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.
Sign in to join the discussion.