mediummulti selectObjective-mapped

A web tier and API tier run in different subnets. The API subnet NSG currently has Deny-8443 from Any at priority 200 and Allow-8443-WebToApi from ASG-Web to ASG-Api at priority 300. Web requests on TCP 8443 are failing. Which two changes should the administrator make? Select two.

Question 1mediummulti select
Full question →

A web tier and API tier run in different subnets. The API subnet NSG currently has Deny-8443 from Any at priority 200 and Allow-8443-WebToApi from ASG-Web to ASG-Api at priority 300. Web requests on TCP 8443 are failing. Which two changes should the administrator make? Select two.

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

Move the allow rule to a higher priority number than 200.

A higher priority number makes the allow rule evaluate later, so the deny rule would still win.

B

Best answer

Move the allow rule to a lower priority number than 200.

NSG rules are processed from lowest number to highest number, so the allow must be evaluated first.

C

Best answer

Ensure the web NICs are added to ASG-Web and the API NICs are added to ASG-Api.

ASG-based rules only match when the network interfaces are members of the referenced application groups.

D

Distractor review

Change the rule protocol from TCP to Any.

Protocol flexibility will not help if the deny rule is still evaluated before the allow rule.

E

Distractor review

Attach a route table to the API subnet to override the deny behavior.

Route tables affect next-hop selection, not security filtering performed by the NSG.

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: Move the allow rule to a lower priority number than 200. — The deny rule at priority 200 is evaluated before the allow rule at 300, so the traffic is blocked regardless of the ASG-based permit. To fix the problem, the allow rule must have a lower priority number than the deny rule, and the source and destination NICs must actually belong to the referenced ASGs. Together, these changes make the intended 8443 flow match the allow rule first. Why others are wrong: Raising the allow rule priority makes it even less likely to match before the deny. Switching the protocol to Any does not solve priority or membership issues. Route tables do not bypass NSG enforcement, because NSGs filter traffic independently of routing decisions.

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.