Question 33 — AZ-104 Practice Exam 1
Your company requires tight control over which computers can access application servers in Azure. You want to enforce traffic restrictions for all virtual machines within a subnet, ensuring unwanted connections are blocked. What should you do? (Select one answer)
Associate separate NSGs with each VM NIC
Deploy the subnet into a separate resource group
Assign a network security group to the subnet
Apply firewall rules only within the guest operating systems
Correct answers
Assign a network security group to the subnet
Explanations
Correct
Assign a network security group to the subnet – This enforces rules across all machines in the subnet at once.
Wrong
Apply firewall rules only within the guest operating systems – Provides limited host-level protection, not subnet-wide.
Associate separate NSGs with each VM NIC – Works per machine, but is unnecessary when a subnet-level NSG can cover all.
Deploy the subnet into a separate resource group – Resource groups organize resources but do not control traffic.