Courseiva

CCNA Implement and Manage Virtual Networking Questions

75 of 244 questions · Page 3/4 · Implement and Manage Virtual Networking · Answers revealed

151
MCQmedium

A team deployed a private endpoint for an Azure Storage account in VNet-A. The private endpoint is healthy, but VMs in VNet-A still resolve the storage account name to the public IP address. What should the administrator configure next?

A.Add a route table that sends storage traffic to the private endpoint.
B.Link the appropriate private DNS zone to VNet-A.
C.Create a network security group rule that allows outbound HTTPS.
D.Enable service endpoints for Microsoft.Storage on the subnet.
AnswerB

Private endpoints depend on DNS so client requests resolve the service name to the private IP rather than the public endpoint. If VMs in VNet-A still receive the public address, the private DNS zone is not linked or not configured correctly for that VNet. Linking the zone ensures the Azure-provided or custom DNS path returns the private endpoint address, allowing the workloads to reach the storage account privately as intended.

Why this answer

When a private endpoint is deployed, the storage account's FQDN must resolve to the private IP address within the virtual network. By default, Azure Private DNS zones (privatelink.blob.core.windows.net) are not automatically linked to the virtual network. Linking the private DNS zone to VNet-A enables DNS resolution of the storage account name to the private endpoint's IP address instead of the public IP.

Exam trap

The trap here is that candidates often confuse network-level controls (route tables, NSGs, service endpoints) with DNS resolution, assuming that a healthy private endpoint alone will automatically change how the storage account name is resolved.

Why the other options are wrong

A

A route table cannot redirect traffic to a private endpoint because private endpoints use Azure Private Link, which relies on DNS resolution to direct traffic to the private IP, not routing. Route tables affect network traffic based on IP prefixes, but the private endpoint's IP is not a destination prefix that can be routed to; the traffic must first resolve to the private IP via DNS.

C

The issue is DNS resolution, not network traffic filtering. NSG rules control inbound/outbound traffic but do not affect how VMs resolve the storage account's FQDN to an IP address.

D

Service endpoints route traffic to the public IP of the storage account via the Azure backbone, not to a private endpoint. They do not enable private DNS resolution, so VMs would still resolve the storage account to its public IP.

152
MCQhard

Traffic from VM-App01 is unexpectedly reaching the internet through a network virtual appliance. You need to determine which route is currently applied to the virtual machine network interface. Which Azure tool should you use?

A.Effective routes for the network interface
B.NSG flow logs
C.Azure Advisor recommendations
D.Diagnostic settings for the activity log
AnswerA

Effective routes for the network interface display the complete, evaluated routing table applied to app01's NIC, including system routes, BGP routes, and any user-defined routes (UDRs) from the subnet. Because unexpected internet traffic is a data-plane forwarding problem, this view directly reveals which 0.0.0.0/0 next-hop rule is active and whether a UDR's next hop is valid or has fallen back to the system internet route. Checking effective routes is the definitive way to confirm the actual path chosen for outbound traffic.

Why this answer

Effective routes for the network interface show the actual routes applied to a VM's NIC, including system routes, BGP routes, and user-defined routes (UDRs). Since traffic is unexpectedly reaching the internet through an NVA, you need to verify which route (e.g., a UDR with next hop type VirtualAppliance) is currently active. This tool directly displays the effective route table for the specific NIC, allowing you to identify the misconfigured route.

Exam trap

The trap here is that candidates often confuse network security group (NSG) flow logs with routing diagnostics, but NSG flow logs only show traffic filtering decisions, not the path traffic takes based on routes.

Why the other options are wrong

B

NSG flow logs show traffic allowed or denied by network security groups, but they do not reveal which route (e.g., user-defined route) is applied to a network interface. The question asks for the currently applied route, not traffic flow logs.

C

Azure Advisor provides recommendations for best practices (e.g., cost, security, reliability), but it does not show the actual applied routes on a network interface. To determine which route is currently applied, you need to view effective routes, which are specific to the NIC.

D

Diagnostic settings for the activity log capture control-plane operations (e.g., resource creation or deletion), not data-plane traffic routing. They cannot show which route is applied to a VM's network interface.

153
MCQmedium

A subnet is associated with a NAT gateway, but outbound traffic from the VMs still leaves through a network virtual appliance because the subnet has a user-defined route for 0.0.0.0/0 with next hop type Virtual appliance. The workload must use the NAT gateway for internet-bound traffic while keeping more specific routes intact. What should the administrator change?

A.Disable the subnet's network security group so the NAT gateway can take effect.
B.Remove the 0.0.0.0/0 user-defined route from the subnet route table.
C.Enable gateway route propagation on the route table.
D.Attach a public IP address to each virtual machine NIC.
AnswerB

A default UDR to a virtual appliance overrides the system default route, so the NAT gateway never becomes the effective internet egress path. Removing that default route restores normal outbound routing, and the NAT gateway can then provide the public source IP for internet-bound traffic. More specific UDRs for private prefixes can remain in place.

Why this answer

The NAT gateway is designed to provide outbound connectivity for VMs in the subnet, but a user-defined route (UDR) for 0.0.0.0/0 with next hop type Virtual appliance overrides the default route to the NAT gateway. By removing that UDR, the subnet's default route reverts to the system route, which directs internet-bound traffic to the NAT gateway's public IP. More specific routes (e.g., to on-premises networks) remain intact because they are not affected by the removal of the 0.0.0.0/0 route.

Exam trap

The trap here is that candidates often think a NAT gateway requires a UDR to function, when in fact the NAT gateway works via the system default route and a UDR for 0.0.0.0/0 with a different next hop type will override it, breaking the NAT gateway's intended behavior.

Why the other options are wrong

A

Disabling the network security group does not affect routing; the NAT gateway is bypassed because the 0.0.0.0/0 UDR with next hop Virtual Appliance overrides the default route to the NAT gateway. NSGs control traffic filtering, not routing.

C

Enabling gateway route propagation adds routes from a VPN gateway or ExpressRoute to the route table, but it does not override the existing 0.0.0.0/0 UDR. The NAT gateway still cannot take effect because the UDR with next hop Virtual appliance remains the preferred route for internet-bound traffic.

D

Attaching a public IP to each VM NIC would bypass the NAT gateway and the network virtual appliance, but the requirement is to use the NAT gateway for internet-bound traffic while keeping more specific routes intact. This option does not address the conflicting 0.0.0.0/0 route that directs traffic to the virtual appliance.

154
MCQmedium

A storage account has public network access disabled. A VM in VNet-App can reach a private endpoint for the account, but the storage name still resolves to the public IP address from the VM, and connections are denied. What should the administrator configure?

A.A service endpoint on the subnet so the storage account uses a private IP address.
B.A private DNS zone for the storage blob endpoint linked to VNet-App.
C.A storage account access key on the VM so the public endpoint will accept the connection.
D.A user-defined route sending storage traffic to the virtual network gateway.
AnswerB

Private DNS is needed so the blob FQDN resolves to the private endpoint IP inside the VNet.

Why this answer

When public network access is disabled on a storage account and a private endpoint is configured, the storage account's public DNS name must resolve to the private endpoint's private IP address within the virtual network. By default, the DNS name continues to resolve to the public IP address, causing connection failures. Linking a private DNS zone (privatelink.blob.core.windows.net) to VNet-App enables automatic resolution of the storage blob endpoint to the private IP address, allowing the VM to connect successfully.

Exam trap

The trap here is that candidates confuse service endpoints (which still use the public endpoint) with private endpoints (which use a private IP address), and assume that disabling public network access alone is sufficient without configuring DNS resolution to point to the private endpoint.

Why the other options are wrong

A

A service endpoint does not change DNS resolution; the storage account name would still resolve to its public IP address. Since public network access is disabled, the connection would still be denied even with a service endpoint.

C

The storage account has public network access disabled, so even with an access key, the public endpoint will reject connections. The VM cannot reach the storage via its public IP because access is blocked at the storage account level.

D

A user-defined route (UDR) sending storage traffic to the virtual network gateway is unnecessary because the private endpoint already provides a direct, private connection to the storage account within the same virtual network. The issue is DNS resolution, not routing; traffic is already reaching the public IP due to default DNS behavior.

155
MCQeasy

A company wants to peer two Azure virtual networks so that workloads can communicate privately. VNet-A uses 10.10.0.0/16. VNet-B is being designed now. Which address space should be chosen for VNet-B?

A.10.10.5.0/24, because it is a smaller subnet inside the same private range.
B.10.11.0.0/16, because it does not overlap and is still within a private IPv4 range.
C.10.10.0.0/24, because peering automatically separates overlapping subnets.
D.192.168.1.0/24, because peered networks must always use the 192.168.x.x range.
AnswerB

10.11.0.0/16 does not overlap with VNet-A's 10.10.0.0/16 and sits fully within the RFC 1918 private address space. That makes it a valid address space for a peered VNet because Azure VNet peering only requires that the full CIDR ranges of the two VNets are non-overlapping; it does not require any specific prefix or class. Choosing a distinct /16 also leaves plenty of room for subnets without risk of future overlap conflicts.

Why this answer

VNet peering requires non-overlapping address spaces to enable direct private IP connectivity between resources. 10.11.0.0/16 is a unique private IPv4 range (RFC 1918) that does not overlap with VNet-A's 10.10.0.0/16, ensuring successful peering without routing conflicts.

Exam trap

The trap here is that candidates assume smaller subnets within the same larger range can be peered because they are 'different subnets,' but Azure VNet peering requires completely non-overlapping address spaces at the VNet level, not just at the subnet level.

Why the other options are wrong

A

VNet-B's address space 10.10.5.0/24 overlaps with VNet-A's 10.10.0.0/16, which is not allowed for peering. Azure requires non-overlapping address spaces for virtual network peering.

C

VNet-A uses 10.10.0.0/16, which includes the 10.10.0.0/24 range. Overlapping address spaces prevent successful peering because Azure cannot route between overlapping IPs.

D

Peered Azure virtual networks can use any private IP address range (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) as long as they do not overlap. There is no requirement to use 192.168.x.x.

156
MCQmedium

An administrator is deploying a site-to-site VPN gateway in Azure. The GatewaySubnet already exists, but the deployment fails because no public-facing address is available for the gateway. What is required for the gateway to deploy and accept the on-premises connection?

A.Assign a standard Load Balancer to the GatewaySubnet.
B.Create a private endpoint for the virtual network gateway.
C.Create and associate a public IP address with the VPN gateway.
D.Delegate the GatewaySubnet to Microsoft.Network/privateEndpoints.
AnswerC

A site-to-site VPN gateway needs a public IP address so the on-premises VPN device can establish and maintain the tunnel to Azure. The GatewaySubnet is the correct dedicated subnet, but it is not enough by itself. The gateway also requires a public-facing address resource assigned during deployment so it can receive VPN connections from outside Azure.

Why this answer

A site-to-site VPN gateway in Azure requires a public IP address to establish the encrypted tunnel with the on-premises VPN device. The public IP address is assigned to the gateway's frontend configuration, enabling it to send and receive IPsec/IKE traffic over the internet. Without this public-facing address, the gateway cannot be provisioned or accept the on-premises connection.

Exam trap

The trap here is that candidates may confuse the GatewaySubnet delegation requirement (which is already satisfied by default) with the need for a public IP address, or incorrectly think a Load Balancer or private endpoint can substitute for the public IP that is mandatory for site-to-site VPN connectivity.

Why the other options are wrong

A

A standard Load Balancer is not used for VPN gateway public IP assignment; VPN gateways require a public IP address resource, not a load balancer, to provide the public-facing endpoint for site-to-site connections.

B

A private endpoint is used to securely connect to Azure PaaS services over a private IP address, not to provide public-facing connectivity for a VPN gateway. The VPN gateway requires a public IP address to establish the site-to-site tunnel with the on-premises device.

D

Delegating the GatewaySubnet to Microsoft.Network/privateEndpoints is used for private endpoints, not for VPN gateways. VPN gateways require a public IP address for site-to-site connectivity, not a private endpoint delegation.

157
MCQmedium

An application VM in a subnet without a public IP must access Azure Blob Storage. The storage account must not be reachable from the public internet, and DNS resolution should stay inside the virtual network. What should you implement?

A.Enable a service endpoint for Microsoft.Storage on the subnet and keep the public endpoint enabled.
B.Create a private endpoint for the storage account and link the appropriate private DNS zone.
C.Use a SAS token and allow access from any network for the storage account.
D.Assign a managed identity to the VM and remove all network restrictions from the storage account.
AnswerB

A private endpoint attaches a network interface with a private IP from your VNet to the storage account, causing all traffic destined to that account to traverse the Microsoft backbone instead of the public internet. Linking the private endpoint to the appropriate private DNS zone ensures that the storage account's FQDN resolves to that private IP, so the VM can connect without egress to a public address. This is the correct way to provide secure, private access from a subnet that has no public IP.

Why this answer

A private endpoint assigns the storage account a private IP from the VM's virtual network, making it reachable without public internet exposure. Linking the private DNS zone ensures that DNS resolution for the storage account (e.g., `mystorageaccount.blob.core.windows.net`) resolves to the private IP within the VNet, meeting both requirements.

Exam trap

The trap here is confusing service endpoints with private endpoints; service endpoints only secure traffic to the public endpoint via the VNet but do not remove public internet accessibility, whereas private endpoints fully isolate the resource within the VNet.

Why the other options are wrong

A

A service endpoint keeps the storage account reachable from the public internet (even if restricted to the subnet), which violates the requirement that the storage account must not be reachable from the public internet.

C

A SAS token with public network access violates the requirement that the storage account must not be reachable from the public internet, and it does not keep DNS resolution inside the virtual network.

D

Assigning a managed identity and removing network restrictions would make the storage account publicly accessible from the internet, violating the requirement that the storage account must not be reachable from the public internet.

158
MCQmedium

You removed public IP addresses from a backend subnet containing 20 VMs. The VMs still need outbound internet access for updates, and the organization wants all outbound traffic to appear from one predictable public IP. No inbound publishing is required. Which Azure service should you use?

A.A public load balancer with inbound NAT rules for each VM.
B.Azure NAT Gateway associated with the subnet.
C.A private load balancer with a backend pool of the VMs.
D.A VPN gateway connection to a remote network.
AnswerB

Azure NAT Gateway is a fully managed, subnet-scoped NAT service that provides outbound-only internet connectivity. When attached to the subnet, it translates VM private IPs to its configured public IP(s) or public IP prefix, giving stable egress even after the VMs' own public IPs are removed. Because it scales to 64,000 concurrent connections per assigned IP and decouples outbound NAT from the VM's NIC, it is the designed solution for reliable outbound internet in this scenario.

Why this answer

Azure NAT Gateway is the correct choice because it provides outbound-only internet connectivity for a subnet, translating all VM traffic to a single public IP address without requiring inbound NAT rules or a load balancer. It supports SNAT (Source Network Address Translation) for up to 64,000 concurrent flows per IP, meeting the requirement for predictable outbound IP and no inbound publishing.

Exam trap

The trap here is that candidates often confuse Azure NAT Gateway with a public load balancer for outbound traffic, mistakenly thinking inbound NAT rules are required for outbound connectivity, or assume a private load balancer can provide internet access via some indirect method.

Why the other options are wrong

A

A public load balancer with inbound NAT rules is designed for inbound traffic, not outbound. It does not provide a single predictable outbound public IP for all VMs in the subnet.

C

A private load balancer only handles internal traffic within a virtual network and does not provide outbound internet connectivity. The VMs need outbound internet access, which a private load balancer cannot supply.

D

A VPN gateway connects on-premises networks to Azure, not to the internet. It does not provide outbound internet access for Azure VMs.

159
MCQmedium

A subnet NSG contains these inbound rules: Deny-All-Inbound at priority 300, Allow-HTTPS-From-Bastion at priority 200, and Allow-HTTPS-From-AdminIP at priority 350. An administrator expects a management workstation on the internet to connect to a VM over TCP 443, but the connection is blocked. What is the most likely reason?

A.NSG rules are evaluated from the highest priority number to the lowest priority number.
B.The deny rule at priority 300 is matched before the allow rule at priority 350.
C.Azure NSGs cannot allow inbound traffic from public IP addresses.
D.TCP 443 requires an application security group to be used as the source.
AnswerB

NSG rules are processed in ascending order, where the lowest priority number wins. In this case, Deny-All-Inbound at 300 is evaluated before the new allow rule at 350. Because the deny rule matches inbound traffic first, the packet is blocked and the later allow rule never gets a chance. The fix is to give the allow rule a lower number than 300 or otherwise narrow the deny rule.

Why this answer

NSG rules are evaluated in priority order, from the lowest priority number (highest priority) to the highest priority number (lowest priority). The Allow-HTTPS-From-AdminIP rule at priority 350 is evaluated after the Deny-All-Inbound rule at priority 300. Since the deny rule at priority 300 matches all inbound traffic before the allow rule at priority 350 is evaluated, the traffic is blocked.

The administrator's connection from the internet is denied because the deny rule with a lower priority number (300) takes precedence over the allow rule with a higher priority number (350).

Exam trap

The trap here is that candidates often confuse 'priority' with 'order of evaluation,' mistakenly thinking higher priority numbers are evaluated first, when in fact lower numbers (higher priority) are evaluated first, causing the deny rule to block traffic before the allow rule is checked.

Why the other options are wrong

A

NSG rules are evaluated from lowest priority number to highest, meaning a lower number (higher priority) is matched first. Option A states the opposite, which is incorrect.

C

Azure NSGs can allow inbound traffic from public IP addresses by specifying the public IP as the source in the rule. The Allow-HTTPS-From-AdminIP rule at priority 350 is intended to do that, but it is never evaluated because the Deny-All-Inbound rule at priority 300 is matched first.

D

TCP 443 (HTTPS) can be allowed from public IP addresses using a standard NSG rule with the source set to 'Any' or a specific public IP address; an application security group is not required for this purpose.

160
MCQmedium

Based on the exhibit, which change should you make so the VM reaches the blob service over a private IP address?

A.Enable a service endpoint on the subnet and keep the current DNS configuration.
B.Create a private endpoint for the storage account and link the appropriate private DNS zone.
C.Assign the VM a public IP address and allow it through the storage firewall.
D.Add the VM to a network security group that allows outbound TCP 443 to Azure Storage.
AnswerB

A private endpoint gives the storage service a private IP address inside the VNet, and private DNS ensures the blob name resolves to that private address. That directly matches the requirement to reach the service privately while keeping public network access disabled.

Why this answer

A private endpoint assigns the storage account a private IP address from the VM's virtual network, enabling direct connectivity over a private IP. Linking the private endpoint to a private DNS zone ensures that the storage account's FQDN resolves to the private IP instead of the public endpoint, meeting the requirement without exposing traffic to the internet.

Exam trap

The trap here is that candidates confuse service endpoints (which only provide firewall-level access via the public endpoint) with private endpoints (which provide a true private IP address and private DNS resolution), leading them to choose Option A incorrectly.

Why the other options are wrong

A

Service endpoints provide access to Azure Storage over the Azure backbone network but still use a public endpoint, not a private IP address. The question requires the VM to reach the blob service over a private IP address, which only a private endpoint can provide.

C

Assigning a public IP and allowing it through the storage firewall enables internet-based access, not private IP address connectivity. The question requires the VM to reach the blob service over a private IP, which a public IP cannot provide.

D

Adding the VM to an NSG that allows outbound TCP 443 to Azure Storage does not ensure the VM reaches the blob service over a private IP address; it only permits outbound traffic to the public endpoint of the storage account, not private connectivity.

161
MCQmedium

You need to allow RDP access from the internet to a Windows VM named VM-Admin01 in Azure. The VM already has a public IP address. Which additional configuration is required?

A.A private DNS zone
B.An NSG rule allowing inbound TCP 3389
C.A user-defined route to Azure Monitor
D.A blob lifecycle management rule
AnswerB

An NSG rule allowing inbound TCP 3389 is the correct solution because RDP uses port 3389, and Azure Network Security Groups filter traffic at the subnet or NIC level. Without an explicit inbound allow rule for TCP 3389, the default NSG rules deny all inbound internet traffic, so the VM remains unreachable. Associating the NSG with the VM's subnet or NIC and specifying source as 'Internet' and destination port 3389 as 'Allow' grants the required RDP access.

Why this answer

An NSG (Network Security Group) rule allowing inbound TCP port 3389 is required to permit Remote Desktop Protocol (RDP) traffic from the internet to reach the Windows VM. Even though the VM has a public IP address, Azure NSGs act as a stateful firewall at the subnet or NIC level, and by default all inbound traffic is denied unless explicitly allowed. Without this rule, RDP connection attempts will be blocked.

Exam trap

The trap here is that candidates assume a public IP address alone is sufficient for inbound internet access, forgetting that Azure VMs are protected by a default-deny NSG that must explicitly allow inbound traffic like RDP.

Why the other options are wrong

A

A private DNS zone resolves names within a virtual network, not for internet RDP access. RDP requires an NSG rule allowing inbound TCP 3389.

C

A user-defined route (UDR) to Azure Monitor is used to direct network traffic to Azure Monitor for diagnostics or monitoring, not to enable RDP access. RDP access requires an NSG rule allowing inbound TCP 3389, not a custom route.

D

A blob lifecycle management rule manages tiering or deletion of blob storage data, not network access to a VM. It has no relevance to enabling RDP connectivity.

162
MCQmedium

A team wants one subnet to access an existing Storage account over its public endpoint. They do not want a private IP for the account or any DNS changes, but they want to block access from all other subnets. What should the administrator configure?

A.Create a private endpoint and disable public network access on the storage account.
B.Enable a service endpoint on the subnet and add a virtual network rule on the storage account.
C.Assign the Storage Blob Data Reader role to the subnet.
D.Associate a route table with a default route to the storage account private IP.
AnswerB

A service endpoint on the subnet gives the storage account visibility of that subnet's traffic while keeping the storage account's public endpoint. Adding a virtual network rule on the storage account then restricts access to only that specific subnet, so requests from other subnets or the internet are rejected. This approach preserves the existing endpoint and requires no DNS changes, making it the correct, minimal configuration for subnet-only access.

Why this answer

A service endpoint extends the virtual network's identity to the Azure Storage service, allowing the subnet to access the storage account over its public endpoint without requiring a private IP or DNS changes. By enabling a service endpoint on the subnet and adding a virtual network rule on the storage account, you restrict access to only that subnet while blocking all other subnets, meeting the team's requirements.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that private endpoints are required for secure access, but the question explicitly states no private IP or DNS changes are desired, making service endpoints the correct choice.

Why the other options are wrong

A

The question explicitly states the team does not want a private IP or DNS changes, but a private endpoint assigns a private IP and requires DNS configuration. Additionally, disabling public network access would block the subnet's access via the public endpoint, which contradicts the requirement to access over the public endpoint.

C

Assigning the Storage Blob Data Reader role to a subnet is not supported; RBAC roles can only be assigned to users, groups, or service principals, not to subnets. This action does not restrict network access to the storage account.

163
MCQhard

A network team centralizes DHCP in a data center. Users in a remote branch stop receiving addresses after the branch router is replaced. Which missing configuration on the branch gateway is the strongest suspect?

A.DHCP relay or helper configuration on the client-facing gateway interface
B.A spanning-tree priority change on the branch switch
C.A CAPWAP tunnel from the branch PCs to the data center
D.A voice VLAN configuration on the WAN interface
AnswerA

Configuring DHCP relay (ip helper-address) on the client-facing gateway interface is essential because DHCP discovery packets are Layer 2 broadcasts that will not cross a Layer 3 boundary. The relay agent converts those broadcasts into unicast messages and forwards them to the centralized DHCP server, while inserting its own interface IP into the giaddr field so the server can assign an address from the correct subnet pool. Without this helper/relay setting, clients remain isolated from the data center DHCP server.

Why this answer

When a DHCP server is centralized in a data center, remote clients rely on the branch gateway to forward their broadcast DHCP requests as unicast to the server. This is achieved by configuring a DHCP relay agent (ip helper-address) on the client-facing interface of the branch router. Without this configuration, DHCP broadcasts are dropped at the router, and clients never receive IP addresses.

Exam trap

The trap here is that candidates may confuse DHCP relay with other broadcast-forwarding mechanisms or assume that DHCP works automatically across routers, forgetting that routers by default do not forward broadcasts unless explicitly configured with ip helper-address.

Why the other options are wrong

B

A spanning-tree priority change on the branch switch does not directly affect DHCP address allocation; it primarily influences the topology and path selection of the network. Since the issue is related to DHCP address assignment, this option is not relevant.

C

A CAPWAP tunnel is used for managing lightweight access points and does not directly relate to DHCP address assignment. Since the issue is with users not receiving DHCP addresses, a CAPWAP tunnel would not be the cause of the problem.

D

A voice VLAN configuration on the WAN interface is unrelated to DHCP address assignment issues, as voice VLANs are used for prioritizing voice traffic rather than facilitating DHCP communication.

164
MCQhard

A team is creating a new workload subnet in a spoke virtual network. The subnet must support 41 VM NICs, 2 internal load balancer frontend IP configurations, 3 private endpoint IPs, and 4 spare IPs for near-term growth. Azure reserves 5 IP addresses in every subnet. What is the smallest IPv4 subnet size that satisfies the requirement?

A./27, because 32 total addresses are enough for a small workload subnet.
B./26, because 64 total addresses provide enough usable IPs for the workload and growth.
C./25, because 128 total addresses are required once private endpoints are included.
D./28, because 16 total addresses are sufficient when load balancers are used.
AnswerB

A /26 contains 64 total addresses. After Azure reserves 5, 59 remain usable, which covers 41 VM NICs, 2 load balancer frontend IPs, 3 private endpoint IPs, and 4 spare addresses. This is the smallest subnet size that meets the stated requirement without wasting a larger block than necessary.

Why this answer

The total IP addresses required are 41 (VM NICs) + 2 (ILB frontends) + 3 (private endpoints) + 4 (spare) + 5 (Azure reserved) = 55 IPs. A /26 subnet provides 64 total addresses, of which 59 are usable (64 - 5 reserved), which meets the requirement. Option B is correct because /26 is the smallest subnet that provides enough usable IPs.

Exam trap

The trap here is that candidates often forget to include the 5 Azure-reserved IPs in their calculation, or they mistakenly think private endpoints or load balancer frontends do not consume subnet IPs, leading them to choose a smaller subnet like /27 or /28.

Why the other options are wrong

A

A /27 subnet provides only 32 total addresses, of which 5 are reserved by Azure, leaving 27 usable. The requirement is for 41 VM NICs, 2 ILB frontends, 3 private endpoints, and 4 spare IPs, totaling 50 IPs, which exceeds 27.

C

A /25 subnet provides 128 total addresses, which is more than the required 41 VM NICs + 2 load balancer frontends + 3 private endpoints + 4 spare + 5 reserved = 55 IPs. The smallest subnet that meets the requirement is /26 (64 total addresses, 59 usable), so /25 is unnecessarily large and not the smallest.

D

A /28 subnet provides only 16 total addresses, of which Azure reserves 5, leaving 11 usable. The requirement demands 41 VM NICs, 2 ILB frontends, 3 private endpoints, and 4 spare IPs, totaling 50 IPs, far exceeding 11 usable addresses.

165
MCQhard

A Windows VM in Azure has a public IP address, but administrators on the internet cannot connect by using Remote Desktop. You confirm that the VM is running and the guest firewall allows RDP. What is the most likely Azure-side cause?

A.The NSG does not allow inbound TCP 3389
B.The storage account uses LRS
C.Azure Advisor is not enabled
D.The VM is in an availability set
AnswerA

RDP clients connect to Windows VMs over TCP port 3389. A network security group (NSG) acts as a distributed firewall; if the NSG associated with the VM's subnet or NIC has no inbound allow rule for port 3389 (or has an explicit deny), the default rule denying inbound internet traffic takes effect and drops the connection. Even with a public IP and a healthy VM, this NSG misconfiguration will make RDP time out. Therefore, a missing or blocking NSG rule on TCP 3389 is the direct cause of the RDP failure.

Why this answer

The most likely Azure-side cause is that a Network Security Group (NSG) associated with the VM's subnet or network interface is blocking inbound traffic on TCP port 3389 (RDP). Even if the VM is running and the guest OS firewall allows RDP, an NSG rule must explicitly permit inbound TCP 3389 from the internet (or a specific source) for Remote Desktop connections to succeed. Without such a rule, the NSG silently drops the packets before they reach the VM.

Exam trap

The trap here is that candidates often assume the guest OS firewall is the only barrier for RDP, overlooking that Azure's NSG acts as a separate, mandatory network-level filter that must explicitly allow inbound TCP 3389 from the internet.

Why the other options are wrong

B

Storage account replication type (LRS) affects data durability and availability, not network connectivity to a VM. It has no impact on RDP access.

166
Multi-Selecteasy

A company wants an Azure Storage account to be reachable privately from a virtual network. Which two statements about a private endpoint are correct? Select two.

Select 2 answers
A.The storage service gets a private IP address in the selected virtual network.
B.The virtual machine that reaches the service must have its own public IP address.
C.A private endpoint replaces the need for any DNS configuration.
D.A private DNS zone is commonly used so the service name resolves to the private IP.
E.A private endpoint and a service endpoint are the same feature.
AnswersA, D

Correct because a private endpoint creates a network interface in your virtual network and maps the Azure service to a private IP address there.

Why this answer

A private endpoint assigns the Azure Storage service a private IP address from the subnet of the selected virtual network, effectively bringing the service into the VPC-like environment. This ensures that traffic to the storage account stays within the Microsoft backbone network and never traverses the public internet, meeting private connectivity requirements.

Exam trap

The trap here is that candidates often confuse private endpoints with service endpoints, thinking both provide a private IP address, but only private endpoints assign a private IP from the VNet, while service endpoints rely on public IPs with network security group (NSG) restrictions.

Why the other options are wrong

B

A private endpoint does not require the virtual machine to have a public IP address; traffic stays within the Microsoft backbone and never traverses the internet.

C

A private endpoint does not replace DNS configuration; it requires DNS resolution to map the storage account's FQDN to the private IP, often using a private DNS zone.

E

Private endpoints and service endpoints are distinct features: private endpoints provide a private IP in the VNet, while service endpoints extend the VNet's identity to the service over the public endpoint.

167
MCQeasy

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?

A.Keep Azure-provided DNS because the spoke can already reach the hub by IP.
B.Configure the spoke VNet to use 10.20.0.4 as a custom DNS server.
C.Create a private endpoint for app01.corp.local in the spoke VNet.
D.Enable a NAT gateway on the spoke subnet.
AnswerB

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.

Why this answer

The hub VNet uses a custom DNS server at 10.20.0.4 (likely a Windows Server with DNS role) that can resolve internal hostnames like app01.corp.local. The spoke VNet is currently using Azure-provided DNS, which cannot resolve custom private DNS zones. By configuring the spoke VNet to use 10.20.0.4 as a custom DNS server, the spoke VMs will forward DNS queries to the hub DNS server, enabling hostname resolution for internal resources.

Exam trap

The trap here is that candidates assume Azure-provided DNS can resolve custom hostnames across peered VNets, but it only resolves names within the same VNet unless a custom DNS server or Azure Private DNS Zone is configured.

Why the other options are wrong

A

The issue is that internal hostname resolution fails, meaning the spoke VNet cannot resolve names like app01.corp.local. Keeping Azure-provided DNS does not resolve custom internal hostnames; it only provides Azure-assigned names. The spoke needs a custom DNS server (like the hub's DNS at 10.20.0.4) to forward queries to resolve those names.

C

A private endpoint is used to securely access Azure PaaS services over a private IP, not to resolve internal hostnames like app01.corp.local. DNS resolution for custom domains requires a custom DNS server or Azure Private DNS zones, not a private endpoint.

D

A NAT gateway provides outbound internet connectivity for VMs in a subnet, but it does not resolve internal hostnames. The issue is DNS resolution for internal names, which requires a DNS server, not NAT.

168
MCQmedium

A company has a hub virtual network with a DNS server VM at 10.50.0.4 that hosts internal names such as app01.corp.local. A spoke virtual network is already peered to the hub. VMs in the spoke can reach resources in the hub by IP address, but they cannot resolve the internal host names. The company wants to keep DNS centralized and avoid deploying another DNS server in the spoke. What should the administrator configure?

A.Create a private DNS zone for corp.local and link it only to the spoke subnet.
B.Set the spoke virtual network to use 10.50.0.4 as a custom DNS server.
C.Add a user-defined route in the spoke to send DNS traffic to the hub VNet.
D.Enable gateway transit on the peering and set use remote gateways on the spoke.
AnswerB

Configuring the spoke VNet with the hub DNS server IP sends name-resolution requests to the centralized server. Because VNet peering already provides network connectivity, the spoke can query 10.50.0.4 directly for internal names without deploying a second DNS server.

Why this answer

The spoke virtual network must be configured to use the hub DNS server (10.50.0.4) as a custom DNS server. This ensures that all VMs in the spoke send DNS queries to the hub server, which hosts the internal zone for corp.local. Since the hub and spoke are already peered, DNS traffic can flow over the peering connection without additional routing, keeping DNS centralized.

Exam trap

The trap here is that candidates often confuse DNS resolution with routing or gateway transit, thinking they need to add a UDR or enable gateway features to forward DNS queries, when the real fix is simply changing the DNS server setting on the spoke VNet to point to the hub's DNS server IP.

Why the other options are wrong

A

A private DNS zone linked only to the spoke subnet would require a DNS server in the spoke to resolve names, but the company wants to keep DNS centralized on the hub's DNS server (10.50.0.4). This option does not direct DNS queries to the hub server.

C

A user-defined route (UDR) controls network traffic paths, not DNS resolution. DNS traffic to 10.50.0.4 already works via the peering; the issue is that the spoke VMs are not configured to use that IP as their DNS server, so a UDR does not solve name resolution.

D

Enabling gateway transit and using remote gateways is for routing traffic through VPN/ExpressRoute gateways, not for DNS resolution. This option does not configure the spoke VNet to use the hub's DNS server.

169
MCQmedium

A storage account must be reachable only from resources in a single VNet. The team wants the storage service to use a private IP address inside that VNet and wants to disable public network access. Which feature should be configured?

A.A service endpoint
B.A private endpoint
C.A network security group rule on the subnet
D.A storage account firewall IP allow rule
AnswerB

A private endpoint assigns the storage account a private IP address from your virtual network, so the service is reachable only via that private IP from resources in the VNet. This effectively moves the storage endpoint into your VNet and eliminates exposure to the public internet. Traffic to the storage account flows over the Microsoft backbone, not the public internet, and can be further secured with network policies.

Why this answer

A private endpoint assigns the storage account a private IP address from the VNet's address space, effectively bringing the service into the VNet. It also disables public network access by default when configured with the 'Deny public network access' setting, ensuring the storage account is reachable only from within that VNet.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both provide private IP addresses, but service endpoints only provide a direct route over the Microsoft backbone while still using the public endpoint.

Why the other options are wrong

A

A service endpoint does not assign a private IP to the storage account; it only allows access from a VNet while the storage account retains its public endpoint. The question requires the storage service to use a private IP inside the VNet, which only a private endpoint provides.

C

A network security group (NSG) rule on the subnet can filter traffic to the storage account's public endpoint, but it does not provide a private IP address for the storage service nor disable public network access. The storage account would still be accessible via its public endpoint from outside the VNet if the NSG rule is misconfigured or bypassed.

D

A storage account firewall IP allow rule restricts access based on public IP addresses, not private IPs within a VNet. It cannot provide a private IP address inside the VNet or disable public network access entirely.

170
MCQmedium

A subnet has an NSG with these inbound rules: priority 100 denies TCP 443 from Any, and priority 200 allows TCP 443 from an Application Security Group named WebFrontEnd. A backend VM in the subnet still does not accept traffic from the frontend tier. What should the administrator change?

A.Change the allow rule source from an Application Security Group to VirtualNetwork.
B.Move the allow rule to a lower priority number than the deny rule.
C.Attach a user-defined route to the subnet so traffic bypasses the NSG.
D.Place the backend VM in a different availability set so the rule is evaluated differently.
AnswerB

NSG rules are processed by priority, and the lowest number wins. Because the deny rule at priority 100 is evaluated before the allow rule at 200, the traffic is blocked. The administrator should make the allow rule a smaller number than the deny rule or remove the conflicting deny rule.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers evaluated first. Since the deny rule has priority 100 and the allow rule has priority 200, the deny rule is evaluated first and blocks TCP 443 traffic from any source, including the WebFrontEnd Application Security Group. To allow the frontend traffic, the allow rule must be moved to a lower priority number (e.g., 90) so it is evaluated before the deny rule.

Exam trap

The trap here is that candidates often assume allow rules override deny rules or that more specific rules (like those using Application Security Groups) take precedence regardless of priority, but in Azure NSGs, priority order strictly determines which rule is applied first.

Why the other options are wrong

A

The NSG rules are evaluated by priority order; the deny rule at priority 100 blocks all TCP 443 traffic before the allow rule at priority 200 is evaluated. Changing the source to VirtualNetwork does not resolve the priority issue.

C

NSGs filter traffic based on rules; a user-defined route (UDR) controls traffic routing, not NSG filtering. Attaching a UDR does not bypass NSG rules, so it would not resolve the issue where a higher-priority deny rule blocks traffic.

D

Availability sets affect VM high availability, not NSG rule evaluation. NSG rules are evaluated based on priority and source/destination, not the VM's availability set membership.

171
MCQeasy

An administrator is deploying a site-to-site VPN gateway in Azure. Which resource must be attached to the gateway so it can receive encrypted connections from the on-premises VPN device?

A.A public IP address resource.
B.A private endpoint.
C.A service endpoint.
D.A network security group.
AnswerA

A VPN gateway must have a public IP address resource to serve as the external endpoint for the site-to-site tunnel. This public IP is assigned to the gateway object (not a VM NIC) and is the address your on-premises VPN device connects to over the internet. Without it, the gateway has no routable public-facing address, so the IPsec/IKE handshake cannot be initiated.

Why this answer

A site-to-site VPN gateway in Azure requires a public IP address resource to be attached so that the on-premises VPN device can establish an encrypted IPsec/IKE tunnel to it. The public IP address provides the routable endpoint on the internet that the on-premises device connects to, and it is assigned to the gateway's front-end configuration. Without this public IP, the gateway cannot receive inbound encrypted traffic from the external network.

Exam trap

The trap here is that candidates confuse a VPN gateway's public IP requirement with private connectivity options like private endpoints or service endpoints, mistakenly thinking the gateway can operate within the virtual network's private IP space alone.

Why the other options are wrong

B

A private endpoint is used to securely connect to Azure PaaS services over a private IP address, not to receive encrypted VPN connections from an on-premises VPN device. The VPN gateway requires a public IP address to terminate the site-to-site VPN tunnel.

C

A service endpoint secures Azure service access from a virtual network, but it does not provide the public IP address required for a VPN gateway to receive encrypted connections from an on-premises VPN device.

D

A network security group (NSG) filters traffic but does not provide the public IP address required for the on-premises VPN device to establish an encrypted connection to the Azure VPN gateway.

172
MCQmedium

A VM in a subnet cannot connect to another VM on TCP 1433. The administrator wants to confirm whether an NSG rule is blocking the flow and which rule is responsible. Which Network Watcher feature should be used?

A.Connection troubleshoot
B.IP flow verify
C.Packet capture
D.Effective routes
AnswerB

IP flow verify is designed to test whether a specific packet would be allowed or denied by the effective NSG rules on a VM NIC. It helps the administrator identify the rule name and direction that controls the flow. That makes it the best choice when the question is specifically about an NSG decision on a given source, destination, protocol, and port.

Why this answer

B is correct because IP flow verify is the Network Watcher feature specifically designed to test whether traffic is allowed or denied to or from a virtual machine. It checks the security rules (NSG and ASG) and returns which rule is blocking the flow, including the direction and priority. For a TCP 1433 connection failure, this tool directly identifies the blocking NSG rule.

Exam trap

The trap here is that candidates often confuse Connection troubleshoot (which tests end-to-end connectivity but does not identify the blocking rule) with IP flow verify, which is the precise tool for rule-level diagnosis.

Why the other options are wrong

A

Connection troubleshoot checks connectivity issues like latency, packet loss, and path hops, but it does not identify which specific NSG rule is blocking traffic. IP flow verify is designed to test whether traffic is allowed or denied by NSG rules and to pinpoint the exact rule responsible.

C

Packet capture captures network traffic for analysis but does not directly identify which NSG rule is blocking traffic; it requires manual inspection of captured data and does not provide a rule-level verdict.

D

Effective routes shows the effective routes for a VM, not NSG rules. It cannot identify which NSG rule is blocking traffic on TCP 1433.

173
Multi-Selectmedium

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.

Select 2 answers
A.Move the allow rule to a higher priority number than 200.
B.Move the allow rule to a lower priority number than 200.
C.Ensure the web NICs are added to ASG-Web and the API NICs are added to ASG-Api.
D.Change the rule protocol from TCP to Any.
E.Attach a route table to the API subnet to override the deny behavior.
AnswersB, C

NSG rules are processed in ascending priority order, with lower numbers taking precedence. To allow traffic that is currently blocked by a deny rule at priority 200, the allow rule must be assigned a priority number lower than 200—for example, 100. Because NSG processing stops at the first matching rule, the allow rule at 100 will be evaluated and applied before the deny rule is ever reached, permitting the traffic.

Why this answer

B is correct because NSG rules are evaluated in priority order, with lower numbers having higher priority. The Deny-8443 rule at priority 200 is evaluated before the Allow-8443-WebToApi rule at priority 300, so the deny rule blocks the traffic. Moving the allow rule to a lower priority number (e.g., 100) ensures it is evaluated first, allowing the traffic.

C is correct because the allow rule uses application security groups (ASGs); if the web and API NICs are not assigned to the respective ASGs, the rule will not match any traffic, effectively making it a no-op.

Exam trap

The trap here is that candidates often forget that NSG rules are evaluated in priority order (lower number = higher priority) and that application security groups require explicit NIC assignment—they may assume the ASG rule works automatically or that changing the protocol or adding a route table can bypass a deny rule.

Why the other options are wrong

A

In Azure NSGs, rules are processed in priority order with lower numbers evaluated first. A deny rule at priority 200 blocks traffic before the allow rule at priority 300 is evaluated, so moving the allow rule to a higher priority number (e.g., 400) would still be evaluated after the deny and thus never match.

D

The Deny-8443 rule at priority 200 blocks all traffic on TCP 8443, and the Allow-8443-WebToApi rule at priority 300 is evaluated after the deny, so it never applies. Changing the protocol to Any does not resolve the priority order issue; the deny rule still blocks the traffic regardless of protocol.

E

Route tables control traffic routing between subnets, not NSG rule evaluation. The deny rule at priority 200 is blocking traffic before the allow rule at priority 300 is evaluated, so a route table cannot override NSG deny behavior.

174
MCQmedium

A branch office with a fixed public IP needs encrypted access to private Azure virtual machines and internal services in a VNet. Traffic must travel across the public internet in an encrypted tunnel, and the connection should use a route-based design. What should the administrator deploy in Azure?

A.An Azure Virtual Network peering connection to the branch office network.
B.A VPN gateway with a site-to-site connection.
C.A service endpoint on the target subnet.
D.An Azure private endpoint for the virtual machines.
AnswerB

A site-to-site VPN gateway creates an encrypted tunnel from the branch office to Azure over the public internet. Because the branch has a static public IP and the requirement calls for route-based connectivity, this is the correct Azure networking service. Once deployed, the gateway can provide private access to VMs and internal services in the virtual network without exposing them directly to the internet.

Why this answer

A VPN gateway with a site-to-site connection is the correct choice because it establishes an encrypted IPSec tunnel over the public internet between the branch office's fixed public IP and Azure, using a route-based (IKEv2) configuration. This allows the branch office to securely access private Azure VMs and internal services in the VNet, meeting the requirement for encrypted traffic across the internet.

Exam trap

The trap here is that candidates often confuse Azure Virtual Network peering (which is for VNet-to-VNet connectivity within Azure) with site-to-site VPN (which is for on-premises to Azure connectivity), leading them to select option A incorrectly.

Why the other options are wrong

A

VNet peering connects two Azure virtual networks, not an on-premises network. It does not provide encrypted tunnels over the public internet or support site-to-site VPN connections.

C

Service endpoints provide secure connectivity to Azure services over the Microsoft backbone network, not encrypted tunnels over the public internet. They do not support route-based VPN designs or encrypted site-to-site connections.

D

Azure Private Endpoint provides private connectivity to Azure services within a VNet, not encrypted site-to-site connectivity from an on-premises network over the public internet.

175
MCQhard

Users on the internet cannot access an HTTPS website hosted on VM-Web01. The VM has a public IP address, the web service is running, and the guest OS firewall allows TCP 443. What is the most likely Azure-side issue?

A.The NSG does not allow inbound TCP 443
B.The VM uses managed disks
C.Azure Backup is not enabled
D.The storage account uses the Cool tier
AnswerA

An NSG is a stateful packet filter that denies inbound traffic by default unless an explicit rule permits it. Without an inbound allow rule for TCP 443, the VM's network interface or its subnet discards the TCP handshake packets from the internet, so HTTPS sessions never reach the web server even if the server is healthy. You must add a rule with source 'Internet' or 0.0.0.0/0, destination port 443, and action Allow to enable inbound HTTPS.

Why this answer

The most likely Azure-side issue is that the Network Security Group (NSG) associated with the VM's subnet or NIC does not have an inbound rule allowing TCP 443. Even if the guest OS firewall permits HTTPS and the web service is running, the NSG acts as a distributed firewall that filters traffic at the Azure network boundary. Without an explicit inbound security rule for TCP 443, all HTTPS traffic from the internet is dropped before reaching the VM.

Exam trap

The trap here is that candidates often assume that because the guest OS firewall allows the port and the web service is running, the VM is fully accessible, overlooking the fact that Azure's NSG is an additional, mandatory layer of network filtering that must also permit the traffic.

Why the other options are wrong

B

Managed disks are a storage configuration for VMs and do not affect network access or HTTPS connectivity. The issue is about inbound traffic, which is controlled by NSGs, not disk type.

D

The storage account Cool tier affects blob storage costs and access latency, not network connectivity to a VM's HTTPS endpoint. The issue is about inbound traffic to a VM, which is controlled by NSG rules, not storage tier.

176
MCQhard

An application in a VNet must access an Azure Storage account over a private IP address. Public network access is disabled on the storage account, and the app must resolve the normal blob FQDN to that private address only from within the VNet. What should the administrator configure?

A.A service endpoint on the subnet and a storage account firewall rule for the subnet.
B.A private endpoint for the blob service and a linked private DNS zone for the VNet.
C.Allow trusted Microsoft services on the storage account and keep the public endpoint enabled.
D.Create a public DNS record that maps the blob FQDN to the storage account's public IP address.
AnswerB

A private endpoint gives the storage service a private IP inside the VNet, which satisfies the private connectivity requirement. Linking the corresponding private DNS zone ensures the standard blob FQDN resolves to that private address for workloads in the VNet. That combination is the normal solution when public access is disabled and applications must keep using the service's standard name.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, and linking a private DNS zone (e.g., `privatelink.blob.core.windows.net`) to the VNet ensures that the blob FQDN resolves to that private IP only from within the VNet. This meets the requirement of disabling public network access while providing private connectivity and DNS resolution.

Exam trap

The trap here is that candidates confuse service endpoints (which still use the public endpoint) with private endpoints (which provide a true private IP), and they overlook the critical requirement of disabling public network access, which makes service endpoints invalid.

Why the other options are wrong

A

Service endpoints provide access via the public endpoint over a private IP, but they do not disable public network access or resolve the FQDN to a private IP. The question requires private IP resolution and disabled public access, which only a private endpoint can achieve.

C

Option C allows public endpoint access for trusted Microsoft services, but the requirement is to access the storage account over a private IP address with public network access disabled. Trusted services bypass the firewall but still use the public endpoint, not a private IP.

D

This option is wrong because the question requires private IP connectivity and DNS resolution from within the VNet only. Creating a public DNS record would expose the storage account's public IP, contradicting the requirement that public network access is disabled and the app must resolve the FQDN to a private address.

177
MCQeasy

Based on the exhibit, what is the best change so the VNet peering can be created successfully?

A.Change VNet-B to a non-overlapping address space, such as 10.1.0.0/24.
B.Add a route table to VNet-B before creating the peering.
C.Enable gateway transit on VNet-A.
D.Resize VNet-A to 10.0.0.0/15 so both VNets fit.
AnswerA

Azure VNet peering requires that the address spaces do not overlap. Changing VNet-B to a different range removes the conflict and allows peering to be created. The exact new range can vary, but it must not overlap with VNet-A’s 10.0.0.0/16 range.

Why this answer

VNet peering requires that the address spaces of the two virtual networks do not overlap. If VNet-A uses 10.0.0.0/16 and VNet-B also uses 10.0.0.0/16, they conflict, preventing peering. Changing VNet-B to a non-overlapping address space like 10.1.0.0/24 resolves this conflict, allowing the peering to be established.

Exam trap

The trap here is that candidates often confuse overlapping address spaces with routing issues, thinking that adding route tables or enabling gateway transit will fix the peering failure, when in fact the fundamental requirement is non-overlapping IP ranges.

Why the other options are wrong

B

Adding a route table to VNet-B does not resolve overlapping address spaces, which is the root cause preventing VNet peering. VNet peering requires non-overlapping address ranges; routing tables are irrelevant to this prerequisite.

C

Enabling gateway transit on VNet-A is unrelated to the address overlap issue. The peering fails because VNet-A (10.0.0.0/16) and VNet-B (10.0.0.0/24) have overlapping address spaces, which is not resolved by gateway transit.

D

Resizing VNet-A to 10.0.0.0/15 would still overlap with VNet-B's 10.0.0.0/16, as 10.0.0.0/15 includes 10.0.0.0/16. Overlapping address spaces prevent VNet peering from being established.

178
MCQmedium

A VM in Azure cannot accept RDP connections from your office public IP. The subnet NSG already has an inbound deny-all rule at priority 200, and you added an allow rule for TCP 3389 from 198.51.100.25/32 at priority 300. What should you do to allow the connection?

A.Change the source to Internet so the allow rule matches more traffic.
B.Create or move the allow rule to priority 100 so it is evaluated before the deny rule.
C.Change the protocol from TCP to Any to bypass the deny rule.
D.Assign a public IP directly to the VM to override the subnet NSG behavior.
AnswerB

NSG rules are evaluated in ascending priority order, meaning numeric 100 takes precedence over a higher-numbered deny rule such as 4096. By placing an allow rule for RDP (port 3389) from your office IP at priority 100, it is processed first and matches before the deny-all rule, permitting the connection. This is the standard method for overriding a broad deny rule while keeping security boundaries intact.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers having higher precedence. Since the deny-all rule at priority 200 is evaluated before the allow rule at priority 300, the deny rule blocks the RDP traffic. To allow the connection, the allow rule must be created or moved to a priority lower than 200 (e.g., 100) so it is evaluated first, permitting traffic from 198.51.100.25/32 on TCP 3389 before the deny rule is reached.

Exam trap

The trap here is that candidates mistakenly think adding a more specific allow rule at a higher priority number will override a broader deny rule, not realizing that NSG priority order (lower number = higher priority) determines which rule is evaluated first.

Why the other options are wrong

A

Changing the source to 'Internet' would allow traffic from all public IPs, not just your office IP, which violates the principle of least privilege and does not fix the rule priority issue. The deny rule at priority 200 still blocks the traffic because the allow rule at priority 300 is evaluated after it.

C

Changing the protocol to Any would not bypass the deny rule; the deny rule at priority 200 still blocks all inbound traffic regardless of protocol. The issue is rule priority, not protocol matching.

D

Assigning a public IP to the VM does not override subnet NSG rules; NSGs at both subnet and NIC levels are still evaluated, and the deny rule at priority 200 would still block RDP traffic.

179
MCQmedium

An application subnet has an NSG outbound rule Deny-HTTPS at priority 200 for TCP 443 to Any. A second outbound rule Allow-HTTPS-API at priority 300 permits TCP 443 from ASG-Web to ASG-Api. Web servers can reach other ports but not the API. What change should the administrator make?

A.Delete the deny rule so the allow rule can be evaluated.
B.Change the allow rule to a higher priority than 200, such as 100.
C.Change the destination from ASG-Api to the entire subnet address range.
D.Change the protocol from TCP to Any so the rule matches more traffic.
AnswerB

NSGs process the lowest priority number first. Moving the allow rule above the deny rule permits the traffic.

Why this answer

NSG rules are evaluated in priority order, with lower numbers having higher precedence. The Deny-HTTPS rule at priority 200 blocks all outbound TCP 443 traffic, including traffic from ASG-Web to ASG-Api. To allow the specific traffic, the Allow-HTTPS-API rule must have a lower priority number (e.g., 100) so it is evaluated before the deny rule, permitting the desired traffic while the deny rule still blocks other outbound HTTPS traffic.

Exam trap

The trap here is that candidates often assume more specific rules (like those using application security groups) are evaluated before general deny rules, but in Azure NSGs, priority numbers alone determine evaluation order, not specificity.

Why the other options are wrong

A

In Azure, NSG rules are evaluated in priority order (lowest number first). The deny rule at priority 200 is evaluated before the allow rule at priority 300, so deleting the deny rule would allow the allow rule to work, but the question asks for a change to fix the issue without deleting the deny rule. The correct fix is to increase the priority of the allow rule.

C

The allow rule already permits traffic to ASG-Api, but the deny rule at priority 200 blocks it before the allow rule at priority 300 is evaluated. Changing the destination to the entire subnet would not resolve the priority issue; the deny rule would still block traffic to the subnet.

D

Changing the protocol to Any would not resolve the issue because the Deny-HTTPS rule at priority 200 still blocks TCP 443 traffic regardless of protocol scope. The allow rule at lower priority (300) is never evaluated due to the higher-priority deny.

180
MCQmedium

A storage account must be reachable only from one subnet. The team does not want to deploy a private endpoint or manage private DNS zones, and they are acceptable with the storage account continuing to use its public endpoint. Which feature should be configured on the subnet?

A.A private endpoint for the storage account
B.A service endpoint for Microsoft.Storage
C.A route table with a default route to the storage account
D.An application security group containing the subnet
AnswerB

A service endpoint allows the selected subnet to access the storage service over the Azure backbone while the service keeps its public endpoint. It fits the requirement to avoid private DNS and private IP deployment.

Why this answer

A service endpoint for Microsoft.Storage allows a subnet to restrict access to a storage account's public endpoint without deploying a private endpoint or managing private DNS zones. When enabled, Azure adds the subnet's identity to traffic from that subnet, and the storage account's firewall can be configured to allow only that specific subnet, keeping the public endpoint active.

Exam trap

The trap here is that candidates may confuse service endpoints with private endpoints, assuming that restricting access to a subnet requires a private IP, when service endpoints achieve the same goal using the public endpoint with subnet-level firewall rules.

Why the other options are wrong

A

The question explicitly states the team does not want to deploy a private endpoint or manage private DNS zones, and they are acceptable with using the public endpoint. A private endpoint would require a private endpoint resource and private DNS zones, contradicting these constraints.

C

A route table with a default route to the storage account does not restrict access to a specific subnet; it only controls network traffic routing, not access control. The storage account's public endpoint would still be accessible from any subnet, failing the requirement to limit access to one subnet.

D

An application security group (ASG) is used to group virtual machines by application roles for network security group (NSG) rules, not to restrict storage account access to a specific subnet. It does not provide network-level access control to Azure PaaS services like storage accounts.

181
MCQhard

A subnet has a user-defined route for 10.0.0.0/8 with next hop Virtual appliance 10.1.1.4. The VNet is peered with VNet-Shared, whose address space is 10.12.0.0/16. A VM in the subnet sends traffic to 10.12.4.25. Which next hop will Azure use?

A.Virtual appliance 10.1.1.4, because the user-defined route controls all 10.x.x.x traffic.
B.Internet, because traffic not explicitly matched by the UDR leaves through the default route.
C.None, because Azure cannot route to peered VNets when a UDR exists on the subnet.
D.VNet peering, because the peered VNet prefix is more specific than the broader UDR.
AnswerD

Azure uses longest-prefix match first. The peered VNet has a /16 route to 10.12.4.25, while the UDR only matches 10.0.0.0/8. The /16 system route is more specific, so the packet follows VNet peering rather than the virtual appliance. This is a common design trap when administrators expect every UDR to override all other routes.

Why this answer

Azure uses the most specific matching route to determine next hop. The user-defined route (UDR) for 10.0.0.0/8 has a broader prefix length (/8) than the VNet peering route for 10.12.0.0/16 (/16). Since 10.12.4.25 falls within the peered VNet's address space, the more specific /16 route from VNet peering takes precedence over the UDR, directing traffic through the peering connection.

Exam trap

The trap here is that candidates assume a user-defined route for a broad range (like 10.0.0.0/8) overrides all traffic to that range, forgetting that Azure's longest prefix match rule gives precedence to more specific routes, such as those from VNet peering.

Why the other options are wrong

A

The UDR for 10.0.0.0/8 is less specific than the VNet peering route for 10.12.0.0/16, so Azure uses the most specific prefix match (peering), not the UDR.

B

Azure uses the most specific prefix match. The VNet peering route for 10.12.0.0/16 is more specific than the UDR's 10.0.0.0/8, so traffic to 10.12.4.25 uses VNet peering, not the Internet.

C

Azure can route to peered VNets even when a UDR exists; the UDR's 10.0.0.0/8 prefix is less specific than the peered VNet's 10.12.0.0/16, so the more specific peering route is preferred.

182
MCQmedium

A VM has both a default route from a VPN gateway and a user-defined route to an on-premises firewall. Traffic is still not reaching the expected next hop. The administrator wants to see the exact routes currently applied to the VM NIC. Which tool should be used?

A.Effective routes
B.IP flow verify
C.Packet capture
D.Connection troubleshoot
AnswerA

Effective routes show the actual routing table that Azure applies to a VM NIC, including system routes, UDRs, and routes learned from gateways. This is the best way to verify which next hop will be used after route selection logic is applied. It is especially helpful when a VPN gateway, UDR, or default Azure route creates an unexpected path and the administrator needs the exact active result rather than the intended configuration.

Why this answer

Effective routes is the correct tool because it displays the actual, consolidated routing table applied to a specific network interface, including user-defined routes (UDRs), BGP routes from the VPN gateway, and system default routes. When traffic fails to reach the expected next hop despite having both a VPN default route and a UDR, the administrator must verify which route is actually active and has the highest priority (based on prefix length and route preference). Effective routes shows the exact next-hop IP and route source for each prefix, allowing the administrator to confirm whether the UDR to the on-premises firewall is being honored or overridden.

Exam trap

The trap here is that candidates often confuse 'IP flow verify' (which tests connectivity) with 'Effective routes' (which shows the routing table), leading them to choose IP flow verify when the real need is to inspect the actual route selection logic applied to the NIC.

Why the other options are wrong

B

IP flow verify checks if traffic is allowed or denied based on NSG rules, but it does not show the effective routes applied to a VM NIC. The question asks for the exact routes, not security rule validation.

C

Packet capture captures network traffic for analysis, but it does not show the routes applied to a VM NIC. The question asks for the exact routes currently applied, which is provided by effective routes, not packet capture.

D

Connection troubleshoot is used to test connectivity between a VM and another endpoint, not to display the exact routes applied to a VM NIC. The question asks for a tool to view current routes, which is the purpose of Effective routes.

183
MCQmedium

A subnet has an NSG with an inbound allow rule for TCP 3389 at priority 200 and an inbound deny rule for Internet traffic at priority 100. An administrator still cannot RDP to a virtual machine in the subnet from home. What is the most likely reason?

A.The allow rule is ignored because inbound rules cannot permit RDP.
B.The deny rule wins because lower priority numbers are processed first.
C.NSG rules apply only to outbound traffic, so inbound traffic is unaffected.
D.The subnet NSG is ignored whenever the VM has a public IP address.
AnswerB

Azure NSG rules are evaluated in priority order, and the lowest number is processed first. Because the deny rule has priority 100, it is evaluated before the allow rule at 200 and blocks the traffic.

Why this answer

In Azure Network Security Groups (NSGs), rules are processed in priority order, with lower numbers evaluated first. The deny rule for Internet traffic at priority 100 is processed before the allow rule for TCP 3389 at priority 200, so the deny rule blocks the inbound RDP connection from the internet. This is why the administrator cannot RDP from home.

Exam trap

The trap here is that candidates often assume a higher-priority allow rule can override a lower-priority deny rule, but in Azure NSGs, lower priority numbers are processed first, so a deny at priority 100 blocks traffic before an allow at priority 200 is even considered.

Why the other options are wrong

A

In Azure, NSG inbound rules can permit RDP (TCP 3389) traffic, so the allow rule is valid. The issue is not that the rule type is invalid, but that the deny rule at a lower priority number (100) overrides the allow rule at priority 200.

C

NSG rules apply to both inbound and outbound traffic; inbound rules can control RDP access. The issue here is priority order, not direction.

D

NSGs apply to subnets and network interfaces regardless of public IP assignment; a VM with a public IP still has its inbound traffic filtered by the subnet NSG.

184
Matchinghard

Match each NSG or ASG scenario to the most accurate Azure security behavior.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

The priority 200 deny is evaluated first and blocks the flow.

The destination NIC must be added to ASG-Api for the rule to match.

The service tag does not represent the workstation's IP; a rule for the real source or a VPN path is needed.

NSGs are stateful, so the return traffic is allowed automatically.

The lower-number deny rule wins because NSGs stop at the first matching rule.

Why these pairings

NSGs filter traffic at subnet or NIC level, while ASGs group VMs for scalable rule application. Service tags simplify rules for Azure services.

185
MCQmedium

A network engineer wants device logs from routers and switches sent to a central server for long-term retention and analysis. Which service should be configured?

A.NTP
B.DNS
C.Syslog
D.NetFlow
AnswerC

Syslog is the standard logging protocol used by routers, switches, and other network appliances to send event messages—such as interface state changes, authentication failures, and configuration modifications—to a centralized log collector or SIEM. A network engineer would configure a syslog server address on each device to aggregate operational and security logs. Thus, Syslog directly fulfills the requirement to collect device logs.

Why this answer

Syslog is the standard protocol for sending device logs (e.g., from routers and switches) to a central server for long-term retention and analysis. It operates over UDP port 514 (or TCP 6514 for reliable delivery) and allows network devices to forward event messages to a syslog collector, which can store, filter, and analyze them. This directly meets the requirement for centralized logging and analysis.

Exam trap

The trap here is confusing NetFlow with syslog — both involve network data, but NetFlow is for traffic flow statistics (e.g., who talked to whom, how much bandwidth), not for device event logs, so candidates often pick NetFlow thinking it covers 'analysis' without realizing it doesn't handle log messages.

Why the other options are wrong

A

NTP (Network Time Protocol) is used for synchronizing the clocks of network devices, not for collecting or sending logs. Therefore, it does not fulfill the requirement of sending device logs for analysis.

B

DNS (Domain Name System) is used for resolving domain names to IP addresses and does not facilitate the collection or centralization of device logs from routers and switches.

D

NetFlow is primarily used for monitoring and analyzing network traffic flows rather than collecting device logs. It does not provide the capability to send logs from routers and switches to a central server for retention and analysis.

186
MCQmedium

A team manages 20 web VMs and 15 app VMs that scale independently. The administrator needs an NSG rule that allows only the web tier to reach the app tier on TCP 8443, and future VM additions must be included automatically without editing IP addresses. What should the administrator use in the NSG rule?

A.A source application security group for the web tier and a destination application security group for the app tier.
B.A service endpoint on the subnet where the app VMs are deployed.
C.A user-defined route between the web subnet and app subnet.
D.A load balancer backend pool for both tiers.
AnswerA

Application security groups let you group VMs by function rather than by individual IP addresses. An NSG rule can reference a source ASG and a destination ASG, so newly added web or app VMs are automatically governed as long as they are added to the correct ASG. This is ideal for scalable tier-to-tier access control.

Why this answer

Application security groups (ASGs) allow you to define network security rules based on logical groupings of VMs, regardless of their IP addresses. By assigning the web tier VMs to a source ASG and the app tier VMs to a destination ASG, the NSG rule automatically includes any new VMs added to those groups, meeting the requirement for dynamic inclusion without manual IP edits.

Exam trap

The trap here is that candidates often confuse ASGs with network security groups (NSGs) themselves or think that service endpoints or UDRs can provide application-layer filtering, when in fact only ASGs enable IP-agnostic, dynamic grouping for NSG rules.

Why the other options are wrong

B

Service endpoints secure Azure service access (e.g., Azure Storage) from a subnet, not traffic between VMs. They cannot restrict traffic between web and app tiers based on application security groups.

C

A user-defined route (UDR) controls network traffic routing between subnets, not security filtering. It cannot allow or deny traffic based on port or application; NSG rules are required for that purpose.

D

A load balancer backend pool groups VMs for traffic distribution, not for NSG rule source/destination specification. It cannot be used as a source or destination in an NSG rule to filter traffic between tiers.

187
MCQmedium

A VM in a subnet must send traffic to 10.50.0.0/16 through an on-premises VPN gateway, while all other destinations should use the Internet. Which route should be added to the subnet's route table?

A.Destination 10.50.0.0/16 with next hop type Virtual network gateway.
B.Destination 0.0.0.0/0 with next hop type Virtual network gateway.
C.Destination 10.50.0.0/16 with next hop type Service endpoint.
D.Destination 10.50.0.0/16 with next hop type Internet.
AnswerA

This user-defined route is correct because 10.50.0.0/16 is an on-premises private prefix, and specifying a virtual network gateway as the next hop for that exact destination creates a targeted override of the default system route. Azure uses longest-prefix-match (LPM), so this more-specific route wins over the 0.0.0.0/0 system route and directs only the 10.50.0.0/16 traffic through the VPN or ExpressRoute gateway. All other traffic continues to use existing system routes, keeping the routing behavior isolated to the intended on-premises destination.

Why this answer

The VM needs to send traffic destined for 10.50.0.0/16 through the on-premises VPN gateway. Adding a user-defined route (UDR) with destination 10.50.0.0/16 and next hop type 'Virtual network gateway' forces that specific traffic to be routed over the VPN tunnel, while the default route (0.0.0.0/0) to the Internet remains unchanged, allowing all other traffic to egress via the Internet.

Exam trap

The trap here is that candidates often confuse the default route (0.0.0.0/0) with a specific destination route, mistakenly thinking that forcing all traffic through the VPN gateway is required, when only the specific on-premises network range needs to be routed that way.

Why the other options are wrong

B

This route would send ALL traffic (0.0.0.0/0) through the VPN gateway, but the requirement is to send only 10.50.0.0/16 traffic through the VPN and all other traffic through the Internet.

C

Service endpoints route traffic to Azure service IP ranges, not to on-premises networks like 10.50.0.0/16. They cannot forward traffic through a VPN gateway.

D

The destination 10.50.0.0/16 is a private IP range, and the Internet next hop type cannot route private IP traffic to the internet; it would drop the traffic or route it incorrectly.

188
MCQmedium

An operations team wants all internet-bound traffic from a workload subnet to pass through a network virtual appliance at 10.1.0.4 for inspection. Which next hop type should be used in a user-defined route for destination 0.0.0.0/0?

A.Internet
B.Virtual appliance
C.Virtual network gateway
D.None
AnswerB

Selecting 'Virtual appliance' as the next hop type creates a user-defined route that directs traffic to the private IP address of a network virtual appliance (NVA) or firewall. By pairing this route with the 0.0.0.0/0 address prefix, all internet-bound traffic is force-tunneled to the appliance for inspection and policy enforcement. This is the only option that explicitly supports forwarding packets to a standalone, non-gateway device inside the VNet.

Why this answer

To force all internet-bound traffic from a subnet through a network virtual appliance (NVA) at 10.1.0.4, you must create a user-defined route (UDR) with destination 0.0.0.0/0 and next hop type 'Virtual appliance'. This directs traffic to the NVA's private IP for inspection, overriding Azure's default system route that would otherwise send 0.0.0.0/0 traffic directly to the Internet via the Azure backbone.

Exam trap

The trap here is that candidates often confuse 'Virtual appliance' with 'Virtual network gateway', mistakenly thinking a VPN gateway is required to route internet traffic, when in fact the NVA is a simple VM or firewall appliance with IP forwarding enabled.

Why the other options are wrong

A

The next hop type 'Internet' would route traffic directly to the internet, bypassing the network virtual appliance at 10.1.0.4, which fails to meet the requirement for inspection.

C

A virtual network gateway is used for site-to-site VPN or ExpressRoute connections, not for routing traffic to a network virtual appliance. The next hop type for a user-defined route pointing to an NVA must be 'Virtual appliance'.

D

The 'None' next hop type means traffic is dropped, not routed to the virtual appliance. The question requires traffic to pass through the appliance for inspection, so 'None' would block all internet-bound traffic.

189
MCQmedium

An administrator creates a new spoke virtual network with address space 10.100.1.0/24 and tries to peer it to an existing hub virtual network that already uses 10.100.0.0/16. The peering fails. The business wants private connectivity between the hub and spoke. What action should the administrator take first?

A.Add a route table to the spoke and point the default route to the hub.
B.Change the spoke VNet to a non-overlapping address range before attempting peering again.
C.Enable gateway transit on the hub and use the remote gateway from the spoke.
D.Deploy a private DNS zone and link it to both VNets.
AnswerB

Azure virtual network peering requires non-overlapping address spaces. The spoke currently sits inside the hub's 10.100.0.0/16 range, so the overlap must be removed first. After the address space is changed to a unique range, peering can succeed and private connectivity can be established.

Why this answer

VNet peering requires that the address spaces of the peered virtual networks do not overlap. The hub already uses 10.100.0.0/16, which includes the spoke's 10.100.1.0/24 range, causing a conflict. Changing the spoke to a non-overlapping address range, such as 10.200.1.0/24, resolves this and allows the peering to succeed.

Exam trap

The trap here is that candidates often assume routing or DNS configuration can fix peering failures, overlooking the fundamental requirement that VNet address spaces must not overlap.

Why the other options are wrong

A

VNet peering does not require route tables; overlapping address spaces cause the peering to fail regardless of routing. Adding a route table cannot resolve the address space conflict.

C

Gateway transit is used to allow a spoke VNet to use the hub's VPN/ExpressRoute gateway for connectivity to on-premises, not to resolve overlapping address spaces. The peering failure is due to overlapping IP ranges, which gateway transit cannot fix.

D

VNet peering does not require DNS resolution to establish connectivity; the failure is due to overlapping address spaces, not DNS configuration.

190
MCQeasy

Based on the exhibit, what should the administrator create so VMs in AppSubnet can access the storage account over a private IP address?

A.A service endpoint for Microsoft.Storage on AppSubnet.
B.A private endpoint for the storage account in AppSubnet.
C.A site-to-site VPN gateway between AppVNet and the storage account.
D.An application security group for the storage account and subnet.
AnswerB

A private endpoint assigns the storage account a private IP address in the VNet, which is exactly what the exhibit requires. With public access disabled, the private endpoint is the correct way for the VMs to reach the storage service privately from AppSubnet.

Why this answer

A private endpoint assigns a private IP address from AppSubnet to the storage account, enabling VMs in that subnet to access the storage account over a private IP within the VNet. This eliminates exposure to the public internet and uses Azure Private Link for secure, direct connectivity.

Exam trap

The trap here is confusing service endpoints (which still use the public endpoint but with source subnet restriction) with private endpoints (which provide a true private IP address), leading candidates to incorrectly choose A when the question explicitly requires access over a private IP address.

Why the other options are wrong

A

A service endpoint provides access over the Azure backbone network but still uses a public IP address for the storage account, not a private IP address within the virtual network. The question specifically requires private IP access, which only a private endpoint can provide.

C

A site-to-site VPN gateway connects on-premises networks to Azure VNets, not to a specific storage account, and does not provide private IP access from a subnet to a storage account.

191
MCQeasy

An NSG on a subnet has these inbound rules: Deny-All-Inbound at priority 100 and Allow-RDP-from-AdminSubnet at priority 200. Administrators on AdminSubnet still cannot RDP to a VM in the subnet. What should the network administrator change?

A.Delete the deny rule so only the allow rule remains.
B.Move the allow rule to a lower priority number than 100.
C.Change the VM to a different availability zone.
D.Create a private endpoint for the VM.
AnswerB

NSG rules are evaluated in ascending priority order, where the lowest numeric value is processed first and the first matching rule determines the outcome. The current deny-all rule at priority 100 will match any inbound traffic, so a lower-priority allow rule (with a higher number, e.g., 200) is never reached. By moving the RDP allow rule to a priority number below 100, it is evaluated before the deny rule and permits the connection, while the deny rule still blocks all other unsolicited inbound traffic.

Why this answer

The NSG rules are evaluated in priority order, with lower numbers having higher precedence. The Deny-All-Inbound rule at priority 100 blocks all traffic, including RDP from AdminSubnet, before the Allow-RDP-from-AdminSubnet rule at priority 200 is evaluated. To allow RDP traffic, the allow rule must have a lower priority number (e.g., 90) than the deny rule (100), ensuring it is evaluated first and permits the traffic before the deny rule blocks it.

Exam trap

The trap here is that candidates assume allow rules override deny rules regardless of priority, but Azure NSGs use priority-based evaluation where the first matching rule (lowest priority number) wins, so a higher-priority deny rule will block traffic even if a lower-priority allow rule exists.

Why the other options are wrong

A

Deleting the deny rule would remove all inbound traffic restrictions, allowing any source to reach the subnet, which is overly permissive and violates security best practices. The issue is that the allow rule at priority 200 is never evaluated because the deny rule at priority 100 is processed first.

C

Changing the VM to a different availability zone does not affect NSG rule evaluation; NSG rules are applied at the subnet or NIC level regardless of zone.

D

Creating a private endpoint for the VM does not affect NSG rules; private endpoints are used for secure access to Azure PaaS services, not for RDP connectivity to VMs.

192
MCQmedium

Two VNets are peered. AppVNet contains VMs that access a private endpoint in DataVNet successfully by IP, but name resolution fails for the storage FQDN. The private DNS zone is linked only to DataVNet. What should you do?

A.Create another peering connection from AppVNet to DataVNet.
B.Add a virtual network link from the private DNS zone to AppVNet.
C.Create a public DNS zone with the same name as the private zone.
D.Assign a public IP address to the private endpoint.
AnswerB

Private endpoint name resolution depends on the private DNS zone being linked to the VNet where the clients reside. Because AppVNet is not linked to the zone, its VMs cannot resolve the private endpoint FQDN even though IP connectivity exists. Adding a virtual network link from the private DNS zone to AppVNet makes the private records available to those clients.

Why this answer

The private DNS zone is linked only to DataVNet, so VMs in AppVNet cannot resolve the storage FQDN even though IP connectivity works via the VNet peering. By adding a virtual network link from the private DNS zone to AppVNet, you enable DNS resolution for the private endpoint's FQDN across the peered VNet. This is required because private DNS zones are scoped to the VNets they are linked to, and peering alone does not propagate DNS resolution.

Exam trap

The trap here is that candidates assume VNet peering automatically extends DNS resolution for private endpoints, but peering only provides IP connectivity—DNS resolution requires explicit virtual network links to the private DNS zone.

Why the other options are wrong

A

The VNets are already peered, so creating another peering connection does not resolve DNS resolution issues. The problem is that the private DNS zone is not linked to AppVNet, not a lack of network connectivity.

C

Creating a public DNS zone with the same name as the private zone would not resolve the private endpoint's FQDN for VMs in AppVNet because public DNS zones are used for internet-facing resolution, not for private IP addresses. The private DNS zone must be linked to AppVNet to enable name resolution across the VNet peering.

D

Assigning a public IP to the private endpoint would expose it to the internet, defeating the purpose of private connectivity and not resolving name resolution issues within the peered VNets.

193
MCQmedium

A storage account is accessed from a VM in VNet A through a private endpoint. A VM in peered VNet B can connect to the storage account by IP, but when it uses the storage account name, it resolves to the public endpoint. What should the administrator configure?

A.Enable a service endpoint on VNet B for Microsoft.Storage.
B.Link the private DNS zone for the storage account to VNet B.
C.Assign the VM in VNet B a managed identity.
D.Create a route table that points storage traffic to the private endpoint subnet.
AnswerB

The name resolution problem indicates that VNet B does not know to resolve the storage FQDN to the private endpoint address. Linking the correct private DNS zone to VNet B lets machines in that network resolve the name to the private IP instead of the public endpoint. This is a common requirement when private endpoints are accessed from peered networks or additional VNets.

Why this answer

The VM in VNet B can reach the storage account by IP because the private endpoint is accessible over the VNet peering, but DNS resolution still returns the public IP because the private DNS zone (privatelink.blob.core.windows.net) is not linked to VNet B. By linking the private DNS zone to VNet B, the VM will resolve the storage account name to the private endpoint IP, ensuring connectivity over the Microsoft backbone instead of the public internet.

Exam trap

The trap here is that candidates assume VNet peering automatically provides DNS resolution for private endpoints, but the private DNS zone must be explicitly linked to each peered VNet for name resolution to work.

Why the other options are wrong

A

A service endpoint on VNet B for Microsoft.Storage would allow VMs in VNet B to access the storage account via its public endpoint using the service endpoint's source IP, but it does not resolve the private DNS zone issue. The problem is DNS resolution, not network connectivity; the VM resolves the storage account name to the public IP instead of the private endpoint IP.

D

A route table directs traffic based on IP addresses, but the VM in VNet B resolves the storage account name to the public endpoint, not the private endpoint IP. Route tables do not affect DNS resolution, so they cannot fix the name resolution issue.

194
MCQmedium

Based on the exhibit, what should the administrator change so the web tier can reach the database tier on TCP 443 without opening the subnet more broadly?

A.Move the allow rule for WebTierASG to a priority lower than 100.
B.Delete the deny rule because default rules already block unwanted traffic.
C.Change the deny rule source from VirtualNetwork to Internet.
D.Change the default inbound rule to AllowVnetInBound.
AnswerA

The allow rule for WebTierASG is currently assigned a priority number above 100, and because Azure processes NSG rules in ascending priority order, the deny rule at priority 100 is evaluated first and drops the traffic before the allow rule can run. Moving the ASG allow rule to a lower number, such as 90, ensures it is evaluated before the deny rule, permitting the intended traffic while still letting the deny rule apply to everything else. This is the only change that directly resolves the rule-order conflict without altering the overall security intent.

Why this answer

The administrator must ensure the allow rule for WebTierASG is evaluated before the deny-all rule. In Azure Network Security Groups (NSGs), rules are processed in priority order (lower numbers first). The current deny rule at priority 100 blocks all traffic from VirtualNetwork, including TCP 443 from the web tier.

By moving the allow rule to a priority lower than 100 (e.g., 90), it will be evaluated first, permitting TCP 443 traffic from WebTierASG to the database tier, while the deny rule still blocks all other traffic from the virtual network.

Exam trap

The trap here is that candidates often assume default rules block unwanted traffic, but Azure NSG default rules are permissive for virtual network traffic, so an explicit deny rule is necessary to restrict access, and priority order must be managed carefully to ensure allow rules are evaluated before deny rules.

Why the other options are wrong

B

Deleting the deny rule would allow all traffic from VirtualNetwork to the database subnet, including traffic from other subnets, which violates the requirement to restrict access to only the web tier on TCP 443.

C

Changing the deny rule source to 'Internet' would block traffic from the internet but not from other subnets within the virtual network, so the web tier would still be unable to reach the database tier due to the existing deny rule.

D

Changing the default inbound rule to AllowVnetInBound would allow all traffic from within the virtual network, which is too broad and does not restrict access to only the web tier on TCP 443.

195
MCQhard

Two virtual machines named VM-Web01 and VM-Web02 host the same public web application. Users on the internet must connect through a single public IP address, and incoming requests should be distributed across both VMs. What should you deploy?

A.An internal load balancer
B.A public load balancer
C.A private DNS zone
D.A Recovery Services vault
AnswerB

A public load balancer is the correct choice because it presents a single public IP address to internet clients and uses a backend pool containing vm-web01 and vm-web02. It applies health probes to each backend VM and forwards new connections only to healthy instances, thereby distributing traffic while also providing fault tolerance if one VM becomes unresponsive.

Why this answer

A public load balancer (Azure Load Balancer with a public frontend IP) is required because it provides a single public IP address for internet clients and distributes incoming traffic across the backend VMs (VM-Web01 and VM-Web02) using a configured load-balancing rule. This ensures high availability and scalability for the web application.

Exam trap

The trap here is that candidates often confuse an internal load balancer with a public load balancer, mistakenly thinking any load balancer can provide internet-facing access, but only a public load balancer exposes a public IP address for external clients.

Why the other options are wrong

A

An internal load balancer only handles traffic within a virtual network, not from the internet. Since users must connect from the internet through a single public IP, a public load balancer is required.

C

A private DNS zone resolves names within a private network, not for internet-facing traffic. It cannot provide a single public IP address or distribute incoming internet requests across VMs.

D

A Recovery Services vault is used for backup and disaster recovery, not for distributing incoming internet traffic across VMs.

196
MCQmedium

Two application VNets are deployed in different Azure regions. Each VNet uses a unique, non-overlapping address space. The application teams want private IP connectivity over the Microsoft backbone with the lowest possible latency between the regions. Which design should the administrator choose?

A.Global VNet peering.
B.A site-to-site VPN between the two VNets.
C.Azure Traffic Manager with two public endpoints.
D.A service endpoint for each application subnet.
AnswerA

Global VNet peering is the correct choice for private connectivity between VNets in different Azure regions. It keeps traffic on the Microsoft backbone, uses private IP addressing, and avoids the added latency and overhead of an external VPN tunnel. Because the VNets already have non-overlapping address spaces, they meet the peering prerequisites. This design is commonly used when multiple regional workloads need fast, private communication without introducing a gateway-based path.

Why this answer

Global VNet peering provides direct, private IP connectivity between two VNets in different Azure regions over the Microsoft backbone, ensuring the lowest possible latency by bypassing the public internet and any intermediate gateways. It uses the Azure infrastructure to route traffic efficiently between the peered VNets, meeting the requirement for private, low-latency communication.

Exam trap

The trap here is that candidates often confuse site-to-site VPN (Option B) as a private connectivity method, overlooking that its encryption overhead and gateway processing introduce higher latency compared to the direct, unencrypted path of Global VNet peering.

Why the other options are wrong

B

Site-to-site VPN uses the public internet or ExpressRoute with VPN gateway, which introduces higher latency and does not leverage the Microsoft backbone for the lowest latency path between VNets.

C

Azure Traffic Manager operates at the DNS level for traffic routing based on performance or geographic location, but it does not provide private IP connectivity between VNets; it requires public endpoints and does not enable direct VNet-to-VNet communication over the Microsoft backbone.

D

Service endpoints provide secure connectivity from a VNet to Azure PaaS services (like Storage or SQL) over the Microsoft backbone, not private IP connectivity between two VNets. They do not enable VNet-to-VNet routing or inter-region private connectivity.

197
MCQmedium

Based on the exhibit, an administrator is trying to peer two VNets so workloads can communicate privately. The peering creation fails. What should the administrator do first?

A.Create a user-defined route in VNet-Prod to force traffic through a firewall.
B.Readdress one of the VNets so the address spaces no longer overlap.
C.Enable gateway transit on both VNets and retry the peering.
D.Add an NSG rule that allows traffic from the other VNet.
AnswerB

Azure VNet peering requires non-overlapping address spaces. The correct first step is to change one VNet to a unique, non-conflicting prefix before attempting peering again. Once the overlap is removed, the peering can be created and traffic can flow privately between the networks.

Why this answer

VNet peering requires that the address spaces of the two virtual networks do not overlap. Overlapping address spaces cause routing conflicts and prevent the peering from being established. The administrator must readdress one of the VNets so their IP ranges are unique before retrying the peering.

Exam trap

The trap here is that candidates often focus on network security or traffic control (NSGs, UDRs, gateway transit) instead of recognizing that VNet peering has a strict prerequisite of non-overlapping address spaces, which is a common misconfiguration in real-world scenarios.

Why the other options are wrong

A

The peering fails due to overlapping address spaces, not routing. A UDR is irrelevant until peering is established.

C

Gateway transit is used for connecting VNets via a VPN gateway, not for VNet peering. The peering fails due to overlapping address spaces, which is unrelated to gateway transit.

D

The peering failure is due to overlapping address spaces, not because traffic is being blocked. NSG rules control traffic flow but do not resolve the fundamental issue of overlapping IP ranges, which prevents peering from being established.

198
MCQmedium

A VM in a subnet must access an Azure Storage account without creating a private endpoint. The organization is fine with the storage account remaining on its public endpoint, but traffic should stay on the Azure backbone rather than the public internet. Which feature should you use?

A.A service endpoint for Microsoft.Storage on the subnet.
B.A private endpoint and a private DNS zone.
C.A NAT gateway attached to the subnet.
D.A VPN gateway connection to the storage account resource group.
AnswerA

A service endpoint extends the VNet identity to the supported Azure service and keeps traffic on the Microsoft backbone. It does not create a private IP or require DNS changes, which matches this requirement. The storage account can remain on its public endpoint while still accepting traffic only from the allowed subnet.

Why this answer

A service endpoint for Microsoft.Storage on the subnet extends the virtual network identity to the storage account, allowing traffic from the subnet to the storage account's public endpoint to traverse the Azure backbone network instead of the public internet. This meets the requirement of keeping traffic on the Azure backbone without creating a private endpoint, as service endpoints use the public endpoint but route traffic through Microsoft's network.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming both require private IPs, but service endpoints keep the public endpoint while routing traffic over the Azure backbone.

Why the other options are wrong

B

The question explicitly states 'without creating a private endpoint,' so using a private endpoint (option B) violates that constraint. Additionally, the storage account remains on its public endpoint, which is incompatible with private endpoint usage.

C

A NAT gateway provides outbound internet connectivity with source network address translation, but it does not ensure traffic to Azure Storage stays on the Azure backbone; traffic still traverses the public internet.

D

A VPN gateway connection to the storage account resource group does not provide a direct path from the subnet to the storage account over the Azure backbone; it would require routing traffic through a VPN gateway, which is unnecessary and does not keep traffic on the Microsoft backbone for public endpoint access.

199
MCQmedium

A subnet has a user-defined route for 0.0.0.0/0 that sends all outbound traffic to a network virtual appliance for inspection. The business now attaches a NAT gateway to the subnet and wants internet-bound traffic to use the NAT gateway's public IP, while traffic to private corporate prefixes should still go to the appliance. What should the administrator change?

A.Leave the route table unchanged because the NAT gateway always overrides a default UDR.
B.Remove the 0.0.0.0/0 UDR and add only the specific private-prefix routes that must go to the appliance.
C.Disable source NAT on the network virtual appliance.
D.Create a private endpoint for internet traffic so outbound packets stay in Azure.
AnswerB

A NAT gateway provides outbound internet translation when the subnet uses the default internet route. If a 0.0.0.0/0 UDR sends traffic to an appliance, that route wins and the NAT gateway is bypassed. To meet both requirements, keep specific routes for corporate/private prefixes toward the appliance and let internet-bound traffic follow the system route, where the NAT gateway can provide stable outbound IPs.

Why this answer

The 0.0.0.0/0 user-defined route (UDR) sends all outbound traffic to the network virtual appliance (NVA). A NAT gateway provides outbound connectivity with a public IP, but it only takes effect when there is no explicit 0.0.0.0/0 route overriding it. By removing the 0.0.0.0/0 UDR and adding only specific private-prefix routes (e.g., 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) pointing to the NVA, internet-bound traffic will use the NAT gateway (via its default route), while corporate traffic is still forced through the appliance.

Exam trap

The trap here is that candidates assume a NAT gateway automatically overrides any existing default route, but in Azure, a user-defined route (UDR) for 0.0.0.0/0 takes precedence over the NAT gateway's implicit default, so the UDR must be removed or made less specific to allow the NAT gateway to handle internet-bound traffic.

Why the other options are wrong

A

A NAT gateway does not override a user-defined route (UDR) for 0.0.0.0/0; the UDR takes precedence, so traffic would still go to the network virtual appliance instead of the NAT gateway.

C

Disabling source NAT (SNAT) on the NVA does not change routing behavior; the UDR for 0.0.0.0/0 still forces all internet traffic through the NVA, bypassing the NAT gateway. The NAT gateway requires a direct route to the internet, not via the NVA.

D

Private endpoints are used for inbound access to Azure PaaS services over a private IP, not for outbound internet traffic. They do not provide NAT or routing for internet-bound traffic from a subnet.

200
MCQmedium

A development team runs Windows and Linux VMs in a single Azure subnet. The VMs must access an Azure Storage account, and the security team wants to restrict the storage account so only that subnet can reach it. The team does not want to create a private IP for the storage account or change DNS records. What should the administrator configure?

A.A private endpoint for the storage account and a private DNS zone.
B.A service endpoint on the subnet and a storage account network rule allowing that subnet.
C.A site-to-site VPN between the subnet and the storage account.
D.A user-defined route that sends storage traffic to the default internet next hop.
AnswerB

Service endpoints extend the subnet identity to the Azure Storage service without assigning a private IP to the storage account. This allows the administrator to restrict access to the specific Azure subnet while keeping the service reachable through its normal public DNS name. It fits the requirement to avoid DNS changes and private IP creation.

Why this answer

A service endpoint extends the subnet's identity to the storage account, allowing the storage firewall to accept traffic from that subnet without assigning a private IP. This meets the security requirement of restricting access to only that subnet while avoiding private IPs or DNS changes.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both require private IPs and DNS changes, but service endpoints operate at the network layer without altering the storage account's public endpoint.

Why the other options are wrong

A

The question explicitly states the team does not want to create a private IP for the storage account or change DNS records. A private endpoint requires a private IP and a private DNS zone, which violates these constraints.

C

A site-to-site VPN connects on-premises networks to Azure, not a subnet within Azure. It does not restrict storage account access to a specific subnet without using private IPs or DNS changes.

D

A user-defined route (UDR) sending storage traffic to the default internet next hop does not restrict access to the subnet; it merely directs traffic via the internet, which offers no security boundary. The requirement is to limit storage account access to the subnet, which requires a network rule, not routing.

201
MCQmedium

Based on the exhibit, which feature should you enable so the subnet can access the storage account without creating a private IP address in the VNet?

A.Private endpoint
B.Service endpoint
C.VPN Gateway
D.Azure Firewall
AnswerB

A service endpoint extends the virtual network identity to the storage account over the Microsoft.Storage service, so the storage firewall can allow access from a specific subnet. You enable this on the subnet in the VNet and configure the storage account firewall to allow that subnet, which grants private subnet-level access without assigning a private IP. This exactly satisfies the requirement of restricting traffic by subnet while keeping the storage account on its public endpoint.

Why this answer

Service endpoints allow a subnet to securely and privately connect to Azure PaaS services (like Storage Accounts) over the Azure backbone network without requiring a private IP address in the VNet. They extend the VNet identity to the service, enabling access via the service's public endpoint while restricting traffic to the subnet. This matches the requirement exactly: no private IP is created in the VNet, and the storage account is accessed directly.

Exam trap

The trap here is that candidates confuse Private Endpoint (which creates a private IP) with Service Endpoint (which does not), often assuming any 'private' access requires a private IP, but Service Endpoint provides private access over the Microsoft backbone without allocating an IP in the VNet.

Why the other options are wrong

A

Private endpoint creates a private IP address in the VNet for the storage account, which contradicts the requirement to avoid creating a private IP address. Service endpoints do not assign a private IP; they extend the VNet identity to the PaaS service.

C

A VPN Gateway creates an encrypted tunnel between on-premises and Azure, not a direct connection from a subnet to a storage account without a private IP. It does not enable subnet-to-PaaS service access without private endpoints.

D

Azure Firewall is a managed network security service that filters traffic, but it does not enable private access to Azure PaaS services without a private IP address. The question requires a feature that allows subnet access to a storage account without creating a private IP in the VNet, which is achieved by service endpoints, not Azure Firewall.

202
MCQmedium

A subnet NSG contains a deny inbound rule for TCP 3389 from Any at priority 100 and an allow inbound rule for TCP 3389 from 10.4.1.0/24 at priority 200. Admin workstations in 10.4.1.0/24 cannot connect by RDP. What change should the administrator make?

A.Replace the source IP range with an application security group in the allow rule.
B.Change the protocol from TCP to Any in the allow rule.
C.Lower the allow rule priority number so it is evaluated before the deny rule.
D.Add a user-defined route to the subnet so RDP traffic bypasses the NSG.
AnswerC

Network Security Group rules are processed in ascending order of their priority value, so the rule with the lowest number (highest priority) is evaluated first. If the deny rule has a lower priority number than the allow rule, it is matched before the allow rule ever runs, and because it denies RDP, the packet is dropped immediately. Lowering the allow rule's priority number — for example from 200 to 100 — places it ahead of the deny rule, so the allow condition is matched first and the deny rule is never reached.

Why this answer

NSG rules are evaluated in priority order, with lower numbers having higher priority. The deny rule at priority 100 blocks all TCP 3389 traffic from Any, and the allow rule at priority 200 is never reached. Lowering the allow rule's priority number (e.g., to 90) ensures it is evaluated before the deny rule, allowing RDP traffic from 10.4.1.0/24.

Exam trap

The trap here is that candidates often assume allow rules automatically override deny rules, but Azure NSGs use first-match evaluation based on priority numbers, not rule type.

Why the other options are wrong

A

The deny rule at priority 100 blocks all inbound RDP traffic, including from 10.4.1.0/24, because NSG rules are evaluated in priority order (lower number = higher priority). Replacing the source IP range with an application security group does not change the evaluation order; the deny rule still applies first.

B

The allow rule already permits TCP 3389, so changing the protocol to Any would not fix the issue. The problem is that the deny rule at priority 100 blocks all TCP 3389 traffic before the allow rule at priority 200 is evaluated.

D

NSGs filter traffic within a subnet; they do not route traffic. Adding a UDR would affect routing but cannot bypass NSG rules, as NSGs are evaluated after routing. The issue is rule priority, not routing.

203
MCQmedium

A company has a hub VNet and two peered spoke VNets, AppSpoke and DataSpoke. Both spokes can reach on-premises networks through the hub gateway. The app VM in AppSpoke must connect privately to the data VM in DataSpoke without using the internet or sending traffic on-premises first. What should the administrator do?

A.Add an NSG rule that allows traffic from AppSpoke to DataSpoke.
B.Enable gateway transit on both spoke peerings.
C.Create a direct VNet peering between AppSpoke and DataSpoke.
D.Add a user-defined route in AppSpoke pointing DataSpoke traffic to the hub gateway.
AnswerC

Azure VNet peering is not transitive. If two spoke VNets must communicate directly, they need a direct peering between them or another routing design such as an appliance. Because the requirement is simply private connectivity between the app and data VNets, direct peering is the simplest and correct fix. The existing hub peering does not provide that spoke-to-spoke path.

Why this answer

A direct VNet peering between AppSpoke and DataSpoke establishes a private, low-latency connection between the two VNets without routing traffic through the hub gateway or on-premises networks. This satisfies the requirement for a private connection that does not use the internet or traverse on-premises, as VNet peering uses the Microsoft backbone infrastructure.

Exam trap

The trap here is that candidates often assume gateway transit (Option B) enables direct spoke-to-spoke communication, but it only allows spokes to use the hub’s gateway for on-premises connectivity, not for inter-spoke traffic without going through the hub.

Why the other options are wrong

A

NSG rules control traffic filtering, not routing. They cannot establish a direct path between VNets; traffic would still flow through the hub, potentially using on-premises connectivity.

B

Gateway transit allows spoke VNets to use the hub VPN gateway to reach on-premises networks, but it does not enable direct private connectivity between spokes. Traffic between AppSpoke and DataSpoke would still be routed through the hub, potentially going on-premises if the hub gateway is involved.

D

Adding a user-defined route in AppSpoke pointing DataSpoke traffic to the hub gateway would force traffic through the hub, which then routes to on-premises if no direct peering exists, violating the requirement to avoid sending traffic on-premises first.

204
MCQmedium

A web application on a VM is failing on TCP 8443. The administrator wants to capture packets on the VM NIC to inspect retransmissions and handshake details after the test run. Which Network Watcher capability should be used?

A.IP flow verify
B.Connection troubleshoot
C.Packet capture
D.Effective routes
AnswerC

Packet capture records network traffic on the VM NIC so the administrator can analyze the exchange later. It is the right choice when the problem may involve retransmissions, handshake failures, or other packet-level behavior rather than only a routing or NSG question.

Why this answer

Packet capture in Network Watcher allows you to capture network traffic to and from a VM, including TCP retransmissions and handshake details (SYN, SYN-ACK, ACK). This is the correct tool for inspecting raw packets after a test run to diagnose issues like failed connections on TCP 8443.

Exam trap

The trap here is that candidates confuse IP flow verify or Connection troubleshoot with packet capture, not realizing that only packet capture provides raw packet data for analyzing retransmissions and handshake details.

Why the other options are wrong

A

IP flow verify checks if traffic is allowed or denied to/from a VM, but it does not capture packets for post-run analysis of retransmissions or handshake details.

B

Connection troubleshoot tests connectivity and identifies issues like blocked ports or latency, but it does not capture packets for post-run analysis of retransmissions and handshake details.

D

Effective routes shows the effective routes applied to a VM's NIC, but it does not capture or inspect network packets. It cannot be used to analyze retransmissions or handshake details on TCP 8443.

205
MCQmedium

An administrator is deploying a site-to-site VPN gateway in the Azure portal. The deployment fails validation because the gateway does not have a public-facing address to terminate the tunnel. What must be created and associated with the VPN gateway?

A.A load balancer frontend IP configuration in front of the gateway subnet.
B.A public IP address resource associated with the VPN gateway.
C.A NAT gateway attached to GatewaySubnet.
D.A private endpoint for the virtual network gateway resource.
AnswerB

Azure VPN gateways require a public IP address resource so the on-premises VPN device can establish the tunnel to a known public endpoint. The gateway is deployed in GatewaySubnet, and the public IP is attached as part of the gateway configuration. Without that resource, the VPN gateway cannot be created successfully.

Why this answer

A site-to-site VPN gateway in Azure requires a public IP address to terminate the IPSec tunnel from the on-premises device. The public IP address resource must be created and associated with the VPN gateway during deployment; without it, the gateway has no routable endpoint for the tunnel, causing validation to fail.

Exam trap

The trap here is that candidates often confuse the public IP requirement with other networking components like load balancers or NAT gateways, mistakenly thinking those can provide the necessary public endpoint for VPN tunnel termination.

Why the other options are wrong

A

A load balancer frontend IP configuration does not provide a public IP address that can be directly associated with a VPN gateway. The VPN gateway requires a dedicated public IP address resource to terminate the tunnel, not a load balancer frontend.

C

A NAT gateway provides outbound internet connectivity for virtual machines, not a public-facing IP for terminating VPN tunnels. The VPN gateway requires a public IP address resource directly associated with it, not a NAT gateway.

D

A private endpoint is used to securely connect to Azure PaaS services over a private IP address within a virtual network, not to provide a public-facing address for terminating a VPN tunnel.

206
MCQmedium

A VM in a virtual network must access an Azure Storage account over a private IP address, and the storage account's public endpoint must be disabled. Name resolution from the VM should resolve the storage name to the private IP. Which configuration should you use?

A.Service endpoint on the subnet plus public DNS, because the storage account will expose a private IP automatically.
B.Private endpoint with a private DNS zone linked to the virtual network.
C.Network security group rules only, because they can force traffic to use private addressing.
D.Storage account firewall rules with Allow trusted Microsoft services, because that gives a private address path.
AnswerB

A private endpoint places the storage service behind a private IP address in your virtual network, which is exactly what the scenario requires. Linking a private DNS zone ensures the storage account name resolves to that private IP from resources inside the VNet. Together, these settings provide private network access and allow you to disable the public endpoint safely.

Why this answer

A private endpoint assigns a private IP from the virtual network to the storage account, effectively bringing the service into the VNet. By linking a private DNS zone to the virtual network, the VM's DNS resolution for the storage account name returns the private IP instead of the public endpoint, satisfying both the private connectivity and public endpoint disablement requirements.

Exam trap

The trap here is confusing service endpoints (which only provide source IP preservation and routing via the public endpoint) with private endpoints (which provide a true private IP and can disable the public endpoint), leading candidates to choose option A.

Why the other options are wrong

A

Service endpoints do not assign a private IP to the storage account; they only provide direct connectivity over the Azure backbone. The storage account's public endpoint remains enabled, and name resolution still resolves to the public IP, not a private IP.

C

Network security group rules only control inbound/outbound traffic filtering and cannot assign a private IP address to a storage account or disable its public endpoint. They do not provide private name resolution or private connectivity.

D

Storage account firewall rules with 'Allow trusted Microsoft services' do not provide a private IP address; they only allow traffic from trusted Azure services over the public endpoint. The requirement is to disable the public endpoint and use a private IP, which firewall rules cannot achieve.

207
Multi-Selecteasy

Which two statements about Azure route tables and user-defined routes are correct? Select two.

Select 2 answers
A.You can associate a route table with a subnet.
B.A user-defined route can send traffic to a virtual appliance as the next hop.
C.Route tables can be associated directly to a single virtual machine without using its subnet.
D.A user-defined route automatically overrides a network security group deny rule.
E.System routes are never used when a route table exists.
AnswersA, B

A route table is a top-level Azure resource that must be linked to one or more subnets. After the association, all VMs in that subnet automatically use the route table's user-defined routes, and the route table cannot be attached to a VM's network interface directly. This design allows consistent routing for all resources in the subnet but means you cannot isolate one VM's routes without creating a separate subnet.

Why this answer

Route tables in Azure are associated at the subnet level, not directly to a virtual machine. This association allows the route table's user-defined routes (UDRs) to override system default routes for traffic leaving that subnet. The subnet must be in the same region as the route table, and a single route table can be associated with multiple subnets.

Exam trap

The trap here is that candidates often confuse the scope of route table association (subnet vs. VM) and assume UDRs can override NSG rules, when in fact routing and firewall filtering are separate layers in Azure's networking stack.

Why the other options are wrong

C

Route tables are associated with subnets, not directly with individual virtual machines. A VM inherits routes from its subnet's route table.

D

User-defined routes (UDRs) control network traffic routing, not security filtering. Network security group (NSG) rules are evaluated after routing, and a UDR cannot override an NSG deny rule because they operate at different layers: routing determines the path, NSG rules allow or deny traffic.

E

System routes are always used by default; user-defined routes (UDRs) override system routes only for specific traffic, but system routes still apply for other traffic and are not completely ignored when a route table exists.

208
MCQmedium

A company has 25 remote employees who need to connect from their laptops to Azure VMs that have only private IP addresses. No on-premises VPN appliance exists, and the VMs must not be assigned public IP addresses. Which solution should the administrator deploy?

A.Site-to-site VPN Gateway
B.Point-to-site VPN Gateway
C.ExpressRoute circuit
D.Public load balancer with inbound NAT rules
AnswerB

Point-to-site VPN Gateway is the correct choice because it allows each remote employee's laptop to establish an individual encrypted tunnel (using SSTP, IKEv2, or OpenVPN) directly to the Azure virtual network. This approach does not expose the VMs to the public internet, as the VMs remain reachable only through the VPN gateway's private address space. It supports modern authentication methods like Azure AD, certificate-based, or RADIUS, making it ideal for a distributed set of 25 remote users without requiring any on-premises hardware.

Why this answer

A Point-to-Site (P2S) VPN Gateway is the correct solution because it allows individual remote clients (laptops) to establish a secure VPN connection from anywhere to Azure VMs with private IP addresses, without requiring a public IP on the VMs or an on-premises VPN appliance. P2S uses SSTP, IKEv2, or OpenVPN protocols to create a tunnel from each client to the Azure virtual network, enabling access to private resources.

Exam trap

The trap here is that candidates often confuse Point-to-Site with Site-to-Site VPN, assuming a Site-to-Site VPN can work without an on-premises VPN appliance, or they mistakenly think a public load balancer can provide private access without public IPs on the VMs.

Why the other options are wrong

A

Site-to-site VPN requires a VPN device on-premises, which the company does not have. It connects entire networks, not individual remote clients.

C

ExpressRoute provides dedicated private connectivity to Azure from an on-premises network, but requires a physical connection or a partner provider, and does not support individual remote client connections without a VPN gateway. The question specifies no on-premises VPN appliance and remote employees connecting from laptops, making ExpressRoute unsuitable.

D

A public load balancer with inbound NAT rules requires VMs to have public IP addresses or be reachable via a public frontend, which contradicts the requirement that VMs must not be assigned public IP addresses. Additionally, it does not provide a VPN tunnel for secure remote connectivity.

209
MCQeasy

A subnet NSG contains a deny RDP rule from Any at priority 200. The administrator must allow RDP from 10.8.0.0/24 to the virtual machines in that subnet. What should the administrator do?

A.Create an allow rule with a higher priority number than 200.
B.Create an allow rule with a lower priority number than 200.
C.Add a route table entry for TCP 3389.
D.Disable the default security rules on the NSG.
AnswerB

Azure NSGs process rules in ascending priority order, meaning the lowest numeric priority value is evaluated first and the first rule that matches traffic determines the outcome. To permit RDP TCP/3389 despite the deny rule at priority 200, add an allow rule with a lower number, such as 100, so it is matched before the deny. This allow rule can scope source IPs, service tags, or prefixes as needed, but it must have a numeric priority less than 200 to take precedence. If the allow rule has any higher number, it will never be reached because the deny rule already terminates processing.

Why this answer

B is correct because NSG rules are evaluated in priority order, with lower numbers having higher priority. The existing deny rule at priority 200 blocks all RDP traffic. To allow RDP from 10.8.0.0/24, a new allow rule must be created with a priority lower than 200 (e.g., 150) so it is evaluated before the deny rule, permitting the specific traffic.

Exam trap

The trap here is that candidates often confuse priority numbers, thinking a higher number means higher priority, and incorrectly choose option A, or they mistakenly believe route tables can override NSG rules, leading them to option C.

Why the other options are wrong

A

In Azure NSGs, rules are evaluated in priority order, with lower numbers having higher priority. A priority of 200 is higher than 200, so an allow rule with a higher priority number (e.g., 300) would be evaluated after the deny rule and would never be applied because the deny rule matches first.

C

Route tables control traffic routing between subnets, not security filtering. NSG rules are evaluated independently; adding a route entry for TCP 3389 does not override the deny rule in the NSG.

D

Disabling default security rules would remove essential protections like allowing outbound traffic and denying all inbound traffic by default, potentially exposing the subnet to security risks. It does not specifically allow RDP from 10.8.0.0/24.

210
Multi-Selectmedium

You manage an Azure virtual network with multiple subnets, including a subnet named 'AppSubnet' that hosts critical application servers. You need to monitor and log network traffic to and from AppSubnet for security analysis. The solution must capture all flow logs without impacting application performance. Which three of the following should you implement? (Choose three.)

Select 3 answers
.Enable Network Watcher flow logs for AppSubnet.
.Deploy a network virtual appliance (NVA) in a transit subnet and route all traffic through it.
.Store the flow logs in an Azure Storage account.
.Enable diagnostic settings on each virtual machine in AppSubnet to log network traffic.
.Configure a retention policy for the flow logs to manage storage costs.
.Install a third-party packet capture agent on each application server.

Why this answer

Network Watcher flow logs capture IP traffic flowing through a subnet, providing security analysis without impacting performance because they are processed by the Azure network fabric, not by the VMs. Storing logs in an Azure Storage account ensures durable, cost-effective retention. Configuring a retention policy is essential to manage storage costs and comply with data lifecycle requirements.

Exam trap

The trap here is that candidates often confuse VM-level diagnostic settings (which log guest OS metrics) with subnet-level flow logs, or they mistakenly believe that deploying an NVA is required for traffic monitoring, when in fact Azure's native Network Watcher flow logs provide a performance-neutral solution.

211
MCQhard

Your company deploys a network virtual appliance (NVA) in a hub subnet. All outbound internet traffic from Subnet-App in a spoke VNet must pass through the NVA for inspection. What should you configure on Subnet-App?

A.A private DNS zone
B.A user-defined route with a next hop of Virtual Appliance
C.A service endpoint for Microsoft.Storage
D.A NAT gateway on the NVA subnet only
AnswerB

A user-defined route (UDR) with a next hop type of 'Virtual Appliance' is the correct way to force subnet traffic through an NVA. When the route table is associated with the spoke subnet, any traffic destined for the internet (or another network) is matched by the route and forwarded to the private IP address of the NVA. This enables the NVA to inspect, filter, and forward traffic as required. Without this explicit route, Azure's default routing would send traffic directly to the internet, bypassing the appliance.

Why this answer

A user-defined route (UDR) with a next hop of Virtual Appliance forces all outbound traffic from Subnet-App to be forwarded to the NVA for inspection. This overrides Azure's default system route for 0.0.0.0/0, which normally sends internet-bound traffic directly to the internet. By specifying the NVA's private IP as the next hop, you ensure traffic is routed through the hub subnet for inspection before leaving the network.

Exam trap

The trap here is that candidates often confuse a NAT gateway (which translates source IPs) with a route-based forced tunneling solution, or they assume a service endpoint can redirect traffic through an NVA, when in fact service endpoints bypass forced tunneling by design.

Why the other options are wrong

A

A private DNS zone resolves custom domain names within a VNet, not route traffic. It cannot force outbound traffic through an NVA.

C

A service endpoint for Microsoft.Storage allows direct access to Azure Storage from a subnet without going through the internet, but it does not redirect or inspect outbound internet traffic. The requirement is to force all outbound traffic through the NVA, which requires a user-defined route, not a service endpoint.

D

A NAT gateway provides source network address translation for outbound traffic but does not force traffic through an NVA for inspection; it only changes the source IP and allows direct internet access.

212
MCQmedium

Remote administrators work from home laptops and need secure access to Azure VMs in a virtual network. There is no branch office device to configure, and each administrator should connect individually using Azure-side VPN authentication. Which option should be implemented?

A.VNet peering between the administrators' home networks and Azure.
B.A point-to-site VPN connection to an Azure VPN gateway.
C.An ExpressRoute circuit from each administrator's home internet connection.
D.A service endpoint enabled on the VM subnet.
AnswerB

Point-to-site VPN is designed for individual client devices such as administrator laptops. It does not require a branch router or firewall, and it provides encrypted access into the Azure virtual network over the internet. This matches the need for per-user remote access to Azure VMs without standing up an on-premises VPN device.

Why this answer

A point-to-site (P2S) VPN connection allows individual remote clients to connect securely to an Azure virtual network using an Azure VPN gateway. This solution requires no on-premises device, supports per-user authentication (e.g., Azure AD, certificate, or RADIUS), and is ideal for ad-hoc remote access from home laptops.

Exam trap

The trap here is that candidates confuse point-to-site VPN with site-to-site VPN or VNet peering, assuming any 'connection' between networks works, but only point-to-site supports individual client authentication without a branch device.

Why the other options are wrong

A

VNet peering connects virtual networks within Azure, not remote user devices. It does not provide VPN connectivity for individual administrators from their home laptops.

C

ExpressRoute provides dedicated private connectivity from an on-premises location to Azure, but it requires a physical circuit and a router at the customer site, which is not available for individual home laptops. It does not support per-user VPN authentication from remote laptops.

D

Service endpoints provide secure connectivity from a virtual network to Azure PaaS services (e.g., Storage, SQL) over the Azure backbone, not remote user access to VMs. They do not support individual VPN connections from home laptops.

213
MCQmedium

You create a private endpoint for an Azure SQL Database server. Virtual machines in VNet-Prod must resolve the server name to the private IP address of the endpoint. What should you configure?

A.A private DNS zone linked to VNet-Prod
B.A user-defined route on the subnet
C.An additional public IP address
D.A Recovery Services vault
AnswerA

A private DNS zone (privatelink.database.windows.net) linked to VNet-Prod is essential because the SQL server's FQDN must resolve to the private endpoint's IP address within the VNet. When you create a private endpoint, Azure automatically adds an A record in this zone, but only if the zone is linked to the VNet where clients operate. Without that link, name resolution for the FQDN would continue using public DNS, bypassing the private IP and defeating the private endpoint's purpose. This zone and link are the standard mechanism for enabling private name resolution for Azure PaaS services.

Why this answer

A private endpoint uses a private IP address from your VNet, but DNS resolution must be configured to map the Azure SQL Database server name (e.g., `server.database.windows.net`) to that private IP. By creating a private DNS zone (privatelink.database.windows.net) and linking it to VNet-Prod, Azure automatically creates an A record for the private endpoint, ensuring VMs resolve the server name to the private IP instead of the public IP. This is the standard and required configuration for private endpoint name resolution.

Exam trap

The trap here is that candidates assume private endpoints automatically update DNS without additional configuration, but Azure requires a private DNS zone (or custom DNS server) to override public resolution—otherwise, the server name still resolves to the public IP.

Why the other options are wrong

B

A user-defined route (UDR) controls network traffic flow, not DNS resolution. The question requires name resolution to the private IP, which is handled by DNS, not routing.

C

An additional public IP address does not enable private name resolution; it would expose the SQL Database via a public endpoint, defeating the purpose of the private endpoint.

D

A Recovery Services vault is used for backup and disaster recovery (e.g., Azure Backup, Site Recovery), not for DNS resolution or private endpoint connectivity.

214
MCQeasy

Based on the exhibit, what configuration should the administrator change so VMs in the spoke can resolve internal names from the hub?

A.Add a route table entry that points to the hub DNS server.
B.Set the spoke VNet custom DNS server to 10.50.0.4.
C.Enable a service endpoint for Microsoft.Storage on the spoke subnet.
D.Create a private endpoint for the spoke VM subnet.
AnswerB

The spoke is still using Azure-provided DNS, which cannot resolve the hub's internal records. Pointing the spoke VNet to the hub DNS server lets its VMs query the same internal namespace and resolve names correctly.

Why this answer

The hub VNet has a DNS server at 10.50.0.4 that is configured to resolve internal names. By setting the spoke VNet's custom DNS server to 10.50.0.4, VMs in the spoke will forward DNS queries to that server, enabling resolution of internal names from the hub. This overrides the default Azure-provided DNS and directs name resolution to the hub's DNS infrastructure.

Exam trap

The trap here is confusing network routing (route tables) with DNS resolution; candidates often think adding a route to the hub DNS server's IP will fix name resolution, but DNS queries are sent to the configured DNS server address, not routed based on destination IP.

Why the other options are wrong

A

Adding a route table entry directs traffic but does not configure the DNS server address that VMs use for name resolution. The spoke VMs need their DNS server setting changed to the hub's DNS IP (10.50.0.4) to resolve internal names.

C

Enabling a service endpoint for Microsoft.Storage on the spoke subnet does not affect DNS resolution for internal names; it only allows private access to Azure Storage from the spoke subnet over the Microsoft backbone network.

D

Creating a private endpoint for the spoke VM subnet does not enable DNS resolution of hub internal names; private endpoints are used for secure access to Azure PaaS services, not for DNS forwarding or resolution.

215
Multi-Selecthard

A backend subnet contains 18 Linux VMs that must install updates from the internet. Security requires all outbound traffic to use one static public IP, and none of the VMs may have their own public IP addresses. Which two changes meet the requirement? Select two.

Select 2 answers
A.Associate a NAT gateway with the backend subnet and provide it with a public IP address or prefix.
B.Ensure the VMs do not have individual public IP addresses assigned.
C.Create a public load balancer and add the VMs to its backend pool.
D.Use a private endpoint for internet updates so outbound traffic remains private.
E.Attach a route table with 0.0.0.0/0 to Virtual network gateway.
AnswersA, B

A NAT gateway attached to the backend subnet translates outbound traffic from the Linux VMs to its configured public IP address or prefix. This gives all 18 VMs a stable, predictable source IP when contacting update repositories, and it scales automatically through SNAT without needing a public IP on each VM NIC or a separate egress appliance.

Why this answer

A NAT gateway provides outbound internet connectivity for VMs in a subnet while using a single static public IP address. By associating a NAT gateway with the backend subnet and assigning it a public IP, all outbound traffic from the 18 Linux VMs will source NAT to that static IP, meeting the security requirement without assigning public IPs to individual VMs.

Exam trap

The trap here is confusing a public load balancer (inbound) with a NAT gateway (outbound), or assuming a route table alone can provide internet access without a NAT device or Azure Firewall.

Why the other options are wrong

C

A public load balancer does not provide outbound connectivity for VMs without public IPs; it only distributes inbound traffic. The VMs would still lack a static public IP for outbound traffic.

D

A private endpoint is used for inbound access to Azure services over a private IP, not for outbound traffic to the internet. It cannot provide outbound connectivity with a static public IP.

E

A route table with 0.0.0.0/0 to a Virtual network gateway forces all outbound traffic through the gateway, but the gateway does not provide a single static public IP for outbound traffic; it typically uses the gateway's public IP, which may not be static and is not designed for outbound-only NAT.

216
Matchinghard

Match each storage or PaaS access requirement to the correct Azure networking approach or DNS action.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Create a private endpoint and link the correct private DNS zone to the VNet.

Use a service endpoint on the subnet and allow that subnet in the storage account network rules.

The private DNS zone is missing, not linked to the VNet, or the record has not been populated.

Use a service endpoint with a network rule on the SQL server.

Use the storage firewall with a virtual network rule for AppSubnet; if the on-premises source also needs access, allow its public IP separately. No private endpoint is required.

Why these pairings

VPN and ExpressRoute provide private connectivity, Private Link ensures private IP access, and DNS CNAME records map custom domains to Azure endpoints.

217
MCQeasy

A storage account should accept traffic only from one subnet, but the team does not want to create a private IP address for the service in the virtual network. What should they enable?

A.Private endpoint, because it is the only way to allow one subnet.
B.Service endpoint, because it allows the subnet to access the storage service securely over the Azure backbone.
C.User-assigned managed identity, because it controls subnet access.
D.Blob soft delete, because it helps restrict where traffic comes from.
AnswerB

A service endpoint lets you restrict storage access to a specific subnet without creating a private IP for the service in the virtual network.

Why this answer

Service endpoints allow a subnet to access Azure PaaS services (like Storage) over the Azure backbone without requiring a private IP address. By enabling a Microsoft.Storage service endpoint on the subnet and configuring the storage account firewall to allow traffic only from that subnet, the team meets the requirement securely and cost-effectively.

Exam trap

The trap here is confusing private endpoints (which assign a private IP) with service endpoints (which do not), leading candidates to incorrectly choose private endpoint when the question explicitly prohibits creating a private IP address.

Why the other options are wrong

A

Private endpoint assigns a private IP to the storage account in the virtual network, which the team explicitly wants to avoid. The question requires restricting access to one subnet without creating a private IP, so service endpoint is correct.

C

User-assigned managed identity controls authentication and authorization, not network-level access. It does not restrict traffic to a specific subnet.

D

Blob soft delete is a data protection feature that recovers deleted blobs; it does not restrict network traffic to a subnet.

218
MCQmedium

Which statement best explains why centralized logging is valuable in security operations?

A.It improves visibility by collecting events from multiple devices in one place for review and investigation.
B.It guarantees that no unauthorized action can occur.
C.It replaces the need for NTP and authentication.
D.It automatically assigns IP addresses to monitoring systems.
AnswerA

Centralized logging aggregates syslog messages, Windows Event Logs, Azure Activity Logs, and resource diagnostic logs into a single Log Analytics workspace. This consolidation enables security and operations teams to search, correlate, and investigate events across all devices and workloads without jumping between multiple consoles. Because logs are stored in one queriable repository, incident response and root-cause analysis become significantly faster and more effective.

Why this answer

Centralized logging aggregates security events (e.g., Windows Event Log, syslog, Azure Activity Log) from multiple sources into a single repository like Azure Log Analytics or a SIEM. This consolidation enables security analysts to correlate events across devices, detect patterns indicative of attacks, and perform efficient forensic investigations without needing to access each device individually.

Exam trap

The trap here is that candidates may think centralized logging actively prevents security incidents (like a firewall or IDS), when in fact it is a passive detective control that improves visibility and post-incident analysis.

Why the other options are wrong

B

This option is wrong because centralized logging does not prevent unauthorized actions; it merely collects and stores logs for analysis. Security operations rely on other measures, such as access controls and monitoring, to prevent unauthorized activities.

C

This option is wrong because centralized logging does not replace the need for Network Time Protocol (NTP) or authentication; these are separate functions that ensure accurate time synchronization and secure access to systems, respectively.

D

This option is wrong because centralized logging does not involve the automatic assignment of IP addresses; it focuses on aggregating logs for analysis rather than managing network configurations.

219
MCQmedium

A subnet is connected to a NAT gateway, but outbound connections to a public software update site are still leaving through a network virtual appliance. The route table contains a 0.0.0.0/0 user-defined route to the appliance, and the business wants the NAT gateway to handle internet traffic while preserving private routes to the appliance. What is the best fix?

A.Increase the priority of the NSG rules on the subnet.
B.Remove the default UDR to the appliance and leave only the private-prefix routes in place.
C.Associate the NAT gateway with the virtual network instead of the subnet.
D.Enable service endpoints on the subnet to bypass the appliance.
AnswerB

The 0.0.0.0/0 UDR is forcing all outbound traffic to the appliance, which prevents the NAT gateway from handling internet destinations. Removing that default route lets Azure use the system internet route, where the NAT gateway can provide outbound SNAT. Specific routes for private prefixes can remain and continue to send internal traffic to the appliance.

Why this answer

The 0.0.0.0/0 user-defined route (UDR) to the network virtual appliance (NVA) has a higher priority than the NAT gateway's default route, so all internet-bound traffic is forced through the appliance. Removing that UDR while keeping private-prefix routes (e.g., 10.0.0.0/8) ensures that only private traffic uses the appliance, and internet traffic follows the NAT gateway's default route. This satisfies the business requirement of using the NAT gateway for internet traffic while preserving private routes through the NVA.

Exam trap

The trap here is that candidates assume a NAT gateway automatically overrides a 0.0.0.0/0 UDR, but in Azure, UDRs always take precedence over system routes, so the explicit route to the NVA must be removed to allow the NAT gateway to handle internet traffic.

Why the other options are wrong

A

NSG rules control inbound and outbound traffic at the network layer, but they do not influence routing decisions. The issue is that the 0.0.0.0/0 UDR overrides the NAT gateway's default route, so increasing NSG priority cannot redirect traffic to the NAT gateway.

C

Associating a NAT gateway with the virtual network is not supported; NAT gateways must be associated with a specific subnet. This would not resolve the routing conflict where the 0.0.0.0/0 UDR to the appliance overrides the NAT gateway.

D

Service endpoints do not affect routing for outbound internet traffic; they only secure traffic to Azure services over the Azure backbone. The issue is a UDR overriding NAT gateway, not service access.

220
MCQmedium

A team manages three backend servers in one subnet. The servers are replaced periodically, so their private IP addresses change. The NSG must allow inbound traffic from the web tier without updating individual IP addresses each time. Which destination object should be used in the NSG rule?

A.Application security group
B.Service tag
C.Route table
D.Private endpoint
AnswerA

An application security group lets you group VMs by application role rather than by fixed IP address. NSG rules can reference the ASG so the rule continues to work even when the VM IPs change.

Why this answer

An Application Security Group (ASG) allows you to group backend servers logically, regardless of their private IP addresses, and reference that group as the destination in an NSG rule. When servers are replaced and their IPs change, the ASG membership is automatically updated, so the NSG rule continues to apply without manual intervention. This is the correct approach for dynamic workloads where IP addresses are not static.

Exam trap

The trap here is that candidates often confuse Application Security Groups with Network Security Groups themselves, or mistakenly think Service Tags can be used to group their own VMs, when Service Tags are only for Azure platform services or well-known IP ranges.

Why the other options are wrong

B

Service tags represent groups of Azure service IP ranges (e.g., 'AzureLoadBalancer'), not dynamic private IPs of backend servers in a subnet. They cannot be used to group arbitrary VMs whose IPs change.

C

Route tables control network traffic routing between subnets or to virtual appliances, not NSG rule destination objects for filtering traffic based on application groups.

D

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to group VMs for NSG rules. They do not provide a dynamic grouping mechanism for backend servers whose IPs change.

221
MCQmedium

A branch office has a single edge device with a static public IP and must connect securely to Azure so users can reach private VMs in a virtual network. The company wants traffic encrypted across the internet and does not need point-to-site access from individual laptops. Which solution should the administrator deploy?

A.A point-to-site VPN configuration for each user laptop.
B.A site-to-site VPN gateway connection.
C.A private endpoint to each virtual machine in Azure.
D.VNet peering between the branch and Azure.
AnswerB

Site-to-site VPN is the standard option for connecting an on-premises branch network to Azure through a VPN device or edge appliance. It uses the branch's static public IP, encrypts traffic over the internet, and allows users on the branch network to reach private Azure resources such as VMs inside the VNet.

Why this answer

A site-to-site VPN gateway connection (Option B) is correct because it creates an encrypted tunnel over the internet between the branch office's edge device with a static public IP and an Azure VPN gateway, allowing users to securely access private VMs in the virtual network. This solution meets the requirement for encrypted traffic across the internet without needing point-to-site access for individual laptops, as the entire branch network is connected via the VPN tunnel.

Exam trap

The trap here is that candidates often confuse private endpoints (Option C) with site-to-site VPNs, thinking private endpoints provide secure connectivity from on-premises, but private endpoints only work for PaaS services within Azure and do not create an encrypted tunnel from a branch office to VMs.

Why the other options are wrong

A

The question specifies that the branch office has a single edge device with a static public IP and needs to connect securely to Azure for all users to reach private VMs. A point-to-site VPN is designed for individual client connections, not for connecting an entire branch network, and would require configuring each user's laptop, which is not needed.

C

Private endpoints are used for secure access to Azure PaaS services (e.g., Storage, SQL) over a private IP within a VNet, not for connecting a branch office to Azure VMs. They do not provide site-to-site connectivity or encrypt traffic across the internet.

D

VNet peering connects two virtual networks within Azure, not an on-premises branch office to Azure. It does not support site-to-site connectivity over the internet or encryption across the public internet.

222
MCQmedium

A three-tier application uses separate web and app VMs. The requirement is to allow only the web tier to reach the app tier on TCP 8080. The app subnet NSG already contains a DenyAllInbound rule at priority 200. What should the administrator do?

A.Create an inbound allow rule for the web ASG to the app ASG on TCP 8080 with priority 150.
B.Move the DenyAllInbound rule to priority 300 so all traffic is blocked first.
C.Add a user-defined route from the web subnet to the app subnet.
D.Associate the web and app NICs with the same application security group.
AnswerA

NSG rules are processed in priority order, where the lowest number wins. To permit only web-tier traffic to the app tier while preserving the deny rule, the allow rule must have a higher precedence than the DenyAllInbound entry. Using application security groups keeps the rule maintainable as VMs scale in or out, and the specific source, destination, and port limit access to exactly the required flow.

Why this answer

The existing DenyAllInbound rule at priority 200 will block all traffic to the app subnet unless a higher-priority (lower number) allow rule is created. By creating an inbound allow rule for the web Application Security Group (ASG) to the app ASG on TCP 8080 with priority 150, the administrator ensures that traffic from the web tier is explicitly permitted before the deny rule is evaluated, satisfying the requirement.

Exam trap

The trap here is that candidates may think moving the deny rule to a higher priority number (lower priority) will fix the issue, but without an explicit allow rule, traffic remains blocked; or they may confuse user-defined routes (which control routing) with NSG rules (which control filtering).

Why the other options are wrong

B

Moving the DenyAllInbound rule to a higher priority (300) would not change its effect; it still denies all traffic that is not explicitly allowed. The issue is that no allow rule exists for the web-to-app traffic, so lowering the priority does not create an allow rule.

C

User-defined routes (UDRs) control traffic routing between subnets, not access control. The requirement is to allow or deny traffic based on port and protocol, which is the function of NSG rules, not UDRs.

D

Associating web and app NICs with the same ASG would allow all traffic between them, not restrict to TCP 8080 only, and would bypass the DenyAllInbound rule, violating the requirement.

223
MCQhard

An administrator is deploying a route-based site-to-site VPN gateway. The GatewaySubnet already exists, but validation fails because the public IP configuration is incompatible with the chosen gateway. Which public IP setup is required for the gateway?

A.A Basic SKU public IP with dynamic allocation.
B.A Basic SKU public IP with static allocation.
C.A Standard SKU public IP with static allocation.
D.A private IP address assigned directly from GatewaySubnet.
AnswerC

Azure VPN gateways require a Standard public IP configuration, and the address must be statically allocated. This is part of the gateway's external-facing connectivity requirement and is validated during deployment. If a Basic or dynamically assigned public IP is selected, gateway creation can fail even when GatewaySubnet already exists and is sized correctly.

Why this answer

For a route-based site-to-site VPN gateway in Azure, the gateway must use a Standard SKU public IP address with static allocation. This is because route-based VPN gateways require the public IP to be statically assigned and the Standard SKU provides the necessary features like availability zones and zone resiliency, which are not supported by the Basic SKU. The Basic SKU public IP is incompatible with route-based VPN gateways, and a private IP from the GatewaySubnet cannot serve as the public endpoint for the VPN connection.

Exam trap

The trap here is that candidates often assume any static public IP will work, overlooking the SKU requirement—Azure specifically mandates Standard SKU for route-based VPN gateways, and Basic SKU is only valid for policy-based gateways or other services like basic load balancers.

Why the other options are wrong

A

Route-based VPN gateways require a Standard SKU public IP with static allocation. Basic SKU public IPs do not support the necessary features like BGP and active-active mode for route-based VPNs.

B

For a route-based VPN gateway, Azure requires a Standard SKU public IP with static allocation. Basic SKU public IPs are not supported for route-based VPN gateways.

D

A route-based site-to-site VPN gateway requires a public IP address for internet-facing communication; a private IP from GatewaySubnet cannot be used for external connectivity.

224
MCQmedium

A public web application runs on two Windows Server VMs in Azure. Users connect through a single public IP on TCP 443, and the solution must distribute traffic only to healthy VMs without requiring Layer 7 features such as URL-based routing. Which Azure service should the administrator deploy?

A.Azure Application Gateway.
B.Azure Load Balancer Standard.
C.Azure Traffic Manager.
D.Azure Front Door.
AnswerB

A Standard Load Balancer is the right fit for distributing TCP 443 traffic to healthy backend VMs using a single public IP at Layer 4. It supports health probes and works well for internet-facing workloads that do not need application-level routing. Because the scenario specifically excludes Layer 7 features, the load balancer provides the simplest and most cost-effective design while still meeting availability and traffic distribution requirements.

Why this answer

Azure Load Balancer Standard is the correct choice because it operates at Layer 4 (TCP/UDP) and distributes incoming traffic across healthy VM instances based on a single public IP address and port (TCP 443). It performs health probes to ensure traffic is only sent to healthy backend VMs, and it does not require any Layer 7 features like URL-based routing, making it ideal for this scenario.

Exam trap

The trap here is that candidates often confuse Azure Application Gateway with Azure Load Balancer, assuming that any web traffic requires Layer 7 features, but the question explicitly states no Layer 7 features are needed, making the Layer 4 Load Balancer the correct and simpler choice.

Why the other options are wrong

A

Azure Application Gateway is a Layer 7 load balancer that provides URL-based routing and other HTTP/S features, which are not required here. The question specifies no Layer 7 features are needed, and only TCP 443 traffic distribution is required, making a Layer 4 load balancer (Azure Load Balancer) the correct choice.

C

Azure Traffic Manager operates at the DNS level, routing traffic based on DNS resolution, not on the health of individual VMs or ports. It cannot distribute traffic to healthy VMs on TCP 443 without Layer 7 features.

D

Azure Front Door operates at Layer 7 and provides global load balancing with HTTP/HTTPS features like URL-based routing, which are not required. The question specifies no Layer 7 features and a single public IP, making Front Door overkill and incorrect.

225
MCQmedium

A company plans a new spoke virtual network that must be peered to an existing hub VNet using 10.0.0.0/16. The spoke will need two subnets: one sized for about 120 VMs and another for about 40 VMs. The new address space must not overlap the hub or the on-premises range 10.1.0.0/16. Which VNet address space is the best choice?

A.10.0.1.0/24
B.10.1.0.0/22
C.10.2.0.0/22
D.10.0.0.0/24
AnswerC

This address space does not overlap the hub or on-premises ranges and is large enough to carve out two usable subnets for the workload. A /22 gives room for multiple subnets and future growth, which is important when planning a spoke that needs to host dozens or hundreds of VMs. It is a practical choice for peering compatibility and capacity.

Why this answer

(10.2.0.0/22) is correct because it provides a non-overlapping address space with the hub VNet (10.0.0.0/16) and on-premises (10.1.0.0/16). The /22 prefix offers 1024 IP addresses, which is sufficient for subnets supporting 120 VMs and 40 VMs, while avoiding any overlap with the existing ranges.

Exam trap

The trap here is that candidates often overlook the hub VNet's address space (10.0.0.0/16) and incorrectly assume a smaller subnet like 10.0.1.0/24 is safe, not realizing it falls within the hub's larger CIDR range.

Why the other options are wrong

A

Option A (10.0.1.0/24) overlaps with the hub VNet address space 10.0.0.0/16, which is not allowed for peering.

B

Option B (10.1.0.0/22) overlaps with the on-premises range 10.1.0.0/16, which is explicitly prohibited in the question.

D

Option D (10.0.0.0/24) overlaps with the hub VNet address space 10.0.0.0/16, which violates the requirement that the new address space must not overlap the hub.

← PreviousPage 3 of 4 · 244 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Implement and Manage Virtual Networking questions.