Soru

Zorluk: KolayConfigure Network Security Groups (NSGs) and Application Security Groups (ASGs)

To secure outbound communication, a security administrator associates a Network Security Group (NSG) named `NSG-Outbound` with a subnet. The NSG contains the following custom outbound security rules:

* `Deny-Internet-All`: Priority 180, Destination: `Internet`, Port: `Any`, Protocol: `Any`, Action: Deny
* `Allow-Web-Outbound`: Priority 240, Destination: `Internet`, Port: 443, Protocol: TCP, Action: Allow

A virtual machine residing in the subnet attempts to connect to an external web service over port 443.

What is the status of this outbound connection attempt?

  1. The connection is blocked since the NSG evaluates the rule with priority 180 first, which denies the traffic.Cevap
  2. B
    The connection is allowed since the NSG processes rule 240 before rule 180.
  3. C
    The connection is allowed since specific destination port rules override general deny rules.
  4. D
    The connection is blocked since default Azure security rules prevent all custom outbound traffic.

Cevap

The connection is blocked since the NSG evaluates the rule with priority 180 first, which denies the traffic.
The connection is blocked since the NSG evaluates the rule with priority 180 first, which denies the traffic. Azure NSGs process rules in order of priority (lowest numbers first). Once a match is found, processing stops. Because 180 is lower than 240, the deny rule takes precedence.

Adım Adım Çözüm

1
Identify the destination and port of the traffic attempt.
The traffic is outbound to the Internet on TCP port 443.
This helps determine which NSG rules match the traffic criteria.
2
Find all matching outbound NSG rules and identify their priority values.
Two rules match: `Deny-Internet-All` (Priority 180) and `Allow-Web-Outbound` (Priority 240).
Rules that match the traffic's source, destination, port, and protocol must be compared.
3
Apply the rule with the lowest priority number (highest precedence).
The rule with priority 180 is applied first, which denies the traffic. The connection is blocked.
Azure NSGs process rules sequentially based on priority numbers, stopping at the first match.

Anahtar Kavram

Azure Network Security Group (NSG) rule evaluation order
Tahmini Süre:45s
Bu soruyu puanla