Microsoft

AZ-104 Free Practice Questions

This is the free Microsoft AZ-104 practice question bank — 280 of 555 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

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 'One-time update' from the VM Updates blade initiates installation of available updates, not migration to a different physical host. To immediately move a VM to a new Azure host in response to planned maintenance, you use the Redeploy operation, which moves the VM to a new node while preserving its configuration. Therefore, the proposed solution does not meet the goal.

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 VM's 'Redeploy + reapply' blade deallocates the VM, moves it to a new Azure host (node), and starts it again while preserving its managed disks and configuration. This is the correct action to immediately move the VM to different underlying hardware in response to planned maintenance.

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 an Azure Container Registry only provides private network connectivity to the registry. It does not, by itself, resolve the common cause of Azure Container Instances failing to pull images, which is authentication/authorization (such as enabling the admin user or supplying registry credentials, or using a managed identity with AcrPull). Therefore, this solution does not necessarily enable successful deployment from the registry.

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' configures a dedicated endpoint for data-plane operations but does not resolve the typical causes of Azure Container Instances failing to pull images from Azure Container Registry, such as authentication, permissions, or network/firewall access. Therefore, this change alone does not meet the goal.

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:
Private Endpoints provide a private IP address for the Azure Storage account within the virtual network and ensure traffic from the VM to the storage account stays on the Microsoft backbone network rather than traversing the public internet. An NSG only filters traffic, Microsoft Entra Application Proxy is for publishing on-premises web apps, and Azure Virtual WAN is a networking hub service that does not by itself ensure private access from a VM to a storage account.

Question 6

You have a Standard Azure App Service plan named Plan1. You need to ensure that Plan1 will scale automatically when the CPU usage of the web app exceeds 80 percent. What should you select for Plan1?

A. Automatic in the Scale out method settings
B. Rules Based in the Scale out method settings
C. Premium P1 in the Scale up (App Service plan) settings
D. Standard S1 in the Scale up (App Service plan) settings
E. Manual in the Scale out method settings
Show Answer
Correct Answer: B
Explanation:
To scale an Azure App Service plan automatically based on CPU utilization (for example, when CPU exceeds 80%), you configure Azure Autoscale using Rules Based in the Scale out method settings. The Automatic scale-out option is traffic-driven rather than metric-rule driven. Scaling up to Premium P1 or remaining on Standard S1 does not by itself configure autoscaling behavior, and Manual scale-out requires manual intervention.

Question 7

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 resource group blade, move VM1 to another subscription. Does this meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: B
Explanation:
Moving a virtual machine to another subscription does not immediately move it to a different physical host to avoid planned maintenance. To move the VM to a new host, use the VM's Redeploy operation (Redeploy + Reapply in the Azure portal), which places the VM on a new Azure host while preserving its configuration and managed disks.

Question 8

You have an Azure subscription. You plan to create an Azure container registry named ContReg1. You need to ensure that you can push and pull signed images for ContReg1. What should you do for ContReg1?

A. Enable encryption by using a customer-managed key.
B. Create a connected registry.
C. Add a token.
D. Enable content trust.
Show Answer
Correct Answer: D
Explanation:
To push and pull signed images in Azure Container Registry, you enable Content Trust. Content Trust uses image signing (Docker Content Trust/Notary) to ensure image integrity and authenticity. Customer-managed keys encrypt registry data at rest, connected registries support edge/remote scenarios, and tokens provide authentication/authorization but do not enable image signing.

Question 9

You have an Azure subscription that contains two peered virtual networks named VNet1 and VNet2. VNet1 has a VPN gateway that uses static routing, The on-premises network has a VPN connection that uses the VPN gateway of VNet1. You need to configure access for users on the on-premises network to connect to a virtual machine on VNet2. The solution must minimize costs. Which type of connectivity should you use?

A. Azure Firewall with a private IP address
B. service chaining and user-defined routes (UDRs)
C. Azure Application Gateway
D. ExpressRoute circuits to VNet2
Show Answer
Correct Answer: B
Explanation:
Use gateway transit across the peered VNets so VNet2 can use the VPN gateway in VNet1, and use user-defined routes/service chaining as needed to steer traffic. This reuses the existing VPN gateway and avoids deploying additional services such as Azure Firewall or ExpressRoute, minimizing cost.

Question 10

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 configure encryption for the virtual machines. The solution must meet the technical requirements. Which virtual machines can you encrypt?

A. VM1 and VM3
B. VM4 and VM5
C. VM2 and VM3
D. VM2 and VM4
Show Answer
Correct Answer: C
Explanation:
Azure Disk Encryption with a key encryption key (KEK) is supported for VM2 and VM3. VM1 cannot be encrypted because it uses an ephemeral OS disk, which Azure Disk Encryption does not support. VM4 cannot be encrypted because M-series VMs with Write Accelerator are unsupported. VM5 cannot be encrypted because Azure Disk Encryption does not support dynamic volumes.

$19

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