Your Azure environment has a subnet containing two virtual machines: and . is associated with an Application Security Group (ASG) named . is associated with an ASG named .
The subnet is associated with a Network Security Group (NSG) that has the following inbound security rules:
* Rule 1: Priority , Source: , Destination: , Port: , Protocol: TCP, Action: Deny
* Rule 2: Priority , Source: Any, Destination: , Port: , Protocol: TCP, Action: Allow
A user attempts to establish a SQL database connection over TCP port from to . Which outcome will occur?
- The connection is denied because Rule 1 has a lower priority number, giving it higher precedence than Rule 2.Cevap
- BThe connection is allowed because Rule 2 has a higher priority number, giving it higher precedence than Rule 1.
- CThe connection is allowed because Rule 2 has 'Any' as the source, which overrides the specific ASG source in Rule 1.
- DThe connection is allowed because inbound traffic between virtual machines in the same subnet is always permitted by default rules.
Cevap
The connection is denied because Rule 1 has a lower priority number (100), which gives it higher precedence than Rule 2 (120).
The connection is blocked because when multiple security rules match a specific traffic flow, Azure processes them in order of priority (from the lowest numerical value to the highest). Since the rule stating that traffic from the web group to the database group is denied has a priority of 100, which is lower than the allow rule's priority of 120, it is evaluated first, and its Deny action is applied.
Adım Adım Çözüm
Anahtar Kavram
Azure NSG rule evaluation logic processes rules sequentially based on their priority numbers, where a lower number indicates higher precedence.
Tahmini Süre:45s