Pass Your Microsoft AZ-104 Exam Easy!

Microsoft AZ-104 Exam Questions & Answers, Accurate & Verified By IT Experts

Instant Download, Free Fast Updates, 99.6% Pass Rate

AZ-104 Premium Bundle

$79.99

Microsoft AZ-104 Premium Bundle

AZ-104 Premium File: 606 Questions & Answers

Last Update: Sep 24, 2026

AZ-104 Training Course: 132 Video Lectures

AZ-104 PDF Study Guide: 458 Pages

AZ-104 Bundle gives you unlimited access to "AZ-104" files. However, this does not replace the need for a .vce exam simulator. To download VCE exam simulator click here
Microsoft AZ-104 Premium Bundle
Microsoft AZ-104 Premium Bundle

AZ-104 Premium File: 606 Questions & Answers

Last Update: Sep 24, 2026

AZ-104 Training Course: 132 Video Lectures

AZ-104 PDF Study Guide: 458 Pages

$79.99

AZ-104 Bundle gives you unlimited access to "AZ-104" files. However, this does not replace the need for a .vce exam simulator. To download your .vce exam simulator click here

Microsoft AZ-104 Practice Test 38

Question 370

Both subnet and NIC NSGs apply to a VM. Which effective protection must a new rule account for?

  1. The lower-priority-number deny rule wins when its tuple matches
  2. Correct the NIC's ASG association and verify rule scope
  3. Evaluate both applied NSGs and their combined allow/deny outcome
  4. Read only the NIC-level effective security rules and treat a permit there as overriding a deny in the attached subnet NSG.

Explanation

Correct Answer

C:

Traffic must satisfy relevant security checks at each applicable network boundary.

Incorrect Answers

A:

Azure NSGs evaluate matching rules in ascending priority; a broad later allow cannot override an earlier deny. The stated constraint is different: traffic must satisfy relevant security checks at each applicable network boundary.

B:

NSGs match eligible NIC group membership, not merely a similarly named application tag. The stated constraint is different: traffic must satisfy relevant security checks at each applicable network boundary.

D:

When both a subnet NSG and a network-interface NSG apply, a connection must pass the applicable rules at both scopes for its direction. An allow on the NIC does not erase a matching deny on the subnet, and the reverse can also fail. The scenario explicitly says both NSGs are attached, so inspecting only one level gives an incomplete access decision. Evaluate the same source/destination address, protocol, and port tuple through both effective rule sets before adding a rule or declaring the VM protected.

Question 371

A lab NSG permits Any source to Any destination on Any port, contrary to the app's limited needs. What should replace it?

  1. The lower-priority-number deny rule wins when its tuple matches
  2. Match the correct destination port and leave client source port appropriately broad
  3. Use narrowly scoped source, destination, protocol and port rules
  4. Review outbound NSG rules and the flow's direction-specific tuple

Explanation

Correct Answer

C:

Use narrowly scoped source, destination, protocol and port rules. Broad Any-to-Any rules violate least privilege and expand reachability.

Incorrect Answers

A:

NSG rule priority affects matching, but the stated risk is a broad Any-to-Any allow rule. Replacing it requires explicit least-privilege source, destination and port restrictions; relying on an unrelated deny is not equivalent.

B:

Client source ports are usually ephemeral; confusing source/destination fields prevents intended connections. The stated constraint is different: broad Any-to-Any rules violate least privilege and expand reachability.

D:

Inbound allow is not general permission for new outbound connections. The stated constraint is different: broad Any-to-Any rules violate least privilege and expand reachability.

Question 372

A public frontend should contact only one backend service on TCP 8443. What NSG rule is appropriate?

  1. The lower-priority-number deny rule wins when its tuple matches
  2. Correct source/destination addresses, ports and protocol for actual packet direction
  3. Trace effective subnet and NIC security rules for the same five-tuple
  4. Review outbound NSG rules and the flow's direction-specific tuple
  5. Allow the frontend ASG or subnet to the backend on required TCP 8443 only

Explanation

Correct Answer

E:

An allow rule scoped from the approved frontend ASG or subnet to the backend on TCP 8443 matches the explicit least-privilege requirement.

Incorrect Answers

A:

NSG priority determines precedence after a rule is defined; it does not specify the requested limited destination and TCP port.

B:

Five-tuple accuracy is necessary, but this general check does not itself state an allow rule restricted to the named frontend and backend.

C:

Checking effective NIC and subnet rules can diagnose denials, but does not create the requested narrowly scoped access rule.

D:

Outbound rules may also be relevant to the flow, yet reviewing them does not express the required restricted backend allow.

Question 373

A team uses NSG rules but wants to block HTTP requests containing malicious URLs. Which service layer is needed?

  1. The lower-priority-number deny rule wins when its tuple matches
  2. Use application security groups in supported NSG source/destination rules
  3. Use a supported WAF or application-layer firewall for HTTP inspection
  4. Review outbound NSG rules and the flow's direction-specific tuple

Explanation

Correct Answer

C:

NSGs mainly filter network tuples, not request paths and application payload patterns.

Incorrect Answers

A:

Azure NSGs evaluate matching rules in ascending priority; a broad later allow cannot override an earlier deny. The stated constraint is different: nSGs mainly filter network tuples, not request paths and application payload patterns.

B:

ASGs group eligible NICs for rule matching instead of static address lists. The stated constraint is different: nSGs mainly filter network tuples, not request paths and application payload patterns.

D:

Inbound allow is not general permission for new outbound connections. The stated constraint is different: nSGs mainly filter network tuples, not request paths and application payload patterns.

Question 374

An NSG deny appears at the NIC even though the subnet allow exists. How should the packet path be reviewed (Select TWO distinct actions.)

  1. Delete the subnet NSG without inspecting the NIC NSG
  2. Disable NSG logging before troubleshooting the denied connection
  3. Assume an allow at the subnet automatically overrides a deny on the NIC
  4. Inspect the effective subnet NSG rules for the blocked flow
  5. Inspect the effective network-interface NSG rules for the same flow
  6. Raise VM vCPU quota to resolve a denied TCP port

Explanation

Correct Answers

D:

Subnet NSG filtering is one separate point in the VM packet path.

E:

A NIC NSG can block traffic even after the subnet-level policy permits it.

Incorrect Answers

A:

'Delete the subnet NSG without inspecting the NIC NSG' fails the stated scenario where an NSG deny appears at the NIC even though the subnet allow exists because the second applicable NSG can still deny the same flow, so this is not diagnostic. The required multi-part resolution instead needs a subnet allow cannot force a separately applicable NIC-level deny to permit traffic, which 'Delete the subnet NSG without inspecting the NIC NSG' does not establish. Do not count 'Delete the subnet NSG without inspecting the NIC NSG' among the mandatory actions; confirm the specific service's effective permissions, network path, or deployment result before treating the design as complete.

B:

'Disable NSG logging before troubleshooting the denied connection' fails the stated scenario where an NSG deny appears at the NIC even though the subnet allow exists because removing security evidence neither permits the flow nor identifies the rule blocking it. The required multi-part resolution instead needs a subnet allow cannot force a separately applicable NIC-level deny to permit traffic, which 'Disable NSG logging before troubleshooting the denied connection' does not establish. Do not count 'Disable NSG logging before troubleshooting the denied connection' among the mandatory actions; confirm the specific service's effective permissions, network path, or deployment result before treating the design as complete.

C:

'Assume an allow at the subnet automatically overrides a deny on the NIC' fails the stated scenario where an NSG deny appears at the NIC even though the subnet allow exists because traffic must satisfy both relevant security boundaries where both NSGs apply. The required multi-part resolution instead needs a subnet allow cannot force a separately applicable NIC-level deny to permit traffic, which 'Assume an allow at the subnet automatically overrides a deny on the NIC' does not establish. Do not count 'Assume an allow at the subnet automatically overrides a deny on the NIC' among the mandatory actions; confirm the specific service's effective permissions, network path, or deployment result before treating the design as complete.

F:

'Raise VM vCPU quota to resolve a denied TCP port' fails the stated scenario where an NSG deny appears at the NIC even though the subnet allow exists because compute quota cannot alter NSG packet filtering decisions. The required multi-part resolution instead needs a subnet allow cannot force a separately applicable NIC-level deny to permit traffic, which 'Raise VM vCPU quota to resolve a denied TCP port' does not establish. Do not count 'Raise VM vCPU quota to resolve a denied TCP port' among the mandatory actions; confirm the specific service's effective permissions, network path, or deployment result before treating the design as complete.

Question 375

A new custom NSG allow should supersede a broad default deny. What matters?

  1. Create an allow rule with the correct ports but a priority number evaluated after the matching deny rule
  2. Use a valid custom rule with higher evaluation priority and the correct tuple
  3. The lower-priority-number deny rule wins when its tuple matches
  4. Trace effective subnet and NIC security rules for the same five-tuple
  5. Compare only the rule priority values while ignoring whether the rule source, destination and ports match the packet

Explanation

Correct Answer

B:

Azure network security groups evaluate matching rules according to priority, with a lower numeric priority evaluated before higher numbers and default rules applied after relevant custom rules. A custom allow therefore needs an appropriate priority AND source, destination, protocol, port and direction that match the actual packet. An allow rule placed after a matching deny will not override the deny. Likewise, a high-priority allow with an incorrect tuple is never selected for the traffic. Check effective subnet and NIC rules for the actual flow and verify that the intended allow precedes any applicable deny without unnecessarily opening unrelated traffic.

Incorrect Answers

A:

Azure NSG rules use their priority and matching five-tuple to decide which rule applies first. A custom allow that matches the requested flow but is evaluated after a deny will not permit the traffic. The administrator must choose an appropriate higher-priority rule and verify source, destination, protocol and ports. Correct match conditions alone cannot override a deny that is processed first.

C:

Azure NSGs evaluate matching rules in ascending priority; a broad later allow cannot override an earlier deny. The stated constraint is different: built-in default rules apply only after more specific custom rules that match first.

D:

A subnet allow cannot force a separately applicable NIC-level deny to permit traffic. The stated constraint is different: built-in default rules apply only after more specific custom rules that match first.

E:

An NSG rule can have a numerically higher evaluation priority yet be irrelevant if its tuple does not match the actual flow. The requirement is an allow that supersedes a broad deny for the intended traffic, which needs both appropriate priority and correct match conditions. Looking only at the numbers can misdiagnose the reason packets are blocked and risks creating a rule with unintended access.

Question 376

An Azure NSG has an inbound Allow rule for TCP 443 from `10.0.0.0/24` with priority 250 and a broad inbound Deny for TCP 443 from any source with priority 300. A packet arrives from `10.0.0.5` on TCP 443. Which evaluation determines the result?

  1. Change the packet source IP to a different subnet to decide which rule previously matched.
  2. Always prefer Deny over Allow regardless of rule priority when both rules could match.
  3. Match the packet tuple and apply the numerically lowest-priority-number matching rule: Allow 250 wins for this packet.
  4. Create a new Allow at priority 400 and expect it to override both earlier matching rules.

Explanation

Correct Answer

C:

Azure NSGs examine applicable inbound rules in ascending order of priority number and stop when a rule matches the traffic five-tuple, including source and destination, protocol and ports. The packet source 10.0.0.5 belongs to the Allow rule's 10.0.0.0/24 source prefix, and its TCP 443 destination also matches. That Allow at priority 250 is evaluated before the broader Deny at 300 and therefore allows the packet through this NSG. Other NSGs, routes and application listeners may still constrain the end-to-end connection, but they do not change which of these two NSG rules wins.

Incorrect Answers

A:

Changing a packet or rule condition would test a different connection rather than evaluate the given traffic. The current source `10.0.0.5` lies within `10.0.0.0/24`, and TCP 443 matches both listed inbound rules. Azure NSGs process applicable rules by ascending numerical priority until the first match. For this specified packet, Allow 250 is encountered before Deny 300. Altering the input does not answer which existing rule determines the stated request.

B:

NSG rules are not evaluated by a blanket principle that Deny always overrides Allow. The decisive facts are the traffic five-tuple and numeric priority ordering, where a smaller number has higher precedence. In this case the packet matches an Allow at 250 before reaching the Deny at 300. Treating Deny as absolute would incorrectly predict a block; it would not describe the Azure NSG first-matching-rule evaluation model for these exact rules.

D:

Priority number 400 is evaluated after both the existing Allow 250 and Deny 300, not before them. Adding a later rule cannot override a first-match decision that has already been made for a packet matching an earlier rule. The existing Allow 250 already determines this source's NSG disposition. If policy requires a different result, the administrator must change an appropriate earlier matching rule or its priority, not append a lower-precedence Allow and assume it will take effect.

Question 377

An Azure VM initiated a TCP connection that is already permitted and established through its NSG. A team proposes adding a separate inbound NSG allow rule solely for reply packets from that same connection. Which NSG behavior determines whether this is necessary?

  1. Review the unrelated outbound rule list but assume replies always require a new inbound allow
  2. Check effective security rules without accounting for existing tracked connection state
  3. Use NSG stateful connection tracking: replies to the established permitted flow do not require a separate inbound allow rule
  4. Swap source and destination prefixes in the original outbound allow rule to admit replies

Explanation

Correct Answer

C:

Azure network security groups are stateful: when a permitted TCP connection is established, the platform maintains a flow record. Replies that belong to the same allowed connection are permitted even if there is no separately written inbound rule for the reversed five-tuple. The VM in this scenario has already initiated an authorized connection, so another inbound NSG allow solely for its return traffic is unnecessary. This does not authorize a new inbound connection initiated by a remote host; that would require its own applicable inbound permit. An observed packet loss still warrants inspection of the host firewall, route/NAT path and application, rather than assuming NSG statefulness is failing.

Incorrect Answers

A:

Outbound NSG rules govern new flows initiated from the VM, and confirming the original outbound allow can be useful if a new connection fails. Here, however, the connection is already established and permitted, and the question asks only whether another inbound allow is required for its return packets. Azure network security groups keep flow records and are stateful; return traffic belonging to the allowed flow is permitted without a new reversed rule. Reviewing the same outbound rule and assuming an inbound reply allow is required misses that stateful behavior. If an actual response fails, investigate the host firewall, application and other path controls separately.

B:

Effective-rule inspection and tools such as IP flow verify are useful when diagnosing a genuinely blocked new connection, but they do not themselves explain why reply packets for a currently established permitted flow need no separate inbound ACL entry. The question states the TCP flow has already been allowed, so the decisive feature is the NSG flow record. State tracking associates return packets with that existing flow and permits them without an additional inbound authorization. If symptoms persist despite that, gather evidence at the guest operating system, listener, NAT or intermediate network devices instead of automatically adding a broad reverse allow rule.

D:

Reversing the source and destination address prefixes in an outbound NSG rule changes the match for new outbound traffic; it is not the correct way to admit response packets belonging to an existing permitted TCP connection. NSG stateful flow tracking already provides that reverse direction for the established flow. An incorrectly broad reversed rule could also grant access that was not part of the original requirement or fail to match the intended direction. Treat a new inbound session and a response to an outbound session as different authorization events, and inspect evidence from the actual flow before changing network policy.

Question 378

An engineer writes a five-tuple NSG rule but swaps source prefix and destination prefix. What should be reviewed?

  1. Use application security groups in supported NSG source/destination rules
  2. Correct the NIC's ASG association and verify rule scope
  3. Match the correct destination port and leave client source port appropriately broad
  4. Correct source/destination addresses, ports and protocol for actual packet direction

Explanation

Correct Answer

D:

NSG rule matching depends on each field in the connection tuple.

Incorrect Answers

A:

ASGs group eligible NICs for rule matching instead of static address lists. The stated constraint is different: nSG rule matching depends on each field in the connection tuple.

B:

NSGs match eligible NIC group membership, not merely a similarly named application tag. The stated constraint is different: nSG rule matching depends on each field in the connection tuple.

C:

Client source ports are usually ephemeral; confusing source/destination fields prevents intended connections. The stated constraint is different: nSG rule matching depends on each field in the connection tuple.

Question 379

An application security group name was added to an NSG rule but one backend NIC isn't a member. What is the likely problem?

  1. Trace effective subnet and NIC security rules for the same five-tuple
  2. Correct source/destination addresses, ports and protocol for actual packet direction
  3. Evaluate both applied NSGs and their combined allow/deny outcome
  4. Correct the NIC's ASG association and verify rule scope

Explanation

Correct Answer

D:

NSGs match eligible NIC group membership, not merely a similarly named application tag.

Incorrect Answers

A:

A subnet allow cannot force a separately applicable NIC-level deny to permit traffic. The stated constraint is different: nSGs match eligible NIC group membership, not merely a similarly named application tag.

B:

NSG rule matching depends on each field in the connection tuple. The stated constraint is different: nSGs match eligible NIC group membership, not merely a similarly named application tag.

C:

Traffic must satisfy relevant security checks at each applicable network boundary. The stated constraint is different: nSGs match eligible NIC group membership, not merely a similarly named application tag.

Question 380

Before deleting a suspicious NSG deny, the operator wants objective evidence of which rule blocks a test connection. Which diagnostic fits?

  1. Inspect effective security rules or Network Watcher IP flow verify
  2. Account for NSG stateful flow tracking for permitted connections
  3. Sort NSG rule priority numbers alone without matching the actual packet source, destination, protocol and ports to the effective rule set.
  4. Use a valid custom rule with higher evaluation priority and the correct tuple

Explanation

Correct Answer

A:

Inspect effective security rules or Network Watcher IP flow verify. Effective-rule tooling identifies matched rules; wholesale deletion is premature.

Incorrect Answers

B:

Allowed established flows normally permit return traffic without a separate inverse rule. The stated constraint is different: effective-rule tooling identifies matched rules; wholesale deletion is premature.

C:

Azure NSG rules are evaluated by priority among rules whose direction, addresses, protocol and port ranges match the packet. The lowest number is not proof of a block if the rule does not match the test flow. The operator needs objective evidence of the particular denying rule before changing a security control. Network Watcher IP flow verify and effective security-rule inspection can evaluate the real five-tuple and relevant subnet/NIC policy. A priority-only list can point to the wrong rule and encourage an unnecessary or unsafe deletion.

D:

Built-in default rules apply only after more specific custom rules that match first. The stated constraint is different: effective-rule tooling identifies matched rules; wholesale deletion is premature.


Microsoft Azure Administrator (AZ-104) Practice Tests

Purchase Individually

AZ-104 Premium File

Premium File
AZ-104 Premium File
606 Q&A
$76.99$69.99

AZ-104 Training Video Course

Training Course
AZ-104 Training Video Course
132 Lectures
$27.49$24.99

AZ-104 Study Guide

Study Guide
AZ-104 Study Guide
458 PDF Pages
$27.49$24.99

Site Search:

 

VISA, MasterCard, AmericanExpress, UnionPay

SPECIAL OFFER: GET 10% OFF

ExamCollection Premium

ExamCollection Premium Files

Pass your Exam with ExamCollection's PREMIUM files!

  • ExamCollection Certified Safe Files
  • Guaranteed to have ACTUAL Exam Questions
  • Up-to-Date Exam Study Material - Verified by Experts
  • Instant Downloads
Enter Your Email Address to Receive Your 10% Off Discount Code
A Confirmation Link will be sent to this email address to verify your login
We value your privacy. We will not rent or sell your email address

SPECIAL OFFER: GET 10% OFF

Use Discount Code:

MIN10OFF

A confirmation link was sent to your e-mail.
Please check your mailbox for a message from support@examcollection.com and follow the directions.

Next

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.