You need to allow external HTTP traffic (port ) from the internet to a web server VM (`VM-Web`) and allow database traffic (port ) from `VM-Web` to a database server VM (`VM-DB`). You associate `VM-Web` with an Application Security Group named `ASG-Web`, and `VM-DB` with an Application Security Group named `ASG-DB`. Which of the following inbound security rules must be added to the Network Security Group (NSG) to allow this traffic while maintaining the principle of least privilege? (Select two).
- An inbound rule with Source: `Internet`, Destination: `ASG-Web`, Destination Port: , and Action: `Allow`Answer
- An inbound rule with Source: `ASG-Web`, Destination: `ASG-DB`, Destination Port: , and Action: `Allow`Answer
- CAn inbound rule with Source: `ASG-DB`, Destination: `ASG-Web`, Destination Port: , and Action: `Allow`
- DAn inbound rule with Source: `ASG-Web`, Destination: `Internet`, Destination Port: , and Action: `Allow`
Answer
An inbound rule with Source: Internet, Destination: ASG-Web, Destination Port: 80, and Action: Allow; and An inbound rule with Source: ASG-Web, Destination: ASG-DB, Destination Port: 1433, and Action: Allow
To establish connectivity, we need to allow inbound HTTP traffic on port from the internet to the web servers (associated with the web Application Security Group) and allow SQL Server traffic on port from the web servers to the database servers (associated with the database Application Security Group). Thus, the correct rules specify the internet as the source for the HTTP rule and the web Application Security Group as the source for the database rule.
Step-by-Step Solution
Key Concept
Configuring inbound NSG rules targeting Application Security Groups (ASGs) to control multi-tier traffic.