easymultiple choiceObjective-mapped

Exhibit

Hub VNet DNS server: 10.20.0.4
Spoke VNet DNS server setting: Azure-provided
Test from spoke VM:
  ping 10.20.0.4   Success
  nslookup app01.corp.local   Server failed to find app01.corp.local: NXDOMAIN
Hub and spoke are already peered.

Based on the exhibit, VM name resolution works for IP addresses but fails for internal hostnames. What should the administrator configure on the spoke VNet?

Question 1easymultiple choice
Full question →

Based on the exhibit, VM name resolution works for IP addresses but fails for internal hostnames. What should the administrator configure on the spoke VNet?

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

Keep Azure-provided DNS because the spoke can already reach the hub by IP.

Connectivity by IP does not mean name resolution is configured correctly. Azure-provided DNS cannot resolve the custom internal domain shown in the exhibit.

B

Best answer

Configure the spoke VNet to use 10.20.0.4 as a custom DNS server.

The exhibit shows the hub has a custom DNS server at 10.20.0.4, but the spoke is still using Azure-provided DNS. To resolve internal names such as app01.corp.local, the spoke VNet must point to the custom DNS server that knows that zone. After that change, VMs in the spoke can use the hub DNS service for name resolution.

C

Distractor review

Create a private endpoint for app01.corp.local in the spoke VNet.

A private endpoint is used for specific Azure PaaS services, not for general internal DNS hostnames or custom corporate zones. The issue in the exhibit is DNS configuration, not private service access.

D

Distractor review

Enable a NAT gateway on the spoke subnet.

A NAT gateway changes outbound internet source addresses. It does not provide hostname resolution or influence DNS lookups for internal names.

Common exam trap

Common exam trap: usable hosts are not the same as total addresses

Subnetting questions often tempt you into counting all addresses. In normal IPv4 subnets, the network and broadcast addresses are not usable host addresses.

Technical deep dive

How to think about this question

Subnetting questions test whether you can identify the network, broadcast address, usable range, mask and correct subnet. Slow down enough to calculate the block size correctly.

KKey Concepts to Remember

  • CIDR notation defines the prefix length.
  • Block size helps identify subnet boundaries.
  • Network and broadcast addresses are not usable hosts in normal IPv4 subnets.
  • The required host count determines the smallest suitable subnet.

TExam Day Tips

  • Write the block size before choosing the subnet.
  • Check whether the question asks for hosts, subnets or a specific address range.
  • Do not confuse /24, /25, /26 and /27 host counts.

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?

CIDR notation defines the prefix length.

What is the correct answer to this question?

The correct answer is: Configure the spoke VNet to use 10.20.0.4 as a custom DNS server. — The spoke VNet is still using Azure-provided DNS, which cannot resolve the corporate hostname in the exhibit. Because the hub already has a DNS server at 10.20.0.4, the spoke should be configured to use that server as its DNS source. Once the spoke VNet points to the custom DNS server, the VM can resolve app01.corp.local and other internal names consistently across the peered environment. Why others are wrong: Ping working only proves IP connectivity through peering. Private endpoints are for Azure services, not arbitrary internal hostnames, and NAT gateways only affect outbound internet traffic. None of those options correct the DNS server setting that is causing the name resolution failure.

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.