Skip to content

AZ-700 · Domain 1: Design and implement core networking infrastructure · 28% of the exam

Task 1.2: Design and implement name resolution

Name resolution inside a virtual network and its DNS settings, public and private DNS zones, virtual network links, and Azure DNS Private Resolver.

Study it

  • Name resolution in a virtual network, Azure DNS zones and virtual network links

    Lesson coming

  • Azure DNS Private Resolver and hybrid name resolution

    Lesson coming

Sample questions

Try each one before opening the answer. Every option is explained, with the Microsoft documentation page that proves it.

Question 1 · choose 1

VNet-A is peered with VNet-Hub. VNet-Hub uses the default (Azure-provided) DNS. VNet-A's DNS servers are set to 10.0.0.4 and 10.0.0.5, two DNS server VMs in VNet-Hub that forward every query to 168.63.129.16. The private DNS zone corp.internal has one virtual network link, to VNet-A. VMs in VNet-A get no answer for app.corp.internal. VNet-A must keep using the DNS server VMs. What should you do?

  1. ALink corp.internal to VNet-Hub as well
  2. BTurn on autoregistration for VNet-A
  3. CChange VNet-A's DNS servers to 168.63.129.16
  4. DAdd a second link from corp.internal to VNet-A
Show the answer and why
  • ALink corp.internal to VNet-Hub as well

    Correct

    The DNS server VMs forward from VNet-Hub, so Azure answers for that network, and a private zone answers only networks linked to it.

  • BTurn on autoregistration for VNet-A

    Incorrect

    Autoregistration creates records for VNet-A's own VMs; it doesn't change which network the forwarded queries come from.

  • CChange VNet-A's DNS servers to 168.63.129.16

    Incorrect

    VNet-A must keep using the DNS server VMs.

  • DAdd a second link from corp.internal to VNet-A

    Incorrect

    Only one link can exist between a private zone and a virtual network.

A DNS server in a virtual network that forwards to Azure's recursive resolver gets answers for its own network. The VNet-A link doesn't help the DNS server VMs, which forward from VNet-Hub; once corp.internal is linked to VNet-Hub, their forwarded queries get the private records.

Question 2 · choose 1

VNet-Ops is linked to the private DNS zone ops.contoso.internal with autoregistration enabled, and its VMs' records must stay in that zone. Another team wants VNet-Ops linked to its zone shared.contoso.internal as well, so that VNet-Ops VMs can resolve the names in it. Which configuration is supported?

  1. AA second autoregistration link, to shared.contoso.internal
  2. BNo link, because a network with a registration zone can't join another zone
  3. CA link to shared.contoso.internal once the networks of both teams are peered
  4. DA resolution-only link from shared.contoso.internal to VNet-Ops
Show the answer and why
  • AA second autoregistration link, to shared.contoso.internal

    Incorrect

    A virtual network can have only one registration zone; it already has ops.contoso.internal.

  • BNo link, because a network with a registration zone can't join another zone

    Incorrect

    A virtual network can have several resolution zones besides its one registration zone.

  • CA link to shared.contoso.internal once the networks of both teams are peered

    Incorrect

    A virtual network link connects the zone to the network directly; no peering is involved.

  • DA resolution-only link from shared.contoso.internal to VNet-Ops

    Correct

    A link without autoregistration makes VNet-Ops a resolution virtual network for that zone, and its VMs can query the zone's records.

From a virtual network's point of view, only one private zone can be its registration zone, but it can have several resolution zones. A private zone can have many registration and resolution networks.

Question 3 · choose 1

VNet-Hub hosts an Azure DNS Private Resolver. A DNS forwarding ruleset, associated with the resolver's outbound endpoint, forwards corp.contoso.com to the on-premises DNS servers and is linked to VNet-Hub only. VMs in VNet-Hub resolve corp.contoso.com, but VMs in the peered VNet-Spoke, which must keep Azure-provided DNS, don't. What should you do?

  1. AAdd a virtual network link from the ruleset to VNet-Spoke
  2. BSet VNet-Spoke's DNS server to the outbound endpoint's IP address
  3. CAdd an outbound endpoint to a VNet-Spoke workload subnet
  4. DEnable gateway transit on the hub-to-spoke peering
Show the answer and why
  • AAdd a virtual network link from the ruleset to VNet-Spoke

    Correct

    A linked virtual network uses the ruleset's forwarding rules, whether or not it peers with the resolver's network.

  • BSet VNet-Spoke's DNS server to the outbound endpoint's IP address

    Incorrect

    An outbound endpoint isn't provisioned with an IP address the way an inbound endpoint is.

  • CAdd an outbound endpoint to a VNet-Spoke workload subnet

    Incorrect

    An outbound endpoint needs a dedicated subnet with no other service running in it.

  • DEnable gateway transit on the hub-to-spoke peering

    Incorrect

    Gateway transit shares a VPN or ExpressRoute gateway; it doesn't apply a ruleset to the spoke.

DNS forwarding rules apply to the virtual networks that the ruleset is linked to. Linking the ruleset to VNet-Spoke lets its VMs, still on Azure-provided DNS, forward corp.contoso.com through the hub's outbound endpoint.

Question 4 · choose 1

The public Azure DNS zone contoso.com holds an A record set named * that points to 203.0.113.10 and an A record set named www that points to 203.0.113.20. A client queries www.contoso.com. What does Azure DNS return?

  1. A203.0.113.20, because www is a closer match than the wildcard
  2. BBoth addresses, because the two A record sets are merged
  3. C203.0.113.10, because wildcard record sets take precedence
  4. DNothing, since wildcard record sets can't be of type A
Show the answer and why
  • A203.0.113.20, because www is a closer match than the wildcard

    Correct

    A wildcard record set answers only when no closer non-wildcard record set matches the name.

  • BBoth addresses, because the two A record sets are merged

    Incorrect

    The record sets stay separate; the closer match answers on its own.

  • C203.0.113.10, because wildcard record sets take precedence

    Incorrect

    A non-wildcard record set with a closer match wins over the wildcard.

  • DNothing, since wildcard record sets can't be of type A

    Incorrect

    Wildcard record sets are supported for every record type except NS and SOA.

Azure DNS supports wildcard record sets, named * or with * as the left-most label, for every record type except NS and SOA. A wildcard answers any query with a matching name unless a non-wildcard record set is a closer match, so www.contoso.com gets the www record set's address.

Question 5 · choose 1

In an Azure DNS zone, you try to add a second record to the existing CNAME record set www, pointing at a backup host name. What happens?

  1. AThe record set holds both, and clients receive them in rotation
  2. BThe new record replaces the old one only when its TTL is shorter
  3. CIt can't be added, because a CNAME record set can contain only one record
  4. DIt's added, as long as both host names are in the same zone
Show the answer and why
  • AThe record set holds both, and clients receive them in rotation

    Incorrect

    DNS standards don't allow several CNAME records with the same name.

  • BThe new record replaces the old one only when its TTL is shorter

    Incorrect

    TTL doesn't decide how many records a set may hold.

  • CIt can't be added, because a CNAME record set can contain only one record

    Correct

    SOA and CNAME record sets are limited to a single record.

  • DIt's added, as long as both host names are in the same zone

    Incorrect

    A CNAME record set holds a single record wherever its target lives.

The DNS standards don't permit multiple records with the same name for the CNAME and SOA types, so in Azure DNS these record sets can contain only a single record.

Question 6 · choose 1

VNet-Temp is linked to three private DNS zones, one of them with autoregistration. You delete VNet-Temp. What happens to the links and the autoregistered records?

  1. AThe links stay and must be removed by hand before the zones can be deleted
  2. BThe links and the autoregistered records are deleted automatically
  3. CThe links are deleted, but the autoregistered records stay until their TTL expires
  4. DThe deletion fails until all three links are removed
Show the answer and why
  • AThe links stay and must be removed by hand before the zones can be deleted

    Incorrect

    Deleting a virtual network removes its links automatically.

  • BThe links and the autoregistered records are deleted automatically

    Correct

    When a virtual network is deleted, its links and its autoregistered records in all zones are deleted with it.

  • CThe links are deleted, but the autoregistered records stay until their TTL expires

    Incorrect

    The autoregistered records associated with the network are deleted too.

  • DThe deletion fails until all three links are removed

    Incorrect

    The links don't block deletion; they're deleted with the network.

Each private DNS zone has virtual network link child resources. When a virtual network is deleted, all its links and the autoregistered DNS records associated with it in the different zones are deleted automatically.

Practice domain 1 →Practice all domains →