15 Azure Cloud questions to verify that you understand Azure Network Security Groups

Azure Network Security Groups play a crucial role in fortifying your virtual network and enhancing the security of your cloud-based application. Evaluate your understanding of these key components now.

QUESTION 1:

What are the default inbound rules for Azure Network Security Group?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

AllowVNetInBound
ALLOWVNETINBOUND
PrioritySourceSource portsDestinationDestination portsProtocolAccess
65000VirtualNetwork0-65535VirtualNetwork0-65535AnyAllow
AllowAzureLoadBalancerInBound
ALLOWAZURELOADBALANCERINBOUND
PrioritySourceSource portsDestinationDestination portsProtocolAccess
65001AzureLoadBalancer0-655350.0.0.0/00-65535AnyAllow
DenyAllInbound
DENYALLINBOUND
PrioritySourceSource portsDestinationDestination portsProtocolAccess
655000.0.0.0/00-655350.0.0.0/00-65535AnyDeny
QUESTION 2:

What are the default outbound rules for Azure Network Security Group?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

AllowVnetOutBound
PrioritySourceSource portsDestinationDestination portsProtocolAccess
65000VirtualNetwork0-65535VirtualNetwork0-65535AnyAllow
AllowInternetOutBound
PrioritySourceSource portsDestinationDestination portsProtocolAccess
650010.0.0.0/00-65535Internet0-65535AnyAllow
DenyAllOutBound
PrioritySourceSource portsDestinationDestination portsProtocolAccess
655000.0.0.0/00-655350.0.0.0/00-65535AnyDeny
QUESTION 3:

What are the settings that you need to set for each Azure Network Security Group (NSG) rule?

Experience Level: Junior
Tags: Azure CloudAzure Network Security Groups
Question category: Azure Cloud(1320)NEW

Answer

  • Name
  • Priority - 1 (highest) ... 65536 (lowest)
  • Source
  • Source ports
  • Destination
  • Destination ports
  • Protocol
  • Access - Allow/Deny
QUESTION 4:

What are the protocol values that can be set for Azure Network Security Group (NSG) rule?

Experience Level: Junior
Tags: Azure CloudAzure Network Security Groups
Question category: Azure Cloud(1320)NEW

Answer

  • Any
  • TCP
  • UDP
  • ICMP
QUESTION 5:

What are the Source and Destination values that we can set for Azure Network Security Group (NSG)?

Experience Level: Junior
Tags: Azure CloudAzure Network Security Groups
Question category: Azure Cloud(1320)NEW

Answer

  • Any
  • IP Address
  • Service Tag
  • Application security group
QUESTION 6:

How many IP addresses can be defined in a Azure Network Security Group (NSG) rule?

Experience Level: Junior
Tags: Azure CloudAzure Network Security Groups
Question category: Azure Cloud(1320)NEW

Answer

Each rule cna have Source and Destination fields defined.

You can put one or more IP addresses into each field. Either comma separated list of IPs or CIDR ranges can be provided.

QUESTION 7:

Can you set multiple service tags or Application security groups (ASGs) to either Source or Destination of Azure Network Security Group (NSG)?

Experience Level: Junior
Tags: Azure CloudAzure Network Security Groups
Question category: Azure Cloud(1320)NEW

Answer

No, you can't.

Only one service tag or Application security group can be set in Source/Destination.

QUESTION 8:

You configured Azure NSG to allow a incoming traffic flow via port 443, but it doesn't seem to work correctly. How can you analyze and fix the issue?

Experience Level: Senior
Tags: Azure CloudAzure Network Security GroupsAzure Network WatcherAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

Use IP flow verify in Azure Network Watcher. IP flow verify checks if a packet is allowed or denied to or from a virtual machine. The information consists of direction, protocol, local IP, remote IP, local port, and remote port. If the packet is denied by a security group, the name of the rule that denied the packet is returned. While any source or destination IP can be chosen,
IP flow verify helps administrators quickly diagnose connectivity issues from or to the internet and from or to the on-premises environment.
QUESTION 9:

You have deployed a VM with Windows OS to Azure VNET. You want to connect to it so you contigure your NSG to allow 3389 port using UDP protocol. Will the connection work?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Virtual MachinesAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

Not out of the box. By default RDP runs on port 3389 using TCP protocol. To use UDP you would need to change the VM settings.
QUESTION 10:

How can you monitor source IPs of traffic that comes from on-premises network to basic internal load balancer in Azure?

Experience Level: Junior
Tags: Azure CloudAzure Log Analytics WorkspaceAzure Network Security GroupsAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

The basic load balancer is in a virtual network (VNET). 

  • Add a network security group (NSG) and configure the security rules that allow the incoming traffic.
  • Create a Azure Log Analytics Workspace.
  • Configure Diagnostic settings to export logs and metrics to the Log Analytics Workspace.
You can also use NSG flow logs that use Azure Log Analytics Workspace for storing logs as well.
QUESTION 11:

What steps do you need to execute to enable NSG flow logging?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Network WatcherAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

Network security group (NSG) flow logs is a feature of Azure Network Watcher that allows you to log information about IP traffic flowing through an NSG. Flow data is sent to Azure Storage accounts from where you can access it as well as export it to any visualization tool, SIEM, or IDS of your choice.

  • Create a VM with a network security group
  • Enable Network Watcher and register the Microsoft.Insights provider
  • Enable a traffic flow log for an NSG, using Network Watcher's NSG flow log capability
  • Download logged data
  • View logged data
QUESTION 12:

How do you ensure that only connections from the Internet to VNET1\subnet0 are allowed over TCP port 1234?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Virtual Networks
Question category: Azure Cloud(1320)NEW

Answer

  • Configure NSG rule, set source to Internet, target to any.
  • Assign the NSG to the subnet0
  • Set the Destination port to 1234, Protocol to TPC
QUESTION 13:

You have VMs in 3 subnets of the same Azure VNET. How many network security groups (NSGs) do you need in order to allow access from Internet to all the VMs?

Experience Level: Senior
Tags: Azure CloudAzure Network Security GroupsAzure Virtual Machines
Question category: Azure Cloud(1320)NEW

Answer

You need one NSG that can be assigned to all subnets.
QUESTION 14:

What will happen with the approved JIT access request to Azure virtual machine (VM) if you delete the security rule in the network security group (NSG)?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Virtual Machines
Question category: Azure Cloud(1320)NEW

Answer

The access request will be revoked.

The deleted NSG rule won't be recreated automatically.

QUESTION 15:

What will you do to ensure that the NetworkSecurityGroupRuleCounter log is stored to Azure Storage account and kept for 30 days?

Experience Level: Junior
Tags: Azure CloudAzure Network Security GroupsAzure Storage
Question category: Azure Cloud(1320)NEW

Answer

  • Sign in to Azure Portal
  • Find your Network Security Group
  • Go to Diagnostic Settings
  • Add diagnostic setting link
  • Fill in Diagnostic settings name field
  • In the Log section, select NetworkSecurityGroupRuleCounter
  • In the Destination details section, select Archive to a storage account
  • In the Storage account field, select the storage account
  • In the Retention (days) field, enter 30
  • Click the Save button

Blog

15 Azure Cloud questions to verify that you understand Azure Network Security Groups

Azure Network Security Groups play a crucial role in fortifying your virtual network and enhancing the security of your cloud-based application. Evaluate your understanding of these key components now.

Read article

25 Adobe XD questions that will help you to nail your job interview

Presenting a thorough list of Adobe XD job interview questions, accompanied by their answers. This resource is expertly designed to empower you to excel in job interviews, pinpoint knowledge gaps, and uncover fresh insights about Adobe XD. Recognized as a potent tool, Adobe XD streamlines the creation of prototypes and the design of user experiences.

Read article

25 Flexbox questions that will help you to nail your job interview

Introducing an all-inclusive list of Flexbox job interview questions, complete with answers. This resource is meticulously curated to aid you in acing job interviews, spotting areas of knowledge deficit, and discovering new facets of Flexbox. An innovative layout mode introduced in CSS3, Flexbox was designed to supersede less efficient float and table layouts. It enables the automatic arrangement of responsive elements within a container, adapting fluidly to different screen sizes.

Read article

25 Git questions that will help you to nail your job interview

Presenting an extensive list of Git job interview questions, complete with answers. This resource is designed not only to help you ace your job interview but also to identify any existing knowledge gaps and provide an opportunity to learn new aspects about Git. As a modern distributed version control system, Git holds the position as the most widely used system in today's tech landscape.

Read article

25 Kubernetes questions that will help you get certified and become more efficient with K8s

Mastering Kubernetes can be a complex task, but certain tips and tricks can expedite your journey, instilling you with confidence when it comes to maintaining Kubernetes clusters. This curated set of questions is designed to elevate your skills to the next level. If you're aiming for certification, going through this list is a must.

Read article