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, 8 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 19 times
basak
1 year, 7 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, 4 months ago
correct
upvoted 8 times
...
randy0077
Most Recent 1 month ago
Selected Answer: BF
New-AzResourceGroupDeployment ` -ResourceGroupName <YourResourceGroup> ` -TemplateFile .\vulnerability-assessment-template.json ` -vmName <YourVMName> ` -workspaceId <YourWorkspaceID> ` -primarySharedKey <YourPrimarySharedKey>
upvoted 1 times
...
859b41f
2 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
4 months, 4 weeks ago
Selected Answer: AB
definitivamente user assigned
upvoted 1 times
...
Srirupam
5 months ago
Workspace ID & Workspace Key
upvoted 2 times
...
153a793
6 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]
8 months, 4 weeks 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 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 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
7 months, 2 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, 4 months ago
100 VM : best way is to create a user MI .. so user MI and worksapce ID
upvoted 2 times
...
wardy1983
1 year, 5 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, 7 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, 7 months ago
Chatgtp said so
upvoted 1 times
_punky_
1 year, 6 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, 7 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, 9 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
...
mdiloreto
1 year, 11 months ago
Selected Answer: BE
Also Asked chatgpt4 with browsing enabled: To deploy a vulnerability scanner extension to virtual machines using an Azure Resource Manager (ARM) template, you will typically need the following values: B. The Workspace ID: Azure Security Center uses Log Analytics Workspaces to store the data collected by the vulnerability scanner. Thus, you need to specify the workspace ID in the ARM template to tell the scanner where to send the data. E. The System-assigned Managed Identity: Managed identities are used for Azure resources to authenticate and authorize to services that support Azure AD authentication without needing to include credentials in your code. In the context of deploying extensions, a system-assigned managed identity is created for a specific resource and is tied to the lifecycle of that resource. So, the correct answers are B (the workspace ID) and E (the system-assigned managed identity).
upvoted 4 times
pentium75
8 months, 3 weeks ago
ChatGPT is wrong.
upvoted 1 times
...
...
suksesexam
1 year, 11 months ago
I asked chatgpt the answer is BE
upvoted 1 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