exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 6 question 36 discussion

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

HOTSPOT
-

You have an Azure subscription that is linked to an Azure AD tenant. The tenant contains two users named User1 and User2.

The subscription contains the resources shown in the following table.



The subscription contains the alert rules shown in the following table.



The users perform the following action:

• User1 creates a new virtual disk and attaches the disk to VM1
• User2 creates a new resource tag and assigns the tag to RG1 and VM1

Which alert rules are triggered by each user? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
MightyMonarch74
Highly Voted 2 years ago
Tested in a lab. User 1 - Alert 1 and Alert 2 fired Alert 1 operations: Microsoft.Compute/virtualMachines/write Microsoft.Compute/disks/write Alert 2 operations: Microsoft.Compute/virtualMachines/write User 2 - Alert 1 fired Alert 1 operations: Microsoft.Resources/tags/write
upvoted 57 times
hebbo777
1 year, 3 months ago
are you sure that you tested updating new resource tag to VM1 and RG1? why won't fire both alerts!!
upvoted 4 times
...
JayLearn2022
2 years ago
Thank you for this information
upvoted 2 times
...
Zemar
1 year, 11 months ago
Thanks very much for this :)
upvoted 1 times
...
xRiot007
1 year, 9 months ago
So assigning a tag is not an administrative operation ? This doesn't look very human readable on Microsoft's part. Tags are used in many admin operations, including cost management.
upvoted 3 times
...
...
sardonique
Highly Voted 1 year, 4 months ago
nobody's got a clue Mlantonis where are you!!!
upvoted 42 times
...
Sandipmcr
Most Recent 1 month, 1 week ago
User1: Both alerts User2: Both alerts are triggered --> any operation that changes the metadata or configuration of VM1, including adding or modifying tags, falls under administrative operations and will be captured by the rule.
upvoted 1 times
...
[Removed]
5 months ago
WRONG User1: Alert1 and Alert2 are triggered User2: Alert1 and Alert2 are triggered
upvoted 7 times
...
d8938
10 months, 2 weeks ago
Answer is correct. Alert 1 is scoped to the Resource Group (RG1). This means it will only trigger when there are administrative operations performed on the resource group itself or on resources directly within the resource group. While VM1 is likely part of RG1, the act of attaching a disk to VM1 is considered an operation on the VM, not on the resource group. Alert 2 is scoped to the Virtual Machine (VM1). This means it will trigger when there are administrative operations performed directly on VM1. Creating a new virtual disk and attaching it to VM1 is considered an administrative operation on the VM, so it triggers Alert 2.
upvoted 4 times
a74d359
1 month, 2 weeks ago
But surely the creation of a virtual disk is an act on RG1?
upvoted 1 times
...
...
Amir1909
11 months, 2 weeks ago
User1: Alert1 and Alert2 are triggered. User2 : Alert1 and Alert2 are triggered.
upvoted 6 times
...
1828b9d
1 year ago
This question was in exam 01/03/2024
upvoted 7 times
...
[Removed]
1 year, 2 months ago
I tested this in my lab. User1: Alert1 and Alert2 are triggered. User2 : Alert1 and Alert2 are triggered. User1 operations: - Microsoft.Compute/virtualMachines/write (on the VM itself, triggering Alert2) - Microsoft.Compute/disks/write (on the RG, triggering Alert1) User2 Operations: Microsoft.Resources/tags/write (on the RG, triggering Alert1) Microsoft.Resources/tags/write (on the VM, triggering Alert2)
upvoted 24 times
...
hebbo777
1 year, 3 months ago
I have tested in the lab! User 1 - Alert 1 and Alert 2 fired (tested with creating new data disk in same RG1 and in different RG and in both scenario the alerts fired for both VM&RG1) User 2 - Alert 1 and Alert 2 fired (this is very clear as you creating a tag and assign for both VM and RG!
upvoted 14 times
...
KotNinja
1 year, 4 months ago
User1 triggers: Alert2 (due to the disk operation on VM1). User2 triggers: Alert1 (due to tagging RG1) and Alert2 (due to tagging VM1).
upvoted 5 times
Ahkhan
1 year, 3 months ago
Tags don't inherit.
upvoted 1 times
...
...
Vestibal
1 year, 4 months ago
User1 triggers alert2. User2 triggers both alert1 and alert2.
upvoted 2 times
...
saadshaikh123
1 year, 6 months ago
It should be "Alert1 and Alert2 are triggered" for both User 1 and User 2. Now lets analyze: User 1 operations: User 1 not only just attaches the disk to VM1 but rather creates a new disk. If you go on portal and goto Disks and select a VM and then create a new disk, it will ask you to select an existing resource group or create a new rg (usually we create the disk in the same rg as of vm which is RG1 here). This means that after creating the disk, the resource group will be updated, and it will have an operation occur on it. Once created, we then attach the new disk to VM1, which means VM1 is also affected now by the disk attach operation. So for User 1, Alert 1 and Alert2 both will be triggered because Alert1 has scope of RG1 and Alert 2 has scope of VM1. User 2 operations: This one is straightforward. User 2 assigns new tags to both RG1 and VM1. Thus write operations will be logged for both VM1 and RG1. Therefore, Alert1 and Alert2 both will be triggered.
upvoted 15 times
AliNadheer
1 year, 3 months ago
makes allot of sense. and both actions are administrative actions and affect both resources thus both alerts will trigger.
upvoted 1 times
hebbo777
1 year, 3 months ago
Agree with you
upvoted 1 times
...
...
...
Teroristo
1 year, 7 months ago
User1: Alert1 and Alert2 are triggered User2: Alert1 and Alert2 are triggered Explanation: Each alert rule has a scope. A scope is a list of one or more specific Azure resources, a specific resource group, or an entire subscription. The alert rule fires on resources within that scope. Since VM1 is contained in RG1, User1's action falls within the scope of both Alert1 and Alert2. User1 triggers both alerts. User2 triggers Alert1 by creating the tag for RG1. User2 triggers both Alert1 and Alert2 by creating the tag for VM1.
upvoted 14 times
...
RandomNickname
1 year, 8 months ago
User1 I'd say alert1, 2 Create disk needs to assign to RG as per below. https://learn.microsoft.com/en-us/cli/azure/disk?view=azure-cli-latest And assign to VM will trigger alert as per admin op User2, Not 100% but I'm tempted to say alert 1,2 because assign tag to both would be an action. see; https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-types#log-alerts & https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log-schema
upvoted 2 times
...
garmatey
1 year, 8 months ago
Does deploying a new virtual disk not require deploying it to resource group? And if we're deploying it to RG1 is that not an administrative operation for RG1?
upvoted 1 times
...
[Removed]
1 year, 9 months ago
creating a disk and adding it to the VM is a provision task not an administrative task
upvoted 3 times
garmatey
1 year, 8 months ago
Source??? This declaration is almost meaningless without a source. Why should I believe you?
upvoted 4 times
...
...
lulzsec2019
1 year, 10 months ago
I'm also confused as there are 2 different answers here in comment section.
upvoted 5 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