Start here! Get your feet wet with the Microsoft cloud and begin your journey to earning your Microsoft Certified: Azure Fundamentals certification!
Prepare and test your skills

Prepare and test your skills

Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
An organization is deploying a new virtual machine (VM) in Azure to host an internal accounting application. The administrator needs to ensure that only authorized incoming traffic on specific ports is allowed to reach the VM, while all other unauthorized inbound network connections are blocked.
Which Azure networking component should the administrator configure to filter traffic based on source IP address, port, and protocol?
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
An Azure Network Security Group (NSG) is a core security component used to filter network traffic to and from Azure resources within an Azure Virtual Network (VNet). An NSG contains a list of security rules that allow or deny inbound and outbound network traffic based on several criteria: source and destination IP addresses, source and destination port ranges, and protocol (such as TCP or UDP).
In this scenario, the organization needs to restrict access so that only traffic over authorized ports reaches the virtual machine hosting the accounting application. An NSG addresses this requirement by allowing administrators to define custom inbound security rules with specific priorities that permit designated traffic (e.g., HTTPS on port 443 or specific management ports) while relying on default or custom deny rules to block all other incoming traffic.
Network Security Groups provide an integrated, native, and cost-effective mechanism for layer-4 network access control on Azure VMs. Unlike routing or addressing services, NSGs are specifically designed to serve as a distributed firewall boundary around subnets and virtual machine network interfaces.