Question 1
Topic: Implement and manage virtual networking
Skill tested: Configures subnet-level network security rules for web traffic and management access.
A company hosts a public-facing application on virtual machines in a web subnet. Internet clients must reach the application over HTTPS, while administrators must manage the machines only from a separate, trusted subnet. The web subnet currently has no network security group, and the VMs have no public IP addresses. The company wants to block direct management connections from the internet without disrupting HTTPS access. Which configuration should you apply?
An NSG associated with the web subnet can permit inbound HTTPS while denying management protocols from internet sources. Azure NSGs include default inbound rules, including a deny-all-inbound rule, but an explicit allow for TCP 443 is needed to permit public HTTPS; the explicit management denies make the security intent clear and take precedence over broader applicable allows when priorities are set appropriately. Allowing SSH or RDP from the internet defeats the requirement, and route tables do not filter traffic by TCP port. Public IP addresses are unnecessary for these VMs and would expand exposure.