Microsoft

AZ-104 Free Practice Questions

This is the free Microsoft AZ-104 practice question bank — 280 of 558 total questions, each with a full explanation, free to read with no signup required. Updated 2026-04-24.

Every answer is verified against official Microsoft documentation — see our methodology.

Question 1

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 virtual machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the VM1 Updates blade, select One-time update. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Selecting a one-time update from the VM Updates blade applies guest OS updates; it does not move the VM to a different Azure host. To immediately move a VM to another host due to maintenance, you must redeploy the VM (or use maintenance controls where applicable). Therefore, the solution does not meet the goal.

Question 1

HOTSPOT - Case study - This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided. To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other questions in this case study. At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next section of the exam. After you begin a new section, you cannot return to this section. To start the case study - To display the first question in this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question. Overview - ADatum Corporation is consulting firm that has a main office in Montreal and branch offices in Seattle and New York. Existing Environment - Azure Environment - ADatum has an Azure subscription that contains three resource groups named RG1, RG2, and RG3. The subscription contains the storage accounts shown in the following table. The subscription contains the virtual machines shown in the following table. The subscription has an Azure container registry that contains the images shown in the following table. The subscription contains the resources shown in the following table. Azure Key Vault - The subscription contains an Azure key vault named Vault1. Vault1 contains the certificates shown in the following table. Vault1 contains the keys shown in the following table. Microsoft Entra Environment - ADatum has a Microsoft Entra tenant named adatum.com that is linked to the Azure subscription and contains the users shown in the following table. The tenant contains the groups shown in the following table. The adatum.com tenant has a custom security attribute named Attribute1. Planned Changes - ADatum plans to implement the following changes: • Configure a data collection rule (DCR) named DCR1 to collect only system events that have an event ID of 4648 from VM2 and VM4. • In storage1, create a new container named cont2 that has the following access policies: o Three stored access policies named Stored1, Stored2, and Stored3 o A legal hold for immutable blob storage • Whenever possible, use directories to organize storage account content. • Grant User1 the permissions required to link Zone1 to VNet1. • Assign Attribute1 to supported adatum.com resources. • In storage2, create an encryption scope named Scope1. • Deploy new containers by using Image1 or Image2. Technical Requirements - ADatum must meet the following technical requirements: • Use TLS for WebApp1. • Follow the principle of least privilege. • Grant permissions at the required scope only. • Ensure that Scope1 is used to encrypt storage services. • Use Azure Backup to back up cont1 and share1 as frequently as possible. • Whenever possible, use Azure Disk Encryption and a key encryption key (KEK) to encrypt the virtual machines. You need to implement the planned change for Attribute1. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1 Illustration for AZ-104 question 1
Show Answer
Correct Answer: Admin1 can assign Attribute1 to Group1: No Admin2 can assign Attribute1 to User1: No Admin3 can assign Attribute1 to Group2: No
Explanation:
Custom security attributes can be assigned only by the Attribute Assignment Administrator role, and only to supported objects (users and service principals). Global Administrator and Attribute Definition Administrator cannot assign attribute values. Groups (security or Microsoft 365) do not support custom security attribute assignment.

Question 1

HOTSPOT - You have an Azure subscription named Subscription1 that contains the following resource group: ✑ Name: RG1 ✑ Region: West US ✑ Tag: `tag1`: `value1` You assign an Azure policy named Policy1 to Subscription1 by using the following configurations: ✑ Exclusions: None ✑ Policy definition: Append a tag and its value to resources ✑ Assignment name: Policy1 ✑ Parameters: ✑ Tag name: tag2 Tag value: value2 - After Policy1 is assigned, you create a storage account that has the following configuration: ✑ Name: storage1 ✑ Location: West US ✑ Resource group: RG1 ✑ Tags: `tag3`: `value3` You need to identify which tags are assigned to each resource. What should you identify? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for AZ-104 question 1 Illustration for AZ-104 question 1
Show Answer
Correct Answer: RG1: "tag1": "value1" only storage1: "tag2": "value2" and "tag3": "value3" only
Explanation:
The policy uses the **Append a tag and its value to resources** effect, which does not apply to resource groups and is not retroactive. RG1 already exists and keeps only its original tag. The storage account is a new resource created after the policy assignment, so the policy appends tag2 while preserving its existing tag3. Tags from a resource group are not inherited by resources.

Question 2

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 virtual machine named VM1. VM1 was deployed by using a custom Azure Resource Manager template named ARM1.json. You receive a notification that VM1 will be affected by maintenance. You need to move VM1 to a different host immediately. Solution: From the VM1 Redeploy + reapply blade, you select Redeploy. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
Selecting **Redeploy** from the VM1 **Redeploy + reapply** blade shuts down the VM, moves it to a new Azure host (node), and then starts it again. This is the supported way to immediately move a VM to a different host when it will be affected by maintenance.

Question 2

HOTSPOT - You have a Microsoft Entra tenant that is linked to the subscriptions shown in the following table. You have the resource groups shown in the following table. You assign roles to users as 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.

Illustration for AZ-104 question 2 Illustration for AZ-104 question 2 Illustration for AZ-104 question 2 Illustration for AZ-104 question 2
Show Answer
Correct Answer: Yes No Yes
Explanation:
User1 has the Contributor role at management group MG2, which includes Sub3 and RG3, so permissions inherit to VM1 and allow resizing. User2 has Storage Account Contributor scoped only to the existing storage account (storage1), not to RG1, so cannot create new storage accounts. User3 has User Access Administrator at the Tenant Root Group, which allows assigning roles (including Owner) on any descendant scope such as RG3.

Question 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 container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You create a private endpoint connection for Registry1. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Creating a private endpoint for Azure Container Registry does not by itself enable Azure Container Instances to pull images. ACI still requires proper authentication (such as managed identity with AcrPull role or admin credentials) and compatible network configuration. Therefore, this action alone does not meet the goal.

Question 3

HOTSPOT - You have an Azure subscription that contains the virtual networks shown in the following table. You have the peering options shown in the following exhibit. You need to design a communication strategy for the resources on the virtual networks. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for AZ-104 question 3 Illustration for AZ-104 question 3 Illustration for AZ-104 question 3
Show Answer
Correct Answer: Peering 1-2: No Peering 1-3: No Peering 3-2: No
Explanation:
VNet peering is supported only within the same cloud environment. Azure Public, Azure Government, and Azure China (21Vianet) are isolated clouds. Cross‑cloud peering (Public↔Government, Public↔China, Government↔China) is not supported.

Question 4

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 container registry named Registry1 that contains an image named image1. You receive an error message when you attempt to deploy a container instance by using image1. You need to be able to deploy a container instance by using image1. Solution: You select Use dedicated data endpoint for Registry1. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Selecting **Use dedicated data endpoint** for an Azure Container Registry does not resolve authentication or authorization issues when Azure Container Instances pull images. Deployment failures are typically caused by missing permissions, disabled admin user, lack of managed identity, or firewall settings blocking access. Therefore, this setting alone does not enable successful deployment of the container instance.

Question 4

HOTSPOT - You have an Azure subscription that contains the virtual networks shown in the following table. The subscription contains the virtual machines shown in the following table. The subscription contains the Azure App Service web apps 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.

Illustration for AZ-104 question 4 Illustration for AZ-104 question 4 Illustration for AZ-104 question 4 Illustration for AZ-104 question 4
Show Answer
Correct Answer: Yes No No
Explanation:
WebApp1 uses Premium VNet Integration with VNet1, which allows outbound access to resources in peered VNets, so it can reach VM2. NSG1 is applied to Subnet1, but App Service VNet Integration does not place the web app inside the subnet for inbound traffic control, so NSG1 does not control inbound traffic to WebApp1. WebApp2 runs in the Isolated tier (ASE) in Subnet2, but communication to VM1 over VNet peering is not supported in this scenario, so it cannot communicate with VM1.

Question 5

Your on-premises network contains a VPN gateway. You have an Azure subscription that contains the resources shown in the following table. You need to ensure that all the traffic from VM1 to storage1 travels across the Microsoft backbone network. What should you configure?

A. a network security group (NSG)
B. private endpoints
C. Microsoft Entra Application Proxy
D. Azure Virtual WAN
Show Answer
Correct Answer: B
Explanation:
To ensure traffic from VM1 to storage1 stays on the Microsoft backbone, the service must be accessed privately within Azure. Private endpoints provide a private IP address in the virtual network for the storage account, ensuring traffic flows over the Azure backbone rather than the public internet. NSGs only control traffic, Entra Application Proxy is for publishing apps, and Azure Virtual WAN is not required for this scenario.

$19

Get all 558 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.