Microsoft Azure Administrator AZ-104 Dumps in PDF

Free Microsoft AZ-104 Real Questions (page: 5)

You have an Azure subscription named Subscription1 that contains two Azure virtual networks named VNet1 and VNet2. VNet1 contains a VPN gateway named VPNGW1 that uses static routing. There is a site-to-site VPN connection between your on-premises network and VNet1.
On a computer named Client1 that runs Windows 10, you configure a point-to-site VPN connection to VNet1.
You configure virtual network peering between VNet1 and VNet2. You verify that you can connect to VNet2 from the on-premises network. Client1 is unable to connect to VNet2.
You need to ensure that you can connect Client1 to VNet2. What should you do?

  1. Select Use the remote virtual network's gateway or Route Server on VNet1 to VNet2 peering.
  2. Select Use the remote virtual network s gateway or Route Server on VNet2 to VNet1 peering.
  3. Download and re-install the VPN client configuration package on Client1.
  4. Enable BGP on VPNGW1.

Answer(s): C



HOTSPOT (Drag and Drop is not supported)
You have two Azure subscriptions named Sub1 and Sub2. Sub1 is in a management group named MG1. Sub2 is in a management group named MG2.
You have the resource groups shown in the following table.


You have the virtual machines 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.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



You have a Microsoft Entra tenant that is linked to 10 Azure subscriptions. You need to centrally monitor user activity across all the subscriptions.
What should you use?

  1. Azure Application Insights Profiler
  2. access reviews
  3. Activity log filters
  4. a Log Analytics workspace

Answer(s): D



DRAG DROP (Drag and Drop is not supported)
You have an Azure subscription that contains a virtual machine name VM1. VM1 has an operating system disk named Disk1 and a data disk named Disk2. You need to back up Disk2 by using Azure Backup.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



You have a subnet named Subnet1 that contains Azure virtual machines. A network security group (NSG) named NSG1 is associated to Subnet1. NSG1 only contains the default rules.
You need to create a rule in NSG1 to prevent the hosts on Subnet1 form connecting to the Azure portal. The hosts must be able to connect to other internet hosts.
To what should you set Destination in the rule?

  1. Application security group
  2. IP Addresses
  3. Service Tag
  4. Any

Answer(s): C



You have an Azure subscription named Subscription1 that contains an Azure Log Analytics workspace named Workspace1.
You need to view the error events from a table named Event. Which query should you run in Workspace1?

  1. search in (Event) "error"
  2. Event | where EventType is "error"
  3. select * from Event where EventType == "error"
  4. Get-Event Event | where {$_.EventType == "error"}

Answer(s): A



You have an Azure App Service web app named App1. You need to collect performance traces for App1.
What should you use?

  1. Azure Application Insights Profiler
  2. the Activity log
  3. the Deployment center
  4. the Diagnose and solve problems settings

Answer(s): A



You have an Azure subscription that contains the storage accounts shown in the following table.


You deploy a web app named App1 to the West US Azure region. You need to back up App1. The solution must minimize costs.
Which storage account should you use as the target for the backup?

  1. storage1
  2. storage2
  3. storage3
  4. storage4

Answer(s): B



Share your comments for Microsoft AZ-104 exam with other users:

A
AI Tutor Explanation
8/24/2026 9:10:14 AM

Question 2:
Answer: B — Add-AzVhd
Add-AzVhd uploads a local, generalized .vhd file to an Azure Storage account as a fixed VHD. This was the traditional process for making an on-premises Hyper-V image available in Azure.
Why the other options are not correct:

  • Add-AzVM creates or configures a virtual machine; it does not upload a VHD.
  • Add-AzImage creates an Azure VM image resource from an existing managed disk or snapshot. It does not upload the local VHD itself.
  • Add-AzImageDataDisk is used for adding data disks to an image, not for uploading the operating-system VHD.

In a complete older workflow, you would typically:
  1. Generalize the VM with Sysprep.
  2. Upload the VHD using Add-AzVhd.
  3. Create an Azure image from that uploaded VHD.

So the answer key’s B is correct for the upload step. Modern Azure deployments commonly use managed images, Azure Compute Gallery, or direct managed-disk upload workflows instead.

A
AI Tutor Explanation
8/24/2026 9:08:47 AM

Question 1:
Correct answer: A — Configure a SetupComplete.cmd file in %windir%\setup\scripts.
SetupComplete.cmd runs automatically near the end of Windows Setup, after the operating system has been installed. It is suitable for running initial configuration scripts on newly deployed VMs.
The batch file can invoke your PowerShell scripts, for example:

cmd 
powershell.exe -ExecutionPolicy Bypass -File C:\Scripts\ConfigureVM.ps1

Why the other options are less suitable:
  • Logon GPO: Runs when a user logs on, so it is not guaranteed to perform initial VM configuration before use.
  • Startup GPO: Runs during startup and may run repeatedly. It also depends on the VM being able to contact the domain.
  • Place scripts in a VHD: Merely storing scripts in a disk does not execute them automatically.

The answer key’s choice A is reasonable, but its explanation is misleading: it discusses the Azure Custom Script Extension, which applies to Azure VMs, while this question describes on-premises Hyper-V VMs.

A
AI Tutor Explanation
7/21/2026 5:23:40 PM

Question 366:
Question 366 asks how to apply an Application Security Group (ASG1) to VM1. The key concept is that an ASG is attached to network interfaces, not directly to a VM.

  • Correct answer: A. Associate NIC1 to ASG1
  • Why: An ASG is used to group NICs so NSG rules can target the group. To apply ASG1 to VM1, you must attach VM1’s NIC (NIC1) to ASG1. Merely modifying the ASG’s properties or modifying NSG1 does not attach the VM’s NIC to the ASG.
  • Why others are wrong:
- B: “Modify the properties of ASG1” does not attach it to the NIC. - C: “Modify the properties of NSG1” changes NSG settings, but not ASG associations.
Quick note:
  • After associating NIC1 with ASG1, you can reference ASG1 in NSG rules as a source or destination to control traffic for VM1’s NIC. Example commands (CLI) or portal steps involve adding the NIC to the ASG.

A
AI Tutor Explanation
7/20/2026 9:43:58 AM

Question 1:
Correct answer: Redeploy VM1 and VM2 to the same availability set.
Why:

  • A Basic Load Balancer’s backend pool must consist of VMs that are in the same Availability Set. If VM1 and VM2 are in different AVSets (or one isn’t in an AVSet), you can’t add both to LB1’s backend pool. Redeploying/moving both VMs into the same Availability Set resolves this.
  • If you needed cross-AVSet load balancing, you would use a Standard Load Balancer instead.

What to do next (high level):
  • Create or choose a single Availability Set.
  • Move VM1 and VM2 into that AVSet.
  • Add both VMs to LB1’s backend pool.

A
AI Tutor Explanation
7/18/2026 4:50:31 PM

Question 1:
Here’s a targeted explanation of Question 1.

  • The scenario: You’re deploying several new VMs on on-prem Hyper-V (Windows Server 2012 R2). You’ve got PowerShell scripts to configure VMs after deployment and want them to run automatically on each new VM.

  • Options brief:
- SetupComplete.cmd in %windir%\setup\scripts - A GPO to run as logon scripts - A GPO to run as startup scripts - Put the scripts on a new VHD
  • Why A is the best choice here:
- SetupComplete.cmd runs during Windows Setup (after the OS is installed and before the first logon). If you base new VMs on a generalized image, the script will execute automatically on first boot, ensuring the VM is configured right away without requiring domain login or user interaction. - GPO startup/logon scripts require the machine to be domain-joined and the GPO to be processed at boot or user logon, which adds timing and dependency considerations and may not run reliably during first boot from a generalized image. - Putting scripts on a VHD won’t automatically execute anything unless you explicitly configure a startup process, which is less reliable than using SetupComplete.cmd for first-boot customization.
  • Implementation tip:
- Place a file named SetupComplete.cmd in %WINDIR%\Setup\Scripts\ with your PowerShell commands (calling powershell.exe -NoProfile -ExecutionPolicy Bypass -File YourScript.ps1, for example). This file runs once when Windows Setup completes on each new VM created from your image.
Note: The explanation in the provided ans

A
AI Tutor Explanation
6/22/2026 5:20:17 AM

Question 1:
The best solution is A: Configure a SetupComplete.cmd batch file in the %windir%\setup\scripts directory.
Why this is correct:

  • SetupComplete.cmd runs automatically during Windows setup after OS deployment from a generalized image. When you create new VMs from that image, the script executes on first boot, applying your post-deployment configuration without requiring user interaction.
  • This approach is appropriate for on-prem Hyper-V environments where you’re building and deploying VMs from a prepared image.

Why the other options are less suitable:
  • B (logon scripts): Run only after a user logs on; not guaranteed for first boot or for machines without interactive logon.
  • C (startup scripts via GPO): Can run at startup, but requires domain policy application and may run multiple times or fail if the machine isn’t in a ready state.
  • D (place scripts in a new VHD): Not a scalable or automated method; requires manual steps and doesn’t ensure consistent execution on every new VM.

Note: The provided explanation in the bank references a Azure VM Custom Script Extension, which is not applicable to on-prem Hyper-V. That extension is for Azure VMs, not for local Hyper-V deployments.

A
Anonymous User
4/15/2026 4:42:07 AM

Question 528:

  • Correct answer: NSG flow logs for NSG1 (Option B)

  • Why:
- Traffic Analytics uses NSG flow logs to analyze traffic patterns. You must have NSG flow logs enabled for the NSGs you want to monitor. - An Azure Log Analytics workspace is also required to store and query the traffic data. - Network Watcher must be available in the subscription for traffic analytics to function.
  • What to configure (brief steps):
- Ensure Network Watcher is enabled in the East US region (for the subscription/region). - Enable NSG flow logs on NSG1. - Ensure a Log Analytics workspace exists and is accessible (read/write) so Traffic Analytics can store and query logs.
  • Why other options aren’t correct:
- “Diagnostic settings for VM1” or “Diagnostic settings for NSG1” alone don’t guarantee flow logs are captured and sent to Log Analytics, which Traffic Analytics relies on. - “Insights for VM1” is not how Traffic Analytics collects traffic data.

D
Don
4/11/2026 5:36:42 AM

Recommend using AI for Solutions rather the Answer(s) submitted here

A
Alex
5/24/2025 12:54:15 AM

Can I trust to this source?

AI Tutor 👋 I’m here to help!