AZ-104 Monitor and Maintain Azure Resources Practice Question
This AZ-104 practice question tests your understanding of monitor and maintain azure resources. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. 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
Key Vault diagnostic settings
-----------------------------
Destination: Storage account only
Logs: AuditEvent = Disabled
Metrics: AllMetrics = Enabled
Retention on storage account: 7 days
Investigation requirement
------------------------
Search administrative and access events in Log Analytics
Keep data queryable for 30 days
Create log alerts from the collected events
Based on the exhibit, a security team wants to search Key Vault audit events in Log Analytics for 30 days and create alerts when secrets are accessed unexpectedly. The current diagnostic configuration is not sending the right data. What should the administrator enable?
Key Vault diagnostic settings
-----------------------------
Destination: Storage account only
Logs: AuditEvent = Disabled
Metrics: AllMetrics = Enabled
Retention on storage account: 7 days
Investigation requirement
------------------------
Search administrative and access events in Log Analytics
Keep data queryable for 30 days
Create log alerts from the collected events
A
Enable AuditEvent and send the logs to a Log Analytics workspace.
Key Vault audit events must be collected into Log Analytics to support search, KQL queries, and log-based alerting. Enabling the AuditEvent category and targeting a workspace satisfies both investigation and alerting requirements.
B
Enable only AllMetrics and keep sending data to the storage account.
Why wrong: Metrics show health and performance trends, but they do not capture the audit trail needed to investigate secret access or administrative changes.
C
Create a private endpoint for the Key Vault.
Why wrong: A private endpoint improves network access control, but it does not configure log collection or make audit events searchable.
D
Turn on a resource lock with the ReadOnly effect.
Why wrong: Locks are unrelated to diagnostics. A ReadOnly lock would also interfere with normal administration rather than solve log collection.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enable AuditEvent and send the logs to a Log Analytics workspace.
Option A is correct because the Key Vault diagnostic setting must include the AuditEvent category to capture all audit logs, including secret operations. Sending these logs to a Log Analytics workspace enables the security team to query them for 30 days and create alerts on unexpected secret access. Without AuditEvent enabled, no audit data is available for analysis.
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.
✓
Enable AuditEvent and send the logs to a Log Analytics workspace.
Why this is correct
Key Vault audit events must be collected into Log Analytics to support search, KQL queries, and log-based alerting. Enabling the AuditEvent category and targeting a workspace satisfies both investigation and alerting requirements.
Related concept
Read the scenario before looking for a memorised answer.
✗
Enable only AllMetrics and keep sending data to the storage account.
Why it's wrong here
Metrics show health and performance trends, but they do not capture the audit trail needed to investigate secret access or administrative changes.
✗
Create a private endpoint for the Key Vault.
Why it's wrong here
A private endpoint improves network access control, but it does not configure log collection or make audit events searchable.
✗
Turn on a resource lock with the ReadOnly effect.
Why it's wrong here
Locks are unrelated to diagnostics. A ReadOnly lock would also interfere with normal administration rather than solve log collection.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates often confuse AllMetrics (which provides performance data) with AuditEvent (which provides security logs), or mistakenly think that network controls like private endpoints or resource locks can substitute for proper diagnostic logging configuration.
Trap categories for this question
Command / output trap
Metrics show health and performance trends, but they do not capture the audit trail needed to investigate secret access or administrative changes.
Detailed technical explanation
How to think about this question
Key Vault diagnostic settings use Azure Monitor diagnostic categories: AuditEvent captures all logged operations (e.g., secret get, set, delete) and is required for security monitoring. The logs are sent via the Azure Monitor pipeline to a Log Analytics workspace, where they are stored in the AzureDiagnostics table; Kusto queries can then filter for specific secret operations and trigger alerts based on thresholds or patterns. Without AuditEvent, the workspace receives no security-relevant data, making alerting impossible.
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: Enable AuditEvent and send the logs to a Log Analytics workspace. — Option A is correct because the Key Vault diagnostic setting must include the AuditEvent category to capture all audit logs, including secret operations. Sending these logs to a Log Analytics workspace enables the security team to query them for 30 days and create alerts on unexpected secret access. Without AuditEvent enabled, no audit data is available for analysis.
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.