exam questions

Exam AZ-500 All Questions

View all questions & answers for the AZ-500 exam

Exam AZ-500 topic 4 question 21 discussion

Actual exam question from Microsoft's AZ-500
Question #: 21
Topic #: 4
[All AZ-500 Questions]

You have an Azure subscription that contains 100 virtual machines and has Azure Defender enabled.
You plan to perform a vulnerability scan of each virtual machine.
You need to deploy the vulnerability scanner extension to the virtual machines by using an Azure Resource Manager template.
Which two values should you specify in the code to automate the deployment of the extension to the virtual machines? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. the user-assigned managed identity
  • B. the workspace ID
  • C. the Azure Active Directory (Azure AD) ID
  • D. the Key Vault managed storage account key
  • E. the system-assigned managed identity
  • F. the primary shared key
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

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
rsharma007
Highly Voted 3 years, 10 months ago
I am not fully sure about this one, but I agree the answer choices. Since we are deploying the template across several VMs and need to authenticate with the extension repository ( for downloading extensions), we need to provide the VM an identity to authenticate with the repository. This is best done by assigning the VM with a "user assigned managed identity". We can set up this managed identity to have the required permissions on the extension repository via RBAC roles. The managed identity requests permissions via the Azure IMDS from the Azure AD and hence needs to know the right Tenant ID to get the token from. I believe the Azure AD ID is the same as the Tenant ID.
upvoted 20 times
basak
1 year, 10 months ago
This is correct. If you have so many VM in which need to perform same task then better to use user assigned managed identity to provide RBAC roles.
upvoted 5 times
...
...
tuta
Highly Voted 4 years, 6 months ago
correct
upvoted 8 times
...
tomchan2417
Most Recent 2 weeks, 1 day ago
Selected Answer: AC
Its definitely user0assigned managed identity instead of system-assigned. Its does not have anything to do with Log Analytic workspace, why would anyone pick B? I say its AC
upvoted 1 times
...
ca7859c
2 weeks, 1 day ago
Selected Answer: BE
https://learn.microsoft.com/en-us/azure/azure-arc/servers/manage-vm-extensions-template Workspace ID & Workspace Key (instead of key, use UAMI)
upvoted 1 times
ca7859c
2 weeks, 1 day ago
Also, you won't use key, since MI is more secure
upvoted 1 times
...
...
randy0077
3 months, 1 week ago
Selected Answer: BF
New-AzResourceGroupDeployment ` -ResourceGroupName <YourResourceGroup> ` -TemplateFile .\vulnerability-assessment-template.json ` -vmName <YourVMName> ` -workspaceId <YourWorkspaceID> ` -primarySharedKey <YourPrimarySharedKey>
upvoted 2 times
...
859b41f
4 months ago
Selected Answer: BF
why not primary shared key ? several ai chats pick this as a correct answer and mention 'primary shared key is required to authenticate the vulnerability scanner extension '
upvoted 1 times
...
cassucena
7 months ago
Selected Answer: AB
definitivamente user assigned
upvoted 1 times
...
Srirupam
7 months, 1 week ago
Workspace ID & Workspace Key
upvoted 2 times
...
153a793
8 months ago
Answer should be A,B. I would like to response first why "C" is not required while multiple justification already shared for "A" & "B" if different responses. - When we are using a managed identity, it represents a specific identity within Azure Active Directory (Azure AD), so option “C” would not require. - Managed Identity are used to authenticate azure resource. Here we have to use a managed identity to authenticate multiple VM as well as Log analytics workspace, hence NOT for single azure resource, hence option “A” is correct. - Workspace ID and key for Azure Defender integration would require for ARM template, hence option “B” is correct.
upvoted 2 times
...
[Removed]
11 months ago
Selected Answer: AC
Answer is correct; it makes more sense to use user-assigned manage identity + Tenant ID for deploying arm template
upvoted 1 times
...
Nava702
1 year, 2 months ago
Selected Answer: AC
Not sure why people are voting for system assigned identity here. Only coz ChatGPT said so ? You would need 100 identities if you are going to do that. The given answers are correct imo.
upvoted 4 times
...
mrt007
1 year, 2 months ago
When deploying the vulnerability scanner extension to the virtual machines using an Azure Resource Manager template, you should specify: B. the workspace ID: This is the ID of the Log Analytics workspace where the vulnerability data will be sent. E. the system-assigned managed identity: This is the identity that Azure creates and assigns to the virtual machine. It’s used to authenticate the VM when it communicates with the Azure services.
upvoted 1 times
xRiot007
9 months, 3 weeks ago
This will work for 1 VM, not multiple. If you're willing to repeat the process 100 times, be my guest.
upvoted 1 times
...
...
AZ5002023
1 year, 6 months ago
100 VM : best way is to create a user MI .. so user MI and worksapce ID
upvoted 2 times
...
wardy1983
1 year, 7 months ago
B&E Explanation: Since we are deploying the template across several VMs and need to authenticate with the extension repository ( for downloading extensions), we need to provide the VM an identity to authenticate with the repository. This is best done by assigning the VM with a "user assigned managed identity". We can set up this managed identity to have the required permissions on the extension repository via RBAC roles. The managed identity requests permissions via the Azure IMDS from the Azure AD and hence needs to know the right Tenant ID to get the token from. I believe the Azure AD ID is the same as the Tenant ID.
upvoted 2 times
...
ErikPJordan
1 year, 9 months ago
Selected Answer: BE
To automate the deployment of the vulnerability scanner extension to the virtual machines with Azure Defender enabled, you should specify the following values in the Azure Resource Manager template: B. the workspace ID: This is the ID of the Azure Defender workspace where the vulnerability scan data will be sent and analyzed. E. the system-assigned managed identity: Managed identities are used for authenticating and authorizing the extension to interact with Azure resources securely. In this case, you should use a system-assigned managed identity to ensure secure authentication between the extension and Azure services. So, the correct values to specify in the code are B and E.
upvoted 3 times
ErikPJordan
1 year, 9 months ago
Chatgtp said so
upvoted 1 times
_punky_
1 year, 8 months ago
ChatGPT is totally useless if u are using v3.5 and anyway I do not pay for v4 so IDK the answer anyway(even Copilot is weak). Back to the answer: User-assigned means 1 to N where System-assigned means 1 to 1 relationship.
upvoted 2 times
...
...
...
heatfan900
1 year, 9 months ago
A, C THE QUESTION IS NOT DELIBERATING WHERE ONE SYSTEM-ASSIGNED MANAGED IDENTITY (1 VM) WILL BE SENDING DATA TO (A WORKSPACE), BUT RATHER, WHAT IS REQUIRED TO INSTALL THE SAME EXTENSION ON 100 VMs (ALL WHICH CAN USE ONE USER-ASSIGNED MANAGED IDENTITY). THE AZURE AD ID IS TO SPECIFY WHAT TENANT YOU MANAGED IDENTITY SHOULD BE AUTHENTICATED TO.
upvoted 2 times
...
03038b8
1 year, 11 months ago
I asked chatgpt here is his answer: To automate the deployment of the vulnerability scanner extension to the virtual machines using an Azure Resource Manager template, you should specify the following values: B. The workspace ID: This is required to identify the Azure Defender workspace where the vulnerability scan results will be sent. E. The system-assigned managed identity: This identity will be used to authenticate and authorize the deployment of the extension to the virtual machines. These values are necessary for the successful deployment of the vulnerability scanner extension to the virtual machines.
upvoted 2 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 ...