Practice Free AZ-104 Exam Online Questions
You have an Azure virtual machine named VM1 that runs Windows Server. The VM was deployed using default drive settings.
You sign in to VM1 as a user named User1 and perform the following actions:
* Create files on drive C.
* Create files on drive D.
* Modify the screen saver timeout.
* Change the desktop background.
You plan to redeploy VM1.
Which changes will be lost after you redeploy VM1?
- A . the new files on drive D
- B . the modified screen saver timeout
- C . the new files on drive C
- D . the new desktop background
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 manage a virtual network named VNet1 that is hosted in the West US Azure region.
VNet1 hosts two virtual machines named VM1 and VM2 that run Windows Server.
You need to inspect all the network traffic from VM1 to VM2 for a period of three hours.
Solution: From Performance Monitor, you create a Data Collector Set (DCS).
Does this meet the goal?
- A . Yes
- B . No
B
Explanation:
Correct answer is packet capture in Azure Network Watcher. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-packet-capture-overview
You have an Azure subscription that contains three virtual machines named VM1, VM2. and VM3. All the virtual machines are in an availability set named AVSetl. You need to scale up VM1 to a new virtual machine size, but the intended size is unavailable.
What should you do first?
- A . Shut down VM2 and VM3.
- B . Convert AVSetl into a managed availability set.
- C . DeallocateVM1.
- D . Create a proximity placement group.
You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image.
You need to ensure that when the scale set virtual machines are provisioned, they have web server
components installed.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE Each correct selection is worth one point.
- A . Modify the extensionProfile section of the Azure Resource Manager template.
- B . Create a new virtual machine scale set in the Azure portal.
- C . Create an Azure policy.
- D . Create an automation account.
- E . Upload a configuration script.
A,B
Explanation:
To automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image and has web server components installed, you need to perform the following actions:
Modify the extensionProfile section of the Azure Resource Manager template. This section defines the extensions that are applied to the scale set virtual machines after they are provisioned. You can use the Custom Script Extension to run PowerShell scripts that install and configure the web server components. For more information, see Deploy an application to an Azure Virtual Machine Scale Set1.
Upload a configuration script. This is the PowerShell script that contains the commands to install and configure the web server components. You can upload the script to a storage account or a GitHub repository, and then reference it in the extensionProfile section of the template. For an example of a configuration script, see Tutorial: Install applications in Virtual Machine Scale Sets with Azure PowerShell2.
You have an Azure subscription that contains two Log Analytics workspaces named Workspace 1 and Workspace? and 100 virtual machines that run Windows Server.
You need to collect performance data and events from the virtual machines.
The solution must meet the following requirements:
• Logs must be sent to Workspace! and Workspace?
• All Windows events must be captured
• All security events must be captured.
What should you install and configure on each virtual machine?
- A . the Azure Monitor agent
- B . the Windows Azure diagnostics extension (WAD)
- C . the Windows VM agent
A
Explanation:
https://learn.microsoft.com/en-us/azure/azure-monitor/agents/agents-overview Azure Monitor Agent (AMA) collects monitoring data from the guest operating system of Azure and hybrid virtual machines and delivers it to Azure Monitor for use by features, insights, and other services, such as Microsoft Sentinel and Microsoft Defender for Cloud. Azure Monitor Agent replaces all of Azure Monitor’s legacy monitoring agents.
You need to resolve the licensing issue before you attempt to assign the license again.
What should you do?
- A . From the Groups blade, invite the user accounts to a new group.
- B . From the Profile blade, modify the usage location.
- C . From the Directory role blade, modify the directory role.
B
Explanation:
Scenario: Licensing Issue
HOTSPOT
You have an Azure subscription that uses Azure Container Instances.
You have a computer that has Azure Command-Line Interface (CLI) and Docker installed.
You create a container image named image1.
You need to provision a new Azure container registry and add image1 to the registry.
Which command should you run for each requirement? To answer, select the options in the answer area. NOTE: Each correct answer is worth one point.

You have an Azure subscription that contains the storage accounts shown in the following table.
You need to identify which storage account can be converted to zone-redundant storage (ZRS) replication by requesting a live migration from Azure support.
What should you identify?
- A . Storage1
- B . Storage2
- C . Storage3
- D . Storage4
B
Explanation:
https://learn.microsoft.com/en-us/azure/storage/common/redundancy-migration?tabs=portal
You have an Azure subscription.
You create the following Azure Resource Manager (ARM) template named Templatejson.
You need to deploy Template.json.
Which PowerShell cmdlet should you run from Azure Cloud Shell?
- A . New-AzManagementGroupDeployment
- B . New-AzTenantDeployment
- C . New-AzResourceGroupDeployment
- D . New-AzSubscriptionDeployment
HOTSPOT
You have a Microsoft Entra user named User1 and a read-access geo-redundant storage (RA-GRS)
account named contoso2023.
You need to meet the following requirements:
• User1 must be able to write blob data to contoso2023.
• The contoso2023 account must fail over to its secondary endpoint.
Which two settings should you configure? To answer, select the appropriate settings in the answer area. NOTE Each correct selection is worth one point.
