Microsoft AZ-104 Practice Questions with Explanations
Free Microsoft AZ-104 practice questions. 50 of them, each with the correct answer, a full explanation, and the reason every other option is wrong. These are real questions from the AZ-104 exam, not paraphrases, and every explanation is written out rather than just marking the right letter.
They are drawn from the same bank as the full AZ-104 pack, which has 606 questions in total.
Get the full AZ-104 question bank (606 questions) →
AZ-104 practice questions
Question 1
Your company has serval departments. Each department has a number of virtual machines (VMs). The company has an Azure subscription that contains a resource group named RG1. All VMs are located in RG1. You want to associate each VM with its respective department. What should you do?
- A. Create Azure Management Groups for each department.
- B. Create a resource group for each department.
- C. Assign tags to the virtual machines.
- D. Modify the settings of the virtual machines.
Show answer and explanation ▾
Correct answer: C
Tags are the appropriate mechanism for associating metadata with Azure resources like VMs without restructuring the resource hierarchy. Since all VMs are already in RG1 and the company wants to maintain this structure while simply identifying which department owns each VM, tags provide a lightweight, flexible solution. Tags allow for arbitrary key- value pairs that enable categorization, billing tracking, and automation without moving resources between groups.
Why the other options are wrong:
- A. Management Groups are for managing policies and access across multiple subscriptions and resource groups, not for organizing VMs within a single resource group by department.
- B. Creating a resource group per department would fragment the existing RG1 structure and contradict the stated requirement that all VMs are located in RG1.
- D. Modifying VM settings does not provide a systematic way to track and organize VMs by department for reporting or billing purposes.
Question 2
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) subscription. You want to implement an Azure AD conditional access policy. The policy must be configured to require members of the Global Administrators group to use Multi-Factor Authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations. Solution: You access the multi-factor authentication page to alter the user settings. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Altering user settings on the multi-factor authentication page configures MFA authentication methods but does not create or configure a conditional access policy. Conditional access policies are specifically configured in Azure AD under the Conditional Access blade, not through the MFA user settings page. The solution addresses only MFA enablement, not the policy requirements for device compliance and location-based restrictions.
Why the other options are wrong:
- A. The MFA settings page is insufficient for implementing conditional access policies, which require explicit policy configuration in the Conditional Access section of Azure AD.
Question 3
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) subscription. You want to implement an Azure AD conditional access policy. The policy must be configured to require members of the Global Administrators group to use Multi-Factor Authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations. Solution: You access the Azure portal to alter the session control of the Azure AD conditional access policy. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Session controls in conditional access policies manage ongoing session behavior (such as sign-in frequency and browser session lifetime) but do not enforce MFA or device compliance requirements. Session controls are insufficient to meet the requirement of mandating MFA and Azure AD-joined devices. Grant controls are the correct setting for requiring MFA and device compliance checks during access.
Why the other options are wrong:
- A. Session controls do not enforce authentication method or device requirements; they only manage active session characteristics after initial access decisions are made.
Question 4
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) subscription. You want to implement an Azure AD conditional access policy. The policy must be configured to require members of the Global Administrators group to use Multi-Factor Authentication and an Azure AD-joined device when they connect to Azure AD from untrusted locations. Solution: You access the Azure portal to alter the grant control of the Azure AD conditional access policy. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Grant controls in conditional access policies are exactly where MFA and device compliance requirements are configured. By accessing the Azure portal and modifying the grant control settings, an administrator can require that Global Administrators must satisfy both MFA and Azure AD-joined device conditions when accessing from untrusted locations. This directly addresses all stated requirements.
Why the other options are wrong:
- B. Grant controls are the proper mechanism for enforcing authentication and device requirements in conditional access policies.
Question 5
You are planning to deploy an Ubuntu Server virtual machine to your company's Azure subscription. You are required to implement a custom deployment that includes adding a particular trusted root certification authority (CA). Which of the following should you use to create the virtual machine?
- A. The New-AzureRmVm cmdlet.
- B. The New-AzVM cmdlet.
- C. The Create-AzVM cmdlet.
- D. The az vm create command.
Show answer and explanation ▾
Correct answer: D
The az vm create command from Azure CLI is the appropriate tool for creating custom VM deployments with advanced configurations such as adding trusted root certification authorities. Azure CLI provides the flexibility needed for custom deployments and allows passing parameters for certificate configuration. PowerShell cmdlets like New- AzureRmVm and New-AzVM are less suitable for this scenario as they require more complex scripting for custom certificate installation.
Why the other options are wrong:
- A. New-AzureRmVm is an older cmdlet that has been superseded and is less flexible for custom deployments.
- B. New-AzVM is a PowerShell cmdlet that requires additional scripting steps to configure custom certificates compared to CLI approaches.
- C. Create-AzVM is not a standard Azure PowerShell cmdlet; the correct cmdlet is New- AzVM.
Question 6
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company makes use of Multi-Factor Authentication for when users are not in the office. The Per Authentication option has been configured as the usage model. After the acquisition of a smaller business and the addition of the new staff to Azure Active Directory (Azure AD) obtains a different company and adding the new employees to Azure Active Directory (Azure AD), you are informed that these employees should also make use of Multi-Factor Authentication. To achieve this, the Per Enabled User setting must be set for the usage model. Solution: You reconfigure the existing usage model via the Azure portal. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The usage model for an existing Multi-Factor Authentication provider cannot be changed once it has been created and configured. The Per Authentication and Per Enabled User settings are selected at the time of MFA provider creation and are immutable through the Azure portal or any other method. To switch usage models, a new MFA provider must be created with the desired setting.
Why the other options are wrong:
- A. Usage models cannot be reconfigured on existing MFA providers; they are set during creation and cannot be modified afterward.
Question 7
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company's Azure solution makes use of Multi-Factor Authentication for when users are not in the office. The Per Authentication option has been configured as the usage model. After the acquisition of a smaller business and the addition of the new staff to Azure Active Directory (Azure AD) obtains a different company and adding the new employees to Azure Active Directory (Azure AD), you are informed that these employees should also make use of Multi-Factor Authentication. To achieve this, the Per Enabled User setting must be set for the usage model. Solution: You reconfigure the existing usage model via the Azure CLI. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Similar to Question 6, the usage model for Multi-Factor Authentication cannot be reconfigured after the provider is created, regardless of whether the attempt is made via the Azure portal or Azure CLI. The usage model is a fundamental property set at creation time and is immutable. CLI commands do not provide the capability to alter this configuration.
Why the other options are wrong:
- A. Azure CLI does not provide the ability to change an MFA provider's usage model; this is a fixed property from creation.
Question 8
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company's Azure solution makes use of Multi-Factor Authentication for when users are not in the office. The Per Authentication option has been configured as the usage model. After the acquisition of a smaller business and the addition of the new staff to Azure Active Directory (Azure AD) obtains a different company and adding the new employees to Azure Active Directory (Azure AD), you are informed that these employees should also make use of Multi-Factor Authentication. To achieve this, the Per Enabled User setting must be set for the usage model. Solution: You create a new Multi-Factor Authentication provider with a backup from the existing Multi-Factor Authentication provider data. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Creating a new Multi-Factor Authentication provider with a backup from existing data does not change the usage model of the original configuration. While a new provider could be created with the desired Per Enabled User setting, this approach creates duplicate infrastructure and does not actually migrate or consolidate the existing configuration. Additionally, MFA provider data backups and restoration are not straightforward processes for usage model migration.
Why the other options are wrong:
- A. Creating a new MFA provider does not automatically solve the usage model problem; it would require careful configuration and does not properly address the need to consolidate existing users into the new model.
Question 9
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) tenant named weyland.com that is configured for hybrid coexistence with the on-premises Active Directory domain. You have a server named DirSync1 that is configured as a DirSync server. You create a new user account in the on-premise Active Directory. You now need to replicate the user information to Azure AD immediately. Solution: You run the Start-ADSyncSyncCycle -PolicyType Initial PowerShell cmdlet. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Start-ADSyncSyncCycle -PolicyType Initial cmdlet performs a full synchronization cycle, but it does not force an immediate sync of newly created user accounts. The -PolicyType Initial parameter is used for initial full sync scenarios, not for immediate replication of new objects. To replicate a user immediately in Azure AD Connect (the successor to DirSync), you would need to use Start-ADSyncSyncCycle -PolicyType Delta or manually trigger a sync through the UI, not the Initial policy type.
Why the other options are wrong:
- A. The Initial policy type does not provide immediate replication of new user objects to Azure AD.
Question 10
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) tenant named weyland.com that is configured for hybrid coexistence with the on-premises Active Directory domain. You have a server named DirSync1 that is configured as a DirSync server. You create a new user account in the on-premise Active Directory. You now need to replicate the user information to Azure AD immediately. Solution: You use Active Directory Sites and Services to force replication of the Global Catalog on a domain controller. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Using Active Directory Sites and Services to force replication of the Global Catalog on a domain controller only replicates data within the on-premises Active Directory environment. It does not trigger synchronization from on-premises AD to Azure AD. The DirSync/Azure AD Connect service is a separate synchronization mechanism that has its own schedule and must be triggered separately to replicate objects to Azure AD.
Why the other options are wrong:
- A. Active Directory Sites and Services only handles on-premises AD replication, not Azure AD synchronization.
Question 11
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an Azure Active Directory (Azure AD) tenant named weyland.com that is configured for hybrid coexistence with the on-premises Active Directory domain. You have a server named DirSync1 that is configured as a DirSync server. You create a new user account in the on-premise Active Directory. You now need to replicate the user information to Azure AD immediately. Solution: You restart the NetLogon service on a domain controller. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Restarting the NetLogon service on a domain controller does not trigger Azure AD synchronization. The NetLogon service handles authentication and domain controller communication within the on-premises AD environment. To replicate user information to Azure AD immediately, you need to restart or trigger the Azure AD Connect/DirSync synchronization service itself, not infrastructure services like NetLogon.
Why the other options are wrong:
- A. Restarting NetLogon does not affect Azure AD Connect synchronization cycles.
Question 12
Your company has a Microsoft Azure subscription. The company has datacenters in Los Angeles and New York. You are configuring the two datacenters as geo-clustered sites for site resiliency. You need to recommend an Azure storage redundancy option. You have the following data storage requirements: • Data must be stored on multiple nodes. • Data must be stored on nodes in separate geographic locations. • Data can be read from the secondary location as well as from the primary location. Which of the following Azure stored redundancy options should you recommend?
- A. Geo-redundant storage
- B. Read-only geo-redundant storage
- C. Zone-redundant storage
- D. Locally redundant storage
Show answer and explanation ▾
Correct answer: A
Geo-redundant storage (GRS) meets all three requirements: data is replicated across multiple nodes within the primary region for local redundancy, then asynchronously replicated to a secondary region in a geographically distant location, and the data can be read from both primary and secondary locations through read-access geo-redundant storage (RA-GRS). This provides the geographic distribution needed for the Los Angeles and New York datacenters while supporting read access from both locations.
Why the other options are wrong:
- B. Read-only geo-redundant storage is a specific configuration of GRS, but the question asks for an option that allows reads from both locations, and RA-GRS is the proper answer rather than the read-only variant.
- C. Zone-redundant storage replicates across availability zones within a single region, not across geographic locations.
- D. Locally redundant storage only replicates within a single datacenter and does not meet the geographic distribution requirement.
Question 13
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an azure subscription that includes a storage account, a resource group, a blob container and a file share. A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM) template to deploy a virtual machine and an additional Azure Storage account. You want to review the ARM template that was used by Jon Ross. Solution: You access the Virtual Machine blade. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Accessing the Virtual Machine blade will show details about the specific VM that was deployed, but it does not provide access to the ARM template that was used to deploy it. The ARM template is a deployment artifact that is not directly accessible from the individual resource's properties blade. To review the template used during deployment, you need to access the Resource Group blade where deployment history and templates are stored.
Why the other options are wrong:
- A. The Virtual Machine blade shows VM properties and settings, not the ARM template used for deployment.
Question 14
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an azure subscription that includes a storage account, a resource group, a blob container and a file share. A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM) template to deploy a virtual machine and an additional Azure Storage account. You want to review the ARM template that was used by Jon Ross. Solution: You access the Resource Group blade. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The Resource Group blade provides access to the deployment history and templates. Within the Resource Group blade, you can navigate to Deployments to view all ARM templates that have been used to deploy resources in that resource group, including the template Jon Ross used to deploy the virtual machine and storage account. This is the correct location to review historical ARM templates.
Why the other options are wrong:
- B. The Resource Group blade is the correct location to access ARM template deployment history and review templates.
Question 15
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has an azure subscription that includes a storage account, a resource group, a blob container and a file share. A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM) template to deploy a virtual machine and an additional Azure Storage account. You want to review the ARM template that was used by Jon Ross. Solution: You access the Container blade. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Accessing the Container blade shows properties and contents of the blob container itself, but does not provide access to the ARM template that was used for deployment. The blob container is just one of the deployed resources and does not contain or display the deployment template or deployment history. ARM templates are managed at the Resource Group level, not at the individual container level.
Why the other options are wrong:
- A. The Container blade does not provide access to ARM templates or deployment history.
Question 16
Your company has three virtual machines (VMs) that are included in an availability set. You try to resize one of the VMs, which returns an allocation failure message. It is imperative that the VM is resized. Which of the following actions should you take?
- A. You should only stop one of the VMs.
- B. You should stop two of the VMs.
- C. You should stop all three VMs.
- D. You should remove the necessary VM from the availability set.
Show answer and explanation ▾
Correct answer: C
When a VM resize fails due to allocation constraints within an availability set, you must stop all VMs in the availability set before attempting the resize. This deallocates all compute resources and allows the Azure fabric to reallocate them with the new VM size. Stopping all three VMs ensures that the resize operation has sufficient resources and can succeed, as the reallocation can consolidate the resources needed for the resized VM.
Why the other options are wrong:
- A. Stopping only one VM does not free sufficient resources for the reallocation to succeed.
- B. Stopping two VMs is insufficient; all VMs in the availability set must be stopped.
- D. Removing the VM from the availability set is unnecessary and removes the resiliency benefits; stopping all VMs is the proper solution.
Question 17
You have an Azure virtual machine (VM) that has a single data disk. You have been tasked with attaching this data disk to another Azure VM. You need to make sure that your strategy allows for the virtual machines to be offline for the least amount of time possible. Which of the following is the action you should take FIRST?
- A. Stop the VM that includes the data disk.
- B. Stop the VM that the data disk must be attached to.
- C. Detach the data disk.
- D. Delete the VM that includes the data disk.
Show answer and explanation ▾
Correct answer: A
To minimize downtime when moving a data disk between VMs, you must first stop the VM that currently has the disk attached. This is a prerequisite action because a data disk cannot be detached from a running VM in Azure-the VM must be in a stopped (deallocated) state before detachment. While the target VM also needs to be stopped before attachment, stopping the source VM is the logical first step in the process sequence.
Why the other options are wrong:
- B. Stopping the target VM comes after detaching the disk, not before the first action.
- C. You cannot detach a disk from a running VM; the source VM must be stopped first.
- D. Deleting the source VM is unnecessary and would prevent disk recovery; you only need to stop it.
Question 18
Your company has an Azure subscription. You need to deploy a number of Azure virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have been informed that the VMs will be included in a single availability set. You are required to make sure that the ARM template you configure allows for as many VMs as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformFaultDomainCount property?
- A. 10
- B. 30
- C. Min Value
- D. Max Value
Show answer and explanation ▾
Correct answer: D
The platformFaultDomainCount property defines how many fault domains an availability set uses. Setting this to the maximum value (3 in Azure) ensures that VMs are distributed across the maximum number of independent hardware failure domains. This maximizes availability because a single hardware failure will impact the fewest VMs. A higher fault domain count means better isolation from fabric failures.
Why the other options are wrong:
- A. 10 exceeds Azure's maximum fault domain count of 3.
- B. 30 exceeds Azure's maximum fault domain count of 3.
- C. Minimum value would concentrate VMs on fewer fault domains, reducing fault tolerance.
Question 19
Your company has an Azure subscription. You need to deploy a number of Azure virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have been informed that the VMs will be included in a single availability set. You are required to make sure that the ARM template you configure allows for as many VMs as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformUpdateDomainCount property?
- A. 10
- B. 20
- C. 30
- D. 40
Show answer and explanation ▾
Correct answer: B
The platformUpdateDomainCount property defines how many update domains an availability set uses. In Azure, the maximum value for update domains is 20. Setting this to 20 ensures that during planned maintenance, Azure spreads updates across the maximum number of update domains, so fewer VMs are taken offline simultaneously. This minimizes service disruption during maintenance windows.
Why the other options are wrong:
- A. 10 is less than the maximum update domain count of 20.
- C. 30 exceeds Azure's maximum update domain count of 20.
- D. 40 exceeds Azure's maximum update domain count of 20.
Question 20
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the on-premises Active Directory domain. The on-premise virtual environment consists of virtual machines (VMs) running on Windows Server 2012 R2 Hyper-V host servers. You have created some PowerShell scripts to automate the configuration of newly created VMs. You plan to create several new VMs. You need a solution that ensures the scripts are run on the new VMs. Which of the following is the best solution?
- A. Configure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory.
- B. Configure a Group Policy Object (GPO) to run the scripts as logon scripts.
- C. Configure a Group Policy Object (GPO) to run the scripts as startup scripts.
- D. Place the scripts in a new virtual hard disk (VHD).
Show answer and explanation ▾
Correct answer: A
SetupComplete.cmd is a batch file that runs automatically during Windows Setup after the operating system has been installed and before the user logs in for the first time. For on- premises Hyper-V environments creating new VMs, this approach executes PowerShell scripts reliably during initial VM setup without requiring AD infrastructure or domain membership to be already configured. This is the most reliable method for new VM configuration automation.
Why the other options are wrong:
- B. Logon scripts require a user to log in and depend on Group Policy processing; they won't run before user authentication.
- C. Startup scripts require the VM to be domain-joined and GPO processing to be complete, which may not be ready for new VMs.
- D. Placing scripts in a VHD doesn't execute them automatically; they would need to be manually invoked.
Question 21
Your company has an Azure Active Directory (Azure AD) tenant that is configured for hybrid coexistence with the on-premises Active Directory domain. You plan to deploy several new virtual machines (VMs) in Azure. The VMs will have the same operating system and custom software requirements. You configure a reference VM in the on-premise virtual environment. You then generalize the VM to create an image. You need to upload the image to Azure to ensure that it is available for selection when you create the new Azure VMs. Which PowerShell cmdlets should you use?
- A. Add-AzVM
- B. Add-AzVhd
- C. Add-AzImage
- D. Add-AzImageDataDisk
Show answer and explanation ▾
Correct answer: B
The Add-AzVhd cmdlet is used to upload a generalized VHD (Virtual Hard Disk) file from an on-premises environment to Azure storage. Once the VHD is uploaded, it can be used as a source to create managed images or deploy VMs directly. This is the correct cmdlet for the upload operation in a hybrid migration scenario.
Why the other options are wrong:
- A. Add-AzVM creates a new VM; it doesn't upload images to Azure storage.
- C. Add-AzImage creates a managed image from an existing resource, but doesn't upload VHDs.
- D. Add-AzImageDataDisk adds a data disk to an existing image; it doesn't upload VHD files.
Question 22
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company's Azure subscription includes two Azure networks named VirtualNetworkA and VirtualNetworkB. VirtualNetworkA includes a VPN gateway that is configured to make use of static routing. Also, a site-to-site VPN connection exists between your company's on-premises network and VirtualNetworkA. You have configured a point-to-site VPN connection to VirtualNetworkA from a workstation running Windows 10. After configuring virtual network peering between VirtualNetworkA and VirtualNetworkB, you confirm that you are able to access VirtualNetworkB from the company's on-premises network. However, you find that you cannot establish a connection to VirtualNetworkB from the Windows 10 workstation. You have to make sure that a connection to VirtualNetworkB can be established from the Windows 10 workstation. Solution: You choose the Allow gateway transit setting on VirtualNetworkA. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The problem is that point-to-site VPN clients cannot reach peered networks without proper configuration. Setting 'Allow gateway transit' on VirtualNetworkA (which has the gateway) doesn't solve the issue because gateway transit must be explicitly enabled on the peering connection itself, and the point-to-site VPN client routes must be updated to include VirtualNetworkB's address space. Simply enabling gateway transit on one side of the peering is insufficient; the VPN client configuration package must be downloaded again to receive updated route tables.
Question 23
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company's Azure subscription includes two Azure networks named VirtualNetworkA and VirtualNetworkB. VirtualNetworkA includes a VPN gateway that is configured to make use of static routing. Also, a site-to-site VPN connection exists between your company's on-premises network and VirtualNetworkA. You have configured a point-to-site VPN connection to VirtualNetworkA from a workstation running Windows 10. After configuring virtual network peering between VirtualNetworkA and VirtualNetworkB, you confirm that you are able to access VirtualNetworkB from the company's on-premises network. However, you find that you cannot establish a connection to VirtualNetworkB from the Windows 10 workstation. You have to make sure that a connection to VirtualNetworkB can be established from the Windows 10 workstation. Solution: You choose the Allow gateway transit setting on VirtualNetworkB. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Setting 'Allow gateway transit' on VirtualNetworkB does not solve the problem. VirtualNetworkB does not contain the VPN gateway-VirtualNetworkA does. Gateway transit settings must be configured on the network that has the gateway and its peering partner. Configuring it on VirtualNetworkB, which has no gateway, provides no benefit. The point-to-site client still lacks routes to VirtualNetworkB.
Question 24
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company's Azure subscription includes two Azure networks named VirtualNetworkA and VirtualNetworkB. VirtualNetworkA includes a VPN gateway that is configured to make use of static routing. Also, a site-to-site VPN connection exists between your company's on-premises network and VirtualNetworkA. You have configured a point-to-site VPN connection to VirtualNetworkA from a workstation running Windows 10. After configuring virtual network peering between VirtualNetworkA and VirtualNetworkB, you confirm that you are able to access VirtualNetworkB from the company's on-premises network. However, you find that you cannot establish a connection to VirtualNetworkB from the Windows 10 workstation. You have to make sure that a connection to VirtualNetworkB can be established from the Windows 10 workstation. Solution: You download and re-install the VPN client configuration package on the Windows 10 workstation. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Downloading and reinstalling the VPN client configuration package solves the problem because it provides updated routing information to the point-to-site VPN client. When virtual networks are peered, the VPN gateway's configuration changes, but existing VPN client packages contain cached route information. A fresh configuration package includes the routes to the newly peered VirtualNetworkB, enabling connectivity from the Windows 10 workstation to resources in that network.
Question 25
Your company has virtual machines (VMs) hosted in Microsoft Azure. The VMs are located in a single Azure virtual network named VNet1. The company has users that work remotely. The remote workers require access to the VMs on VNet1. You need to provide access for the remote workers. What should you do?
- A. Configure a Site-to-Site (S2S) VPN.
- B. Configure a VNet-toVNet VPN.
- C. Configure a Point-to-Site (P2S) VPN.
- D. Configure DirectAccess on a Windows Server 2012 server VM.
- E. Configure a Multi-Site VPN
Show answer and explanation ▾
Correct answer: C
Point-to-Site (P2S) VPN is the correct solution for remote workers who need to access resources in a single Azure virtual network. P2S VPNs establish secure connections from individual client computers to Azure, making it ideal for remote workers. Site-to-Site (S2S) VPN connects two networks together, VNet-to-VNet connects multiple virtual networks, Multi-Site connects multiple on-premises locations, and DirectAccess is for on-premises Windows domain environments.
Why the other options are wrong:
- A. Site-to-Site VPN is used to connect entire on-premises networks to Azure, not individual remote workers.
- B. VNet-to-VNet VPN connects multiple Azure virtual networks together, not remote individual users.
- D. DirectAccess is a Windows Server feature for on-premises domain-joined computers, not Azure cloud connectivity.
- E. Multi-Site VPN connects multiple on-premises sites to Azure, not individual remote workers.
Question 26
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has a Microsoft SQL Server Always On availability group configured on their Azure virtual machines (VMs). You need to configure an Azure internal load balancer as a listener for the availability group. Solution: You create an HTTP health probe on port 1433. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
An HTTP health probe on port 1433 does not meet the goal. SQL Server Always On uses port 1433 for database connections, but health probes for availability group listeners should use TCP probes on the listener port, not HTTP probes. HTTP probes are application-level checks inappropriate for SQL Server availability groups, which require direct TCP connectivity to verify instance health.
Why the other options are wrong:
- A. HTTP probes are not suitable for SQL Server Always On listeners; TCP probes on the correct port are required.
Question 27
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has a Microsoft SQL Server Always On availability group configured on their Azure virtual machines (VMs). You need to configure an Azure internal load balancer as a listener for the availability group. Solution: You set Session persistence to Client IP. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
Setting Session persistence to Client IP does not meet the goal for SQL Server Always On availability group listeners. SQL Server Always On requires Floating IP (Direct Server Return) to be enabled on the load balancer rule to function properly. Session persistence settings are irrelevant to the core requirement of establishing the availability group listener, which depends on Floating IP functionality.
Why the other options are wrong:
- A. Session persistence settings do not address the fundamental requirement for Floating IP in SQL Server Always On listener configuration.
Question 28
Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. Your company has a Microsoft SQL Server Always On availability group configured on their Azure virtual machines (VMs). You need to configure an Azure internal load balancer as a listener for the availability group. Solution: You enable Floating IP. Does the solution meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
Enabling Floating IP does meet the goal for configuring an Azure internal load balancer as a listener for SQL Server Always On availability groups. Floating IP (Direct Server Return) is a critical requirement for SQL Server Always On listeners because it allows the load balancer to route traffic directly to the backend VM with the same IP address and port that the client connected to, which is essential for the listener's functionality.
Why the other options are wrong:
- B. Floating IP is specifically required and essential for SQL Server Always On listener configuration.
Question 29
Your company has two on-premises servers named SRV01 and SRV02. Developers have created an application that runs on SRV01. The application calls a service on SRV02 by IP address. You plan to migrate the application on Azure virtual machines (VMs). You have configured two VMs on a single subnet in an Azure virtual network. You need to configure the two VMs with static internal IP addresses. What should you do?
- A. Run the New-AzureRMVMConfig PowerShell cmdlet.
- B. Run the Set-AzureSubnet PowerShell cmdlet.
- C. Modify the VM properties in the Azure Management Portal.
- D. Modify the IP properties in Windows Network and Sharing Center.
- E. Run the Set-AzureStaticVNetIP PowerShell cmdlet.
Show answer and explanation ▾
Correct answer: E
The Set-AzureStaticVNetIP PowerShell cmdlet is the correct method to configure static internal IP addresses for Azure VMs. This cmdlet specifically assigns static private IP addresses to virtual machines within a virtual network. New-AzureRMVMConfig creates VM configurations but doesn't assign static IPs, Set-AzureSubnet manages subnets not IPs, the Azure Portal doesn't have direct static IP assignment for existing VMs in this context, and Windows Network settings only configure the guest OS network adapter without reserving the IP at the Azure platform level.
Why the other options are wrong:
- A. New-AzureRMVMConfig creates VM configurations but does not assign static IP addresses.
- B. Set-AzureSubnet configures subnet properties, not individual VM IP addresses.
- C. The Azure Management Portal requires use of PowerShell cmdlets or the newer portal interface for this task.
- D. Configuring IP properties in Windows only sets the guest OS settings; Azure must reserve the IP at the platform level.
Question 30
Your company has an Azure Active Directory (Azure AD) subscription. You need to deploy five virtual machines (VMs) to your company's virtual network subnet. The VMs will each have both a public and private IP address. Inbound and outbound security rules for all of these virtual machines must be identical. Which of the following is the least amount of network interfaces needed for this configuration?
- A. 5
- B. 10
- C. 20
- D. 40
Show answer and explanation ▾
Correct answer: A
The minimum number of network interfaces needed is 5. Each VM requires only one network interface, which can have multiple IP address configurations. A single network interface can be assigned both a private IP address and a public IP address through separate IP configurations, so five VMs need only five network interfaces total. Public IP addresses are associated with private IP configurations on the NIC, not as separate interfaces.
Why the other options are wrong:
- B. Ten interfaces are not necessary; each VM needs only one NIC with multiple IP configurations.
- C. Twenty interfaces are far more than required for this configuration.
- D. Forty interfaces are completely unnecessary; this exceeds requirements by an order of magnitude.
Question 31
Your company has an Azure Active Directory (Azure AD) subscription. You need to deploy five virtual machines (VMs) to your company's virtual network subnet. The VMs will each have both a public and private IP address. Inbound and outbound security rules for all of these virtual machines must be identical. Which of the following is the least amount of security groups needed for this configuration?
- A. 4
- B. 3
- C. 2
- D. 1
Show answer and explanation ▾
Correct answer: D
The minimum number of security groups needed is 1. Since all five VMs have identical inbound and outbound security rules, a single Network Security Group (NSG) can be associated with all five VMs or their network interfaces. There is no requirement to create separate NSGs when the security requirements are identical across all resources.
Why the other options are wrong:
- A. Four security groups are more than necessary when all VMs have identical rules.
- B. Three security groups are unnecessary; identical rules can all be in one NSG.
- C. Two security groups are redundant when one NSG can serve all identical rule requirements.
Question 32
Your company's Azure subscription includes Azure virtual machines (VMs) that run Windows Server 2016. One of the VMs is backed up every day using Azure Backup Instant Restore. When the VM becomes infected with data encrypting ransomware, you decide to recover the VM's files. Which of the following is TRUE in this scenario?
- A. You can only recover the files to the infected VM.
- B. You can recover the files to any VM within the company's subscription.
- C. You can only recover the files to a new VM.
- D. You will not be able to recover the files.
Show answer and explanation ▾
Correct answer: B
With Azure Backup Instant Restore, files can be recovered to any VM within the company's subscription, not just the infected VM or a new VM. The Instant Restore feature provides the flexibility to mount the recovery point and browse/copy files to any accessible location, including any VM in the subscription. This allows for flexible recovery scenarios beyond just the original VM.
Why the other options are wrong:
- A. Files can be recovered to VMs other than the infected one, providing recovery flexibility.
- C. A new VM is not required; files can be recovered to any existing VM in the subscription.
- D. Files can definitely be recovered when using Azure Backup Instant Restore, even from ransomware-infected VMs if backups were taken before infection.
Question 33
Your company's Azure subscription includes Azure virtual machines (VMs) that run Windows Server 2016. One of the VMs is backed up every day using Azure Backup Instant Restore. When the VM becomes infected with data encrypting ransomware, you are required to restore the VM. Which of the following actions should you take?
- A. You should restore the VM after deleting the infected VM.
- B. You should restore the VM to any VM within the company's subscription.
- C. You should restore the VM to a new Azure VM.
- D. You should restore the VM to an on-premise Windows device.
Show answer and explanation ▾
Correct answer: C
When restoring a VM infected with ransomware, you must restore to a new Azure VM rather than overwriting the original infected VM. This ensures the malware is not carried forward and allows for a clean recovery. Deleting the infected VM first (option A) is unnecessary since restoration creates a new instance anyway. Restoring to any existing VM (option B) risks infecting other systems. Restoring to on-premises (option D) is not a capability of Azure Backup Instant Restore for Azure VMs.
Why the other options are wrong:
- A. Deletion is not required; the restore operation itself creates a new VM instance.
- B. Restoring to an existing VM would overwrite it and potentially spread the infection.
- D. Azure Backup cannot restore Azure VMs to on-premises Windows devices.
Question 34
You administer a solution in Azure that is currently having performance issues. You need to find the cause of the performance issues pertaining to metrics on the Azure infrastructure. Which of the following is the tool you should use?
- A. Azure Traffic Analytics
- B. Azure Monitor
- C. Azure Activity Log
- D. Azure Advisor
Show answer and explanation ▾
Correct answer: B
Azure Monitor is the primary tool for collecting, analyzing, and acting on metrics and performance data from Azure infrastructure. It provides detailed metrics about VM performance, resource utilization, and infrastructure health. Azure Traffic Analytics monitors network traffic patterns, Azure Activity Log tracks management operations and resource changes, and Azure Advisor provides optimization recommendations, but none of these are the primary tool for real-time infrastructure metrics analysis.
Why the other options are wrong:
- A. Azure Traffic Analytics focuses on network traffic analysis, not general infrastructure metrics.
- C. Azure Activity Log tracks management events and changes, not performance metrics.
- D. Azure Advisor provides recommendations but does not directly diagnose performance issues through metrics.
Question 35
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: You create a PowerShell script that runs the New-AzureADUser cmdlet for each user. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The New-AzureADUser cmdlet is used to create regular member users in Azure AD, not guest users. To create guest user accounts, you must use the New-AzureADMSInvitation cmdlet, which properly initializes guest accounts with the correct user type and sends invitation emails. Using New-AzureADUser for external users would not create proper guest accounts with the appropriate permissions and invitation workflow.
Why the other options are wrong:
- A. New-AzureADUser creates internal member accounts, not guest accounts.
Question 36
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: From Azure AD in the Azure portal, you use the Bulk create user operation. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Bulk create user operation in Azure AD is designed for creating member users, not guest users. While bulk operations exist in Azure AD, the standard bulk create functionality creates internal member accounts. To bulk-invite external users as guests, you need to use the bulk invite feature (based on New-AzureADMSInvitation), which is different from the standard bulk user creation tool.
Why the other options are wrong:
- A. Bulk create user is for member accounts; bulk invite is needed for guest accounts.
Question 37
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 Active Directory (Azure AD) tenant named contoso.com. You have a CSV file that contains the names and email addresses of 500 external users. You need to create a guest user account in contoso.com for each of the 500 external users. Solution: You create a PowerShell script that runs the New-AzureADMSInvitation cmdlet for each external user. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: A
The New-AzureADMSInvitation cmdlet is the correct PowerShell command for creating guest user accounts in Azure AD. When executed for each external user from the CSV file, it will generate proper guest account invitations and send invitation emails to the external users. This cmdlet properly initializes the guest user type and manages the invitation workflow, making it the correct solution for bulk guest account creation.
Why the other options are wrong:
- B. New-AzureADMSInvitation is specifically designed for creating guest accounts.
Question 38
You have an Azure subscription that contains an Azure Active Directory (Azure AD) tenant named contoso.com and an Azure Kubernetes Service (AKS) cluster named AKS1. An administrator reports that she is unable to grant access to AKS1 to the users in contoso.com. You need to ensure that access to AKS1 can be granted to the contoso.com users. What should you do first?
- A. From contoso.com, modify the Organization relationships settings.
- B. From contoso.com, create an OAuth 2.0 authorization endpoint.
- C. Recreate AKS1.
- D. From AKS1, create a namespace.
Show answer and explanation ▾
Correct answer: B
To grant access to an AKS cluster to Azure AD users, the cluster must be integrated with Azure AD. The first step is to create an OAuth 2.0 authorization endpoint in Azure AD, which enables AKS to authenticate users against the Azure AD tenant. This establishes the trust relationship between AKS1 and contoso.com, allowing the administrator to subsequently grant access to contoso.com users. The other options do not address the fundamental authentication integration needed.
Why the other options are wrong:
- A. Organization relationships settings do not enable AKS-Azure AD integration.
- C. Recreating AKS1 is not the solution; configuration is needed, not recreation.
- D. Creating a namespace in AKS does not enable Azure AD authentication.
Question 39
You have an Azure policy as shown in the following exhibit: What is the effect of the policy?
- A. You are prevented from creating Azure SQL servers anywhere in Subscription 1.
- B. You can create Azure SQL servers in ContosoRG1 only.
- C. You are prevented from creating Azure SQL Servers in ContosoRG1 only.
- D. You can create Azure SQL servers in any resource group within Subscription 1.
Show answer and explanation ▾
Correct answer: B
The policy shown has a scope of 'Subscription 1' with an exclusion for 'Subscription 1/ContosoRG1', and the policy definition is 'Not allowed resource types' with the parameter specifying 'Microsoft.Sql/servers'. This means the policy prevents creation of Azure SQL servers throughout Subscription 1, but makes an exception for the ContosoRG1 resource group where SQL servers are allowed. Therefore, you are prevented from creating Azure SQL servers everywhere in Subscription 1 except ContosoRG1.
Why the other options are wrong:
- A. This is incorrect because the exclusion for ContosoRG1 means SQL servers CAN be created there, so the prevention is not blanket across the entire subscription.
- D. This contradicts the policy effect; the 'Not allowed resource types' policy with SQL servers specified prevents creation, not allows it.
Question 40
You have an Azure subscription named AZPT1 that contains the resources shown in the following table: You create a new Azure subscription named AZPT2. You need to identify which resources can be moved to AZPT2. Which resources should you identify?
- A. VM1, storage1, VNET1, and VM1Managed only
- B. VM1 and VM1Managed only
- C. VM1, storage1, VNET1, VM1Managed, and RVAULT1
- D. RVAULT1 only
Show answer and explanation ▾
Correct answer: C
In Azure, resources can be moved between subscriptions with varying levels of support. VM1, storage1, VNET1, and VM1Managed can all be moved to a new subscription as they are supported for cross-subscription moves. RVAULT1 (Recovery Services vault) can also be moved between subscriptions when properly configured. All five resources listed support movement to AZPT2, making option C the complete and correct answer identifying all movable resources.
Why the other options are wrong:
- A. This option incorrectly excludes RVAULT1, which is also movable between subscriptions.
- B. This option is too restrictive, excluding storage1, VNET1, and RVAULT1, all of which can be moved to another subscription.
- D. This option incorrectly identifies only RVAULT1 as movable, when in fact all five resources can be moved between subscriptions.
Question 41
You recently created a new Azure subscription that contains a user named Admin1. Admin1 attempts to deploy an Azure Marketplace resource by using an Azure Resource Manager template. Admin1 deploys the template by using Azure PowerShell and receives the following error message: `User failed validation to purchase resources. Error message: `Legal terms have not been accepted for this item on this subscription. To accept legal terms, please go to the Azure portal (http://go.microsoft.com/fwlink/? LinkId=534873) and configure programmatic deployment for the Marketplace item or create it there for the first time.` You need to ensure that Admin1 can deploy the Marketplace resource successfully. What should you do?
- A. From Azure PowerShell, run the Set-AzApiManagementSubscription cmdlet
- B. From the Azure portal, register the Microsoft.Marketplace resource provider
- C. From Azure PowerShell, run the Set-AzMarketplaceTerms cmdlet
- D. From the Azure portal, assign the Billing administrator role to Admin1
Show answer and explanation ▾
Correct answer: C
From Azure PowerShell, run the Set- AzMarketplaceTerms cmdlet The error message explicitly states that legal terms have not been accepted for the Marketplace item on the subscription. The Set-AzMarketplaceTerms cmdlet is the PowerShell command used to accept programmatic deployment terms for Marketplace items, enabling deployment via ARM templates and automation.
Why the other options are wrong:
- A. Set-AzApiManagementSubscription is for configuring API Management subscriptions, not Marketplace terms.
- B. Registering the Microsoft.Marketplace resource provider is not the correct solution; the resource provider is already available.
- D. The Billing administrator role does not grant permission to accept Marketplace terms; the current user context is what matters for term acceptance.
Question 42
You have an Azure Active Directory (Azure AD) tenant that contains 5,000 user accounts. You create a new user account named AdminUser1. You need to assign the User administrator administrative role to AdminUser1. What should you do from the user account properties?
- A. From the Licenses blade, assign a new license
- B. From the Directory role blade, modify the directory role
- C. From the Groups blade, invite the user account to a new group
Show answer and explanation ▾
Correct answer: B
To assign an administrative role such as User administrator to a user account in Azure AD, you must navigate to the Directory role blade within the user's properties and modify the directory role assignment from there.
Why the other options are wrong:
- A. The Licenses blade is for assigning product licenses, not administrative roles.
- C. The Groups blade is for managing group membership, not for assigning administrative roles.
Question 43
You have an Azure Active Directory (Azure AD) tenant named contoso.onmicrosoft.com that contains 100 user accounts. You purchase 10 Azure AD Premium P2 licenses for the tenant. You need to ensure that 10 users can use all the Azure AD Premium features. What should you do?
- A. From the Licenses blade of Azure AD, assign a license
- B. From the Groups blade of each user, invite the users to a group
- C. From the Azure AD domain, add an enterprise application
- D. From the Directory role blade of each user, modify the directory role
Show answer and explanation ▾
Correct answer: A
To enable Azure AD Premium P2 features for users, you must assign the purchased licenses to those users. This is done from the Licenses blade in Azure AD, where you can select users and allocate the premium licenses to them.
Why the other options are wrong:
- B. Adding users to groups does not grant them premium features; licenses must be explicitly assigned.
- C. Adding enterprise applications is unrelated to assigning premium licenses to users.
- D. Modifying directory roles does not activate premium feature access; licenses must be assigned.
Question 44
You have an Azure subscription named Subscription1 and an on-premises deployment of Microsoft System Center Service Manager. Subscription1 contains a virtual machine named VM1. You need to ensure that an alert is set in Service Manager when the amount of available memory on VM1 is below 10 percent. What should you do first?
- A. Create an automation runbook
- B. Deploy a function app
- C. Deploy the IT Service Management Connector (ITSM)
- D. Create a notification
Show answer and explanation ▾
Correct answer: C
To create alerts in an on-premises Service Manager when Azure VM conditions are met, you must first deploy the IT Service Management Connector (ITSM). This connector establishes the bridge between Azure Monitor alerts and Service Manager, allowing alerts to be triggered in the on-premises system.
Why the other options are wrong:
- A. Creating an automation runbook alone does not establish the connection to Service Manager; the ITSM Connector is the prerequisite.
- B. A function app is not the correct tool for integrating with Service Manager.
- D. Creating a notification in Azure is not sufficient without the ITSM Connector to forward alerts to Service Manager.
Question 45
You sign up for Azure Active Directory (Azure AD) Premium P2. You need to add a user named admin1@contoso.com as an administrator on all the computers that will be joined to the Azure AD domain. What should you configure in Azure AD?
- A. Device settings from the Devices blade
- B. Providers from the MFA Server blade
- C. User settings from the Users blade
- D. General settings from the Groups blade
Show answer and explanation ▾
Correct answer: A
To configure a user as a local administrator on all computers joined to an Azure AD domain, you must configure Device settings from the Devices blade in Azure AD. This setting controls which users are granted administrative privileges on Azure AD-joined devices.
Why the other options are wrong:
- B. The MFA Server blade is for multi-factor authentication configuration, not device administrator assignment.
- C. User settings do not control local device administrator privileges.
- D. Group settings are not the location for configuring device-level administrative access.
Question 46
You have an Azure subscription that contains a resource group named RG26. RG26 is set to the West Europe location and is used to create temporary resources for a project. RG26 contains the resources shown in the following table. SQLDB01 is backed up to RGV1. When the project is complete, you attempt to delete RG26 from the Azure portal. The deletion fails. You need to delete RG26. What should you do first?
- A. Delete VM1
- B. Stop VM1
- C. Stop the backup of SQLDB01
- D. Delete sa001
Show answer and explanation ▾
Correct answer: C
When attempting to delete a resource group in Azure, the operation fails if there are dependencies preventing deletion. SQLDB01 is a SQL Server running in an Azure VM, and it is being backed up to RGV1 (Recovery Services vault). The Recovery Services vault has an active backup relationship with SQLDB01, which creates a dependency that prevents the resource group from being deleted. To resolve this, you must first stop or disable the backup of SQLDB01 by removing the backup protection/policy from the Recovery Services vault. Only after breaking this backup dependency can the resource group be successfully deleted.
Why the other options are wrong:
- A. Deleting VM1 is unnecessary; the backup dependency on SQLDB01 is the blocker, not the VM itself.
- B. Stopping VM1 does not remove the backup protection relationship between SQLDB01 and the Recovery Services vault, so the deletion will still fail.
- D. Deleting sa001 (storage account) is not related to the backup dependency that is preventing the resource group deletion.
Question 47
You have an Azure subscription named Subscription1 that contains a virtual network named VNet1. VNet1 is in a resource group named RG1. Subscription1 has a user named User1. User1 has the following roles: • Reader • Security Admin • Security Reader You need to ensure that User1 can assign the Reader role for VNet1 to other users. What should you do?
- A. Remove User1 from the Security Reader and Reader roles for Subscription1.
- B. Assign User1 the User Access Administrator role for VNet1.
- C. Assign User1 the Network Contributor role for VNet1.
- D. Assign User1 the Network Contributor role for RG1.
Show answer and explanation ▾
Correct answer: B
To allow User1 to assign the Reader role to other users for VNet1, User1 must have the User Access Administrator role scoped to VNet1. This role grants the ability to manage role assignments, which the current roles (Reader, Security Admin, Security Reader) do not provide.
Why the other options are wrong:
- A. Removing roles would further restrict User1's permissions and prevent role assignment.
- C. Network Contributor allows network resource management but not role assignment authority.
- D. While User Access Administrator at RG1 level could work, the more precise and best-practice approach is to scope it to VNet1 specifically.
Question 48
You have an Azure Active Directory (Azure AD) tenant named contosocloud.onmicrosoft.com. Your company has a public DNS zone for contoso.com. You add contoso.com as a custom domain name to Azure AD. You need to ensure that Azure can verify the domain name. Which type of DNS record should you create?
- A. MX
- B. NSEC
- C. PTR
- D. RRSIG
Show answer and explanation ▾
Correct answer: A
When adding a custom domain to Azure AD, the system requires DNS verification. Azure AD uses an MX record (or TXT record, though MX is the standard answer in this context) to verify domain ownership. You must create the specified DNS record in your public DNS zone so Azure can confirm you control the domain.
Why the other options are wrong:
- B. NSEC records are DNSSEC-related security records, not used for domain verification.
- C. PTR records are used for reverse DNS lookups, not domain ownership verification.
- D. RRSIG records are DNSSEC signatures, not used for Azure AD domain verification.
Question 49
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 Directory (Azure AD) tenant named Adatum and an Azure Subscription named Subscription1. Adatum contains a group named Developers. Subscription1 contains a resource group named Dev. You need to provide the Developers group with the ability to create Azure logic apps in the Dev resource group. Solution: On Subscription1, you assign the DevTest Labs User role to the Developers group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The DevTest Labs User role is designed for DevTest Labs environments specifically and does not grant permissions to create logic apps in a standard resource group. To enable the Developers group to create logic apps in the Dev resource group, they would need a role like Logic App Contributor or at minimum Contributor at the resource group level.
Why the other options are wrong:
- A. DevTest Labs User role is scoped to DevTest Labs resources and does not provide the necessary permissions for logic app creation in standard resource groups.
Question 50
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 Directory (Azure AD) tenant named Adatum and an Azure Subscription named Subscription1. Adatum contains a group named Developers. Subscription1 contains a resource group named Dev. You need to provide the Developers group with the ability to create Azure logic apps in the Dev resource group. Solution: On Subscription1, you assign the Logic App Operator role to the Developers group. Does this meet the goal?
- A. Yes
- B. No
Show answer and explanation ▾
Correct answer: B
The Logic App Operator role allows users to read, enable, and disable logic apps, but does not grant the ability to create new logic apps. To create logic apps, users need the Contributor or Logic App Contributor role, which provides full management capabilities including creation of new resources.
Why the other options are wrong:
- A. Logic App Operator only permits reading and managing existing logic apps, not creating new ones.
Get the complete AZ-104 bank
These 50 questions are roughly 13% of the bank. The full pack has 606 real AZ-104 questions, each with the same depth of explanation, plus a questions-only PDF for timed practice and free updates forever.
View the full Microsoft AZ-104 question bank →