AZ-104 Deploy and Manage Azure Compute Practice Question
You deploy several Windows virtual machines and need to install Microsoft Antimalware on each VM without logging on manually. What should you use?
⚠ Common exam trap
Many exam-takers confuse network-level controls (NSGs, route tables) or storage management (lifecycle rules) with VM-level software deployment, overlooking that VM extensions are the dedicated Azure mechanism for post-deployment configuration and software installation.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A VM extension.
VM extensions are small applications that provide post-deployment configuration and automation tasks on Azure VMs. The Microsoft Antimalware extension can be deployed to multiple VMs at scale via Azure PowerShell, CLI, ARM templates, or policies, enabling silent installation without manual login.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
An NSG application security group.
Why it's wrong here
Application security groups within a network security group are a way to group VM NICs logically and then reference those groups in allow/deny rules, making security rules easier to maintain across distributed application tiers. However, an ASG is merely a metadata construct for the network security layer; it does not run processes, mount the guest file system, or provide a channel for command execution. For installing software, you need an in-guest automation mechanism, which ASGs do not offer.
When this WOULD be correct
When the question asks how to control inbound/outbound traffic to a group of VMs based on application workloads, an NSG application security group would be the correct answer.
- ✓
A VM extension.
Why this is correct
A VM extension is the Azure resource-managed mechanism that delivers post-deployment configuration and automation tasks directly inside a Windows guest OS, such as running scripts via Custom Script Extension or applying Desired State Configuration. When you deploy Windows VMs and need to install software or make server-level changes, a VM extension is a supported, idempotent option that Azure tracks in the VM model. Unlike network constructs, extensions execute in the guest and are the correct answer.
- ✗
A route table.
Why it's wrong here
A route table holds user-defined routes that change the next hop for subnet or NIC traffic—pointing it to a firewall, network virtual appliance, or to the internet—so it controls only Layer-3 path selection. The resource has no mechanism to execute guest OS commands; it lives in the Azure networking plane and is never surfaced inside Windows. As a result, route tables are irrelevant to installing software after VM deployment.
When this WOULD be correct
An exam question asks: 'You need to force all internet-bound traffic from a subnet to go through a network virtual appliance for inspection. What should you configure?' In that scenario, a route table with a user-defined route (UDR) pointing to the appliance would be correct.
- ✗
A blob lifecycle rule.
Why it's wrong here
Blob lifecycle rules are Azure Storage policies that tier or delete blobs automatically based on age, last modification, or blob index tags, which is useful for cost optimization and retention. These rules are evaluated by storage service infrastructure and have no agent or connectivity into the VM's OS, so they cannot launch an installer or modify guest configuration. Consequently, they manage data files, not Windows VM workloads.
When this WOULD be correct
A question asks how to automatically move blobs to cool storage after 30 days or delete them after 90 days to optimize costs.
Option-by-option analysis
Why each answer is right or wrong
Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The AZ-104 exam frequently reuses these exact scenarios with slightly different constraints.
✓A VM extension.Correct answer▾
Why this is correct
A VM extension is the Azure resource-managed mechanism that delivers post-deployment configuration and automation tasks directly inside a Windows guest OS, such as running scripts via Custom Script Extension or applying Desired State Configuration. When you deploy Windows VMs and need to install software or make server-level changes, a VM extension is a supported, idempotent option that Azure tracks in the VM model. Unlike network constructs, extensions execute in the guest and are the correct answer.
✗An NSG application security group.Wrong answer — click to see why▾
Why this is wrong here
An NSG application security group is used to group virtual machines for network security rule application, not for installing software or extensions on VMs.
★ When this WOULD be the correct answer
When the question asks how to control inbound/outbound traffic to a group of VMs based on application workloads, an NSG application security group would be the correct answer.
Why candidates choose this
Candidates may confuse network security with software deployment, thinking that an application security group can deploy applications.
✗A route table.Wrong answer — click to see why▾
Why this is wrong here
A route table controls network traffic routing between subnets and networks, not software installation on VMs. It cannot deploy or manage applications like Microsoft Antimalware.
★ When this WOULD be the correct answer
An exam question asks: 'You need to force all internet-bound traffic from a subnet to go through a network virtual appliance for inspection. What should you configure?' In that scenario, a route table with a user-defined route (UDR) pointing to the appliance would be correct.
Why candidates choose this
Candidates may confuse route tables with policy-based management tools, thinking they can enforce software installation via network-level controls, or they may not fully understand the scope of VM extensions.
✗A blob lifecycle rule.Wrong answer — click to see why▾
Why this is wrong here
Blob lifecycle rules manage the tiering or deletion of blob data in Azure Storage, not the installation of software on virtual machines.
★ When this WOULD be the correct answer
A question asks how to automatically move blobs to cool storage after 30 days or delete them after 90 days to optimize costs.
Why candidates choose this
Candidates may confuse 'lifecycle' with 'automation' and think a rule can trigger software installation, but lifecycle rules only apply to storage blobs, not VMs.
Analysis generated from the official AZ-104blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”
Go deeper
Related to this question
About these practice questions
One of 1,049 original AZ-104 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-104 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-104 exam.