An administrator configures a Network Security Group (NSG) associated with a subnet. The subnet contains two virtual machines: `VM-Web` (associated with Application Security Group `ASG-Web`) and `VM-DB` (associated with `ASG-DB`).
The NSG has the following inbound security rules:
| Rule | Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|---|
| Rule 1 | ASG-Web | ASG-DB | TCP | Allow | ||
| Rule 2 | Any | ASG-DB | TCP | Deny |
Which two of the following statements correctly describe how traffic is processed by these rules?
- TCP traffic on port from `VM-Web` to `VM-DB` is allowed.Cevap
- TCP traffic on port from virtual machines not associated with `ASG-Web` to `VM-DB` is denied.Cevap
- CTCP traffic on port from `VM-Web` to `VM-DB` is denied because Rule 2 has a higher priority number.
- DTCP traffic on port from all virtual machines to `VM-DB` is denied because Rule 2 is evaluated first.
Cevap
TCP traffic on port from `VM-Web` to `VM-DB` is allowed, and TCP traffic on port from virtual machines not associated with `ASG-Web` to `VM-DB` is denied.
TCP traffic on port from `VM-Web` to `VM-DB` is allowed because Rule 1 (priority ) is evaluated first and matches the source and destination ASGs. For virtual machines not in `ASG-Web`, Rule 1 does not match, meaning evaluation falls through to Rule 2 (priority ), which explicitly denies all inbound TCP traffic on port to `ASG-DB`.
Adım Adım Çözüm
Anahtar Kavram
Network Security Group rules are evaluated in order of priority (lowest number first). Once a rule matches, evaluation stops. Application Security Groups allow rules to be scoped to specific groups of VMs.