Skip to main content
  1. Public practice questions
  2. AZ-104 Practice Exams | Azure Administrator Associate
  3. AZ-104 Practice Exam 1

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)

  1. Associate separate NSGs with each VM NIC

  2. Deploy the subnet into a separate resource group

  3. Assign a network security group to the subnet

  4. Apply firewall rules only within the guest operating systems

Correct answers

  1. 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.