This is the free Microsoft AZ-500 practice question bank —
220 of 437 total questions, each with a full explanation, free to
read with no signup required. Updated 2026-08-05.
Every answer is verified against official Microsoft documentation —
see our methodology.
Question 1
HOTSPOT -
You have a Microsoft Entra tenant named contoso.com.
You collaborate with a partner organization that has a Microsoft Entra tenant named fabrikam.com. Fabrikam.com has multi-factor authentication (MFA) enabled for all users.
Contoso.com has the Cross-tenant access settings configured as shown in the Cross-tenant access settings exhibit. (Click the Cross-tenant access settings tab.)
Contoso.com has the External collaboration settings configured as shown in the External collaboration settings exhibit. (Click the External collaboration settings tab.)
You create a Conditional Access policy that has the following settings:
• Name: CAPolicy1
• Assignments
o Guest or external users: B2B collaboration guest users
o Target resources
- Include: All cloud apps
• Access controls
- Grant access
• Require device to be marked as compliant
• Require multi-factor authentication
- Enable policy: On
For each of the following statements, select Yes if the statement is true, otherwise select No.
NOTE: Each correct section is worth one point.
Show Answer
Correct Answer: No
Yes
No
Explanation: Cross-tenant trust settings are disabled, so Contoso does not trust Fabrikam's MFA/device compliance claims. Therefore the compliant device requirement cannot be satisfied using Fabrikam's claim. Enabling trust settings is the way to reduce duplicate MFA prompts by trusting Fabrikam's MFA. Guest access being 'same as members' does not override Conditional Access blocking access when compliance trust is unavailable.
Question 2
HOTSPOT
-
You have an Azure subscription that contains a virtual network named VNet1. VNet1 contains the subnets shown in the following table.
The subscription contains the virtual machines shown in the following table.
VM3 contains a service that listens for connections on port 8080.
For VM1, you configure just-in-time (JIT) VM access as shown in the following exhibit.
For each of the following statement, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: No
No
No
Explanation: JIT is configured only on VM1. It controls inbound access to VM1 on configured ports. (1) The question is about RDP to VM3, but nothing indicates VM3 exposes RDP; only port 8080 is explicitly mentioned, so the statement is false. (2) VM2 is in 172.16.0.0/24, which is not in the allowed JIT source ranges for VM1 RDP, so requesting access would not allow it. (3) Although VM3's subnet is in an allowed source range, JIT-protected RDP access to VM1 still requires a JIT access request; without requesting access, it is not allowed.
Question 3
HOTSPOT
-
You have an Azure App Service web app named App1 as shown in the following exhibit.
Subnet 2 contains a virtual machine named VM1.
Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: a network security group (NSG)
Gateway-required VNet integrations
Explanation: NSGs control inbound and outbound traffic for subnet resources, including traffic from App Service VNet Integration. Gateway-required VNet Integration is used to connect an App Service to a virtual network in a different region.
Question 4
You have an Azure subscription that contains the virtual machines shown in the following table.
You are configuring Microsoft Defender for Servers.
You plan to enable adaptive application controls to create an allowlist of known-safe apps on the virtual machines.
Which virtual machines support the use of adaptive application controls?
A. VM1 and VM2 only
B. VM2 and VM4 only
C. VM2 and VM3 only
D. VM1, VM2, VM3, and VM4
Show Answer
Correct Answer: A
Explanation: Adaptive application controls support supported Windows Server installations but do not support Server Core installations and are not intended for machines that already have AppLocker policies configured. Therefore, only the GUI-based Windows Server VMs without AppLocker (VM1 and VM2) support adaptive application controls.
Question 5
You have an Azure subscription. The subscription contains a virtual network named VNet1 that contains the subnets shown in the following table.
The subscription contains the function apps shown in the following table.
The outbound traffic of which app is controlled by using NSG1?
A. App4 only
B. App3 and App4 only
C. App2, App3, and App4 only
D. App1, App2, App3, and App4
Show Answer
Correct Answer: D
Explanation: Network Security Groups affect outbound traffic from App Service/Function Apps only when the apps are integrated with a virtual network (or hosted in an App Service Environment/Isolated). Function Apps on supported App Service plans (including Basic/Standard/Premium/Elastic Premium) using regional VNet integration have their outbound traffic subject to NSGs and UDRs on the integration subnet. An Isolated-hosted app is also within the VNet, so its outbound traffic is controlled by the subnet NSG. Therefore all four apps' outbound traffic is controlled by NSG1.
Question 6
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.
Show Answer
Correct Answer: Containers: Azure, AWS, and GCP
Storage: Azure, AWS, and GCP
Explanation: Microsoft Defender for Cloud supports Defender for Containers across Azure, AWS, and GCP. Current Defender for Storage capabilities in Defender for Cloud also extend to supported AWS and GCP storage resources in addition to Azure.
Question 7
You have an Azure subscription that contains the resources shown in the following table.
You plan to implement Microsoft Defender for Cloud.
Which resources can be protected by using Defender for Cloud?
A. VM1 only
B. VM1 and storage1 only
C. Vault1 and storage1 only
D. VM1, Vault1, and storage1 only
E. VNet1, VM1, Vault1, and storage1
Show Answer
Correct Answer: E
Explanation: Microsoft Defender for Cloud can protect Azure virtual machines, storage accounts, Key Vault resources through relevant Defender plans, and network resources such as virtual networks via Defender for Cloud's network protections and posture management. Therefore all listed resources can be protected.
Question 8
HOTSPOT
-
You have an Azure subscription.
You plan to deploy the virtual machines shown in the following table.
You need to identify the virtual machines and operating systems that can be deployed as confidential virtual machines?
Which Windows virtual machines and which Linux virtual machines should you identify?
Show Answer
Correct Answer: Windows: VM1 and VM3 only
Linux: VM5 and VM6 only
Explanation: Confidential VMs require supported confidential VM sizes (such as DCasv5/DCadsv5 and ECasv5/ECadsv5 families) and supported guest operating systems. VM2 uses a non-confidential D2ads_v5 size, Debian is not supported for confidential VMs, while Ubuntu Server and SUSE Linux Enterprise Server are supported.
Question 10
HOTSPOT
-
You have an Azure subscription that contains the resources shown in the following table.
You plan to use service endpoints and service endpoint policies.
Which resources can be accessed by using a service endpoint, and which resources support service endpoint policies? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Can be accessed by using a service endpoint: storage1 and WebApp1 only
Support service endpoint policies: storage1 only
Explanation: Azure service endpoints apply to supported PaaS services such as Azure Storage and Azure App Service, not virtual machines. Service endpoint policies are supported for Azure Storage, not App Service.
Question 11
HOTSPOT
-
You have an Azure subscription that contains the virtual networks shown in the following table.
NSG1 rules restrict access to the internet from Subnet3.
The subscription contains the function apps shown in the following table.
Virtual network integration has the default settings.
You need to configure network access for App1 and App2 to meet the following requirements:
• Deny inbound access to App1 from Subnet1 and allow inbound access from Subnet2.
• Deny outbound access from App2 to the internet.
What should you do for each requirement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Configure access restrictions for App1
Enable Route All for the App2 virtual network integration with VNet2
Explanation: Inbound filtering to an App Service/Function App is done with access restrictions (allow/deny by subnet/IP). For outbound traffic, enabling Route All sends all egress through the integrated VNet, where NSG1 on Subnet3 blocks internet access.
$19
Get all 437 questions with detailed answers and explanations
Instant download HTML + PDF delivered the moment payment clears.
Secure Stripe checkout we never see or store your card details.
7-day refund if files are defective see our refund policy.