0
0
Azurecloud~5 mins

Network Security Groups (NSG) in Azure - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a Network Security Group (NSG) in Azure?
An NSG is like a security guard for your cloud network. It controls which traffic can enter or leave your virtual machines by using rules that allow or block traffic based on source, destination, port, and protocol.
Click to reveal answer
beginner
How do NSG rules work in Azure?
NSG rules check network traffic against a list of rules in order. Each rule either allows or denies traffic based on conditions like IP address, port, and protocol. The first matching rule decides if the traffic is allowed or blocked.
Click to reveal answer
beginner
What are the two main types of NSG rules?
Inbound rules control traffic coming into a resource. Outbound rules control traffic leaving a resource. Both help protect your cloud resources by filtering traffic.
Click to reveal answer
intermediate
Where can you apply an NSG in Azure?
You can apply an NSG to a subnet or directly to a network interface of a virtual machine. This lets you control traffic at different levels in your network.
Click to reveal answer
intermediate
Why is it important to have a default deny rule in NSGs?
A default deny rule blocks all traffic that does not match any allow rule. This ensures only traffic you explicitly allow can reach your resources, improving security by preventing unwanted access.
Click to reveal answer
What does an NSG primarily control in Azure?
AUser login permissions
BStorage account access
CNetwork traffic to and from resources
DVirtual machine size
Which of the following is NOT a condition you can use in an NSG rule?
AUser password
BDestination port
CSource IP address
DProtocol type
Where can you apply an NSG in Azure?
AOn a storage account
BOn a subnet or network interface
COn a database
DOn a virtual machine's operating system
What happens if no NSG rule matches the network traffic?
ATraffic is denied by default
BTraffic is redirected
CTraffic is logged but allowed
DTraffic is allowed by default
Which type of NSG rule controls traffic leaving a resource?
AFirewall rule
BInbound rule
CAccess rule
DOutbound rule
Explain how Network Security Groups (NSGs) help protect Azure resources.
Think about how a security guard checks who can enter or leave a building.
You got /4 concepts.
    Describe the difference between inbound and outbound NSG rules.
    Consider traffic coming to and leaving from your house.
    You got /4 concepts.