Question 33 — AZ-104 Practice Exam 11
You need to block inbound traffic from the internet while still allowing communication between VMs in the same VNet. Which rule configuration should you rely on? (Select one answer)
A firewall configured inside each VM
The default outbound NSG rules
The default inbound NSG rules
A custom rule with Action = Deny and Priority = 100
Correct answers
The default inbound NSG rules
Explanations
Correct
The default inbound NSG rules – Azure’s default inbound rules already deny all external traffic while permitting VNet and load balancer traffic.
Wrong
A custom rule with Action = Deny and Priority = 100 – This would work, but it’s unnecessary since defaults already enforce it.
The default outbound NSG rules – Outbound rules only control egress traffic, not inbound.
A firewall configured inside each VM – Possible, but not required when NSG defaults already handle this.