100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 680
An NSG rule set currently contains one inbound rule per ten HTTPS destination ports and is nearing rule-management complexity limits. The security team wants one rule that matches several explicitly approved destination ports while keeping the same source IP scope. Which NSG feature can reduce rule sprawl?
- Create separate NSGs containing each approved port and attach all of them to the same subnet to merge their rules
- Use augmented NSG security rule syntax with multiple supported destination ports
- Set destination ports to * and assume all unlisted ports remain denied
- Use an Application Security Group as a substitute for a list of destination ports
Explanation
Correct Answer
B:Augmented rules support multiple service ports or port ranges in a rule. This consolidates equivalent decisions without granting ports outside the explicitly approved set.
Incorrect Answers
A:Azure subnet NSG association does not allow stacking arbitrary subnet NSGs to combine destination-port lists. An augmented rule supports multiple destination port values within a single rule.
C:The wildcard would allow a much wider port range than the approved list and defeat the intended least-privilege constraint.
D:ASGs identify groups of NICs. They do not represent TCP destination port sets or consolidate the required port selectors.
Question 681
A VM subnet uses an NSG with no custom inbound rules, and the VM has a Standard public IP. An operator assumes it must accept SSH because the public IP exists. What default security behavior matters?
- The default DenyAllInBound rule blocks unsolicited inbound Internet connections unless a higher-priority allow permits them
- The Standard public IP automatically creates AllowSSHInBound
- The default AllowInternetOutBound permits all inbound SSH responses
- Enable the NSG default AllowInternetOutBound rule and assume that automatically creates an inbound SSH allow rule
Explanation
Correct Answer
A:An address alone does not grant inbound access. NSG defaults deny unmatched inbound flows, so a justified, narrowly scoped allow must be configured for remote management.
Incorrect Answers
B:Public IP association does not modify NSG authorization. Standard IPs remain secure by default without a matching allow rule.
C:Outbound rules do not grant new inbound connections. Stateful return traffic applies only after a legitimately allowed initiating flow.
D:NSG security is directional and stateful. A default outbound rule does not authorize unsolicited inbound SSH from the Internet; the Standard public IP and NSG still require an explicit high-priority inbound permit rule if the service should be exposed.
Question 682
The central networking team deploys an Azure Virtual Network Manager security admin rule with action Allow for SSH from a management prefix. The application subnet NSG independently denies that inbound SSH source and port. The central team expected its Allow action to guarantee the connection. Which rule-action distinction explains the continued block?
- An admin Allow action still passes traffic to NSG rules, whereas AlwaysAllow ends further NSG evaluation for matching traffic
- All security admin Allow rules supersede every NSG deny rule, so the VM guest credentials must be the sole cause
- An NSG takes precedence over admin Deny, so the existing NSG deny rule should be duplicated at a lower priority
- AlwaysAllow is an NSG default action created only for return packets of established connections
Explanation
Correct Answer
A:A matching Virtual Network Manager security admin Allow rule allows further processing by the subnet and NIC NSGs, which may still deny SSH. The distinct AlwaysAllow action terminates downstream NSG evaluation for a permitted matching flow, while an admin Deny terminates it by blocking the packet. The central team conflated Allow with AlwaysAllow.
Incorrect Answers
B:Virtual Network Manager admin Allow is not equivalent to AlwaysAllow and does not force an NSG to accept the flow. Because the subnet NSG explicitly denies the connection, valid guest credentials cannot make that packet reach SSH. Diagnose the policy action before changing VM identities.
C:Security admin Deny rules evaluate before NSGs and stop the traffic without passing the packet to downstream NSG rules. Duplicating an NSG denial cannot explain or correct the difference between Allow and AlwaysAllow; it would simply reinforce the block.
D:AlwaysAllow is an Azure Virtual Network Manager security admin rule action, not an NSG default for stateful return packets. NSGs maintain state for permitted connections, but that functionality is separate from choosing whether a central admin rule permits subsequent NSG evaluation.
Question 683
An Azure Load Balancer backend VM becomes unhealthy after a subnet NSG rule denies probe traffic from the AzureLoadBalancer service tag at a higher priority than the default allowance. What is the precise conflict?
- A public DNS CNAME controls whether a backend probe is allowed
- Add another lower-priority AllowAzureLoadBalancer NSG rule while leaving the higher-priority explicit Deny on the probe port
- The explicit matching deny precedes the default AllowAzureLoadBalancerInBound rule
- Every load balancer health probe bypasses NSGs unconditionally
Explanation
Correct Answer
C:Custom NSG rules with higher processing priority can override default service-tag allows. The load balancer health probe must reach the backend on its configured probe port.
Incorrect Answers
A:Probe packet authorization is decided by network rules and the probe endpoint, not an external alias record.
B:Azure NSGs evaluate matching rules by priority, with lower numbers evaluated first. An Allow placed below a matching Deny cannot restore probe connectivity; adjust the higher-priority deny or add an earlier supported allow for the health probe source and port.
D:NSG packet evaluation still matters for permitted health-probe traffic. An explicit deny can disrupt backend health assessment.
Question 684
A subnet NSG has no custom outbound allow rules. Operators expect normal Internet egress from a VM, but a higher-priority custom rule now denies outbound TCP 443. What happens to new matching HTTPS flows?
- The default internet rule always overrides custom rules
- The inbound AllowVnetInBound rule permits outbound HTTPS
- Assigning VM Contributor removes the NSG deny
- The custom outbound Deny takes precedence over the default AllowInternetOutBound rule
Explanation
Correct Answer
D:NSG rules are evaluated by priority within direction. A custom deny can restrict traffic otherwise permitted by a default rule, so the default egress allowance is not unconditional.
Incorrect Answers
A:Defaults have lower priority than applicable custom rules. Otherwise administrators could not restrict outbound network traffic.
B:Inbound and outbound directions are evaluated separately. An inbound rule is not an outbound override.
C:Azure role grants manage resources but do not bypass packet filtering for the VM’s network flows.
Question 685
Two application subnets in the same Azure region already have different network security groups (NSGs). Security wants to standardize their inbound and outbound security rules by reusing one shared NSG, without maintaining two copies. An engineer proposes attaching the shared NSG as an additional subnet-level NSG while keeping both existing associations. Which supported association design meets the standardization goal?
- Create separate identical NSG resources for the two subnets because an NSG is allowed to be associated with only one subnet
- Attach the new shared NSG as a second NSG to each subnet while retaining the existing subnet NSG associations
- Consolidate required rules in one shared NSG and associate that NSG with each subnet, replacing each subnet's previous single NSG association
- Assign the shared NSG to the two subnets' resource group and expect all subnet traffic to inherit its rules without subnet associations
Explanation
Correct Answer
C:A network security group can be reused across multiple subnets, while each subnet references one subnet-level NSG. Consolidate necessary security rules and update the association of both subnets to that shared NSG, verifying the common rule set permits the intended traffic.
Incorrect Answers
A:The same NSG resource can be associated with multiple compatible subnets, so duplicating its rules into a separate resource per subnet is unnecessary. Standardization can use one reused NSG after checking the common policy fits both subnets.
B:Each subnet has one NSG association; you cannot stack a second subnet-level NSG onto the existing association. A NIC may have its own NSG as a separate layer, but that is not two subnet NSGs.
D:Resource group membership does not automatically apply an NSG's rules to contained subnet data-plane traffic. Security filtering requires the appropriate subnet or NIC association rather than tagging or placing an NSG in a resource group.
Question 686
An NSG inbound rule for TCP 443 should permit two explicitly defined source populations: VMs in an existing application security group and a partner IPv4 CIDR range. The engineer attempts to place both the ASG reference and the literal CIDR in the same Source field, and Azure rejects the rule. How should the design express these approved sources while keeping the destination port restricted?
- Put the ASG resource ID and the IPv4 CIDR in a single augmented source-address-prefix list
- Create separate appropriate NSG allow rules, one referencing the ASG source and one referencing the partner CIDR source, with TCP 443 and deliberate priorities
- Change the destination port to an asterisk, which allows a mixed ASG-and-IP Source definition in one rule
- Convert the ASG name into a custom Azure service tag and combine that tag with the CIDR in one source field
Explanation
Correct Answer
B:Azure NSG rule source selectors do not support mixing an ASG reference and a literal address range in one source field. Model these as separate allow rules: one uses the application security group source, and another uses the specifically approved partner CIDR. Keep TCP destination port 443, a suitable destination, and controlled priorities; the two independent rules express the union of authorized sources without broadening access.
Incorrect Answers
A:Augmented source IP prefixes can contain multiple supported literal CIDRs or IP addresses. They cannot accept an application security group resource ID as though it were a literal address prefix in the same field. ASG references and explicit IP ranges are different source selector types, so the attempted mixed-source definition still fails validation.
C:An asterisk in destination ports matches all ports; it would weaken the stated HTTPS-only policy and does not change the allowed data types in the Source field. Azure rejects the mixed ASG/CIDR source regardless of whether the destination is a single port or a wildcard. Fix the source-selector structure instead.
D:Azure service tags are predefined Microsoft-managed address-prefix sets, not arbitrary aliases an administrator can create from ASGs. Converting an application security group name into a custom service tag is not a supported workaround. Keep the actual ASG reference and literal partner prefix in their respective separate NSG rules.
Question 687
A network operator wants an NSG egress rule for a business SaaS application and enters `api.contoso.example` as the destination field. Azure reports that the rule value is invalid. Which limitation of ordinary NSG address selectors explains this?
- Put the FQDN in the destination port field to create a domain-aware outbound restriction
- Assign a DNS TXT record to the NSG resource and expect the rule to read it
- Set the rule's protocol to Any while keeping the FQDN as its destination
- Use supported IP address/prefix selectors, application security groups, or service tags as applicable instead of an arbitrary FQDN
Explanation
Correct Answer
D:NSG rules filter at network and transport layers and do not resolve an arbitrary hostname into an automatically maintained rule. If the destination IPs change frequently, a supported FQDN-aware firewall or other appropriate control may be required.
Incorrect Answers
A:NSG destination ports must describe supported protocol port numbers or ranges, not DNS names. Moving the hostname into a port selector does not add Layer 7 filtering capabilities.
B:NSG packet evaluation does not consult user-created DNS TXT records as destination criteria. The configuration remains unsupported and the SaaS domain is not automatically managed.
C:The protocol selector controls TCP, UDP and other protocols, not the accepted address selector grammar. An unsupported FQDN remains invalid regardless of protocol.
Question 688
An Azure NSG rule currently uses the broad Storage service tag as an outbound destination. The organization wants an additional region-specific network allow boundary so that this rule targets Azure Storage service addresses in West US 2 rather than all supported regions. Which supported destination selector should the operator assess?
- Replace the Storage tag with the VM's local subnet IP prefix, because it represents all Storage regions
- Use an application security group named WestUS2 and assume it contains Microsoft-managed Storage endpoint NICs
- Keep the global Storage tag and change only the rule description to WestUS2
- Use the supported regional Storage.WestUS2 service tag while separately enforcing account-level restrictions through appropriate storage access controls
Explanation
Correct Answer
D:Azure publishes regional service-tag variants, such as Storage.WestUS2, to represent the relevant Azure Storage address space. Use the specific regional tag when supported, but recognize that a service tag filters service address ranges rather than authorizing individual storage accounts; use storage firewall/RBAC controls as appropriate.
Incorrect Answers
A:The VM's subnet prefix identifies workload addresses, not the Microsoft-managed public Storage endpoint ranges for a selected region. Using it as a destination would fail to match intended service traffic or accidentally permit different private workloads.
B:ASG membership is based on eligible Azure NIC configurations in a VNet; it isn't a container for all Microsoft Azure Storage service IPs in a geographic region. Inventing a group name cannot replace Azure's supported service-tag catalogue.
C:The global Storage tag is broader than the desired region-specific selector. Text in an NSG rule description does not change which destination addresses match the rule, so the requested narrowing would not occur.
Question 689
A security team removes an NSG rule that previously allowed inbound SSH to a VM. A tester's SSH session established before the removal continues to work, while a new connection from the same source is denied. No separate firewall is changing the decision. What Azure NSG behavior best explains the difference?
- NSG flow state can preserve an existing established connection after a rule change, while new connections are evaluated against current rules
- Removing an NSG rule immediately resets every established TCP socket, so the continuing session proves the NSG isn't assigned
- An NSG rule deletion permanently permits all new SSH sessions from the source until the VM restarts
- Only private DNS records control whether the current SSH session survives a change to inbound NSG security rules
Explanation
Correct Answer
A:Azure NSGs are stateful and track existing permitted flows. Removing or changing a security rule affects new connections; previously established sessions may remain uninterrupted using their existing flow state. Therefore the old SSH session can persist while a fresh connection is denied. To terminate a suspicious active session, use an appropriate additional response rather than relying on the rule edit alone.
Incorrect Answers
B:The documentation specifically notes that established connections can remain after an NSG allow rule is removed. An NSG doesn't necessarily inject TCP resets into every existing flow as a rule-change side effect. Assuming instant termination could create a false sense of containment during an incident.
C:Rule removal does not create an indefinite grace period for new traffic. New SSH connection attempts are judged under the current effective NSG rules and can be denied immediately after the policy update. The difference is existing flow state versus a new flow, not a VM restart requirement.
D:DNS name resolution maps names to addresses; it doesn't own TCP flow-state records in Azure NSG filtering. The established session's behavior is explained by stateful connection tracking and current-rule evaluation for new sessions. Changing private DNS would not directly describe the observed NSG decision split.
Question 690
A network team is deploying an Azure VPN Gateway in a VNet. It created a /27 GatewaySubnet, then associated the same restrictive network security group used by its workload subnets. The gateway deployment is blocked, although existing workload subnet NSGs operate normally. Which correction directly addresses the documented VPN Gateway subnet restriction?
- Keep the NSG on GatewaySubnet and open inbound TCP 443, because an explicit allow makes NSGs supported for VPN gateways
- Dissociate the NSG from the reserved GatewaySubnet while keeping appropriate NSGs on ordinary workload subnets
- Rename GatewaySubnet to VPNSubnet to bypass the gateway-subnet restriction without changing the NSG
- Attach the restrictive NSG to the VPN Gateway public IP resource instead of to GatewaySubnet
Explanation
Correct Answer
B:Microsoft documents that network security groups on GatewaySubnet are unsupported and can prevent VPN or ExpressRoute gateway provisioning or normal operation. Dissociate the NSG from the reserved gateway subnet, while maintaining needed security rules on separate workload subnets. The GatewaySubnet name and /27 capacity are already appropriate in this scenario.
Incorrect Answers
A:The restriction is not a missing port permit. Microsoft does not support NSG association on the VPN gateway subnet, regardless of whether TCP 443 is added. The gateway requires its reserved GatewaySubnet and platform-managed flows; remove the unsupported association rather than trying to repair the NSG rules for that subnet.
C:Azure VPN Gateway deploys into a subnet named exactly GatewaySubnet; renaming that subnet removes a prerequisite rather than solving the unsupported NSG association. A differently named ordinary subnet is not a valid replacement gateway subnet. Keep the required reserved name and remove the unsupported network security group association.
D:An NSG is associated with a subnet or network interface, not attached to a Public IP resource as a substitute gateway firewall. Relocating the NSG to the gateway public IP does not remediate an unsupported GatewaySubnet association. Remove it from GatewaySubnet and apply other supported perimeter controls where appropriate.
Microsoft Azure Administrator (AZ-104) Practice Tests