nerdexam
Microsoft

AZ-500 · Question #203

You have an Azure subscription that contains 100 virtual machines and has Azure Security Center Standard tier enabled. You plan to perform a vulnerability scan of each virtual machine. You need to…

The correct answer is A. the user-assigned managed identity C. the Azure Active Directory (Azure AD) ID. To automate the deployment of a vulnerability scanner extension using an ARM template, you should specify the user-assigned managed identity for secure authentication and the Azure Active Directory ID for correct tenant association.

Submitted by parkjh· Mar 6, 2026Develop a security and compliance plan

Question

You have an Azure subscription that contains 100 virtual machines and has Azure Security Center Standard tier 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.

Options

  • Athe user-assigned managed identity
  • Bthe workspace ID
  • Cthe Azure Active Directory (Azure AD) ID
  • Dthe Key Vault managed storage account key
  • Ethe system-assigned managed identity
  • Fthe primary shared key

How the community answered

(17 responses)
  • A
    82% (14)
  • B
    6% (1)
  • E
    12% (2)

Why each option

To automate the deployment of a vulnerability scanner extension using an ARM template, you should specify the user-assigned managed identity for secure authentication and the Azure Active Directory ID for correct tenant association.

Athe user-assigned managed identityCorrect

A user-assigned managed identity provides a secure, credential-less way for the vulnerability scanner extension to authenticate and gain authorization to interact with other Azure services or resources required for its operation, such as reporting scan results. When deploying with ARM, you specify the resource ID of this user-assigned identity to associate it with the virtual machine.

Bthe workspace ID

A Log Analytics workspace ID is specific to the Log Analytics agent and its reporting destination, not a general requirement for deploying a vulnerability scanner extension itself.

Cthe Azure Active Directory (Azure AD) IDCorrect

The Azure Active Directory (Azure AD) ID, typically the tenant ID, is often required by security agents or extensions to correctly identify the Azure AD tenant context. This ensures that the scanner registers and reports within the correct organizational scope, especially for services that rely on tenant-specific configurations or integrations, and is specified within the extension's settings.

Dthe Key Vault managed storage account key

A Key Vault managed storage account key is a highly specific credential management detail unrelated to the general deployment of a VM extension for vulnerability scanning.

Ethe system-assigned managed identity

While a system-assigned managed identity can be used, it is enabled directly on the VM and its ID is not explicitly 'specified' in the extension's settings as a separate value like a user-assigned identity's resource ID would be.

Fthe primary shared key

The primary shared key is typically used for authenticating with a Log Analytics workspace, similar to the workspace ID, and is not a general parameter for deploying a vulnerability scanner extension.

Concept tested: VM extension deployment parameters for security agents

Source: https://learn.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/how-to-use-vm-managed-identity-with-resource-manager-template#create-a-vm-with-a-user-assigned-managed-identity-by-using-an-arm-template

Topics

#vulnerability scanning#Security Center#managed identity#ARM template

Community Discussion

No community discussion yet for this question.

Full AZ-500 Practice