An organization is designing a secure network environment for a batch processing workload running on Azure Virtual Machines inside a dedicated subnet. The virtual machines must connect to an Azure SQL Database and an Azure Key Vault to retrieve data and connection secrets. The security team requires that all outbound internet traffic from the subnet be blocked, except for the traffic destined for these two Azure services. The solution must minimize administrative overhead and ensure that network rules do not require manual updates when Microsoft changes the IP addresses of these services.
Which configuration should you recommend for the Network Security Group (NSG) associated with the subnet?
- Create outbound security rules that allow traffic with the destination set to the SQL and AzureKeyVault Service Tags, and a lower-priority rule that denies all outbound traffic to the Internet Service Tag.Cevap
- BCreate outbound security rules that allow traffic to the specific public IP address ranges of the regional Azure SQL Database and Azure Key Vault endpoints, and implement an automated script to verify and update the ranges monthly.
- CAssociate a route table with custom User Defined Routes (UDRs) that override the default system routes to direct Azure SQL and Key Vault traffic through the default internet gateway.
- DConfigure an outbound NAT rule on a Standard Load Balancer that routes the traffic using Basic SKU public IP addresses assigned directly to the virtual machines.
Cevap
Create outbound security rules that allow traffic with the destination set to the SQL and AzureKeyVault Service Tags, and a lower-priority rule that denies all outbound traffic to the Internet Service Tag.
The correct configuration is to use built-in Service Tags (SQL and AzureKeyVault) in the NSG outbound rules, followed by a rule blocking the Internet Service Tag. This allows outbound access only to the specified services and delegates the management of service IP addresses to Azure, satisfying the constraint of minimizing administrative effort.
Adım Adım Çözüm
Anahtar Kavram
Azure Network Security Group Service Tags allow you to define network access controls for Azure services without maintaining individual IP addresses.