You manage an Azure subscription that contains a Private DNS zone named corp.contoso.com and two virtual networks named VNet-Prod and VNet-Test. You need to configure Azure DNS to meet the following requirements:
- Virtual machines deployed in VNet-Prod must automatically register their DNS records in corp.contoso.com.
- Virtual machines deployed in VNet-Test must be able to resolve the names of virtual machines in VNet-Prod by using the corp.contoso.com zone.
- Virtual machines deployed in VNet-Test must not automatically register their DNS records in corp.contoso.com.
Which two actions should you perform? (Select two.)
- Create a virtual network link from corp.contoso.com to VNet-Prod and select the Enable auto-registration option.Answer
- Create a virtual network link from corp.contoso.com to VNet-Test and clear the Enable auto-registration option.Answer
- CCreate a virtual network link from corp.contoso.com to VNet-Test and select the Enable auto-registration option.
- DConfigure virtual network peering between VNet-Prod and VNet-Test.
Answer
Create a virtual network link from corp.contoso.com to VNet-Prod and select the Enable auto-registration option, and create a virtual network link from corp.contoso.com to VNet-Test and clear the Enable auto-registration option.
To satisfy the requirements, two virtual network links must be created. The link to VNet-Prod must have auto-registration enabled so that VMs in VNet-Prod are automatically registered in the DNS zone. The link to VNet-Test must have auto-registration disabled (cleared) so that VMs in VNet-Test can resolve names from the DNS zone (including the registered VMs from VNet-Prod) but do not register their own names.
Step-by-Step Solution
Key Concept
Azure Private DNS Zone Virtual Network Links and Auto-Registration