100% Latest & Updated Microsoft AZ-104 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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.
Question 691
A security operator finds the built-in AllowVnetInBound default rule on an NSG and attempts to delete it, because some east-west traffic must now be denied. Azure does not permit deletion of the default rule. How should the operator enforce the approved subnet-to-subnet deny without deleting platform-managed defaults?
- Remove all NICs from the VNet; default NSG rules are deleted when a VNet is empty.
- Set the default rule priority to 50 to force it to stop matching the restricted traffic.
- Replace the default NSG rule with a DNS suffix filter that names the forbidden subnet.
- Create a specific custom deny rule with a valid higher priority than the built-in allow, matching the prohibited traffic.
Explanation
Correct Answer
D:Azure-managed NSG default rules cannot be deleted, but specific custom rules with numerically higher precedence can override them for matched flows. Define the disallowed source subnet, destination subnet and required protocol/port (or scoped wildcard) in a custom deny rule before the default allow. This preserves other allowed VNet traffic.
Incorrect Answers
A:The default rule remains a platform-managed rule regardless of the current VM or NIC count. Removing network resources would disrupt allowed workloads and would not be a supported way to delete or customize Azure NSG defaults.
B:Default security rules are not editable or removable by a custom rule priority change. Lower numeric values have higher processing precedence, but operators must express that precedence through separate custom rules rather than modifying a system-created default.
C:NSGs match network addresses, service tags, ASGs and ports; they do not accept an arbitrary DNS suffix as a replacement for a built-in default rule. A DNS filter would not be a supported NSG override and could fail to identify the intended source/destination addresses.
Question 692
A public Standard_v2 Azure Application Gateway is deployed in a dedicated subnet without Network Isolation. An administrator attaches a restrictive subnet NSG that permits client HTTPS on TCP 443 but denies inbound platform management traffic from the GatewayManager service tag. Deployment reports ApplicationGatewaySubnetInboundTrafficBlockedByNetworkSecurityGroup. Which NSG adjustment addresses the v2 gateway management requirement?
- Allow only additional client HTTPS traffic on TCP 443, because all v2 platform management sessions use the listener port
- Move the Application Gateway into the GatewaySubnet reserved for Azure VPN Gateway so the subnet NSG is bypassed
- Permit inbound TCP 65200–65535 from the GatewayManager service tag on the Application Gateway subnet NSG
- Create an outbound rule permitting TCP 3389 to Internet; outbound RDP replaces the inbound management allowance
Explanation
Correct Answer
C:For a public Standard_v2 or WAF_v2 Application Gateway without Network Isolation, Microsoft requires control-plane ingress from GatewayManager on TCP ports 65200–65535. The subnet NSG denies that traffic and Azure reports the precise deployment error. Add the appropriate higher-priority inbound allowance for the service tag while preserving tight client HTTPS rules.
Incorrect Answers
A:The existing listener allow on 443 enables client HTTPS, not the separate GatewayManager control-plane port range needed for public Standard_v2 gateways without Network Isolation. Adding more listener allowances does not remediate the deployment error. Permit the documented GatewayManager service tag on inbound TCP 65200–65535 while retaining appropriately scoped listener rules.
B:GatewaySubnet is reserved for VPN or virtual-network gateways, not an Application Gateway v2 deployment. Application Gateway has its own dedicated subnet and associated inbound management rules. Relocating it to GatewaySubnet would violate the deployment topology and would not solve the specific inbound GatewayManager denial in its NSG.
D:An outbound RDP rule on TCP 3389 cannot admit inbound Azure platform GatewayManager connections on TCP 65200–65535. RDP is not the Application Gateway v2 infrastructure management protocol for this failure. The NSG must allow the documented inbound control-plane traffic from its designated service tag.
Question 693
A Standard Azure Load Balancer TCP health probe targets port 8080 on a backend Windows VM. Effective subnet and NIC NSG rules already allow the AzureLoadBalancer service tag on 8080, and the service is listening. Packet traces show probe SYN packets reaching the guest, but Windows Defender Firewall rejects that source. What should the operator correct?
- Add an NSG rule allowing any Internet source to every backend port and leave the guest firewall unchanged
- Allow the Load Balancer probe source 168.63.129.16 on TCP 8080 in the guest OS firewall while retaining necessary NSG protection
- Change the load balancer to a public frontend IP so probe packets no longer enter the guest OS firewall
- Increase the priority of the existing NSG allow and assume a matching guest Windows Firewall deny is bypassed
Explanation
Correct Answer
B:The Azure Load Balancer IPv4 health probe is sourced from 168.63.129.16. NSG allowance is necessary but the backend guest firewall must independently permit the listener port from that probe address. Correcting the Windows firewall enables the already-reachable application listener to respond to health checks.
Incorrect Answers
A:Broadening the NSG opens unrelated traffic but leaves the Windows Defender Firewall rule that actually rejects the probe in place. The trace already demonstrates network-layer delivery to the guest. A public Internet allow would add exposure without fixing the host-layer block.
C:Public versus internal frontend selection changes client exposure, not the Azure health-probe source or how the guest firewall evaluates inbound packets. Replacing the frontend does not resolve the observed host firewall rejection.
D:NSG rule priority is evaluated by Azure networking before delivery to the VM. Once packet capture proves a probe reaches the guest, further NSG priority changes cannot override the separate Windows Defender Firewall rule that rejects the incoming connection.
Question 694
A new custom NSG rule is intended to allow inbound TLS from exactly one partner address. An administrator specifies partner IP as destination and any source instead. Which fields must be corrected?
- Switch to outbound direction because TLS traffic returns to the partner
- Use an NSG service tag named PartnerDNS instead of the partner address
- Set the partner IP as the inbound source and the protected service address as destination, with TCP destination port 443
- Keep the reversed addresses but lower the rule priority number
Explanation
Correct Answer
C:The source/destination fields must reflect packet direction. Placing the partner as destination misidentifies the endpoints and can allow unwanted sources while failing the real partner flow.
Incorrect Answers
A:The initial partner-initiated connection is inbound to the protected workload. Outbound replies are tracked as part of the permitted connection.
B:Custom partner names are not automatically NSG service tags. A valid source CIDR or supported selector is needed for this tightly scoped partner rule.
D:Priority changes cannot fix a five-tuple that does not match the intended inbound packet. The endpoints remain reversed.
Question 695
A workload has autoscaled web VMs with changing private IP addresses. The security team must allow database traffic only from the web tier without editing source IP ranges whenever instances change. Which NSG abstraction should the team use?
- Application security group identifying web-tier NICs
- A static list of every temporary web public IP
- Use a fixed service tag called WebTier for the application VM instances
- Use the default VirtualNetwork service tag to allow database traffic from the whole VNet
Explanation
Correct Answer
A:Application security groups let NSG rules refer to collections of VM network interfaces by application role. Membership can represent the web tier even as individual instance addresses change.
Incorrect Answers
B:A static list of instance addresses requires continual maintenance and may become wrong as autoscaling adds or removes VMs. It does not meet the operational requirement.
C:Azure service tags represent documented Azure services and do not create arbitrary dynamic membership for an organization’s web-tier NICs. An ASG is the intended grouping.
D:VirtualNetwork covers far more than the web tier, so the database would accept requests from unrelated subnets. It violates the required application-role isolation.
Question 696
App and database VM NICs in one Azure VNet have been placed in AsgApp and AsgDb. An administrator creates an NSG rule that references those ASGs, but the rule has no effect because neither the database subnet nor the VM NIC has an NSG association. Which action is required for that ASG-based security rule to be evaluated for the database NIC?
- Place both ASG resources in the database NIC's resource group; resource-group membership automatically enforces ASG-based rules
- Create a second ASG with the same database NIC members; two matching ASGs cause any unassociated NSG rule to become active
- Associate the NSG containing the ASG-based rule with the database subnet or the relevant NIC so packets are evaluated against its rules
- Grant the database VM's managed identity Network Contributor on the ASGs; data-plane filtering begins without any subnet or NIC NSG association
Explanation
Correct Answer
C:Network security group rules are evaluated where the NSG is associated, at a supported subnet or network interface. Once the NSG containing the ASG-based rule is attached to the database subnet or NIC, membership of the source/destination ASGs can match traffic against the rule. Confirm the rule's priority and other effective rules before claiming the entire traffic policy is restricted.
Incorrect Answers
A:Resource-group placement does not attach an NSG to a traffic path. ASGs group NIC IP configurations, but their membership alone does not apply security rules to packets; the NSG must be associated with the relevant subnet or NIC.
B:A second ASG merely adds a logical interface grouping. It cannot activate a security rule in an NSG that has not been associated with the database NIC's subnet or the NIC itself.
D:Network Contributor is a management-plane role and granting it to a workload identity is not a substitute for a network security group association. ASG membership plus an unassociated NSG does not filter data-plane traffic.
Question 697
An NSG has a rule allowing TCP 443 from ASG Frontend to ASG Backend. A new backend VM fails the intended rule even though its VM name begins with backend-. Which configuration should be checked first?
- Add the VM identity to an Entra security group named Backend
- Membership of the VM NIC in the Backend application security group
- Add the backend subnet CIDR to a security rule but leave the NIC outside the Backend ASG
- The VM guest display name inside Microsoft Entra
Explanation
Correct Answer
B:ASGs match their member NICs in NSG traffic rules; VM naming conventions do not automatically add membership. Assign the new NIC to the appropriate ASG.
Incorrect Answers
A:Microsoft Entra security groups manage principals and access, whereas ASG-based NSG matching operates on NIC membership. Similar names do not link the two group types.
C:A broader subnet rule might permit network traffic, but it does not repair the intended ASG-targeted policy and could authorize unintended machines in the same subnet.
D:Entra display names are not used by ASG matching and cannot substitute for NIC-level application grouping.
Question 698
Two independently deployed applications run in different Azure virtual networks. A network engineer wants both applications’ NICs in one application security group so a single NSG selector can include them across the networks. What ASG scope limitation applies?
- ASGs are subscription-wide lists that can contain NICs from unrelated VNets without restrictions
- ASGs group Azure subscription resource IDs without any NIC membership
- Add reciprocal peering and NSG rules between the VNets, assuming those changes remove the ASG same-VNet membership limit
- The NICs referenced by a given ASG must belong to the same virtual network
Explanation
Correct Answer
D:ASG membership has a same-VNet restriction. The engineer needs an alternative segmentation design rather than assuming one ASG can contain interfaces across independent VNets.
Incorrect Answers
A:ASG scope is not universally subscription-wide for NICs. Attempting to include other-VNet interfaces violates the resource constraint.
B:ASG selectors are tied to NIC IP configurations, not just arbitrary Azure IDs without packet classification.
C:Peering permits supported connectivity and NSG rules control flows, but neither redefines the Azure ASG resource membership constraint. Each ASG must still contain interfaces from one virtual network. Use separate groups and explicitly scoped network rules for a cross-VNet design.
Question 699
A three-tier application uses application security groups for web, API and database NICs. Security wants TCP 443 from web to API and TCP 1433 only from API to database. Which NSG design matches the tier boundary?
- Use one broad Any-to-Any rule because all servers are in the same VNet
- Assign Reader on each ASG to the application identity
- Write distinct ASG-based rules using the correct source and destination groups for each allowed port
- Allow VirtualNetwork to SQL port 1433 for the database tier
Explanation
Correct Answer
C:ASG selectors represent application NIC membership and can appear on both sides of rules. Separate narrow rules preserve the intended web-to-API and API-to-database paths without permitting web directly to SQL.
Incorrect Answers
A:A global allow discards segmentation and exposes database traffic to web and other workloads beyond the required tier relationships.
B:RBAC Reader controls management visibility, not the NSG traffic permissions between application tiers.
D:The broad VNet service tag can include unrelated subnets or peers. It does not restrict SQL callers to the API application group.
Question 700
A VM in one Azure VNet hosts both a web proxy and an internal telemetry collector on the same network interface IP configuration. Existing NSG rules identify web front ends through AsgWeb and collectors through AsgTelemetry. The operator wants both rule sets to target this one NIC without duplicating static IP rules. Which ASG membership pattern is supported?
- A NIC IP configuration can belong to only one ASG; split both services into separate public IP addresses.
- Associate the same NIC IP configuration with both AsgWeb and AsgTelemetry, respecting ASG and VNet constraints.
- Place AsgWeb and AsgTelemetry in different VNets; that grants both roles to a single NIC by VNet peering.
- Apply ASG membership directly to the VM resource group rather than to a NIC IP configuration.
Explanation
Correct Answer
B:Azure allows a network interface IP configuration to be a member of more than one Application Security Group, within service limits. Adding this NIC to both groups permits the separate existing NSG rules to match the two logical application roles without requiring per-VM IP address maintenance.
Incorrect Answers
A:Azure ASG membership is not limited to a single group per network interface. Splitting the workload into public IP addresses would also introduce unnecessary exposure and not solve role-based NSG selection appropriately.
C:ASG member NICs must satisfy same-VNet membership constraints; placing the two groups in different VNets is not how a single interface gains multiple application roles. VNet peering also does not change its actual network membership.
D:ASG membership belongs to network-interface IP configurations, not to a resource group abstraction. A resource group can hold many unrelated resources and is not a selector for traffic at a specific NIC IP.
Microsoft Azure Administrator (AZ-104) Practice Tests