AZ-500 sample exam questions

15 exam-style questions for Microsoft AZ-500: Azure Security Technologies, with answers and explanations. Take them as a timed practice exam first if you want a score out of 1000.

  1. Question 1Multiple responseTopic 1
    You want to gather logs from a large number of Windows Server 2016 computers using Azure Log Analytics.
    You are configuring an Azure Resource Manager template to deploy the Microsoft Monitoring Agent to all the servers automatically.
    Which of the following should be included in the template? (Choose all that apply.)
    1. A
      WorkspaceID
    2. B
      AzureADApplicationID
    3. C
      WorkspaceKey
    4. D
      StorageAccountKey
    Show answer

    Correct answer: A, C

    Why

    The Microsoft Monitoring Agent extension needs the Log Analytics workspace ID in its public settings and the workspace key in protected settings to connect. No Entra application ID or storage account key is required. MMA is retired; the Azure Monitor Agent with data collection rules replaces it.

  2. Question 2Single choiceTopic 2
    You have an Azure subscription that contains a user named User1.

    You need to ensure that User1 can perform the following tasks:

    • Create groups.
    • Create access reviews for role-assignable groups.
    • Assign Azure AD roles to groups.

    The solution must use the principle of least privilege.

    Which role should you assign to User1?
    1. A
      Groups administrator
    2. B
      Authentication administrator
    3. C
      Identity Governance Administrator
    4. D
      Privileged role administrator
    Show answer

    Correct answer: D

    Why

    Privileged Role Administrator can create role-assignable groups, assign Microsoft Entra roles to groups and manage access reviews for them. Groups Administrator cannot manage role-assignable groups, Identity Governance Administrator cannot assign Entra roles, and Authentication Administrator is unrelated.

  3. Question 3HotspotTopic 2
    HOTSPOT

    Your network contains an on-premises Active Directory domain that syncs to a Microsoft Entra tenant. The tenant contains the users shown in the following table.



    The tenant contains the groups shown in the following table.



    You configure a multi-factor authentication (MFA) registration policy that has the following settings:

    • Assignments:
    o Include: Group1
    o Exclude: Group2
    • Controls: Require Azure MFA registration
    • Enforce Policy: On

    For each of the following statements, select Yes if the statement is true. Otherwise, select No.

    NOTE: Each correct selection is worth one point.

    User1 will be prompted to configure MFA registration during the user's next Microsoft Entra authentication.Yes / No
    User2 must configure MFA during the user's next Microsoft Entra authentication.Yes / No
    User3 will be prompted to configure MFA registration during the user's next Microsoft Entra authentication.Yes / No
    Show answer
    • User1 will be prompted to configure MFA registration during the user's next Microsoft Entra authentication. Yes
    • User2 must configure MFA during the user's next Microsoft Entra authentication. No
    • User3 will be prompted to configure MFA registration during the user's next Microsoft Entra authentication. Yes
    Why

    The MFA registration policy applies to Group1 minus Group2. User1 and User3 are in scope, and synced users register just like cloud-only users. User2 is excluded through Group2, so the policy never applies to User2.

  4. Question 4Single choiceTopic 3
    Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might
    meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
    After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
    You have an Azure subscription. The subscription contains 50 virtual machines that run Windows Server 2012 R2 or Windows Server 2016.
    You need to deploy Microsoft Antimalware to the virtual machines.
    Solution: You connect to each virtual machine and add a Windows feature.
    Does this meet the goal?
    1. A
      Yes
    2. B
      No
    Show answer

    Correct answer: B

    Why

    Microsoft Antimalware for Azure is deployed as a VM extension (IaaSAntimalware), not by adding a Windows feature inside each VM. Manually adding a feature on 50 VMs does not deploy Microsoft Antimalware for Azure.

  5. Question 5Single choiceTopic 4
    You have an Azure subscription that contains a user named Admin1 and a virtual machine named VM1. VM1 runs Windows Server 2019 and was deployed by
    using an Azure Resource Manager template. VM1 is the member of a backend pool of a public Azure Basic Load Balancer.
    Admin1 reports that VM1 is listed as Unsupported on the Just in time VM access blade of Azure Security Center.
    You need to ensure that Admin1 can enable just in time (JIT) VM access for VM1.
    What should you do?
    1. A
      Create and configure a network security group (NSG).
    2. B
      Create and configure an additional public IP address for VM1.
    3. C
      Replace the Basic Load Balancer with an Azure Standard Load Balancer.
    4. D
      Assign an Azure Active Directory Premium Plan 1 license to Admin1.
    Show answer

    Correct answer: A

    Why

    JIT VM access shows a VM as Unsupported when it has no network security group (or Azure Firewall) to control the management ports. Creating and associating an NSG with VM1's NIC or subnet makes it eligible. The load balancer type, extra public IPs and Entra licenses are not requirements.

  6. Question 6HotspotTopic 4
    HOTSPOT

    You have an Azure subscription that contains the following Azure firewall:

    • Name: Fw1
    • Azure region: UK West
    • Private IP address: 10.1.3.4
    • Public IP address: 23.236.62.147

    The subscription contains the virtual networks shown in the following table.



    The subscription contains the subnets shown in the following table.



    The subscription contains the routes shown in the following table.



    For each of the following statements, select Yes if the statement is true. Otherwise, select No.

    NOTE: Each correct selection is worth one point.

    Traffic from Subnet1-1 to Subnet 1-2 is routed through Fw1.Yes / No
    Traffic from Subnet2-1 to Subnet 1-1 is routed through Fw1.Yes / No
    Traffic from Subnet3-1 to the internet is routed through Fw1.Yes / No
    Show answer
    • Traffic from Subnet1-1 to Subnet 1-2 is routed through Fw1. No
    • Traffic from Subnet2-1 to Subnet 1-1 is routed through Fw1. Yes
    • Traffic from Subnet3-1 to the internet is routed through Fw1. No
    Why

    Azure picks the route with the longest matching prefix. In Subnet1-1, the 10.1.0.0/16 VNet system route beats Rt1 (0.0.0.0/0). Rt3 sends 10.1.1.0/24 from Subnet2-1 to Fw1 across the peering. Subnet3-1 only has Rt4 for 10.2.1.0/24, so its internet traffic goes out directly.

  7. Question 7Single choiceTopic 5
    You have a web app named WebApp1.
    You create a web application firewall (WAF) policy named WAF1.
    You need to protect WebApp1 by using WAF1.
    What should you do first?
    1. A
      Deploy an Azure Front Door.
    2. B
      Add an extension to WebApp1.
    3. C
      Deploy Azure Firewall.
    Show answer

    Correct answer: A

    Why

    A WAF policy cannot be attached to an App Service web app directly. It must be associated with a supported front end, so you first deploy Azure Front Door (or Application Gateway). Azure Firewall does not use WAF policies, and an extension is not how WAF is applied.

  8. Question 8Drag and drop: orderTopic 5
    DRAG DROP

    Your network contains an on-premises Active Directory domain named contoso.com. The domain contains a user named User1.

    You have an Azure subscription that is linked to an Azure Active Directory (Azure AD) tenant named contoso.com. The tenant contains an Azure Storage account named storage1. Storage1 contains an Azure file share named share1.

    Currently, the domain and the tenant are not integrated.

    You need to ensure that User1 can access share1 by using his domain credentials.

    Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

    Arrange 3 of these in the correct order:

    • Create a private link to storage1.
    • Enable an Active Directory source for Azure File shares
    • Implement Azure AD Connect.
    • Create a service endpoint to storage1.
    • Assign share-level permissions for share1.
    Show answer
    1. Implement Azure AD Connect.
    2. Enable an Active Directory source for Azure File shares
    3. Assign share-level permissions for share1.
    Why

    User1 must first be synced to Azure AD with Azure AD Connect (now Microsoft Entra Connect). Then enable AD DS identity-based authentication on storage1 for Azure Files, and assign a share-level RBAC role such as Storage File Data SMB Share Contributor. Private links and service endpoints only affect network access.

  9. Question 9HotspotTopic 6
    HOTSPOT

    You have an Azure Subscription that is connected to an on-premises datacenter and contains the resources shown in the following table.



    You need to configure virtual network service endpoints for VNet1 and VNet2. The solution must meet the following requirements:

    • The virtual machines that connect to the subnet of VNet1 must access storage1, storage2, and Azure AD by using the Microsoft backbone network.
    • The virtual machines that connect to the subnet of VNet2 must access storage1 and KeyVault1 by using the Microsoft backbone network.
    • The virtual machines must use the Microsoft backbone network to communicate between VNet1 and VNet2.

    How many service endpoints should you configure for each virtual network? To answer, select the appropriate options in the answer area.

    NOTE: Each correct selection is worth one point.

    VNet1:1 / 2 / 3 / 5
    VNet2:1 / 2 / 3 / 5
    Show answer
    • VNet1: 2
    • VNet2: 2
    Why

    Endpoints are per service, not per resource. VNet1 needs Microsoft.Storage and Microsoft.AzureActiveDirectory; VNet2 needs Microsoft.Storage and Microsoft.KeyVault. Peering already covers traffic between the networks. The Azure AD endpoint is outdated and no longer a supported option.

  10. Question 10Single choiceTopic 6
    You have an Azure subscription.

    You need to deploy an Azure virtual WAN to meet the following requirements:

    • Create three secured virtual hubs located in the East US, West US, and North Europe Azure regions.
    • Ensure that security rules sync between the regions.

    What should you use?
    1. A
      Azure Virtual Network Manager
    2. B
      Azure Front Door
    3. C
      Azure Network Function Manager
    4. D
      Azure Firewall Manager
    Show answer

    Correct answer: D

    Why

    Azure Firewall Manager creates secured virtual hubs in a Virtual WAN and manages firewall policies centrally, syncing rules across regions. Virtual Network Manager handles virtual network connectivity and admin rules, not secured hubs; Front Door and Network Function Manager do not fit.

  11. Question 11Single choiceTopic 7
    You have an Azure subscription that contains a storage account and an Azure web app named App1.

    App1 connects to an Azure Cosmos DB database named Cosmos1 that uses a private endpoint named Endpoint1. Endpoint1 has the default settings.

    You need to validate the name resolution to Cosmos1.

    Which DNS zone should you use?
    1. A
      endpoint1.privatelink.documents.azure.com
    2. B
      endpoint1.privatelink.blob.core.windows.net
    3. C
      endpoint1.privatelink.azurewebsites.net
    4. D
      endpoint1.privatelink.database.azure.com
    Show answer

    Correct answer: A

    Why

    A Cosmos DB for NoSQL private endpoint registers its records in the privatelink.documents.azure.com private DNS zone. The blob, azurewebsites and database.azure.com zones belong to other services, so they will not resolve Cosmos1.

  12. Question 12HotspotTopic 7
    HOTSPOT

    Your company uses cloud-based resources from the following platforms:

    • Azure
    • Amazon Web Services (AWS)
    • Google Cloud Platform (GCP)

    You plan to implement Microsoft Defender for Cloud.

    On which platforms can you use Defender for Cloud to protect containers and storage? To answer, select the appropriate options in the answer area.

    NOTE: Each correct selection is worth one point.

    Containers:Azure only / Azure and AWS only / Azure and GCP only / Azure, AWS, and GCP
    Storage:Azure only / Azure and AWS only / Azure and GCP only / Azure, AWS, and GCP
    Show answer
    • Containers: Azure, AWS, and GCP
    • Storage: Azure only
    Why

    Defender for Containers protects AKS, Amazon EKS and Google GKE clusters through multicloud connectors. The Defender for Storage plan protects Azure Storage only. Multicloud coverage changes often, so check the current Defender for Cloud support matrix.

  13. Question 13Multiple responseTopic 8
    You need to configure WebApp1 to meet the data and application requirements.
    Which two actions should you perform? Each correct answer presents part of the solution.
    NOTE: Each correct selection is worth one point.
    1. A
      Upload a public certificate.
    2. B
      Turn on the HTTPS Only protocol setting.
    3. C
      Set the Minimum TLS Version protocol setting to 1.2.
    4. D
      Change the pricing tier of the App Service plan.
    5. E
      Turn on the Incoming client certificates protocol setting.
    Show answer

    Correct answer: B, E

    Why

    HTTPS Only forces encrypted traffic to protect data in transit, and Incoming client certificates make the web app require client certificate authentication. Setting TLS 1.2 or uploading a public certificate does not by itself satisfy the stated requirements, and tier change is not needed.

  14. Question 14Single choiceTopic 11
    You plan to configure Azure Disk Encryption for VM4.
    Which key vault can you use to store the encryption key?
    1. A
      KeyVault1
    2. B
      KeyVault2
    3. C
      KeyVault3
    Show answer

    Correct answer: A

    Why

    Azure Disk Encryption requires the key vault to be in the same region and subscription as the VM and to have disk encryption access enabled. Only KeyVault1 satisfies that for VM4 according to the exhibit, so the others are excluded.

  15. Question 15Single choiceTopic 12
    You need to ensure that users can access VM0. The solution must meet the platform protection requirements.
    What should you do?
    1. A
      Move VM0 to Subnet1.
    2. B
      On Firewall, configure a network traffic filtering rule.
    3. C
      Assign RT1 to AzureFirewallSubnet.
    4. D
      On Firewall, configure a DNAT rule.
    Show answer

    Correct answer: A

    Why

    Platform protection requirements usually route subnet traffic through the firewall using the route table. VM0 is not in a subnet that reaches users correctly, so moving it to Subnet1 gives it the required path, whereas rules or route table changes do not solve this.