mediummultiple choiceObjective-mapped

A spoke VM can connect to a hub VM by IP address after peering is configured, but it cannot resolve internal host names such as app01.corp.local. The hub has a DNS server at 10.50.1.4 that hosts those records. What should the administrator configure so the spoke VMs use that DNS server?

Question 1mediummultiple choice
Full question →

A spoke VM can connect to a hub VM by IP address after peering is configured, but it cannot resolve internal host names such as app01.corp.local. The hub has a DNS server at 10.50.1.4 that hosts those records. What should the administrator configure so the spoke VMs use that DNS server?

Answer choices

Why each option matters

Good practice is not just finding the correct option. The wrong answers often show the exact trap the exam wants you to fall into.

A

Distractor review

Add an NSG rule allowing UDP and TCP port 53 between the VNets.

Port 53 may be required for DNS traffic, but it does not tell the spoke where to send queries.

B

Best answer

Set the spoke VNet's custom DNS server to 10.50.1.4.

The spoke VNet must be told to use the DNS server that contains the internal zone records. By configuring 10.50.1.4 as the custom DNS server for the spoke VNet, new and existing VMs in that VNet can query the hub-based resolver for names such as app01.corp.local. Peering alone does not change DNS behavior, so the DNS server setting is the missing configuration.

C

Distractor review

Create a private endpoint for the hub DNS server.

Private endpoints are for Azure PaaS services, not for exposing a standard DNS server as a private service.

D

Distractor review

Enable remote gateways on the spoke peering.

Remote gateways are for routing through an existing gateway, not for name resolution between VNets.

Common exam trap

Common exam trap: answer the scenario, not the keyword

Many certification questions include familiar terms but test a specific constraint. Read the exact wording before choosing an answer that is generally true but wrong for this case.

Technical deep dive

How to think about this question

This question should be treated as a scenario, not a definition check. Identify the problem, the constraint and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.
  • Use explanations to understand the rule behind the answer.

TExam Day Tips

  • Underline the problem statement mentally.
  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Related practice questions

Related AZ-104 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

More questions from this exam

Keep practising from the same exam bank, or move into a focused topic page if this question exposed a weak area.

FAQ

Questions learners often ask

What does this AZ-104 question test?

Read the scenario before looking for a memorised answer.

What is the correct answer to this question?

The correct answer is: Set the spoke VNet's custom DNS server to 10.50.1.4. — Virtual network peering provides network reachability, but it does not automatically make a VNet use another VNet's DNS server. If internal names are hosted on the hub DNS server at 10.50.1.4, the spoke VNet must be configured to use that server as its custom DNS server. After the setting is applied, VMs in the spoke can resolve the internal records through the hub-based DNS infrastructure. Why others are wrong: Allowing port 53 may be necessary for DNS traffic to pass, but it does not point clients to the correct resolver. A private endpoint is not used for a self-hosted DNS server, and gateway-related peering settings affect routing, not name resolution. The issue is DNS configuration on the VNet itself.

What should I do if I get this AZ-104 question wrong?

Then try more questions from the same exam bank and focus on understanding why the wrong options are tempting.

Discussion

Loading comments…

Sign in to join the discussion.