Courseiva

CCNA Implement and Manage Virtual Networking Questions

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

1
MCQeasy

Based on the exhibit, the web tier can reach the API subnet by name, but the traffic is still blocked. What should the administrator do?

A.Add the API VM NICs to the destination application security group.
B.Increase the priority number of the allow rule so it is evaluated earlier.
C.Replace the ASG with a service endpoint on the API subnet.
D.Remove the web VMs from ASG-Web because ASGs block traffic by default.
AnswerA

The allow rule is written for ASG-Api as the destination, but the exhibit shows that no API NICs are currently members of that ASG. Because NSG rules only match when both source and destination ASG membership is present, traffic will be blocked until the API VM NICs are added to ASG-Api.

Why this answer

The web tier can resolve the API subnet's name, but traffic is still blocked. This indicates that the network security group (NSG) rules are not correctly configured to allow traffic from the web VMs (in ASG-Web) to the API VMs (in ASG-API). By adding the API VM NICs to the destination application security group (ASG), the NSG rule that references ASG-API as the destination will match the API VMs, allowing the traffic.

Without this, the NSG rule may be referencing an empty or incorrect destination, causing the traffic to be denied by the default deny rule.

Exam trap

The trap here is that candidates often confuse name resolution with network connectivity, assuming that if a VM can resolve another VM's name via DNS, traffic must be allowed, but NSG rules are evaluated independently of DNS resolution.

Why the other options are wrong

B

Increasing the priority number (making it higher) would cause the rule to be evaluated later, not earlier, which would not resolve the traffic block. The issue is that the allow rule's destination is not correctly targeting the API VMs, not its priority.

C

Service endpoints secure Azure service access from a subnet, not traffic between VNets or subnets. The issue is east-west traffic blocking, which ASGs solve; service endpoints don't replace ASGs for intra-VNet filtering.

D

ASGs do not block traffic by default; they only define rules for allowed traffic. Removing VMs from an ASG would not resolve the issue of blocked traffic to the API subnet.

2
Multi-Selecteasy

A storage account should use a private IP address inside a virtual network, and workloads in that VNet must resolve the storage name to the private address. Which two items are required? Select two.

Select 2 answers
A.Create a private endpoint for the storage account in the virtual network so the service gets a private IP.
B.Create and link the appropriate private DNS zone so the storage account name resolves to the private IP.
C.Enable a service endpoint on the subnet, because service endpoints create a private IP for the storage service.
D.Assign a Reader role on the storage account, because RBAC determines the private address used by clients.
E.Disable the storage account firewall, because private endpoints only work when the public endpoint is open.
AnswersA, B

Creating a private endpoint provisions a network interface in your VNet subnet and assigns it a private IP address that is used for all traffic to the storage account. This places the storage service itself on that private IP, so clients inside the VNet can reach it without ever leaving the Microsoft network. Even if the public endpoint is later disabled, the private endpoint continues to work because it uses a separate network path.

Why this answer

A private endpoint assigns a private IP address from the virtual network to the storage account, enabling secure, direct connectivity over the Microsoft backbone without traversing the public internet. This is achieved by creating a network interface in the VNet that receives a private IP from the subnet range, which then routes traffic to the storage service via a private link.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both provide a private IP, when in fact only private endpoints assign a private IP from the VNet, while service endpoints merely route traffic over the Microsoft backbone using the service's public IP.

Why the other options are wrong

C

Service endpoints do not assign a private IP to the storage account; they provide direct connectivity from the VNet to the service over the Microsoft backbone, but the storage account still uses its public IP address.

D

Assigning a Reader role on the storage account controls permissions to read data or configuration, but does not affect network-level private IP assignment or DNS resolution. Private IPs are assigned via Private Endpoints, not RBAC.

E

Private endpoints do not require the storage account firewall to be disabled; they work independently of the public endpoint. The firewall can remain enabled to block public access while private endpoints provide private connectivity.

3
MCQmedium

A storage account has public network access disabled. A VM in a virtual network must access blob data privately, and the application must resolve the storage endpoint name to a private IP address. What should the administrator deploy?

A.A service endpoint for Microsoft.Storage and a custom hosts file entry on the VM
B.A private endpoint for the storage account plus a private DNS zone linked to the virtual network
C.Allow trusted Microsoft services and keep using the public endpoint
D.A route table that sends traffic for the storage account's public IP to the VPN gateway
AnswerB

A private endpoint places the storage service on a private IP address inside the VNet, which satisfies the private access requirement. A private DNS zone is then needed so the storage account name resolves to that private IP address from within the virtual network. Together, they provide secure, private connectivity with proper name resolution.

Why this answer

A private endpoint assigns the storage account a private IP from the VM's virtual network, enabling direct, secure access over the Microsoft backbone. A private DNS zone linked to the virtual network ensures the storage endpoint name (e.g., mystorageaccount.blob.core.windows.net) resolves to that private IP, meeting the requirement for private name resolution without relying on public DNS or hosts file entries.

Exam trap

The trap here is that candidates confuse service endpoints (which provide source IP preservation but no private IP) with private endpoints (which provide a true private IP and private DNS resolution), leading them to choose Option A or C.

Why the other options are wrong

A

Service endpoints do not provide a private IP address for the storage endpoint; they route traffic over the Microsoft backbone but the DNS name still resolves to a public IP. A custom hosts file entry is not a scalable or managed solution and does not integrate with Azure Private DNS for automatic resolution.

C

This option does not provide private IP resolution; the storage account's public endpoint remains accessible, and 'Allow trusted Microsoft services' bypasses network restrictions but does not enable private connectivity or private DNS resolution.

D

A route table cannot resolve the storage endpoint name to a private IP address; it only controls traffic routing based on IP addresses, not DNS resolution. The question requires private name resolution, which a route table does not provide.

4
MCQmedium

A security team requires all outbound internet traffic from a workload subnet to pass through an NVA at 10.1.4.4. The subnet is already associated with an NSG that allows the traffic. Which UDR should the administrator add to the route table for that subnet?

A.Destination 10.1.4.4/32 with next hop type Internet.
B.Destination 0.0.0.0/0 with next hop type Virtual appliance and next hop IP 10.1.4.4.
C.Destination 0.0.0.0/0 with next hop type Virtual network gateway.
D.Destination 10.1.4.0/24 with next hop type None.
AnswerB

To force all internet-bound traffic through a network virtual appliance, the route table needs a default route that matches 0.0.0.0/0 and sends traffic to the appliance's private IP. The next hop type must be Virtual appliance, and the next hop IP should be 10.1.4.4. This overrides Azure's default system route for internet traffic from that subnet, while still allowing NSG rules to control whether the traffic is permitted.

Why this answer

A User Defined Route (UDR) with destination 0.0.0.0/0 and next hop type 'Virtual appliance' forces all outbound internet traffic from the subnet to be forwarded to the NVA at 10.1.4.4 for inspection. The 0.0.0.0/0 prefix matches all internet-bound traffic, and the 'Virtual appliance' next hop type enables routing to a private IP address within the virtual network, overriding the default system route that would otherwise send traffic directly to the Internet.

Exam trap

The trap here is that candidates often confuse the 'Virtual appliance' next hop type with 'Virtual network gateway' or mistakenly think a specific destination like the NVA's IP is needed, rather than understanding that 0.0.0.0/0 is required to capture all outbound internet traffic.

Why the other options are wrong

A

The destination 10.1.4.4/32 with next hop type Internet would route traffic destined to the NVA itself to the internet, not through the NVA. The requirement is to route all outbound internet traffic (0.0.0.0/0) through the NVA, not traffic to the NVA.

C

This option sets the next hop to Virtual network gateway, which sends traffic to Azure VPN or ExpressRoute gateways, not to the NVA. The requirement is to route all outbound internet traffic through the NVA at 10.1.4.4, so the next hop must be Virtual appliance with that IP.

D

Destination 10.1.4.0/24 with next hop type None would only affect traffic destined to the NVA's subnet, not all outbound internet traffic. The requirement is to route all outbound internet traffic (0.0.0.0/0) through the NVA, so this route does not apply to internet-bound traffic.

5
MCQhard

Traffic from VM-App01 is taking an unexpected path to the internet through a network virtual appliance. You need to determine which routes are actually applied to the VM network interface. Which Azure feature should you use?

A.Effective routes for the network interface
B.NSG flow logs
C.Azure Policy compliance
D.The subscription activity log
AnswerA

Effective routes for the network interface provide the exact routing table entries that are actively applied to a specific NIC, including system routes, user-defined routes (UDRs), and routes learned via BGP. This blade directly shows the next-hop type and IP for each destination prefix, making it the definitive tool to diagnose why traffic from VM app01 is taking an unexpected path. For example, if a forced-tunneling route or a custom route to a network virtual appliance is misconfigured, it will appear here.

Why this answer

Effective routes for a network interface show the actual routes applied to the VM's NIC after combining all route sources (system routes, BGP, and user-defined routes). This allows you to verify whether traffic is being forced through the NVA or taking an unexpected path, by inspecting the next hop type and IP address for the 0.0.0.0/0 route.

Exam trap

The trap here is that candidates confuse 'effective routes' with 'NSG flow logs' because both involve network troubleshooting, but effective routes solve routing-path issues while flow logs solve firewall/security-rule issues.

Why the other options are wrong

B

NSG flow logs show traffic flows through NSGs, not the actual routes applied to a VM's network interface. They cannot reveal which routes are effective for the VM.

C

Azure Policy compliance evaluates resource configurations against policy rules, not actual applied routes. It cannot show which routes are effective on a VM's network interface.

D

The subscription activity log records management-plane operations (e.g., creating or deleting resources), not data-plane routing information for a specific VM network interface. It cannot show which routes are actually applied to the VM's NIC.

6
MCQhard

An NSG rule allows TCP 8443 from ASG-Web to ASG-Api on the API subnet. The web VM NIC is already in ASG-Web, but the API VM was only placed in the subnet and not added to ASG-Api. Traffic still fails. What is the best fix?

A.Add the API VM's NIC to ASG-Api so the NSG rule can match the destination NIC.
B.Add ASG-Api to the API subnet because ASGs are inherited from subnet membership.
C.Lower the rule priority number on the web subnet to make source traffic more specific.
D.Create a user-defined route from AppSubnet to API subnet to bypass the NSG.
AnswerA

Application security groups are assigned to NICs, not to subnets. If the destination NIC is not in ASG-Api, the rule that references ASG-Api never matches, even if the VM sits in the right subnet. Adding the API NIC to the correct ASG allows the NSG rule to evaluate as intended and is the cleanest fix for the blocked 8443 traffic.

Why this answer

The NSG rule specifies ASG-Api as the destination, but NSGs evaluate traffic based on the NIC membership in an ASG, not the subnet. Since the API VM's NIC is not added to ASG-Api, the rule cannot match the destination, so traffic is dropped by default (implicit deny). Adding the NIC to ASG-Api allows the NSG rule to correctly identify the destination and permit TCP 8443 traffic.

Exam trap

The trap here is that candidates assume subnet membership automatically applies ASG rules, but ASGs require explicit NIC association, and NSG rules with ASG destinations will not match VMs that are only in the subnet.

Why the other options are wrong

B

ASGs are not inherited from subnet membership; they must be explicitly assigned to NICs. Adding ASG-Api to the subnet does not associate the API VM's NIC with the ASG, so the NSG rule still cannot match the destination.

C

Lowering the rule priority number makes the rule more specific (higher priority), but the issue is that the destination ASG-Api has no members, so the rule cannot match any traffic. Priority does not fix the missing membership.

D

User-defined routes (UDRs) control traffic routing between subnets, not NSG rule evaluation. The issue is that the NSG rule cannot match the destination because the API VM's NIC is not in ASG-Api; a UDR does not fix NSG rule matching.

7
MCQmedium

You deploy a private endpoint for an Azure Storage account. Virtual machines in VNet-App must resolve the storage account name to the private IP address of the endpoint instead of the public endpoint. What should you configure?

A.A network security group on the subnet.
B.A private DNS zone linked to VNet-App.
C.A public DNS zone for the storage account name.
D.A user-defined route table on the subnet.
AnswerB

A private DNS zone linked to VNet-App is required for correct name resolution. When you create a private endpoint, the storage account's FQDN must resolve to the assigned private IP instead of the public endpoint. Linking a private DNS zone—such as privatelink.blob.core.windows.net for Blob Storage—to VNet-App and creating an A record for the private endpoint enables clients in that virtual network to resolve the storage name to the private address. Without this DNS zone, name resolution will still return the public IP, breaking connectivity through the private endpoint.

Why this answer

A private endpoint requires DNS resolution to map the storage account's fully qualified domain name (FQDN) to its private IP address. By creating a private DNS zone (privatelink.blob.core.windows.net) and linking it to VNet-App, Azure automatically creates an A-record pointing to the private endpoint's IP, ensuring VMs resolve the storage account name privately instead of via the public endpoint.

Exam trap

The trap here is that candidates confuse network-level controls (NSGs, route tables) with DNS resolution, assuming that restricting traffic or routing will force private IP usage, when in fact DNS configuration is the critical missing piece for name resolution.

Why the other options are wrong

A

A network security group (NSG) controls inbound/outbound traffic rules, not DNS resolution. It cannot make a storage account name resolve to a private IP address.

C

A public DNS zone is used for internet-facing name resolution, but the requirement is to resolve the storage account name to a private IP within VNet-App. Public zones do not provide private IP resolution for private endpoints.

D

A user-defined route table controls network traffic routing at the subnet level, but DNS resolution is not affected by routing tables. The private endpoint requires DNS resolution to map the storage account name to its private IP, which is achieved via a private DNS zone, not routing.

8
MCQmedium

Based on the exhibit, which network feature should you use so only the subnet can reach the storage account while still using the public endpoint?

A.Create a private endpoint and disable the storage account public endpoint.
B.Enable a service endpoint on app-subnet and allow that subnet on the storage firewall.
C.Add a NAT gateway to app-subnet and use the NAT public IP for firewall rules.
D.Peer app-subnet with a new VNet and access the storage account through peering.
AnswerB

A service endpoint is the correct choice when you want the storage account to remain on its public endpoint but only allow traffic from a specific subnet. It extends the subnet identity to the service without requiring static public IP addresses on the VMs.

Why this answer

Enabling a service endpoint on the app-subnet allows traffic from that subnet to reach the storage account over the Azure backbone network while still using the public endpoint. By then adding the subnet to the storage account firewall, you restrict access to only that subnet, ensuring no other internet traffic can reach the storage account. This approach leverages the public endpoint but with subnet-level access control, meeting the requirement.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, thinking that only private endpoints can provide secure access, but service endpoints allow subnet-specific access while keeping the public endpoint enabled.

Why the other options are wrong

A

The question requires using the public endpoint, but option A disables it, which violates the constraint.

C

A NAT gateway provides outbound internet access with a static public IP, but it does not restrict access to the storage account's public endpoint from only the subnet. The storage firewall cannot filter by NAT public IP in this way; it requires service endpoints or private endpoints for subnet-level access.

9
MCQmedium

Based on the exhibit, a site-to-site VPN gateway deployment fails. What prerequisite should the administrator provide so the gateway can be created successfully?

A.A public IP address resource that will be associated with the VPN gateway.
B.A NAT gateway on the GatewaySubnet to translate tunnel traffic.
C.A private endpoint in the GatewaySubnet for tunnel termination.
D.A network security group that allows inbound TCP 443 to the subnet.
AnswerA

Azure VPN gateways need a public-facing IP resource so the gateway can accept encrypted tunnels from the on-premises device. The exhibit shows the gateway subnet is already present, but no public IP was attached. Creating and associating the public IP resource satisfies the deployment prerequisite.

Why this answer

A site-to-site VPN gateway in Azure requires a public IP address resource to be associated with it for the tunnel to be established. The VPN gateway uses this public IP as the endpoint for on-premises VPN devices to connect to over the internet. Without a public IP, the gateway cannot be provisioned because it has no routable external address for IPsec/IKE negotiation.

Exam trap

The trap here is that candidates often confuse the prerequisite for a VPN gateway with that of an Azure Firewall or NAT gateway, mistakenly thinking a NAT gateway or NSG is required, when in fact only a public IP is mandatory for the VPN gateway to function.

Why the other options are wrong

B

A NAT gateway is not required for a site-to-site VPN gateway deployment. VPN gateways use public IP addresses for tunnel endpoints, and traffic translation is handled by the VPN gateway itself, not a separate NAT gateway.

C

A private endpoint is used for private connectivity to Azure PaaS services over a private IP, not for terminating site-to-site VPN tunnels. VPN gateways require a public IP and do not use private endpoints in the GatewaySubnet.

D

A network security group (NSG) on the GatewaySubnet is not a prerequisite for VPN gateway creation; NSGs are optional and can be applied after deployment. The failure is due to missing a public IP resource, not NSG rules.

10
MCQhard

A VM in AppSubnet must reach a database VM in DbSubnet on TCP 1433. AppSubnet's NSG has an outbound deny rule for TCP 1433 to Any at priority 200. DbSubnet's NSG has an inbound allow rule for TCP 1433 from ASG-App to ASG-Db at priority 300. Both NICs are in the correct application security groups. Connectivity tests fail. What should the administrator change?

A.Remove the inbound allow rule from DbSubnet so the default rules can take over.
B.Move the inbound allow rule on DbSubnet to priority 100 so it is evaluated sooner.
C.Create an outbound allow rule on AppSubnet with a lower priority number than 200 for TCP 1433 to ASG-Db.
D.Assign the database VM NIC to ASG-App so the destination rule matches a broader group.
AnswerC

NSG evaluation is priority-based and stateful, but an outbound deny still blocks the initial connection. A higher-priority outbound allow on the source subnet must match before the deny rule. Because the destination rule already allows the traffic, adding or moving the source-side allow above priority 200 resolves the failure without changing the application subnets or ASG design.

Why this answer

The AppSubnet's NSG has an outbound deny rule for TCP 1433 to Any at priority 200, which blocks all outbound traffic on that port regardless of destination. To allow the VM in AppSubnet to reach the database VM in DbSubnet, an outbound allow rule must be created with a lower priority number (e.g., 100) so it is evaluated before the deny rule. This rule should specify the destination as ASG-Db (the application security group of the database VM) to precisely permit the required traffic.

Exam trap

The trap here is that candidates often focus on the inbound rule on the destination subnet, overlooking the outbound deny rule on the source subnet that blocks traffic before it can even reach the destination NSG.

Why the other options are wrong

A

Removing the inbound allow rule would not fix the connectivity issue because the outbound deny rule on AppSubnet is blocking the traffic. Without an explicit outbound allow, the default outbound deny would still block traffic even if the inbound rule is removed.

B

The inbound allow rule on DbSubnet is already at priority 300, which is evaluated before the default deny rule (priority 65000). The issue is the outbound deny rule on AppSubnet at priority 200, which blocks traffic before it reaches DbSubnet. Changing the priority of the inbound rule does not address the outbound block.

D

Assigning the database VM NIC to ASG-App would not help because the inbound rule on DbSubnet's NSG already allows traffic from ASG-App to ASG-Db. The issue is the outbound deny rule on AppSubnet blocking traffic; changing the destination ASG does not address the outbound block.

11
MCQmedium

A storage account must be reachable only from one Azure virtual network. The team wants the storage service to have a private IP in that VNet, public network access disabled, and name resolution to work without using the public endpoint. What should the administrator configure?

A.A service endpoint on the subnet and a storage firewall rule
B.A private endpoint and a private DNS zone linked to the VNet
C.A public IP address and IP-based firewall exceptions
D.A shared access signature and blob container ACLs
AnswerB

A private endpoint places a private IP address for the storage service in the VNet, and the private DNS zone ensures the service name resolves to that private IP. Together, they provide private access while allowing public network access to be disabled.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet's address space, making it reachable only within that VNet. Disabling public network access ensures no traffic can reach the storage account via its public endpoint. A private DNS zone linked to the VNet enables name resolution to resolve the storage account's FQDN to the private IP without using the public endpoint.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming a service endpoint provides a private IP and disables public access, when in fact it only routes traffic over the Microsoft backbone while still using the public endpoint.

Why the other options are wrong

A

A service endpoint and firewall rule do not assign a private IP to the storage account; the service endpoint only provides source IP restriction from the VNet, and the storage account still uses its public endpoint, failing the requirement for a private IP and disabled public network access.

C

Option C suggests using a public IP and IP-based firewall exceptions, but the requirement is to disable public network access and use a private IP within the VNet. Public IP and firewall rules still expose the storage account to the internet, violating the 'public network access disabled' condition.

D

A shared access signature (SAS) and blob container ACLs provide granular access control and temporary delegated access, but they do not restrict network access to a single VNet, assign a private IP, or disable the public endpoint. They operate over the public endpoint and do not meet the requirement for private network integration.

12
MCQhard

A storage account must be reachable only from workloads in one Azure subnet. The team wants to keep using the storage account's public FQDN, avoid creating a private IP address in the virtual network, and avoid managing private DNS zones. What should the administrator configure?

A.A private endpoint for the storage account
B.A service endpoint on the subnet and a storage firewall rule for that subnet
C.An NSG rule that allows TCP 443 to the storage account
D.An application security group tied to the storage account
AnswerB

A service endpoint keeps the public endpoint in place while extending the subnet's identity to the storage service. Combined with a storage firewall rule that allows only that subnet, it restricts access without assigning a private IP or requiring private DNS management. This exactly matches the stated design goals.

Why this answer

A service endpoint on the subnet and a storage firewall rule for that subnet is correct because it allows the storage account to be reachable only from workloads in one Azure subnet while still using the storage account's public FQDN. Service endpoints extend the virtual network identity to the storage account over the Microsoft backbone, and the firewall rule restricts access to that specific subnet. This avoids creating a private IP address in the virtual network and eliminates the need to manage private DNS zones, as the public endpoint is retained.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that only private endpoints can restrict access to a single subnet, but service endpoints combined with a storage firewall rule achieve the same goal without private IPs or DNS management.

Why the other options are wrong

A

A private endpoint creates a private IP in the VNet and requires managing private DNS zones, which contradicts the requirement to avoid both.

C

NSG rules control traffic at the subnet or NIC level within a virtual network, but they cannot filter traffic to a storage account's public endpoint from outside the subnet. The question requires restricting access to only one subnet, and NSGs alone cannot enforce that the storage account rejects traffic from other sources.

D

An application security group (ASG) is used to group virtual machines and apply NSG rules based on those groups, not to control access to a storage account. It cannot restrict storage account access to a specific subnet without a private endpoint or service endpoint.

13
MCQmedium

A company is building a hub-and-spoke Azure network. The hub VNet already uses 10.50.0.0/16. A new spoke VNet will later be peered to the hub and connected to on-premises through VPN. What is the most important planning step before creating the peering?

A.Reuse 10.50.0.0/16 in the spoke so routing to the hub is simpler.
B.Choose a non-overlapping address space for the spoke and reserve room for future subnets.
C.Create a route table first so peering can learn the spoke routes.
D.Enable a service endpoint to allow the spoke to communicate with the hub.
AnswerB

A peered VNet must have an address space that does not overlap the hub or any other VNet in the mesh, because Azure uses the destination prefix to select the correct next hop. Using a unique range like 10.x.x.x (or whatever is free) avoids ambiguous routing and lets peering exchange routes automatically. Reserving room for future subnets means you define a larger /16 or /20 now, so when you need to add application tiers or integration subnets later you won't have to rearchitect the address plan. This is the accepted Azure design pattern for hub-spoke scalability.

Why this answer

Azure VNet peering requires non-overlapping address spaces to establish connectivity. If the spoke uses the same address space as the hub (10.50.0.0/16), routing conflicts will occur, and the peering will fail or cause unpredictable traffic behavior. Additionally, reserving room for future subnets ensures the spoke can scale without needing to re-architect the network.

Exam trap

The trap here is that candidates often think reusing the same address space simplifies routing (Option A), but Azure explicitly forbids overlapping address spaces for VNet peering, making non-overlapping address planning the critical first step.

Why the other options are wrong

A

Reusing 10.50.0.0/16 in the spoke would cause an IP address overlap with the hub, preventing successful VNet peering and VPN connectivity to on-premises due to routing conflicts.

C

Route tables are not required for peering to learn spoke routes; Azure VNet peering automatically exchanges routes between peered VNets. Creating a route table first is unnecessary and does not affect peering route learning.

D

Service endpoints allow private access to Azure services (e.g., storage, SQL) from a VNet, but they do not enable or affect VNet peering communication. Peering relies on direct network connectivity, not service endpoints.

14
MCQmedium

A company has a hub virtual network that contains a custom DNS server at 10.20.0.4. A new spoke virtual network is peered to the hub. VMs in the spoke can reach other resources in Azure, but they cannot resolve internal names such as app01.corp.local. What should the administrator configure to fix name resolution for the spoke VMs?

A.Add a user-defined route that sends DNS traffic to the hub virtual network.
B.Set the spoke virtual network's custom DNS server to 10.20.0.4.
C.Create an NSG rule that allows UDP port 53 from the spoke subnet to the hub subnet.
D.Enable gateway transit on the hub peering so name resolution flows through the VPN gateway.
AnswerB

This directs VMs in the spoke to query the hub DNS server for internal names. In a hub-and-spoke design, peering alone does not make Azure use a custom DNS server automatically. Configuring the spoke VNet to use 10.20.0.4 ensures clients send DNS queries to the server that already hosts the corporate zone records.

Why this answer

The spoke virtual network must be configured to use the hub's custom DNS server (10.20.0.4) as its own DNS server. Azure virtual networks do not automatically inherit DNS settings from a peered hub; each virtual network must explicitly specify its DNS server. By setting the spoke's custom DNS server to 10.20.0.4, VMs in the spoke will send DNS queries to that server, enabling resolution of internal names like app01.corp.local.

Exam trap

The trap here is that candidates often confuse DNS resolution with network connectivity (NSG rules or UDRs) or assume that VNet peering automatically propagates DNS settings, when in fact each VNet must be explicitly configured with its own DNS server.

Why the other options are wrong

A

A user-defined route (UDR) controls traffic flow, not DNS resolution. The spoke VMs can already reach Azure resources, so routing is fine; the issue is that they are not using the custom DNS server at 10.20.0.4 for name resolution.

C

The issue is DNS resolution, not network connectivity. NSG rules control traffic flow, but the spoke VMs can already reach Azure resources, indicating connectivity exists. The problem is that the spoke VMs are not using the custom DNS server, so allowing UDP 53 does not fix the DNS configuration.

D

Gateway transit is used to allow spoke VMs to use the hub's VPN gateway for outbound connectivity, not for DNS resolution. It does not configure DNS servers for the spoke virtual network.

15
MCQmedium

An on-premises application connects to Azure through an existing site-to-site VPN. The application must access an Azure Storage account, public network access on the storage account is disabled, and the company does not want the storage account exposed through a public endpoint. Which solution should the administrator implement?

A.Create a private endpoint for the storage account in a VNet reachable over the VPN and configure private DNS.
B.Enable a service endpoint on the on-premises network and allow the storage account firewall to trust it.
C.Generate a shared access signature and use it from the on-premises application.
D.Associate a NAT gateway with the on-premises VPN connection.
AnswerA

A private endpoint gives the storage account a private IP in a VNet, and that private address can be reached from on-premises over the existing VPN. Because public network access is disabled, this is the correct design for private-only access. Private DNS ensures the application resolves the storage name to the private IP rather than the public endpoint.

Why this answer

A private endpoint assigns the storage account a private IP from a VNet that is reachable over the site-to-site VPN, effectively bringing the storage account into the on-premises network without exposing a public endpoint. Private DNS zones ensure that the storage account's FQDN resolves to the private IP, enabling seamless connectivity from on-premises while public network access remains disabled.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming that enabling a service endpoint on the VNet and trusting it in the firewall will allow on-premises traffic, but service endpoints do not provide private IP connectivity and still require the public endpoint to be enabled.

Why the other options are wrong

B

Service endpoints expose the storage account to the entire VNet subnet, but the on-premises network is not a VNet; service endpoints cannot be applied to on-premises networks directly. Additionally, the storage account firewall trusts service endpoints only from VNets, not from on-premises.

C

A shared access signature (SAS) provides access to a storage account via its public endpoint, but the question states public network access is disabled, so SAS cannot be used.

D

A NAT gateway provides outbound internet connectivity for virtual networks but does not enable private access to a storage account with public network access disabled. It cannot route traffic from on-premises over VPN to a private endpoint.

16
MCQmedium

You create a private endpoint for an Azure Storage account. Virtual machines in VNet-Prod must resolve the storage account name to the private IP address of that endpoint. Which Azure feature should you configure?

A.A private DNS zone linked to VNet-Prod
B.A user-defined route
C.An Azure Firewall policy
D.A Recovery Services vault
AnswerA

A private DNS zone linked to VNet-Prod is correct because the storage account FQDN (e.g., myaccount.blob.core.windows.net) must resolve to the private endpoint's private IP address for clients inside the virtual network. The zone (privatelink.blob.core.windows.net) is linked to VNet-Prod and contains an A record mapping the storage endpoint to the private IP, allowing traffic to stay within the Microsoft backbone. Without this zone, clients would still use the public IP, defeating the isolation benefits of the private endpoint.

Why this answer

A private endpoint uses a private IP address from the VNet, but DNS resolution must be explicitly configured to map the storage account's FQDN to that private IP. By creating a private DNS zone (privatelink.blob.core.windows.net) linked to VNet-Prod, Azure automatically creates an A record for the private endpoint IP, enabling VMs to resolve the storage account name to the private IP instead of the public IP.

Exam trap

The trap here is that candidates confuse network-level traffic control (UDRs or firewalls) with DNS resolution, assuming that routing or filtering traffic is sufficient to force private connectivity, when in fact DNS must be explicitly configured to resolve to the private IP.

Why the other options are wrong

B

A user-defined route (UDR) controls network traffic flow by overriding default routing, but it does not provide DNS resolution. The question requires resolving the storage account name to a private IP, which is a DNS function, not a routing one.

C

An Azure Firewall policy controls outbound/inbound traffic filtering and does not manage DNS resolution or private endpoint name resolution.

D

A Recovery Services vault is used for backup and disaster recovery (Azure Backup, Site Recovery), not for DNS resolution or private endpoint connectivity. It does not provide DNS resolution for storage account names to private IP addresses.

17
MCQmedium

Based on the exhibit, a help desk engineer cannot RDP from an approved admin subnet to a VM in Azure. What change should the administrator make so the connection is allowed?

A.Change the deny rule to use UDP instead of TCP.
B.Move Allow-RDP-Admin to a priority lower than 100.
C.Add the VM NIC to an application security group and leave the rules unchanged.
D.Delete the default AllowVNetInBound rule.
AnswerB

NSG rules are processed in priority order, and the lowest number wins. Because the deny rule at priority 100 matches first, the allow rule at 200 never takes effect. Moving the allow rule to a smaller number than 100 lets the approved subnet match the permit rule before the deny rule is evaluated.

Why this answer

The exhibit shows a deny rule with priority 100 that blocks all inbound traffic from the approved admin subnet, and an allow rule for RDP with a priority lower than 100 (e.g., 200). Since Azure Network Security Group (NSG) rules are evaluated in priority order (lowest number first), the deny rule at priority 100 is evaluated before the allow rule at a lower priority, thus blocking the RDP connection. To allow the RDP traffic, the administrator must move the Allow-RDP-Admin rule to a priority lower than 100 (e.g., 90) so it is evaluated before the deny rule.

Exam trap

The trap here is that candidates assume allow rules always override deny rules, but in Azure NSGs, the rule with the lowest priority number (highest precedence) wins, regardless of whether it is an allow or deny rule.

Why the other options are wrong

A

RDP uses TCP, not UDP. Changing the deny rule to UDP would not affect TCP-based RDP traffic, so the connection would still be blocked.

C

Adding the VM NIC to an application security group does not change the existing NSG rules; the deny rule with priority 100 still blocks RDP traffic from the admin subnet, so the connection remains denied.

D

Deleting the default AllowVNetInBound rule would block all intra-VNet traffic, which is not required to allow RDP from the admin subnet. The issue is that the high-priority deny rule (priority 100) is blocking RDP before the Allow-RDP-Admin rule (priority 200) is evaluated.

18
MCQmedium

A hub VNet has a VPN gateway connected to on-premises networks. A new spoke VNet must reach on-premises resources through the existing hub gateway without deploying another gateway. What peering configuration should the administrator use?

A.Enable forwarded traffic on both peerings and create a route table in the spoke.
B.Enable gateway transit on the hub peering and use remote gateways on the spoke peering.
C.Deploy a private endpoint in the spoke for each on-premises subnet.
D.Create a service endpoint on the spoke subnet for Microsoft.Network.
AnswerB

This is the standard configuration for letting a spoke VNet use an existing hub VPN gateway. The hub side must allow gateway transit, and the spoke side must be configured to use the remote gateway. Together, these settings let the spoke inherit on-premises connectivity through the hub without deploying a separate gateway.

Why this answer

It enables the hub VNet's VPN gateway to be shared with the spoke VNet without deploying a separate gateway. 'Gateway transit' on the hub peering allows the hub to advertise routes from its VPN gateway to the spoke, while 'Use remote gateways' on the spoke peering allows the spoke to use the hub's gateway for outbound traffic to on-premises. This configuration ensures the spoke can reach on-premises resources through the hub's VPN tunnel.

Exam trap

The trap here is that candidates often confuse 'forwarded traffic' with 'gateway transit' — forwarded traffic only allows traffic to pass through a VNet (e.g., from a network virtual appliance), but it does not enable the use of a VPN gateway in the peered VNet, which requires the specific gateway transit setting.

Why the other options are wrong

A

Option A is wrong because enabling forwarded traffic on both peerings and creating a route table in the spoke does not allow the spoke to use the hub's VPN gateway. The correct configuration requires enabling gateway transit on the hub side and using remote gateways on the spoke side.

D

Service endpoints provide private connectivity to Azure services (like Azure Storage) from a VNet, not to on-premises networks via a VPN gateway. They do not enable routing through a hub gateway to on-premises resources.

19
MCQmedium

An application in a subnet must access an Azure Storage account over a private IP. The storage account must not be reachable through its public endpoint, and access should be limited to that subnet only. Which configuration should the administrator implement?

A.Create a service endpoint for Microsoft.Storage on the subnet and keep the public endpoint enabled.
B.Create a private endpoint in the subnet and disable public network access on the storage account.
C.Use a shared access signature token and leave network settings unchanged.
D.Associate the storage account with a NAT gateway to control inbound access.
AnswerB

A private endpoint places a private IP address for the storage account into the VNet, so traffic stays on the private network path. Disabling public network access ensures the account cannot be reached through its public endpoint. Together, these settings meet both requirements: private IP access and subnet-scoped connectivity.

Why this answer

A private endpoint assigns a private IP from the subnet to the storage account, effectively bringing the service into the virtual network. Disabling public network access ensures the storage account is only reachable via that private endpoint, meeting the requirement to block public endpoint access and limit access to the specific subnet.

Exam trap

The trap here is confusing service endpoints (which still use the public endpoint) with private endpoints (which provide a private IP and can disable public access), leading candidates to choose Option A thinking it provides private connectivity.

Why the other options are wrong

A

A service endpoint does not provide a private IP for the application; it only allows the subnet to access the storage account via the public endpoint with source IP filtering. The requirement specifies access over a private IP and disabling the public endpoint, which service endpoints cannot achieve.

C

A shared access signature (SAS) token provides time-limited access to storage resources but does not restrict access to a specific subnet or disable the public endpoint. It also does not ensure private IP access, as traffic still traverses the public internet.

D

A NAT gateway controls outbound traffic from a subnet to the internet, not inbound access to a storage account. It cannot provide private IP connectivity or disable the public endpoint, so it fails to meet the requirement of limiting access to the subnet only.

20
MCQmedium

A web workload in a subnet must use a NAT gateway for outbound internet traffic so the source IP is stable. The subnet currently has a route table with a 0.0.0.0/0 user-defined route to a virtual appliance. What should the administrator change?

A.Add an NSG outbound allow rule for TCP 80 and TCP 443.
B.Remove or replace the 0.0.0.0/0 UDR to the virtual appliance and associate the NAT gateway with the subnet.
C.Create a private endpoint for the web workload.
D.Enable VNet peering to a hub network with a firewall.
AnswerB

A NAT gateway provides stable outbound internet connectivity only when traffic follows the normal internet path from the subnet. The custom default route to a virtual appliance forces traffic away from that path, so the NAT gateway is bypassed. Removing or replacing the forced-tunnel route and then attaching the NAT gateway to the subnet allows outbound internet traffic to use the NAT gateway’s public IPs.

Why this answer

The current route table has a 0.0.0.0/0 user-defined route (UDR) pointing to a virtual appliance, which forces all outbound traffic through that appliance. To use a NAT gateway for outbound internet traffic with a stable source IP, the administrator must remove or replace that UDR (so the default route no longer points to the appliance) and associate the NAT gateway with the subnet. The NAT gateway automatically creates a default route (0.0.0.0/0) with a next hop of 'Internet', overriding the appliance route, ensuring traffic egresses via the NAT gateway's public IP.

Exam trap

The trap here is that candidates often think adding a NAT gateway automatically overrides existing UDRs, but in Azure, user-defined routes have higher priority than system routes (including those from NAT gateways), so the existing UDR must be explicitly removed or modified for the NAT gateway to handle outbound traffic.

Why the other options are wrong

A

An NSG outbound rule allows traffic but does not change the source IP to a stable public IP; the subnet still uses the UDR to the virtual appliance, so the NAT gateway is not used.

C

A private endpoint is used to securely access Azure PaaS services over a private IP address, not to provide outbound internet traffic with a stable source IP. It does not replace the need for a NAT gateway or modify the subnet's default route.

D

Enabling VNet peering to a hub network with a firewall does not directly provide a stable source IP for outbound traffic from the web workload; it would route traffic through the firewall, which may change the source IP. The requirement is for a NAT gateway to ensure a stable source IP.

21
MCQmedium

An administrator creates a route table with a UDR for 10.20.0.0/16 and next hop type Virtual appliance. A VM in the subnet still does not send that traffic to the appliance. The route table contents are correct. What should be checked first?

A.Whether the NSG has an outbound deny rule for port 80.
B.Whether the route table is associated with the correct subnet.
C.Whether the VM uses a managed identity.
D.Whether the virtual machine is in an availability set.
AnswerB

A route table only affects traffic for the subnet to which it is associated. If the table exists and the route is correct but traffic still follows another path, the first thing to verify is that the VM's subnet is actually linked to that route table. Without that association, the UDR is never applied, even though the route definition itself looks valid.

Why this answer

The most common reason a UDR fails to take effect is that the route table is not associated with the subnet containing the VM. Even if the route table contents are correct, the VM's traffic will follow default system routes unless the route table is explicitly linked to the subnet. Association is a required step to override Azure's default routing behavior.

Exam trap

The trap here is that candidates often focus on the route table contents being correct and overlook the critical step of associating the route table with the subnet, assuming that creating the route table is sufficient to apply it.

Why the other options are wrong

A

The question states that the route table contents are correct, so the issue is not about NSG rules but about route application. An NSG outbound deny rule for port 80 would block traffic regardless of routing, but the problem is that traffic is not being sent to the appliance, which is a routing issue, not a firewall issue.

C

Managed identities are used for authenticating to Azure services without credentials, not for controlling network traffic routing. The issue is about traffic not following a UDR, which is unrelated to identity.

D

The VM being in an availability set does not affect routing behavior; route table association is the primary factor for traffic redirection.

22
Multi-Selectmedium

Which two statements accurately describe the value of centralized DHCP in enterprise networks?

Select 2 answers
A.It can reduce the need to maintain separate DHCP servers in every subnet or site.
B.It can make address-policy changes easier to manage from a central location.
C.It removes the need for relay across Layer 3 boundaries.
D.It eliminates the need for default gateways.
E.It is useful only on wireless networks.
AnswersA, B

Centralizing DHCP on a single server or a small cluster eliminates the operational overhead and administrative burden of deploying and patching separate DHCP servers in every physical segment or branch office. Instead of maintaining per-subnet authorization, database backups, and failover configurations across many hosts, admins can manage one service that serves multiple scopes. This simplification lowers hardware and licensing costs and makes consistent DHCP policy enforcement much easier.

Why this answer

Centralized DHCP can simplify operations by keeping address assignment services in a more controlled central location rather than distributing separate servers everywhere. In practical terms, this can reduce administration overhead and make policy changes easier. The tradeoff is that Layer 3 boundaries must then be handled properly so client requests can still reach the server.

This is why DHCP relay becomes important in many campus and branch designs.

Why the other options are wrong

C

This option is wrong because centralized DHCP can still require DHCP relay agents to forward requests across Layer 3 boundaries, especially when clients and servers are on different subnets.

D

This option is wrong because centralized DHCP does not eliminate the need for default gateways; devices still require a default gateway to communicate outside their local subnet regardless of DHCP configuration.

E

This option is wrong because centralized DHCP is beneficial for both wired and wireless networks, not limited to just wireless environments. Centralized DHCP can manage IP addresses across all types of network infrastructures.

23
MCQmedium

Why is centralized logging especially helpful during incident investigation?

A.It helps investigators analyze related events from multiple devices in one place.
B.It guarantees that no attack can ever succeed.
C.It replaces the need for access control.
D.It forces all devices to use the same VLAN.
AnswerA

This is correct because centralized collection improves visibility and correlation.

Why this answer

Centralized logging aggregates logs from multiple sources (servers, firewalls, applications) into a single repository, enabling investigators to correlate events across devices during an incident. This eliminates the need to manually access each device's local logs, speeding up root cause analysis and providing a unified timeline of activities.

Exam trap

The trap here is that candidates may confuse centralized logging with a security control that prevents attacks, rather than recognizing it as a detective and forensic tool for post-incident analysis.

Why the other options are wrong

B

Option B is incorrect because centralized logging does not guarantee the prevention of attacks; it merely provides a means to analyze and respond to incidents after they occur. Security measures must be implemented to prevent attacks, which is outside the scope of logging.

C

Access control is a separate security measure that governs who can view or manipulate logs; centralized logging does not eliminate the need for such controls. Therefore, this option incorrectly suggests that centralized logging alone suffices for security management.

D

This option is wrong because forcing all devices to use the same VLAN does not inherently improve logging capabilities or facilitate incident investigation. Centralized logging focuses on aggregating logs, not on network segmentation.

24
MCQeasy

Based on the exhibit, administrators can reach a web server from the approved subnet, but connections still fail. What is the most likely reason?

A.The allow rule is blocked because inbound rules are evaluated from highest priority number to lowest.
B.The deny rule has a higher priority and matches the traffic before the allow rule.
C.The destination port must be changed to 80 because NSGs cannot allow TCP 443.
D.The subnet requires a route table before HTTPS can be permitted.
AnswerB

Azure NSG evaluation uses the lowest priority number first. In the exhibit, the deny rule at priority 100 matches TCP 443 from Any, so it blocks the traffic before the later allow rule at priority 200 is considered. To fix the issue, the allow rule must be placed above the deny rule or the deny rule must be narrowed.

Why this answer

Network Security Groups (NSGs) evaluate rules in order of priority, where a lower priority number (e.g., 100) is evaluated before a higher number (e.g., 200). If a deny rule with a higher priority (lower number) matches the traffic before the allow rule, the traffic is blocked. In this scenario, the deny rule (priority 100) matches the source subnet and destination port 443 before the allow rule (priority 200) can permit it, causing connections to fail.

Exam trap

The trap here is that candidates often assume NSG rules are evaluated in the order they appear in the portal (top-to-bottom) or that allow rules override deny rules regardless of priority, but Azure explicitly uses the priority number to determine evaluation order, and a higher-priority deny rule will block traffic even if a lower-priority allow rule exists.

Why the other options are wrong

A

In Azure NSGs, rules are evaluated from highest priority (lowest number) to lowest priority (highest number), not from highest priority number to lowest. The allow rule with a lower priority number would be evaluated before a deny rule with a higher priority number, so the order of evaluation is not the issue here.

C

NSGs can allow TCP port 443 (HTTPS) just like any other port; there is no inherent restriction that prevents NSGs from permitting HTTPS traffic.

D

Route tables control traffic routing between subnets and networks, not the security filtering of inbound HTTPS traffic. NSGs alone can permit or deny traffic based on rules; a missing route table does not block HTTPS unless the traffic needs to traverse a virtual appliance or another network segment, which is not indicated.

25
MCQmedium

A VM in subnet S1 must accept RDP only from the administrator workstation at 203.0.113.25. The subnet NSG has a custom inbound deny-all rule at priority 200 and a custom allow-RDP rule at priority 300 for source 203.0.113.25, destination Any, TCP 3389. RDP is still blocked from the workstation. What should the administrator change?

A.Move the allow-RDP rule to a lower priority number than 200.
B.Change the allow rule from inbound to outbound traffic.
C.Change the protocol from TCP to Any on the deny-all rule.
D.Attach a user-defined route so the workstation can reach the VM directly.
AnswerA

NSG rules are processed in priority order, where lower numbers are evaluated first. Because the deny-all rule at priority 200 is hit before the allow rule at 300, the RDP traffic is denied before it can match the allow entry. Moving the allow rule to a number lower than 200, such as 100, ensures the authorized workstation is permitted while the later deny-all rule still blocks everyone else.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers having higher precedence. The deny-all rule at priority 200 is evaluated before the allow-RDP rule at priority 300, so the deny rule blocks the RDP traffic before the allow rule can be applied. To allow RDP from the workstation, the allow-RDP rule must have a lower priority number (e.g., 100) than the deny-all rule, ensuring it is evaluated first.

Exam trap

The trap here is that candidates often assume rules are evaluated in the order they appear in the portal (top to bottom) or that a more specific rule (allow-RDP) overrides a general rule (deny-all), but Azure NSGs strictly use numeric priority, not specificity or order of creation.

Why the other options are wrong

B

The question concerns inbound RDP traffic to the VM; an outbound rule would not affect inbound connections. The NSG is applied to the subnet, so outbound rules control traffic leaving the subnet, not incoming RDP.

C

Changing the protocol from TCP to Any on the deny-all rule would not resolve the issue because the deny-all rule already blocks all traffic, including RDP. The problem is that the allow-RDP rule at priority 300 is never evaluated because the deny-all rule at priority 200 is processed first.

D

A user-defined route (UDR) controls traffic routing between subnets or to on-premises, not NSG rule evaluation. Since the workstation and VM are in the same virtual network, traffic already reaches the VM; the issue is that the NSG deny-all rule at priority 200 blocks RDP before the allow rule at priority 300 is evaluated.

26
MCQmedium

An organization has an Azure Storage account that must be reachable from Azure VMs and from an on-premises application. Internet access to the storage account must be disabled, and the service should be accessible only over private IP paths. Which solution best meets the requirement?

A.Enable a service endpoint on the Azure VNet and keep the storage account public endpoint enabled.
B.Use a private endpoint for the storage account and connect on-premises through a site-to-site VPN or ExpressRoute path.
C.Use VNet peering only and leave the storage account firewall open to selected public IPs.
D.Assign a public IP address to the storage account and restrict access with an NSG.
AnswerB

A private endpoint gives the storage account a private IP in a VNet, which keeps traffic off the public internet. Because the on-premises application also needs access, the on-premises network must have private connectivity to that VNet, typically through a site-to-site VPN gateway or ExpressRoute. This design satisfies both private access and the no-public-access requirement.

Why this answer

A private endpoint assigns the storage account a private IP address from the Azure VNet, making it accessible over a private IP path. On-premises connectivity is achieved via a site-to-site VPN or ExpressRoute, which extends the private network. This configuration disables internet access by blocking the public endpoint, meeting the requirement to disable internet access.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, thinking service endpoints also provide private-only access, but service endpoints still use the public endpoint and do not block internet access by default.

Why the other options are wrong

A

Keeping the storage account public endpoint enabled violates the requirement to disable internet access; service endpoints still use the public endpoint, just with network rules.

C

VNet peering only connects VNets within Azure, not on-premises networks. Leaving the firewall open to selected public IPs still exposes the storage account to the internet, violating the requirement to disable internet access.

D

Assigning a public IP to a storage account is not supported; storage accounts use a public endpoint by default. NSGs cannot be applied to a storage account, only to subnets or NICs, and this would not disable internet access.

27
MCQeasy

Based on the exhibit, which next hop will Azure use for traffic from the VM to 10.50.1.20?

A.Virtual appliance 10.1.1.4, because all traffic always follows the default route.
B.Internet, because the /24 route is more specific than the default route.
C.Virtual network, because private IP addresses always stay inside Azure.
D.No route is selected, so the packet is dropped before leaving the subnet.
AnswerB

Azure uses longest-prefix match when selecting a route. The destination 10.50.1.20 falls within 10.50.1.0/24, which is more specific than the 0.0.0.0/0 default route. Therefore, the Internet next hop is chosen instead of the virtual appliance.

Why this answer

Azure uses the most specific route (longest prefix match) to determine next hop. The route for 10.50.1.0/24 with next hop Internet is more specific than the default route 0.0.0.0/0, so traffic to 10.50.1.20 will be forwarded to the Internet, not the virtual appliance.

Exam trap

The trap here is that candidates assume private IP traffic always stays within Azure or follows the default route, but Azure prioritizes more specific routes regardless of IP address range.

Why the other options are wrong

A

The default route (0.0.0.0/0) is less specific than the /24 route to 10.50.1.0/24, so Azure uses the more specific route (Internet) instead of the virtual appliance.

C

The VM's traffic to 10.50.1.20 is destined for a public IP range, and Azure's system routes do not force private IP traffic to stay inside Azure; instead, the most specific route (the /24 route to the Internet) is used.

D

Azure does not drop packets for a valid private IP like 10.50.1.20; it uses the most specific route. A /24 route to the Internet exists, so traffic is forwarded, not dropped.

28
MCQmedium

A branch office with a static public IP needs encrypted connectivity to an Azure virtual network so users can access private Azure VMs and internal services. The connection should support a site-to-site design and not rely on public IPs for the Azure resources themselves. Which service should the administrator deploy?

A.Azure VNet peering
B.Service endpoint
C.VPN gateway with a site-to-site connection
D.Azure Front Door
AnswerC

A VPN gateway is the standard Azure service for encrypted site-to-site connectivity between an on-premises network and an Azure VNet. It allows branch users to reach private IPs in Azure without exposing the VMs to the internet. Because the branch has a static public IP, it can terminate a reliable site-to-site tunnel to the Azure VPN gateway.

Why this answer

A VPN gateway with a site-to-site connection (option C) is the correct choice because it provides encrypted connectivity over the public internet between an on-premises branch office with a static public IP and an Azure virtual network. This design uses IPsec/IKE (RFC 4301) to secure traffic, and Azure resources remain private within the VNet, not requiring public IPs. The site-to-site connection establishes a tunnel from the on-premises VPN device to the Azure VPN gateway, enabling users to access private VMs and services securely.

Exam trap

The trap here is that candidates often confuse site-to-site VPN with VNet peering or service endpoints, mistakenly thinking those can provide encrypted on-premises connectivity, but they lack the necessary IPsec tunnel and on-premises-to-Azure routing capabilities.

Why the other options are wrong

A

Azure VNet peering connects two Azure virtual networks, not an on-premises branch office to Azure. It does not support site-to-site VPN connectivity over the internet or encrypted tunnels from on-premises.

B

Service endpoints provide private connectivity from a virtual network to Azure PaaS services (e.g., Storage, SQL) over the Microsoft backbone, but they do not support encrypted site-to-site VPN connectivity from an on-premises branch office to Azure VMs.

D

Azure Front Door is a global load balancer and application delivery controller that operates at Layer 7 (HTTP/HTTPS). It does not provide site-to-site IPsec VPN connectivity for encrypted access to private Azure VMs and internal services; it is designed for web applications with public endpoints.

29
Multi-Selectmedium

Backend VMs are rebuilt often and get new private IP addresses. Frontend VMs must reach them only on TCP 8443, and the rule should keep working after rebuilds. Which two actions should the administrator take? Select two.

Select 2 answers
A.Place the backend NICs in an ASG named ASG-Backend.
B.Create an NSG rule that allows TCP 8443 from ASG-Front to ASG-Backend.
C.Create a static route for the backend subnet to preserve the same IPs.
D.Use a service endpoint between the two subnets.
E.Add a load balancer health probe rule on TCP 8443 only.
AnswersA, B

Backend VMs are rebuilt, so their private IPs change; an NSG rule that references a fixed IP would stop matching after the rebuild. By placing the backend NICs in ASG-Backend, you make the security rule's destination logical rather than address-based. Azure dynamically resolves ASG membership whenever traffic is evaluated, so the rule continues to allow traffic to the rebuilt instance as long as its NIC is a member of the ASG.

Why this answer

An Application Security Group (ASG) allows you to group backend VMs by their NICs, regardless of their private IP addresses. When backend VMs are rebuilt and receive new IPs, the ASG membership remains intact, so NSG rules referencing the ASG continue to work without manual updates. This decouples security rules from dynamic IP addresses.

Exam trap

The trap here is that candidates often confuse Application Security Groups with Network Security Groups (NSGs) or think that static routes or service endpoints can solve dynamic IP addressing, when in fact ASGs are the correct Azure feature for grouping VMs by function regardless of IP changes.

Why the other options are wrong

C

Static routes do not preserve private IP addresses; they control traffic routing. Private IPs are assigned dynamically by Azure DHCP, and a static route cannot prevent IP changes after VM rebuilds.

D

Service endpoints secure Azure service access (e.g., to Storage or SQL) from a virtual network, not traffic between VMs. They do not enable frontend VMs to reach backend VMs on TCP 8443.

E

A load balancer health probe rule on TCP 8443 only checks backend health; it does not create a network rule to allow traffic from frontend to backend. The question requires a security rule (NSG) to permit traffic, not a health probe.

30
MCQmedium

A company created a new spoke virtual network with the address space 10.40.1.0/24. The existing hub virtual network already uses 10.40.0.0/16. The administrator must peer the two VNets so resources can communicate normally. What must be changed before peering can succeed?

A.Create a route table on the spoke subnet before adding the peering.
B.Change the spoke VNet address space to a range that does not overlap the hub.
C.Enable gateway transit on the hub peering to permit overlapping spaces.
D.Add an NSG rule that allows traffic between the hub and spoke address spaces.
AnswerB

Azure virtual network peering requires non-overlapping IP address spaces on both sides. Because the spoke is using 10.40.1.0/24, which sits inside the hub's 10.40.0.0/16 range, peering cannot be created successfully. The administrator must renumber the spoke to a unique range before attempting the peering, then update any dependent subnet and DNS settings as needed.

Why this answer

Azure Virtual Network peering requires that the address spaces of the peered VNets do not overlap. The hub VNet uses 10.40.0.0/16, which includes the spoke's 10.40.1.0/24 range. Overlapping address spaces prevent successful peering because Azure cannot route traffic correctly between overlapping IP ranges.

Therefore, the spoke VNet address space must be changed to a non-overlapping range before peering can succeed.

Exam trap

The trap here is that candidates often confuse overlapping address spaces with connectivity issues that can be fixed by routing or security rules, but Azure strictly prohibits overlapping address spaces for VNet peering at the control plane level.

Why the other options are wrong

A

VNet peering does not require route tables; overlapping address spaces prevent peering from being established at all, so a route table cannot resolve the conflict.

C

Gateway transit is used to allow a peered VNet to use the hub's VPN/ExpressRoute gateway, not to permit overlapping address spaces. Overlapping address spaces are not allowed in VNet peering regardless of gateway transit settings.

D

NSG rules control traffic filtering, not address space overlap. Peering requires non-overlapping address spaces; NSGs cannot resolve the fundamental conflict of overlapping IP ranges.

31
MCQmedium

A subnet already has a user-defined default route (0.0.0.0/0) that sends all outbound traffic to a network virtual appliance. The administrator now needs traffic to the on-premises network 10.50.0.0/16 to use the VPN gateway instead of the appliance. What should be added to the route table?

A.Remove the default route so the system route to the VPN gateway is used
B.Add a user-defined route for 10.50.0.0/16 with next hop type Virtual network gateway
C.Change the subnet address space to a smaller CIDR block
D.Enable a service endpoint for the on-premises prefix
AnswerB

A more specific prefix takes precedence over the broader default route. By adding a route for 10.50.0.0/16 that points to the virtual network gateway, traffic to the on-premises network follows the gateway while all other destinations can still follow the default route to the appliance.

Why this answer

Adding a user-defined route (UDR) for the specific prefix 10.50.0.0/16 with next hop type 'Virtual network gateway' creates a more specific route (longest prefix match) than the existing default route (0.0.0.0/0). This ensures traffic destined for the on-premises network is forwarded to the VPN gateway instead of the network virtual appliance, while all other outbound traffic continues to use the appliance.

Exam trap

The trap here is that candidates assume removing the default route is necessary to force traffic through the VPN gateway, but they overlook that a more specific UDR for the on-premises prefix can coexist with the default route, allowing both paths to function correctly.

Why the other options are wrong

A

Removing the default route would break all other outbound traffic that needs to go through the network virtual appliance, not just traffic to 10.50.0.0/16. The requirement is to selectively route only the on-premises traffic via the VPN gateway while keeping the default route for other traffic.

C

Changing the subnet address space to a smaller CIDR block does not affect routing decisions for traffic destined to 10.50.0.0/16; it only changes the IP range of the subnet itself, not the route table entries.

D

Service endpoints are used to secure Azure service access from a subnet to a specific Azure service (like Azure Storage or SQL Database) by routing traffic directly to the service over the Azure backbone, not to route traffic to an on-premises network via a VPN gateway.

32
MCQmedium

An existing application in AppSubnet1 must access an Azure Storage account. The team does not want to add a private endpoint or change DNS records, but they do want to allow access only from AppSubnet1. Which configuration should the administrator use?

A.Enable the Microsoft.Storage service endpoint on AppSubnet1 and restrict the storage account to selected virtual networks.
B.Create a private endpoint and remove all public network access from the storage account.
C.Add a network security group rule that allows outbound TCP 443 to the storage account.
D.Enable peering between AppSubnet1 and the storage account network.
AnswerA

A service endpoint lets traffic from the subnet reach the storage account over the Azure backbone while the storage firewall can allow only that subnet. This matches the requirement to avoid private endpoints and DNS changes. The access is still limited to the approved subnet identity, which is what the storage firewall evaluates.

Why this answer

Enabling the Microsoft.Storage service endpoint on AppSubnet1 allows traffic from that subnet to be routed directly to the Azure Storage service over the Azure backbone network, bypassing the internet. By then restricting the storage account's firewall to 'selected virtual networks' and adding AppSubnet1's virtual network and subnet, access is limited exclusively to that subnet without needing a private endpoint or DNS changes.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming both require DNS changes, or they mistakenly think NSG rules alone can restrict inbound access to a PaaS service, when in fact the storage account firewall must be explicitly configured to accept traffic only from the specified subnet.

Why the other options are wrong

B

The question explicitly states the team does not want to add a private endpoint, so option B violates that constraint.

C

A network security group (NSG) rule controls traffic at the subnet or NIC level but does not restrict access to the storage account itself; the storage account would still be publicly accessible from any IP, so it does not meet the requirement to allow access only from AppSubnet1.

D

Enabling peering between AppSubnet1 and the storage account network is not possible because Azure Storage accounts do not have a virtual network to peer with; peering is only between virtual networks.

33
MCQmedium

Two application teams created separate VNets for independent workloads. VNet-A uses 10.40.0.0/16 and VNet-B uses 10.40.128.0/17. The teams want to peer the VNets so both apps can communicate privately. What should the administrator do first?

A.Create the peering now and add a route table to one VNet later.
B.Renumber one VNet so its address space no longer overlaps before creating the peering.
C.Add an NSG rule that allows traffic between the two address ranges.
D.Enable gateway transit on both VNets so overlapping ranges can route through a shared gateway.
AnswerB

Azure VNet peering cannot be established between two virtual networks whose address spaces overlap; the peering request is validated and rejected at creation time. The only way to resolve this is to modify one VNet's address plan by renumbering it to a unique, non-overlapping CIDR range before attempting to peer. This may require reconfiguring or redeploying workloads, but without this change neither peering nor any subsequent traffic flow will be possible.

Why this answer

B is correct because Azure VNet peering requires non-overlapping address spaces. VNet-A (10.40.0.0/16) and VNet-B (10.40.128.0/17) overlap, as 10.40.128.0/17 is a subset of 10.40.0.0/16. Before peering can be established, one VNet must be renumbered to eliminate the overlap; otherwise, the peering creation will fail with an error indicating overlapping address spaces.

Exam trap

The trap here is that candidates assume overlapping ranges can be handled with routing or filtering (NSGs, route tables, or gateways), but Azure VNet peering strictly requires non-overlapping address spaces and will reject the peering creation outright.

Why the other options are wrong

A

VNet peering requires non-overlapping address spaces. Creating the peering first with overlapping ranges will fail, and adding a route table later cannot resolve the fundamental address conflict.

C

VNet peering requires non-overlapping address spaces; NSG rules cannot resolve the fundamental routing conflict caused by overlapping IP ranges.

D

VNet-A (10.40.0.0/16) and VNet-B (10.40.128.0/17) have overlapping address ranges (10.40.128.0/17 is within 10.40.0.0/16). Azure VNet peering requires non-overlapping address spaces; overlapping ranges cannot communicate via peering even with a shared gateway. Gateway transit does not resolve address overlap.

34
MCQeasy

A workload subnet must send all outbound internet traffic through a network virtual appliance at 10.4.2.4. What should the administrator configure?

A.An NSG rule that allows outbound traffic to 10.4.2.4.
B.A route table with a user-defined route sending 0.0.0.0/0 to 10.4.2.4.
C.A private DNS zone for the subnet.
D.A service endpoint for the virtual network.
AnswerB

A user-defined route (UDR) with the address prefix 0.0.0.0/0 and a next hop of 10.4.2.4 (typically configured as a VirtualAppliance) overrides Azure's default system route for internet-bound traffic. When the route table is associated with the workload subnet, every packet destined to the internet is forwarded to 10.4.2.4, which acts as a forced tunneling point or network virtual appliance (NVA).

Why this answer

A user-defined route (UDR) with a destination of 0.0.0.0/0 and a next hop of Virtual Appliance (10.4.2.4) overrides the default system route for internet traffic, forcing all outbound traffic from the subnet to be forwarded to the network virtual appliance (NVA) for inspection or NAT. This is the standard method to implement forced tunneling or centralized internet egress in Azure.

Exam trap

The trap here is that candidates confuse NSG rules with routing: an NSG can block or allow traffic, but it cannot change the path traffic takes, so they incorrectly choose Option A thinking a permit rule will force traffic through the appliance.

Why the other options are wrong

A

An NSG rule controls traffic based on IP addresses but does not force all outbound internet traffic through a specific IP; it only allows or denies traffic. To route all internet-bound traffic through 10.4.2.4, a user-defined route (UDR) with 0.0.0.0/0 next hop to that IP is required.

C

A private DNS zone resolves domain names within a virtual network, but it does not control routing of outbound internet traffic. The question requires sending traffic through a network virtual appliance, which is a routing function, not a DNS function.

D

Service endpoints provide direct, private connectivity from a subnet to Azure PaaS services, not to a network virtual appliance. They do not route all outbound internet traffic through a specific IP address.

35
Multi-Selectmedium

An app on a VM must connect to Azure SQL Database without using the public endpoint. The database name must resolve to a private IP inside the VNet, and public network access should be disabled. Which two actions should the administrator take? Select two.

Select 2 answers
A.Create a private endpoint for the Azure SQL server in the VNet.
B.Link the private DNS zone for the SQL private link domain to the VNet.
C.Enable a service endpoint for Microsoft.Sql on the subnet.
D.Grant the VM's managed identity Reader on the SQL server.
E.Keep public network access enabled and restrict the firewall to the VNet.
AnswersA, B

A private endpoint creates a network interface in your VNet with a private IP address that is mapped to the Azure SQL server, placing the service effectively inside the VNet. All traffic from the VM to SQL then travels over the Microsoft backbone rather than the public internet, and the SQL server's FQDN resolves to that private IP in the linked private DNS zone. This satisfies the requirement by ensuring the VM connects without ever exposing the SQL server to a public endpoint.

Why this answer

A private endpoint assigns the Azure SQL Database server a private IP address from the VNet, allowing the VM to connect without using the public endpoint. This ensures traffic stays within the Microsoft backbone and the database name resolves to a private IP inside the VNet.

Exam trap

The trap here is confusing service endpoints with private endpoints: service endpoints keep the public endpoint active and only add a network-level route, while private endpoints completely remove public exposure by assigning a private IP and requiring DNS reconfiguration.

Why the other options are wrong

C

A service endpoint for Microsoft.Sql only allows traffic from the subnet to Azure SQL's public endpoint via the Azure backbone, but it does not provide a private IP for the database name; the database still resolves to a public IP, and public network access must be disabled per the question.

D

Granting the VM's managed identity Reader role on the SQL server does not enable private connectivity; it only allows the VM to read the SQL server's metadata, not connect to the database privately.

E

Keeping public network access enabled contradicts the requirement to disable public network access, and restricting the firewall to the VNet does not provide a private IP resolution for the database name.

36
MCQmedium

A hub-and-spoke environment uses a DNS server VM in the hub VNet at 10.8.0.4 to resolve internal names such as app01.corp.local. The spoke VNet can reach hub VMs by IP after peering, but name resolution still fails from the spoke. What should the administrator configure so VMs in the spoke use the hub DNS server?

A.Add an inbound NSG rule on the spoke subnet to allow UDP and TCP 53 to 10.8.0.4.
B.Configure the spoke VNet to use 10.8.0.4 as a custom DNS server.
C.Create a service endpoint for Microsoft.Storage on the spoke subnet.
D.Add a user-defined route for 10.8.0.4/32 pointing to the virtual network gateway.
AnswerB

A spoke VNet can inherit DNS behavior from a custom DNS setting on the VNet itself. Once the spoke VNet is configured to use 10.8.0.4, its VMs will send name-resolution queries to the hub DNS server over the peering connection. This is the right fix when direct IP connectivity works but internal names do not resolve.

Why this answer

In Azure, a spoke VNet must explicitly be configured with a custom DNS server address to use a non-default DNS resolver. By setting the spoke VNet's DNS server to 10.8.0.4, all VMs in the spoke will send their DNS queries to that hub VM, resolving internal names like app01.corp.local. Without this configuration, the spoke VNet uses Azure-provided DNS, which cannot resolve custom private DNS zones hosted on the hub VM.

Exam trap

The trap here is that candidates assume VNet peering automatically forwards DNS queries to the hub's DNS server, but peering only provides IP-level connectivity, not DNS configuration; the spoke VNet must be explicitly set to use the custom DNS server address.

Why the other options are wrong

A

The issue is that the spoke VNet is not configured to use the hub DNS server for name resolution; NSG rules control traffic filtering, not DNS server assignment. Since connectivity via IP already works, an NSG rule is unnecessary and does not address the DNS configuration.

C

Service endpoints for Microsoft.Storage are used to secure Azure Storage resources to a VNet, not to configure DNS resolution. They do not affect how VMs resolve internal names like app01.corp.local.

D

A user-defined route for 10.8.0.4/32 pointing to the virtual network gateway would not help because name resolution fails due to the spoke VNet not being configured to use the hub DNS server, not due to routing issues. The spoke VMs can already reach 10.8.0.4 by IP after peering, so routing is fine.

37
MCQmedium

A backend VM must accept TCP 8443 only from the web tier. The subnet NSG already has a deny-all inbound rule at priority 200. The administrator adds an allow rule for the web tier at priority 300, but the connection still fails. What should be changed?

A.Change the allow rule to a lower priority number than 200.
B.Change the allow rule protocol from TCP to Any.
C.Move the VM to a different subnet so the rule can apply.
D.Add a route table entry for TCP 8443 to bypass the NSG.
AnswerA

NSG rules are evaluated in ascending priority order, and the rule with the lowest priority number (highest precedence) is processed first. If the deny-all rule has priority 200 and the allow rule for TCP 8443 has a higher number like 300, the deny rule matches first and blocks the traffic. To permit the web tier, the allow rule must be assigned a priority lower than 200, such as 100, so it is evaluated before the deny-all rule.

Why this answer

Azure Network Security Groups (NSGs) process rules in priority order, with lower numbers evaluated first. The existing deny-all inbound rule at priority 200 is evaluated before the new allow rule at priority 300, so the deny rule blocks the traffic before the allow rule can be considered. To permit TCP 8443 from the web tier, the allow rule must have a priority number lower than 200 (e.g., 100) so it is evaluated first and allows the traffic.

Exam trap

The trap here is that candidates often assume higher priority numbers (like 300) override lower numbers (like 200), but in Azure NSGs, lower priority numbers are evaluated first, so a deny rule with a lower number will block traffic before a higher-numbered allow rule is ever checked.

How to eliminate wrong answers

Option B is wrong because changing the protocol from TCP to Any does not resolve the priority ordering issue; the deny rule at priority 200 would still block all inbound traffic regardless of protocol. Option C is wrong because moving the VM to a different subnet does not change the fact that the subnet's NSG still has a deny-all rule at priority 200 that would block the traffic; the NSG is applied at the subnet level, not per VM. Option D is wrong because route tables control traffic routing (next hop) and cannot bypass NSG rules; NSGs are stateful firewalls that are evaluated independently of routing, and a route table entry cannot override an NSG deny rule.

38
MCQmedium

A security team requires all outbound traffic from a subnet to pass through an Azure Firewall at 10.1.0.4, including internet-bound traffic from the VMs. What should the administrator configure?

A.Assign a NAT gateway to the subnet and leave the default routing in place.
B.Create a route table with a 0.0.0.0/0 route to 10.1.0.4 and associate it with the subnet.
C.Enable service endpoints for the subnet so outbound traffic stays private.
D.Deploy a public IP on each VM and use NSG rules to inspect the traffic.
AnswerB

Forced tunneling is implemented with a user-defined route that sends the default route to a virtual appliance. By creating a 0.0.0.0/0 UDR that points to the Azure Firewall’s private IP and associating that route table with the subnet, all outbound traffic is steered through the firewall. This is the standard design when the firewall must inspect internet-bound traffic.

Why this answer

Creating a route table with a default route (0.0.0.0/0) pointing to the Azure Firewall private IP (10.1.0.4) and associating it with the subnet forces all outbound traffic, including internet-bound traffic, to be routed through the firewall. This ensures the firewall can inspect and control all egress traffic as required by the security team.

Exam trap

The trap here is that candidates often confuse NAT gateways or service endpoints as solutions for routing traffic through a firewall, but neither provides the forced routing and inspection required; only a UDR with a default route to the firewall's private IP achieves this.

Why the other options are wrong

A

A NAT gateway provides outbound internet access with source network address translation (SNAT), but it does not route traffic through the Azure Firewall at 10.1.0.4. The requirement is to force all outbound traffic via the firewall for inspection, which requires a custom route (UDR) pointing to the firewall's private IP.

C

Service endpoints do not route traffic through a firewall; they allow direct private access to Azure services, bypassing the firewall. This would not force all outbound traffic through the Azure Firewall at 10.1.0.4.

D

This option does not route traffic through the Azure Firewall; instead, it allows VMs to directly access the internet via their public IPs, bypassing the firewall and failing the requirement.

39
MCQmedium

Based on the exhibit, web servers can reach a backend VM only after it is added to a specific group. What should the administrator change to allow the traffic to match the existing NSG rule?

A.Add api01's NIC to ASG-Api.
B.Move the deny rule to priority 100.
C.Change the source of the allow rule from ASG-Web to VirtualNetwork.
D.Place api01 in the same subnet as web01.
AnswerA

The NSG rule is already written to permit traffic from ASG-Web to ASG-Api on TCP 8443. The backend NIC is not in the destination ASG, so the allow rule never matches. Adding api01 to ASG-Api makes the existing rule effective without broadening access to the entire subnet.

Why this answer

The exhibit shows that the NSG rule allows traffic from ASG-Web to ASG-Api. Since web01 is in ASG-Web, traffic from web01 to api01 is only permitted if api01 is a member of ASG-Api. Adding api01's NIC to ASG-Api ensures the destination matches the NSG rule, allowing the traffic.

Exam trap

The trap here is that candidates may think subnet placement or rule priority is the issue, but the core concept is that ASG membership must match the rule's destination to allow traffic.

Why the other options are wrong

B

The deny rule at priority 100 would block all traffic before the allow rule is evaluated, preventing the intended traffic from reaching the backend VM. The question requires allowing traffic, not blocking it.

C

Changing the source from ASG-Web to VirtualNetwork would allow traffic from any virtual network resource, not just web servers, which violates the requirement that only web servers should reach the backend VM.

D

Placing api01 in the same subnet as web01 would change its IP address and potentially break existing configurations, but the question states that web servers can reach the backend VM only after it is added to a specific group. The issue is about NSG rule matching based on application security groups, not subnet placement.

40
MCQmedium

An application running on a VM in a subnet must access an Azure Storage account. The security team wants the storage account to accept traffic only from that subnet, but they do not want a private IP address in the VNet and they do not want to change DNS records. What should the administrator configure?

A.Create a private endpoint and a private DNS zone for the storage account.
B.Enable a service endpoint for Microsoft.Storage on the subnet and restrict the storage firewall to that subnet.
C.Allow access only from the VM public IP address.
D.Place the storage account in the same resource group as the VM.
AnswerB

A service endpoint extends the subnet identity to the Azure Storage service without creating a private IP address in the VNet. It also avoids DNS changes because clients continue to use the normal public endpoint name, while the storage firewall can be configured to allow only the selected subnet. This matches the requirement for subnet-only access while keeping the service on its public endpoint architecture.

Why this answer

A service endpoint for Microsoft.Storage allows the subnet to send traffic to the storage account over the Azure backbone network using the storage account's public endpoint, without requiring a private IP address or DNS changes. The storage firewall then restricts access to only that subnet's traffic, meeting the security team's requirements.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that any restriction to a VNet requires a private IP address, but service endpoints achieve subnet-level restriction using the public endpoint without private IPs or DNS changes.

Why the other options are wrong

A

The question explicitly states the security team does not want a private IP address in the VNet and does not want to change DNS records. A private endpoint assigns a private IP to the storage account within the VNet and requires a private DNS zone to resolve the storage account FQDN to that private IP, which violates both constraints.

C

The security team does not want to change DNS records, and using the VM's public IP address would require the storage account to accept traffic from that public IP, which is not restricted to the subnet and does not leverage Azure's network infrastructure for secure access.

D

Placing the storage account in the same resource group as the VM does not restrict network access; resource groups are logical containers and do not enforce network security.

41
MCQhard

Traffic from Subnet-App to the internet is being routed through a virtual appliance unexpectedly. You need to identify which route is being applied to the network interface of VM-App01. Which Azure feature should you use?

A.Effective routes for the network interface
B.NSG flow logs
C.Azure Policy compliance
D.The subscription activity log
AnswerA

Effective routes for a network interface are the authoritative, data-plane view of the actual routing decisions applied to a VM's NIC. They combine Azure system routes, user-defined routes, and BGP routes, and display the selected next hop for each address prefix. To confirm that traffic from the app subnet to the internet uses a specific next hop (e.g., Internet, VPN gateway, or NVA), this blade shows the computed route that is actually used, not just a configured route table.

Why this answer

Effective routes for the network interface (NIC) shows the actual routes applied to a specific VM's NIC after evaluating all route tables, virtual network gateway routes, and BGP routes. Since traffic from Subnet-App to the internet is unexpectedly going through a virtual appliance, you need to see which route (e.g., a user-defined route with next hop type VirtualAppliance or VirtualNetworkGateway) is being selected based on the longest prefix match. This tool directly displays the effective next hop for each destination prefix, allowing you to identify the misconfigured route causing the traffic to be redirected.

Exam trap

The trap here is that candidates confuse NSG flow logs (which show traffic filtering) with effective routes (which show routing decisions), leading them to pick NSG flow logs when the question is about path selection rather than security rule evaluation.

Why the other options are wrong

B

NSG flow logs record traffic that passes through a network security group, but they do not show the effective route applied to a network interface. The question asks for the route being applied, not the traffic logs.

C

Azure Policy compliance checks resource configurations against policies, but it does not show the actual applied routes for a network interface. The question asks for identifying which route is being applied, which requires effective routes, not policy compliance.

D

The subscription activity log tracks management-plane operations (e.g., creating or deleting resources), not data-plane routing decisions. It cannot show which route is applied to a specific network interface.

42
MCQmedium

A route table contains a user-defined route for 172.16.0.0/16 to a virtual appliance. The ExpressRoute circuit advertises 172.16.10.0/24. A VM in the subnet sends traffic to 172.16.10.20. Which route does Azure use?

A.The user-defined route, because UDRs always beat BGP routes.
B.The BGP route, because it has the more specific prefix length.
C.The system route to the virtual network, because system routes are preferred over learned routes.
D.No route is chosen because Azure does not support overlapping prefixes.
AnswerB

Azure route selection uses longest-prefix match before considering route source precedence. The BGP route for 172.16.10.0/24 is more specific than the UDR for 172.16.0.0/16, so the /24 route is selected for traffic to 172.16.10.20. Source precedence only matters when multiple routes have the same prefix length.

Why this answer

Azure uses the most specific prefix match to determine the next hop. The BGP route for 172.16.10.0/24 has a longer prefix length (24) than the user-defined route for 172.16.0.0/16 (16), so the BGP route is preferred regardless of route source priority. This follows the longest prefix match (LPM) algorithm, which overrides the default preference order of UDRs over BGP routes.

Exam trap

The trap here is that candidates assume UDRs always override BGP routes, but Azure applies longest prefix match first, so a more specific BGP route will be used over a less specific UDR.

Why the other options are wrong

A

Azure uses the most specific prefix match, not a fixed preference for UDRs over BGP routes. Since the BGP route (172.16.10.0/24) is more specific than the UDR (172.16.0.0/16), the BGP route is chosen.

C

System routes are preferred over learned routes only when there is no more specific route; here, the BGP route (172.16.10.0/24) is more specific than the system route (virtual network address space), so Azure uses the most specific match, which is the BGP route.

D

Azure supports overlapping prefixes between UDRs and BGP routes; the more specific prefix (172.16.10.0/24) is used regardless of route source, so a route is chosen.

43
MCQmedium

A company is creating a new spoke virtual network that will be peered to an existing hub VNet. The hub uses 10.40.0.0/16, and an on-premises network already uses 10.41.0.0/16. The spoke must support about 120 endpoints now and should allow room for growth. Which address space should you assign to the new spoke VNet?

A.10.40.64.0/25
B.10.42.0.0/24
C.10.41.128.0/24
D.192.168.10.0/26
AnswerB

10.42.0.0/24 is a private RFC1918 range that does not overlap the hub VNet or on-premises addresses, so VNet peering will succeed. With 251 usable Azure IPs, it easily supports the required 120 endpoints and allows subnets to be carved for future workloads. The /24 prefix also provides flexibility to expand without reconfiguring the new spoke.

Why this answer

(10.42.0.0/24) is correct because it provides 256 IP addresses (251 usable) for the spoke, which exceeds the requirement of ~120 endpoints with room for growth, and it does not overlap with the hub VNet (10.40.0.0/16) or the on-premises network (10.41.0.0/16). This ensures successful VNet peering without IP address conflicts.

Exam trap

The trap here is that candidates often overlook the on-premises address space (10.41.0.0/16) and mistakenly choose an overlapping range like 10.41.128.0/24, assuming only the hub VNet's address space must be avoided.

Why the other options are wrong

A

Option A (10.40.64.0/25) overlaps with the hub VNet's address space 10.40.0.0/16, which would cause a peering conflict. Azure requires non-overlapping address spaces for peered VNets.

C

Option C (10.41.128.0/24) overlaps with the on-premises network 10.41.0.0/16, which would cause routing conflicts when peered with the hub VNet.

D

Option D (192.168.10.0/26) provides only 62 usable IP addresses, which is insufficient for the required 120 endpoints plus growth. Additionally, using a private IP range from 192.168.x.x is not necessary and may cause routing conflicts if other networks use that range.

44
Multi-Selectmedium

You are designing an Azure virtual network for a three-tier application. The frontend, application, and database tiers each require their own subnet. You need to ensure that the frontend tier can communicate with the application tier, but the database tier must be isolated from direct inbound traffic from the internet. Which three of the following actions should you include in your design? (Choose three.)

Select 3 answers
.Assign a network security group (NSG) to the database subnet that denies all inbound traffic from the internet.
.Create a single virtual network with three subnets: frontend, application, and database.
.Configure a virtual network peering to connect the frontend and database subnets.
.Use Azure Firewall to inspect traffic between the frontend and application tiers.
.Route traffic from the application tier to the database tier using a user-defined route (UDR) pointing to the Azure Firewall.
.Place all three tiers in the same virtual network using separate subnets.

Why this answer

Assigning a network security group (NSG) to the database subnet that denies all inbound traffic from the internet is correct because NSGs act as a distributed, stateful firewall at the subnet or NIC level. By default, NSGs allow all inbound traffic from within the virtual network, so you must explicitly add a deny rule for internet traffic (source 'Internet') to isolate the database tier. This ensures the database subnet is protected from direct inbound internet traffic while still allowing traffic from the application tier via the default allow rule for virtual network traffic.

Exam trap

The trap here is that candidates often think they need to create separate virtual networks or use complex routing/firewall rules for isolation, when in fact a single VNet with subnets and an NSG on the database subnet is sufficient to meet the requirement of isolating the database from the internet while allowing frontend-to-application communication.

45
MCQhard

Users on the internet cannot reach an HTTPS application hosted on VM-Web01. The VM has a public IP address, the application is listening on TCP port 443, and the guest OS firewall allows the traffic. What is the most likely Azure-side cause?

A.The NSG blocks inbound TCP 443
B.The VM uses Premium SSD
C.Azure Backup is not enabled
D.The storage account uses GRS
AnswerA

Network Security Groups (NSGs) filter inbound and outbound traffic at the subnet or network interface level using priority-ordered allow/deny rules. HTTPS traffic uses TCP port 443, so if the NSG attached to the VM's subnet or NIC has no explicit rule allowing inbound TCP 443, the default-deny behavior of the NSG will silently drop those connection attempts. Even if the VM itself is healthy and listening on port 443, the NSG acts as a stateful firewall that controls what traffic can even reach the VM's network stack. An explicit deny rule or missing allow rule for TCP 443 is therefore the most direct and common cause of internet users being unable to reach an HTTPS application.

Why this answer

The most likely Azure-side cause is that a Network Security Group (NSG) associated with the VM's subnet or NIC is blocking inbound TCP port 443. Even if the VM has a public IP, the application is listening, and the guest OS firewall allows traffic, an NSG rule denying inbound HTTPS traffic will prevent external users from reaching the application. NSGs act as a distributed firewall filtering traffic at the Azure network layer before it reaches the VM.

Exam trap

The trap here is that candidates often focus on the VM's guest OS firewall or public IP configuration, overlooking the NSG as the first line of defense in Azure's network security model.

Why the other options are wrong

B

The VM uses Premium SSD affects disk performance and cost, not network connectivity to the application. It does not block inbound traffic on TCP 443.

C

Azure Backup being not enabled does not affect network connectivity to the VM; it is a data protection feature unrelated to inbound traffic.

D

Storage account replication type (GRS) affects data redundancy and disaster recovery, not network connectivity to a VM. It has no impact on inbound HTTPS traffic.

46
MCQeasy

A team manages many application VMs and backend VMs. The VM IP addresses change whenever they are rebuilt, but the same traffic rule must always allow the app tier to reach the backend tier on TCP 8443. What should the administrator use in the NSG rule?

A.Static private IP addresses for each virtual machine.
B.Application Security Groups for the app and backend VMs.
C.A user-defined route between the app and backend subnets.
D.An availability set for each tier.
AnswerB

Application Security Groups (ASGs) provide a logical network-security boundary: you associate each VM's NIC with an ASG representing its tier, then create NSG rules that reference those ASGs as source and destination. When a VM is rebuilt, its new private IP automatically remains in the same ASG, so the existing NSG rule stays valid without any IP-based rule edits. This removes the operational burden of tracking per-VM IPs while still enforcing controlled traffic between app and backend tiers.

Why this answer

Application Security Groups (ASGs) allow you to group VMs logically and reference them directly in NSG rules without relying on static IP addresses. Since the VM IPs change on rebuild, ASGs ensure the NSG rule for TCP 8443 always applies to the correct app and backend tiers, regardless of IP changes.

Exam trap

The trap here is that candidates often default to static IPs (Option A) for consistency, overlooking that ASGs provide a dynamic, IP-agnostic solution that directly addresses the rebuild scenario.

Why the other options are wrong

A

Static private IP addresses ensure IPs don't change, but they don't simplify NSG rule management when many VMs are involved; each VM would still need an individual rule or a separate NSG, making it less scalable than using Application Security Groups.

C

User-defined routes (UDRs) control network traffic flow between subnets or to virtual appliances, not traffic filtering based on application tiers. The question requires allowing traffic on a specific port (TCP 8443) between dynamic IP groups, which is a job for NSG rules with Application Security Groups, not routing.

D

An availability set ensures high availability by distributing VMs across fault domains, but it does not control network traffic rules or adapt to changing IP addresses. It cannot be used in an NSG rule to allow traffic based on VM membership.

47
MCQeasy

Two application teams created separate virtual networks so their workloads can communicate through VNet peering. VNet-A uses 10.20.0.0/16. VNet-B was created with 10.20.128.0/17. The peering request fails during validation. What is the best fix?

A.Add an NSG rule to allow traffic between the two VNets.
B.Change one VNet to use a non-overlapping address space.
C.Create a private endpoint in each VNet.
D.Attach a route table to both subnets.
AnswerB

For VNet peering to succeed, the address spaces of both virtual networks must be unique and must not overlap. Overlapping CIDR blocks make it impossible for Azure's routing engine to determine where to deliver traffic, so the peering request fails. You must either add a non-overlapping address range to one VNet or, if the existing overlapping range is in use, create a new VNet with a non-overlapping address space and migrate resources. Only then can Azure establish the bidirectional peering connection between the two VNets.

Why this answer

VNet peering requires that the address spaces of the peered virtual networks do not overlap. VNet-A uses 10.20.0.0/16, which includes the entire range from 10.20.0.0 to 10.20.255.255. VNet-B uses 10.20.128.0/17, which is a subset of VNet-A's range (10.20.128.0 to 10.20.255.255).

This overlap causes the peering validation to fail because Azure cannot route traffic between overlapping address spaces. Changing one VNet to a non-overlapping address space resolves the conflict.

Exam trap

The trap here is that candidates may think NSG rules or route tables can fix connectivity issues between peered VNets, but the peering validation itself fails due to overlapping address spaces, which is a fundamental design constraint that cannot be overridden by network security or routing policies.

Why the other options are wrong

A

VNet peering fails due to overlapping IP address spaces (10.20.0.0/16 and 10.20.128.0/17 overlap). NSG rules control traffic filtering, not address space conflicts, so adding an NSG rule does not resolve the overlapping address issue.

C

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to resolve overlapping IP address spaces between peered VNets. The peering failure is due to address overlap, which private endpoints cannot fix.

D

Route tables direct traffic between subnets within a VNet or to on-premises, but they cannot resolve overlapping IP address spaces between peered VNets. The peering failure is due to address overlap, not missing routes.

48
MCQhard

A subnet contains two NSGs: one associated with the subnet and one associated with the NIC of VM-App03. You need to determine whether inbound TCP 3389 from the internet is allowed. What is the correct interpretation?

A.The NIC NSG always overrides the subnet NSG.
B.Inbound traffic is allowed as long as one NSG has an allow rule.
C.The effective rules are determined by evaluating both NSGs together, and a deny in either applicable path can block access.
D.Subnet NSGs apply only to outbound traffic.
AnswerC

When both a subnet NSG and a NIC NSG apply to the same virtual machine, Azure aggregates their rules into the effective security rules for the interface. Evaluation does not simply take the least-restrictive rule; instead, a traffic flow must not violate a deny rule at either layer. Therefore, if a deny rule in the subnet NSG matches, the NIC allow rule cannot rescue the flow, and vice versa, so both NSGs must permit the traffic for it to be allowed.

Why this answer

When a subnet NSG and a NIC NSG are both applied, Azure evaluates the effective rules by combining both NSGs. Inbound traffic must be allowed by both NSGs along the traffic path; if either NSG has a deny rule that matches the traffic (e.g., a default deny rule for inbound internet traffic), the traffic is blocked. Option C correctly states that a deny in either applicable path can block access, which is the fundamental behavior of NSG evaluation in Azure.

Exam trap

The trap here is that candidates often assume the NIC NSG overrides the subnet NSG (Option A) or that an allow in one NSG is sufficient (Option B), but Azure requires both NSGs to permit the traffic for it to be allowed.

Why the other options are wrong

A

In Azure, NSGs are evaluated in order: subnet NSG first, then NIC NSG. A deny rule in either NSG can block traffic, so the NIC NSG does not always override the subnet NSG.

B

In Azure, when both a subnet NSG and a NIC NSG exist, traffic is evaluated by both NSGs in sequence. A deny rule in either NSG will block traffic, so an allow rule in one NSG does not guarantee traffic is allowed if the other NSG denies it.

D

Subnet NSGs apply to both inbound and outbound traffic, not just outbound. In this question, the subnet NSG can deny inbound TCP 3389 from the internet, affecting the effective rule.

49
Multi-Selectmedium

A storage account must remain on its public endpoint, but only one Azure subnet named AppSubnet should be allowed to access it from Azure. No private IP is required. Which two actions should the administrator take? Select two.

Select 2 answers
A.Enable the Microsoft.Storage service endpoint on AppSubnet.
B.Configure the storage account networking firewall to allow the selected virtual network and subnet.
C.Create a private endpoint and disable public network access.
D.Link a private DNS zone to AppSubnet.
E.Assign the Reader RBAC role to AppSubnet.
AnswersA, B

Enabling the Microsoft.Storage service endpoint on AppSubnet adds that subnet's identity to the storage service's network policy. Service endpoints do not change the storage account's public DNS or IP address; instead, they ensure traffic from AppSubnet is tagged with the virtual network and subnet source. This tag allows the storage firewall's virtual network rule to match the request, effectively permitting access through the existing public endpoint.

Why this answer

Enabling the Microsoft.Storage service endpoint on AppSubnet allows traffic from that subnet to the storage account over the Azure backbone network, using the public endpoint while restricting access to only that subnet. Option B is correct because configuring the storage account's networking firewall to allow the selected virtual network and subnet explicitly permits traffic from AppSubnet while blocking all other public access, meeting the requirement to keep the public endpoint but limit access to one subnet.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that restricting access to a single subnet requires a private IP and disabling public access, when in fact service endpoints achieve the same goal without changing the endpoint type.

Why the other options are wrong

C

The question requires keeping the storage account on its public endpoint and allowing only one subnet. Creating a private endpoint and disabling public network access would remove the public endpoint, contradicting the requirement.

D

The question requires the storage account to remain on its public endpoint and does not require a private IP. Creating a private endpoint and linking a private DNS zone would move the storage account to a private endpoint, which contradicts the requirement to keep the public endpoint.

E

The Reader RBAC role grants read-only access to Azure resources but does not control network access to the storage account. It cannot restrict access to a specific subnet; network firewalls or service endpoints are required for that purpose.

50
MCQmedium

A branch office uses an on-premises firewall that supports IPsec/IKE and has a stable public IP. The office needs always-on private connectivity to an Azure VNet over the internet. Which Azure component should the administrator deploy?

A.A site-to-site connection using Azure VPN Gateway.
B.VNet peering between the branch office and the Azure VNet.
C.Azure Bastion in the target VNet.
D.A private endpoint for the Azure VNet.
AnswerA

A site-to-site VPN with Azure VPN Gateway is designed for permanent encrypted connectivity between an on-premises network and an Azure VNet. The branch firewall can establish an IPsec/IKE tunnel to the gateway using its public IP, which matches the scenario. This approach provides private connectivity across the internet without exposing the workload directly to public endpoints. It is the standard choice for hybrid network connectivity when ExpressRoute is not required.

Why this answer

A site-to-site VPN connection using Azure VPN Gateway is the correct choice because it provides always-on, encrypted connectivity over the internet between an on-premises network with a stable public IP and an Azure VNet. Azure VPN Gateway supports IPsec/IKE protocols, which are compatible with the branch office's firewall, enabling a secure tunnel that meets the requirement for private connectivity.

Exam trap

The trap here is that candidates often confuse VNet peering (which only works between Azure VNets) with site-to-site VPN connectivity, or they mistakenly think Azure Bastion or private endpoints can provide network-level connectivity to on-premises networks.

Why the other options are wrong

B

VNet peering connects two Azure VNets within Azure, not an on-premises network to Azure. It cannot connect a branch office's on-premises firewall to an Azure VNet over the internet.

C

Azure Bastion provides secure RDP/SSH access to VMs inside a VNet without public IPs, but it does not establish site-to-site IPsec/IKE connectivity from an on-premises network to Azure.

51
MCQmedium

A subnet is associated with a NAT gateway, but its route table also contains a 0.0.0.0/0 route to a virtual appliance at 10.2.0.4. The business wants all outbound internet traffic from the VMs to use one static public IP, and inspection by the appliance is no longer required. What should the administrator change?

A.Add a public IP address directly to each virtual machine NIC.
B.Remove the 0.0.0.0/0 user-defined route from the subnet.
C.Enable service endpoints for the subnet.
D.Change the NAT gateway to a zone-redundant SKU.
AnswerB

The default route to the virtual appliance forces all internet-bound traffic away from the subnet's NAT gateway. Because NAT gateway only handles outbound traffic that is not sent to another next hop, the UDR prevents the NAT gateway from being used. Removing the default route allows the subnet to use the NAT gateway's static public IP for outbound internet connections while keeping routing simple.

Why this answer

Removing the 0.0.0.0/0 user-defined route (UDR) from the subnet's route table will allow the NAT gateway to handle all outbound internet traffic. The NAT gateway provides a single static public IP for outbound traffic, and since inspection by the virtual appliance is no longer required, the conflicting UDR that directs traffic to the appliance must be deleted. This ensures that the subnet's default route points to the NAT gateway, which uses Source Network Address Translation (SNAT) to translate private IPs to the static public IP.

Exam trap

The trap here is that candidates often think adding a public IP to VMs (Option A) is simpler or that service endpoints (Option C) can replace a NAT gateway for general internet access, but they fail to recognize that the existing UDR is the direct conflict preventing the NAT gateway from being the default route for outbound traffic.

Why the other options are wrong

A

Adding a public IP directly to each VM NIC would bypass the NAT gateway, causing each VM to use its own public IP instead of the single static public IP required by the business.

C

Enabling service endpoints does not affect outbound internet traffic routing; it only allows direct private access to Azure PaaS services from the subnet, bypassing the internet. The requirement is to remove the appliance inspection and use a NAT gateway for internet traffic, which is achieved by removing the conflicting UDR.

D

The question requires all outbound traffic to use one static public IP and no longer needs appliance inspection. Changing the NAT gateway to a zone-redundant SKU does not affect routing; it only provides high availability across availability zones, which is irrelevant to the stated requirements.

52
MCQeasy

A subnet has an NSG with a custom inbound deny-all rule at priority 200. You need to allow HTTPS traffic to a VM in that subnet from any source. Which action should you take?

A.Create an inbound allow rule for TCP 443 with priority 300.
B.Create an inbound allow rule for TCP 443 with priority 100.
C.Change the deny-all rule to outbound instead of inbound.
D.Add a route table entry for port 443 traffic to the VM subnet.
AnswerB

Azure Network Security Group rules are evaluated in ascending order of priority, where a smaller numeric value means higher priority. This rule at priority 100 is evaluated before the deny-all at priority 200, and because it specifically matches TCP port 443 inbound, it will allow HTTPS traffic; once a matching rule is found, evaluation stops. This is the standard way to create an exception above a broad deny-all rule.

Why this answer

NSG rules are evaluated in priority order, with lower numbers evaluated first. The existing deny-all rule at priority 200 blocks all inbound traffic. To allow HTTPS (TCP 443) before the deny rule is evaluated, you must create an allow rule with a priority lower than 200, such as priority 100.

This ensures the allow rule is processed first, permitting the traffic.

Exam trap

The trap here is that candidates often think higher priority numbers (like 300) are evaluated first, or they confuse NSG rule priority with route table priority, leading them to choose a higher priority number or a route table entry instead of a lower priority allow rule.

Why the other options are wrong

A

In Azure, NSG rules are evaluated in priority order, with lower numbers having higher priority. A rule at priority 300 is evaluated after a rule at priority 200, so the deny-all rule would block HTTPS traffic before the allow rule is reached.

C

The deny-all rule is inbound, blocking inbound traffic. Changing it to outbound does not affect inbound HTTPS traffic; it would only block outbound traffic, which is not the issue.

D

Route tables control traffic routing between subnets and networks, not traffic filtering. NSGs filter traffic, so adding a route table entry does not allow HTTPS traffic through the NSG's deny-all rule.

53
Multi-Selecthard

A subnet has a route table with these user-defined routes: 10.10.0.0/16 to Virtual appliance, 10.10.5.0/24 to Virtual network gateway, and 10.10.5.128/25 to Virtual network. The subnet is attached to a VM that sends traffic to several destinations. Which three next-hop decisions are correct? Select three.

Select 3 answers
A.Traffic to 10.10.5.9 uses Virtual network gateway.
B.Traffic to 10.10.5.200 uses Virtual network.
C.Traffic to 10.10.8.4 uses Virtual appliance.
D.Traffic to 10.10.5.9 uses Virtual appliance.
E.Traffic to 8.8.8.8 uses Virtual appliance.
AnswersA, B, C

Azure applies longest-prefix matching to determine the next hop for 10.10.5.9. The 10.10.5.0/24 user-defined route is a longer prefix than the broader 10.10.0.0/16 route, and the /25 route (10.10.5.128/25) does not contain this IP. Therefore, the most specific matching route directs traffic to the Virtual network gateway.

Why this answer

The route table uses longest prefix match. The destination 10.10.5.9 falls within the 10.10.5.0/24 range, which has a more specific prefix (24 bits) than 10.10.0.0/16 (16 bits). The user-defined route for 10.10.5.0/24 specifies a next hop of Virtual network gateway, so traffic to 10.10.5.9 is forwarded to the gateway.

Exam trap

The trap here is that candidates often assume a broader route (like 10.10.0.0/16 to Virtual appliance) applies to all subnets, forgetting that more specific user-defined routes (like 10.10.5.0/24 to Virtual network gateway) take precedence via longest prefix match, and that public IPs like 8.8.8.8 are not matched by private address space routes.

Why the other options are wrong

D

The route table has a more specific route for 10.10.5.0/24 to Virtual network gateway, which matches 10.10.5.9 exactly, so traffic uses the gateway, not the Virtual appliance.

E

The route table does not have a default route (0.0.0.0/0) pointing to the Virtual appliance; traffic to 8.8.8.8 (internet) would use the system default route (Internet) or fail if no default route exists.

54
MCQmedium

Based on the exhibit, what next hop will the VM use when it sends traffic to 10.30.5.10?

A.Virtual appliance at the user-defined next hop
B.Virtual network gateway
C.Internet
D.Virtual network
AnswerB

The destination 10.30.5.10 falls within the 10.30.0.0/16 prefix learned over BGP through the virtual network gateway. Azure uses longest-prefix match, and /16 is more specific than the default route (0.0.0.0/0) or the VNet local /16, so the next hop is the virtual network gateway as indicated in the effective route table. No other matching route has a longer or equal prefix, so this route wins.

Why this answer

The VM's effective route table shows a route for 10.30.5.0/24 with a next hop type of 'Virtual network gateway'. Since 10.30.5.10 falls within this prefix, the VM will use the virtual network gateway as the next hop. This overrides the default virtual network (local) route because it is a more specific prefix match.

Exam trap

The trap here is that candidates assume traffic to an IP within the virtual network's address space (10.0.0.0/16) will always use the 'Virtual network' next hop, but a more specific route (e.g., 10.30.5.0/24) with a different next hop type overrides it, leading to an incorrect choice of Option D.

Why the other options are wrong

A

The exhibit shows that the route for 10.30.5.0/24 has a next hop type of 'Virtual network gateway', not 'Virtual appliance'. A user-defined route with a virtual appliance next hop would override the gateway, but no such route is present.

C

The destination IP 10.30.5.10 is within the virtual network's address space, so traffic is routed internally via the virtual network gateway, not sent to the internet.

D

The VM's traffic to 10.30.5.10 is destined for an on-premises network connected via VPN/ExpressRoute, and the route table shows the next hop as the virtual network gateway, not the virtual network.

55
MCQmedium

An application subnet has a network security group with these inbound rules: Allow-Web-From-Internet at priority 200, Allow-App-From-Web at priority 300, and Deny-All-Inbound at priority 250. The web tier must reach the app tier on TCP 8080, but traffic is being denied. The administrator confirms the source and destination IPs are correct. What is the best fix?

A.Delete the Deny-All-Inbound rule because default NSG rules will allow the traffic.
B.Change the Allow-App-From-Web rule to a lower priority number than 250.
C.Add a route table entry for TCP 8080 traffic to bypass the NSG.
D.Move the Allow-Web-From-Internet rule to priority 400.
AnswerB

NSG rules are processed in priority order, and the lowest number wins. Because Deny-All-Inbound at 250 is evaluated before the allow rule at 300, it blocks the traffic first. Moving the allow rule to a lower number than 250 lets the permitted web-to-app traffic match before the deny rule is applied.

Why this answer

The Deny-All-Inbound rule at priority 250 is evaluated before the Allow-App-From-Web rule at priority 300 because lower priority numbers are processed first. To allow web-to-app traffic on TCP 8080, the Allow-App-From-Web rule must have a lower priority number (e.g., 240) than the Deny-All-Inbound rule so it is evaluated and applied first, permitting the traffic before the deny rule blocks it.

Exam trap

The trap here is that candidates assume all rules are evaluated and the most specific rule wins, but in Azure NSGs, priority order (numerical value) strictly determines evaluation sequence, not specificity or rule type.

Why the other options are wrong

A

Default NSG rules allow inbound traffic only within a virtual network and from Azure load balancers, not from the internet. Deleting the Deny-All-Inbound rule would expose the subnet to all inbound traffic, which is not the intended fix.

C

Route tables control traffic routing between subnets, not NSG rule evaluation. NSGs filter traffic regardless of route table entries, so adding a route cannot bypass an explicit Deny rule.

D

Moving Allow-Web-From-Internet to priority 400 would not fix the issue because the Deny-All-Inbound rule at priority 250 still blocks traffic from the web tier to the app tier on TCP 8080. The problem is that the Allow-App-From-Web rule (priority 300) is processed after the deny rule, so it never takes effect.

56
MCQmedium

A web app running on an Azure VM must connect to an Azure SQL Database instance. The security team requires the database to be reachable through a private IP inside the VNet, and the application should keep using the normal SQL server name without any connection string change. What should the administrator implement?

A.A service endpoint on the subnet and a firewall rule on the SQL server.
B.A private endpoint for Azure SQL and the corresponding private DNS zone linked to the VNet.
C.A public endpoint with selected network access and a network security group on the VM subnet.
D.A virtual network peering connection to the SQL service subnet.
AnswerB

A private endpoint gives the SQL service a private IP address inside the VNet, and the private DNS zone allows the standard SQL name to resolve to that address. This meets both requirements: private network access and no connection string change. It is the correct Azure Private Link pattern for secure PaaS access.

Why this answer

A private endpoint assigns Azure SQL Database a private IP from the VNet, making it reachable via a private IP while preserving the normal SQL server FQDN. The corresponding private DNS zone (privatelink.database.windows.net) linked to the VNet ensures that DNS resolution of the SQL server name resolves to the private IP, so no connection string changes are needed. This meets the security requirement of private IP reachability and the application requirement of unchanged connection strings.

Exam trap

The trap here is that candidates confuse service endpoints (which still use public IPs) with private endpoints (which use private IPs), leading them to choose Option A, thinking it provides private IP connectivity when it only provides source subnet restriction via the public endpoint.

Why the other options are wrong

A

A service endpoint does not provide a private IP for the SQL server; the SQL server still uses its public endpoint, and the connection string would need to change to use the private IP, violating the requirement to keep the normal SQL server name without connection string changes.

C

A public endpoint with selected network access still exposes the SQL server to the internet, failing the requirement for private IP reachability. Additionally, using a network security group on the VM subnet does not provide a private IP for the SQL server; it only controls traffic to/from the subnet.

D

VNet peering connects two VNets, but Azure SQL Database is a PaaS service not hosted in a VNet subnet, so peering does not provide private connectivity to SQL. The requirement is for private IP access without connection string changes, which peering cannot achieve.

57
MCQmedium

A subnet has a user-defined route for 0.0.0.0/0 that sends all outbound traffic to a virtual appliance. Traffic to 10.20.4.12 must instead go directly to an Azure VPN gateway. What should you configure?

A.Add a network security group rule that allows traffic to 10.20.4.12.
B.Add a more specific UDR for 10.20.4.0/24 that uses the virtual network gateway next hop.
C.Increase the priority of the 0.0.0.0/0 route so it is preferred less often.
D.Remove the VPN gateway association from the virtual network.
AnswerB

Azure uses longest-prefix match, so the more specific route overrides the broader 0.0.0.0/0 entry.

Why this answer

User-Defined Routes (UDRs) use the longest prefix match to determine the next hop. The existing 0.0.0.0/0 route sends all outbound traffic to a virtual appliance, but adding a more specific route for 10.20.4.0/24 with a next hop of the virtual network gateway (VPN gateway) overrides the default route for that subnet, directing traffic to 10.20.4.12 through the VPN gateway.

Exam trap

The trap here is that candidates confuse NSG rules with routing decisions, thinking that allowing traffic in an NSG will change the path it takes, when in fact NSGs only filter traffic and do not influence the next hop.

Why the other options are wrong

A

A network security group (NSG) rule controls inbound/outbound traffic filtering, not routing. It cannot override a user-defined route (UDR) to redirect traffic to a VPN gateway instead of a virtual appliance.

C

Increasing the priority of the 0.0.0.0/0 route does not change its preference; UDR priority is for routes to the same destination, and a more specific route (e.g., /24) is always preferred over a less specific one (0.0.0.0/0) regardless of priority.

D

Removing the VPN gateway association would break all VPN connectivity, not just redirect traffic to 10.20.4.12. The requirement is to override the default route for a specific destination while preserving VPN gateway functionality.

58
MCQmedium

A hub VNet already has a VPN gateway connected to on-premises. A new spoke VNet must reach on-premises through the hub gateway and should not deploy its own gateway. What configuration should be enabled on the peering?

A.Enable gateway transit on the hub peering and Use remote gateways on the spoke peering.
B.Create a service endpoint from the spoke to the hub.
C.Add a default route to Internet in the spoke subnet.
D.Enable accelerated networking on the spoke subnet.
AnswerA

This is the correct hub-and-spoke configuration when only the hub should own the VPN gateway. Gateway transit allows the hub to share its gateway with peered VNets, and the spoke must be configured to use the remote gateway. Together, these settings let the spoke route on-premises traffic through the hub gateway without deploying another gateway or duplicating connectivity infrastructure.

Why this answer

Enabling 'Use remote gateways' on the spoke VNet peering and 'Allow gateway transit' on the hub VNet peering allows the spoke VNet to route traffic to on-premises through the hub's VPN gateway without deploying its own gateway. This configuration leverages BGP routes (if the VPN gateway is route-based) to propagate on-premises prefixes to the spoke, enabling transitive routing across the peering.

Exam trap

The trap here is that candidates often confuse 'gateway transit' with simply enabling peering, forgetting that both the hub's 'Allow gateway transit' and the spoke's 'Use remote gateways' must be explicitly set, and that the spoke cannot have its own gateway (otherwise the setting is blocked).

Why the other options are wrong

B

Service endpoints allow private access to Azure PaaS services from a VNet, not connectivity to on-premises through a VPN gateway. They do not enable routing between VNets or to on-premises.

C

Adding a default route to the Internet in the spoke subnet does not enable traffic to on-premises through the hub VPN gateway; it would send traffic to the Internet instead of through the hub.

D

Accelerated networking improves VM network performance via SR-IOV, but does not enable routing traffic through a hub VPN gateway. It does not affect VNet peering or gateway transit.

59
MCQmedium

A subnet has an NSG with these inbound rules: priority 200 DenyAllInbound and priority 300 AllowHTTPSFromInternet. A VM in the subnet is still unreachable on TCP 443 from the internet. What should you do to make HTTPS work while keeping the deny rule in place?

A.Move the allow HTTPS rule to a lower priority number such as 100 so it is evaluated before the deny rule.
B.Create the same allow rule on the NIC-level NSG at priority 300 and leave the subnet NSG unchanged.
C.Change the deny rule to protocol Any and keep the same priority so Azure evaluates the allow rule first.
D.Add a route table entry for TCP 443 traffic so Azure sends it directly to the VM.
AnswerA

NSG rules are processed in order of priority, and the lowest number wins. Because the deny rule at 200 is evaluated before the allow rule at 300, HTTPS is blocked. Moving the allow rule to a lower priority number lets it match first while keeping the deny rule for all other inbound traffic.

Why this answer

NSG rules are evaluated in priority order, with lower numbers evaluated first. Moving the allow HTTPS rule to priority 100 ensures it is processed before the DenyAllInbound rule at priority 200, allowing TCP 443 traffic from the internet while the deny rule remains in place for all other inbound traffic.

Exam trap

The trap here is that candidates often think NSG rules are evaluated based on specificity (e.g., more specific rules override broader ones) rather than strictly by priority number, leading them to believe a higher-priority allow rule can override a lower-priority deny rule.

Why the other options are wrong

B

The subnet NSG's deny rule at priority 200 blocks all inbound traffic before the allow rule at priority 300 is evaluated. Adding an identical allow rule to the NIC-level NSG at priority 300 does not override the subnet NSG's deny rule because subnet NSG rules are evaluated before NIC NSG rules, and the deny rule already blocks the traffic.

C

Changing the deny rule to protocol Any does not affect evaluation order; NSG rules are evaluated by priority number, not protocol scope. The deny rule at priority 200 will still be evaluated before the allow rule at priority 300, blocking HTTPS traffic.

D

Route tables control traffic routing between subnets and networks, not firewall filtering. Since the VM is unreachable due to NSG rules blocking inbound traffic, adding a route table entry does not bypass NSG evaluation; NSGs always apply to traffic entering a subnet or NIC.

60
MCQmedium

A VM subnet has an NSG with these custom rules: - Inbound priority 100: Allow TCP 443 from Internet - Outbound priority 100: Deny Any to Internet The VM hosts an app that must download updates from an HTTPS repository on the Internet. The downloads fail. What change should be made?

A.Add another inbound allow rule for TCP 443 from the repository address.
B.Add an outbound allow rule for TCP 443 to Internet or the repository service tag.
C.Change the inbound allow rule to priority 50.
D.Remove the VM's public IP address.
AnswerB

The VM is initiating outbound HTTPS sessions, so the outbound direction must permit TCP 443. Because a deny-all outbound rule is blocking traffic to Internet, the fix is to add a higher-priority outbound allow rule that matches the repository destination, such as Internet or a specific service tag. Inbound HTTPS rules do not help traffic leaving the VM.

Why this answer

The VM's outbound traffic is blocked by the default outbound deny rule (priority 100). Since the app needs to download updates from an HTTPS repository (TCP 443), an outbound allow rule for TCP 443 to the Internet or the repository service tag is required. Inbound rules do not affect outbound traffic, so the existing inbound allow rule is irrelevant to the download failure.

Exam trap

The trap here is that candidates often focus on inbound rules because the NSG has an inbound allow rule, but the real issue is that outbound traffic is explicitly denied, and they forget that NSGs are stateful only for traffic that matches an allow rule, not for all traffic.

Why the other options are wrong

A

The issue is outbound traffic being denied by the NSG rule at priority 100. Adding an inbound rule does not affect outbound connectivity; the VM's outbound HTTPS requests are still blocked.

C

The issue is outbound traffic being blocked by the deny rule at priority 100; changing the inbound rule's priority does not affect outbound connectivity.

D

Removing the VM's public IP address would not resolve the outbound traffic block; the VM still needs outbound access to download updates, and removing the public IP would not bypass the NSG deny rule.

61
MCQmedium

A web tier and an app tier run in separate subnets. Each VM NIC is placed in an application security group named WebASG or AppASG. The administrator must allow only the web tier to reach the app tier on TCP port 8443 and block all other inbound traffic to the app tier. Which NSG rule should be created on the app subnet?

A.Allow TCP 8443 from WebASG to AppASG with a priority lower number than the deny rule.
B.Allow TCP 8443 from the entire virtual network to the app subnet with a lower priority than the deny rule.
C.Allow UDP 8443 from WebASG to AppASG with any priority below 65000.
D.Allow TCP 8443 from WebASG to AppASG with a priority higher number than the deny rule.
AnswerA

This is the most precise approach because it targets the source and destination groups instead of broad IP ranges. The rule must use a lower priority number than the deny-all rule so it is evaluated first. That lets only the web tier reach the app tier on TCP 8443 while preserving the block on all other inbound traffic.

Why this answer

NSG rules are evaluated in priority order, with lower numbers having higher priority. By placing an Allow rule for TCP 8443 from WebASG to AppASG with a lower priority number than a subsequent Deny-All rule, only traffic from the web tier is permitted, and all other inbound traffic to the app subnet is blocked. This leverages application security groups (ASGs) to define fine-grained, role-based network security policies without relying on IP addresses.

Exam trap

The trap here is that candidates often confuse priority numbering—thinking a higher number means higher priority—or mistakenly assume that allowing traffic from the entire virtual network is sufficient, overlooking the need to restrict the source to only the web tier via ASGs.

Why the other options are wrong

B

This rule allows traffic from the entire virtual network, not just the web tier, violating the requirement to restrict access solely to the web tier. The app subnet would be exposed to all VMs in the virtual network, including potentially malicious or unintended sources.

C

The question specifies TCP port 8443, but option C incorrectly uses UDP. Also, the priority requirement is not about being below 65000; it must be lower than the deny rule's priority.

62
MCQmedium

Why is centralized logging especially useful during security investigations?

A.It makes related events from multiple devices easier to review and correlate.
B.It guarantees that attacks cannot succeed.
C.It replaces the need for authentication and authorization.
D.It forces all devices to use the same VLAN.
AnswerA

This is correct because centralized visibility is the main investigative benefit.

Why this answer

Centralized logging aggregates logs from multiple sources (e.g., firewalls, servers, Azure Network Watcher) into a single repository, such as Azure Log Analytics. During security investigations, this enables security analysts to correlate events across devices (e.g., matching a suspicious IP address in firewall logs with authentication failures in domain controller logs) without manually connecting to each device. This correlation is critical for reconstructing attack timelines and identifying lateral movement, which is impossible with siloed logs.

Exam trap

The trap here is that candidates confuse centralized logging with a security control that prevents attacks, rather than recognizing it as a detective tool for post-incident analysis and correlation.

Why the other options are wrong

B

This option is incorrect because centralized logging does not prevent attacks; it merely provides a means to analyze and respond to them after they occur. Security measures must be implemented to actually prevent attacks from succeeding.

C

This option is wrong because centralized logging does not eliminate the need for authentication and authorization; rather, it complements these security measures by providing a way to analyze logs from authenticated users and authorized actions.

D

This option is wrong because forcing all devices to use the same VLAN does not directly relate to centralized logging or its benefits during security investigations. VLANs are primarily about network segmentation, not log aggregation or analysis.

63
MCQmedium

An on-premises application connected through a site-to-site VPN must read data from an Azure Storage account. Public network access is disabled on the storage account, and the storage service must be reachable only by a private IP address inside Azure. Which solution should the administrator implement?

A.Enable a service endpoint on the on-premises network.
B.Create a private endpoint for the storage account in an Azure VNet.
C.Peer the on-premises network directly to the storage account.
D.Use a shared access signature and leave public network access enabled.
AnswerB

A private endpoint assigns the storage account a private IP address in a chosen Azure VNet, allowing access over private connectivity instead of the public internet. Because the on-premises application already reaches Azure through a site-to-site VPN, it can use that private path to access the endpoint when DNS is configured correctly. This meets the requirement to keep public access disabled while exposing the service privately.

Why this answer

A private endpoint assigns the storage account a private IP address from an Azure VNet, allowing the on-premises application to connect over the site-to-site VPN using that private IP. This ensures the storage service is reachable only within Azure's private network, even with public network access disabled. The private endpoint uses Azure Private Link to securely expose the storage account into the VNet, making it accessible via the VPN without traversing the public internet.

Exam trap

The trap here is confusing service endpoints with private endpoints: candidates often choose service endpoints because they also provide secure connectivity, but service endpoints do not assign a private IP and require public network access to be enabled, making them unsuitable when the requirement is to use only a private IP address.

Why the other options are wrong

A

Service endpoints are used to secure Azure service access from within a VNet, not from on-premises networks. The on-premises network cannot directly enable a service endpoint; it must be configured on a VNet subnet, and the storage account must allow access from that VNet. This does not provide a private IP address for the storage account.

C

VNet peering connects virtual networks, not on-premises networks directly to Azure services. The on-premises network must first be connected to an Azure VNet (e.g., via VPN or ExpressRoute), then peering can link VNets, but it does not provide private access to a storage account without a private endpoint or service endpoint.

D

Public network access is disabled on the storage account, so a shared access signature (SAS) cannot be used because SAS requires public endpoints to function. The requirement is to reach the storage account only by a private IP address, which SAS does not provide.

64
MCQmedium

A VM in VNet A can reach a storage account through a private endpoint, but when the VM resolves the storage account name it still gets the public IP address. What should you configure so name resolution returns the private endpoint address?

A.A user-defined route to the storage private endpoint
B.The private DNS zone linked to the VNet
C.A resource lock on the storage account
D.A managed identity for the VM
AnswerB

A private DNS zone linked to the VNet is required because the storage account's FQDN (e.g., mystorageaccount.blob.core.windows.net) must resolve to the private endpoint's private IP address within the VNet. When you create a private endpoint, Azure automatically associates it with a private DNS zone only if you explicitly configure it; otherwise, the FQDN still resolves to the public IP. Linking the private DNS zone and ensuring the VNet uses Azure's built-in resolver (or a custom forwarder) allows the VM to reach the storage account over the private endpoint, keeping traffic off the public internet.

Why this answer

When a private endpoint is created for a storage account, the DNS configuration must be updated so that the storage account's fully qualified domain name resolves to the private endpoint's private IP address instead of the public IP. Linking a private DNS zone (privatelink.blob.core.windows.net) to the virtual network and configuring a virtual network link ensures that the VM's DNS queries for the storage account are answered with the private endpoint IP. Without this, the VM continues to use the public IP from public DNS.

Exam trap

The trap here is that candidates confuse network-level routing (UDRs) with DNS resolution, assuming that directing traffic to the private endpoint IP via a route will fix name resolution, when in fact DNS must be explicitly configured to return the private IP.

Why the other options are wrong

A

A user-defined route (UDR) controls network traffic flow, not DNS resolution. The VM still gets the public IP because DNS is not configured to resolve the storage account name to the private endpoint's private IP address.

C

A resource lock prevents accidental deletion or modification of the storage account, but it does not affect DNS resolution or private endpoint connectivity. The issue is name resolution, not resource protection.

D

A managed identity provides Azure AD authentication for the VM to access the storage account, but it does not affect DNS name resolution or routing. The VM still uses public DNS resolution for the storage account name, so it gets the public IP address.

65
MCQmedium

A company already uses the address space 10.20.0.0/16 for a hub virtual network and 10.21.0.0/16 on-premises. A new spoke virtual network will be peered to the hub and may later connect to the on-premises network. Which address space should the administrator choose for the spoke to avoid future routing conflicts?

A.10.20.64.0/19
B.10.21.0.0/16
C.10.22.0.0/16
D.10.20.128.0/17
AnswerC

This range does not overlap with either the hub VNet or the on-premises network. It also provides a full /16, which leaves enough room for multiple subnets and future growth while keeping peering and hybrid connectivity straightforward.

Why this answer

(10.22.0.0/16) is correct because it is a unique, non-overlapping address space that does not conflict with the existing hub VNet (10.20.0.0/16) or the on-premises network (10.21.0.0/16). When a spoke VNet is peered to the hub and later connected to on-premises via VPN or ExpressRoute, Azure requires that all peered and connected address spaces be unique to avoid routing conflicts. Choosing a completely separate /16 ensures no future overlap.

Exam trap

The trap here is that candidates often assume any address space outside the hub's /16 is safe, but they forget to check for overlap with the on-premises network (10.21.0.0/16) or incorrectly think that a smaller subnet within the hub's range (like 10.20.64.0/19) can be used if it is not currently in use, ignoring that Azure requires completely non-overlapping ranges for peered VNets.

Why the other options are wrong

A

10.20.64.0/19 overlaps with the hub's 10.20.0.0/16 address space, causing routing conflicts when peered.

B

Option B (10.21.0.0/16) overlaps with the on-premises network address space (10.21.0.0/16), which would cause routing conflicts when the spoke connects to on-premises via the hub.

D

Option D (10.20.128.0/17) overlaps with the hub virtual network's address space 10.20.0.0/16, which would cause routing conflicts when peered.

66
MCQhard

A storage account must be reachable only from a single subnet. The team wants to keep the storage public endpoint in place, avoid a private endpoint, and avoid managing any custom DNS records. Which change best meets the requirement?

A.Add a network security group rule to the subnet that allows outbound TCP 443 to the storage account.
B.Enable a service endpoint for Microsoft.Storage on the subnet and add the subnet to the storage account firewall allow list.
C.Create a private endpoint and set the storage account to use a private DNS zone.
D.Create a route table that sends storage traffic through an Azure Firewall appliance.
AnswerB

This is the correct approach when the service must remain on the public endpoint but be accessible only from a specific subnet. The service endpoint lets Azure recognize the subnet as an allowed source while traffic still uses the storage account's public FQDN. Adding that subnet to the storage firewall enforces the restriction without requiring private endpoints or custom DNS management.

Why this answer

Enabling a service endpoint for Microsoft.Storage on the subnet injects the subnet's identity into the traffic to the storage account, allowing the storage account firewall to permit access only from that subnet while keeping the public endpoint active. This avoids the need for a private endpoint, custom DNS records, or additional routing appliances, directly meeting the requirement of restricting access to a single subnet.

Exam trap

The trap here is that candidates often confuse network security groups (NSGs) with storage account firewalls, thinking an NSG rule on the subnet can restrict access to the storage account, when in fact the storage account firewall must explicitly allow the subnet via a service endpoint or virtual network rule to enforce subnet-level restriction.

Why the other options are wrong

A

An NSG rule on the subnet does not restrict inbound access to the storage account from the internet; it only controls outbound traffic from the subnet. The storage account's public endpoint remains open to all networks unless explicitly restricted by the storage firewall.

C

The question explicitly requires keeping the public endpoint and avoiding a private endpoint, so creating a private endpoint directly violates the constraints.

D

This option introduces unnecessary complexity and cost by routing traffic through an Azure Firewall, which does not directly restrict access to the storage account from a single subnet. The requirement is to keep the public endpoint and avoid private endpoints, but a firewall does not replace the need for network-level access control on the storage account itself.

67
MCQhard

A subnet NSG contains these inbound rules: Priority 100 denies TCP 8443 from VirtualNetwork to any destination, Priority 110 allows TCP 8443 from AzureLoadBalancer to any destination, and Priority 200 allows TCP 8443 from ASG-Web to ASG-App. The app VM NIC has no additional inbound rules. Web servers are members of ASG-Web and the app VM is a member of ASG-App. The web tier still cannot connect to TCP 8443. What should the administrator change?

A.Move the allow rule for ASG-Web to ASG-App to a priority lower than 100.
B.Replace ASG-Web with the VirtualNetwork service tag in the allow rule.
C.Add a route table that sends TCP 8443 traffic to the app subnet.
D.Create a second NSG on the app NIC with an allow rule at priority 50.
AnswerA

NSG rules are processed in priority order, and the first matching rule wins. The deny rule at priority 100 matches traffic from the web tier because it comes from the same virtual network. Moving the specific allow rule to a lower number than 100 lets it match first while still keeping the source and destination restricted to the intended application security groups.

Why this answer

NSG rules are evaluated in priority order, from lowest to highest number. The deny rule at priority 100 explicitly blocks TCP 8443 from VirtualNetwork, which includes traffic from ASG-Web (since ASG-Web members are within the virtual network). The allow rule at priority 110 only permits traffic from AzureLoadBalancer, not from ASG-Web.

The allow rule at priority 200 is never evaluated because the deny rule at priority 100 matches first. By moving the allow rule for ASG-Web to ASG-App to a priority lower than 100 (e.g., 90), it will be evaluated before the deny rule, allowing the web servers to connect.

Exam trap

The trap here is that candidates often assume a more specific rule (like ASG-Web to ASG-App) will override a broader deny rule, but NSG priority is strictly numeric, not based on specificity, so a lower-priority allow rule is never evaluated if a higher-priority deny rule matches first.

Why the other options are wrong

B

The deny rule at priority 100 blocks all traffic from VirtualNetwork, which includes ASG-Web. Replacing ASG-Web with VirtualNetwork would not resolve the issue because the deny rule still applies to VirtualNetwork traffic.

C

Route tables control traffic between subnets or to on-premises/VNet, but they do not override NSG rules. Since the NSG is blocking the traffic, adding a route table does not bypass the NSG; the traffic is still denied by the NSG.

D

Creating a second NSG on the app NIC with an allow rule at priority 50 would not help because the subnet NSG's deny rule at priority 100 still applies to traffic from the web tier (which is in the VirtualNetwork). The NIC NSG cannot override a subnet NSG deny rule; both are evaluated, and a deny in either blocks traffic.

68
MCQeasy

Based on the exhibit, two development virtual networks must be peered so the workloads can exchange traffic directly. What should the administrator do first?

A.Create a VPN gateway in each VNet before attempting peering.
B.Change one VNet to a non-overlapping address space before creating the peering.
C.Add a user-defined route to each subnet so the VNets can ignore the overlap.
D.Enable service endpoints on both VNets to allow cross-network communication.
AnswerB

Azure VNet peering does not allow overlapping address spaces. The first step is to redesign one network so its address range does not intersect the other. After the address conflict is removed, peering can be created normally and traffic can flow directly between the VNets.

Why this answer

Azure Virtual Network peering requires that the address spaces of the peered VNets do not overlap. Overlapping address spaces cause routing conflicts because Azure cannot determine which VNet should receive traffic destined for the overlapping range. Therefore, the administrator must first change one VNet to a non-overlapping address space before creating the peering.

Exam trap

The trap here is that candidates often assume overlapping address spaces can be resolved with routing tweaks (like UDRs) or additional gateways, but Azure explicitly blocks VNet peering when address spaces overlap, requiring a non-overlapping address space as a prerequisite.

Why the other options are wrong

A

Azure VNet peering does not require VPN gateways; it uses the Microsoft backbone infrastructure. VPN gateways are only needed for site-to-site or point-to-site connections, not for VNet peering.

C

User-defined routes cannot resolve overlapping IP address spaces; Azure VNet peering requires non-overlapping address spaces, and UDRs do not change the underlying address conflict.

D

Service endpoints do not enable cross-VNet communication; they allow VNet resources to access Azure PaaS services over the Microsoft backbone. Peering requires non-overlapping address spaces, not service endpoints.

69
MCQeasy

Based on the exhibit, which Azure connectivity option should the administrator use for the branch office?

A.Point-to-site VPN for each user laptop.
B.VNet peering between the branch office and Azure.
C.A service endpoint on the Azure subnet.
D.A site-to-site VPN connection to an Azure VPN gateway.
AnswerD

A site-to-site VPN is designed for a branch office network with a single edge device. It creates encrypted connectivity over the internet to Azure so users can reach private resources without setting up individual tunnels on every laptop.

Why this answer

A site-to-site VPN connection to an Azure VPN gateway (Option D) is the correct choice because it provides a persistent, encrypted tunnel between the branch office's on-premises network and Azure, enabling seamless connectivity for all users and devices at the branch without requiring per-user configuration. This aligns with the typical scenario where a branch office needs constant, secure access to Azure resources, and the VPN gateway supports IPsec/IKE protocols for site-to-site connections.

Exam trap

The trap here is that candidates often confuse VNet peering (Option B) as a hybrid connectivity solution, but it only works between Azure VNets and cannot connect on-premises networks, making site-to-site VPN the correct choice for branch office connectivity.

Why the other options are wrong

A

Point-to-site VPN connects individual user laptops to Azure, not the entire branch office network. The question requires a site-to-site connection for the whole office, not per-user access.

B

VNet peering connects virtual networks within Azure, not on-premises branch offices. It cannot extend an on-premises network to Azure; it only links Azure VNets together.

C

A service endpoint secures Azure service access from a virtual network but does not provide connectivity from an on-premises branch office to Azure; it is not a remote access or site-to-site connectivity solution.

70
MCQmedium

A VM cannot connect to another VM on TCP 1433. You need to determine whether an NSG is blocking the flow and identify which rule applies. Which Network Watcher tool should you use?

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

IP flow verify is a Network Watcher diagnostic that tests a specific 5-tuple (source IP, destination IP, protocol, and port) against the effective NSG rules for a virtual machine's NIC. Running it with TCP and port 1433 between the two VMs instantly reports whether traffic is allowed or denied and identifies the exact rule name and priority that caused the decision. This tool is uniquely focused on NSG rule evaluation, making it the fastest way to pinpoint the rule responsible for blocking the session.

Why this answer

IP flow verify is the correct Network Watcher tool because it tests whether a packet is allowed or denied to or from a specific VM, based on a 5-tuple (source IP, destination IP, protocol, source port, destination port). For TCP 1433 (SQL Server), you can specify the exact flow parameters, and IP flow verify will evaluate all effective security rules, including NSG rules, and return the specific rule that allowed or denied the traffic.

Exam trap

The trap here is that candidates often confuse 'Connection troubleshoot' with 'IP flow verify' because both diagnose connectivity issues, but Connection troubleshoot provides a broader end-to-end path analysis without pinpointing the exact blocking rule, whereas IP flow verify is specifically designed to test a single flow and identify the exact NSG rule that applies.

Why the other options are wrong

A

Packet capture captures all traffic on a network interface but does not directly verify whether a specific NSG rule is blocking traffic or identify which rule applies. It requires manual analysis of captured packets to infer NSG behavior.

C

Connection troubleshoot checks for connectivity issues like latency, packet loss, and routing, but it does not specifically identify which 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.

D

Effective routes shows the effective routes applied to a VM, not NSG rules. It cannot identify whether an NSG is blocking traffic or which specific NSG rule applies.

71
MCQmedium

A three-tier application uses separate web and app VMs that are scaled in and out regularly. The administrator must allow only the web tier to connect to the app tier on TCP 8080 without continually updating IP addresses. What should be configured in the NSG rule?

A.Use application security groups for the web and app tiers and reference those groups in the NSG rule.
B.Add a subnet-to-subnet peering connection between the web and app subnets.
C.Create a load balancer backend pool rule for TCP 8080.
D.Use a user-defined route that sends TCP 8080 traffic to the app tier.
AnswerA

Application security groups let the administrator group VMs by role rather than by IP address. The NSG rule can then allow traffic from the web ASG to the app ASG on TCP 8080. This is a good fit for environments that scale or change frequently because the NSG does not need constant editing whenever VM addresses change.

Why this answer

Application security groups (ASGs) allow you to group VMs logically by their application role (e.g., web tier, app tier) and reference those groups directly in NSG rules. This eliminates the need to maintain individual IP addresses or CIDR ranges when VMs scale in or out, because the NSG rule dynamically applies to all VMs in the ASG. By creating an inbound NSG rule that allows TCP 8080 from the web-tier ASG to the app-tier ASG, the administrator achieves the required connectivity without manual IP updates.

Exam trap

The trap here is that candidates often confuse network-level controls (like UDRs or VNet peering) with application-layer access control, or they incorrectly assume that a load balancer rule can replace a security rule for source-based filtering.

Why the other options are wrong

B

Subnet-to-subnet peering is not a valid Azure construct; VNet peering connects entire virtual networks, not subnets. Additionally, peering does not filter traffic by port or protocol, so it would not restrict connections to TCP 8080.

C

A load balancer backend pool rule distributes incoming traffic to backend VMs, but it does not restrict which source tier can connect. It also does not solve the problem of dynamically updating IP addresses for scaled VMs.

D

User-defined routes (UDRs) control traffic routing between subnets or to virtual appliances, not access control. They cannot filter traffic by port or application; NSG rules are required to allow or deny traffic based on port and protocol.

72
MCQeasy

A VM in a subnet must send traffic to 172.16.0.0/16 through a network virtual appliance, but all other destinations should continue using the default Azure system routes. What should the administrator add to the subnet route table?

A.A route for 0.0.0.0/0 with next hop Virtual appliance.
B.A route for 172.16.0.0/16 with next hop Virtual appliance.
C.An NSG deny rule for all other destinations.
D.A service endpoint for the 172.16.0.0/16 network.
AnswerB

A specific user-defined route (UDR) for 172.16.0.0/16 with next hop set to a virtual appliance is correct because Azure selects the most specific route (longest-prefix match). This route overrides the system route for that exact destination, so only traffic bound for 172.16.0.0/16 is sent to the appliance. All other traffic continues to follow existing system routes, meeting the requirement without causing unnecessary hair-pinning.

Why this answer

The requirement is to route traffic destined for 172.16.0.0/16 through a network virtual appliance (NVA) while leaving all other traffic to use the default Azure system routes. Adding a user-defined route (UDR) with destination 172.16.0.0/16 and next hop Virtual appliance overrides the default system route for that specific prefix, ensuring traffic to that range is forwarded to the NVA. All other destinations remain unaffected because the 0.0.0.0/0 default route is not modified.

Exam trap

The trap here is that candidates often confuse the 0.0.0.0/0 route (which controls all internet-bound traffic) with a specific prefix route, mistakenly thinking they must add a default route to force traffic through the NVA, when in fact only the specific destination prefix needs a custom route.

Why the other options are wrong

A

A route for 0.0.0.0/0 with next hop Virtual appliance would redirect all internet-bound and other traffic to the appliance, not just traffic to 172.16.0.0/16. The requirement is to only route traffic to 172.16.0.0/16 through the appliance while keeping default system routes for other destinations.

C

An NSG deny rule for all other destinations would block traffic to all destinations except those explicitly allowed, but the requirement is to only redirect traffic to 172.16.0.0/16 through the NVA while keeping default system routes for other destinations. NSGs are stateful and do not affect traffic routing; they filter traffic but do not change the next hop.

D

Service endpoints are used to secure Azure service traffic to a virtual network, not to route traffic to on-premises or non-Azure destinations like 172.16.0.0/16. They do not affect routing behavior for arbitrary IP ranges.

73
MCQmedium

A VM sends traffic to 172.16.5.10, but the administrator suspects the traffic is taking an unexpected next hop. They want to see the effective route table applied to the VM NIC, including system routes, user-defined routes, and propagated routes. Which Network Watcher tool should be used?

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

Effective routes displays the full route set that applies to a VM NIC, including system, user-defined, and propagated routes. That makes it the right tool when you need to understand why traffic is taking a particular next hop.

Why this answer

Effective routes is the correct Network Watcher tool because it displays the complete route table applied to a VM NIC, including system routes, user-defined routes (UDRs), and BGP-propagated routes from virtual network gateways. This allows the administrator to see exactly which next hop is selected for traffic to 172.16.5.10 based on the longest prefix match, identifying any unexpected routing behavior.

Exam trap

The trap here is that candidates often confuse IP flow verify (which checks NSG rules) with effective routes (which checks routing), leading them to pick A when the question explicitly asks about the route table and next hop, not firewall rules.

Why the other options are wrong

A

IP flow verify tests connectivity by checking if traffic is allowed or denied between a source and destination, but it does not show the effective route table or next hop information.

C

Packet capture captures raw network traffic for analysis, but it does not show the effective route table applied to a VM NIC. The question specifically asks for the tool to view effective routes, not to capture packets.

D

Connection troubleshoot is used to check TCP connectivity between a source and destination, not to view the effective route table applied to a VM NIC.

74
MCQmedium

A subnet contains several application servers. You need to allow inbound TCP 3389 only from a management subnet named Subnet-Mgmt and deny RDP from all other sources. What should you do?

A.Create an NSG rule allowing TCP 3389 from the Subnet-Mgmt address range and rely on the default deny afterward.
B.Create a route table that sends RDP traffic to the management subnet.
C.Deploy a private endpoint for each application server.
D.Enable service endpoints on the application subnet.
AnswerA

An NSG rule with source 'Subnet-Mgmt', destination 'Any', and destination port 3389 (TCP) will explicitly allow RDP only from that management subnet. Because the default inbound deny rule (priority 65000) blocks all other sources, any connection attempt from outside the prefix is implicitly rejected. This is the standard least-privilege approach for restricting administrative access to VMs, and it works at the network layer without requiring a separate appliance or routing change.

Why this answer

Network Security Groups (NSGs) in Azure filter traffic based on rules that are evaluated in priority order. By creating an inbound rule that allows TCP 3389 (RDP) from the Subnet-Mgmt address range, and relying on the default implicit deny rule that blocks all other inbound traffic, you effectively restrict RDP access to only the management subnet. No additional configuration is needed to deny traffic from other sources, as the default deny handles that automatically.

Exam trap

The trap here is that candidates often think they need to explicitly create a deny rule for all other sources, not realizing that NSGs have a built-in default deny rule that automatically blocks traffic not matching any allow rule.

Why the other options are wrong

B

Route tables control traffic routing between subnets, not security filtering. They cannot deny or allow specific ports like RDP (3389); they only determine the next hop for traffic.

C

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to restrict inbound RDP traffic to VMs. They do not filter network traffic like NSGs and cannot deny RDP from specific subnets.

D

Service endpoints secure Azure service traffic to a virtual network, not inbound RDP access. They do not filter or deny traffic like NSG rules, so they cannot restrict RDP from specific subnets.

75
MCQmedium

Backend virtual machines are rebuilt frequently and often receive different private IP addresses. An administrator must allow the frontend tier to reach the backend tier on TCP 8443 without editing NSG rules every time the backend IP changes. What should the administrator use in the NSG rule?

A.A static private IP address for each backend VM.
B.An Application Security Group that contains the backend VMs.
C.A user-defined route pointing frontend traffic to the backend subnet.
D.A private endpoint for the backend tier.
AnswerB

Application Security Groups let the administrator group backend VMs logically and reference that group in NSG rules instead of individual IP addresses. This is ideal when backend IPs change or VMs are replaced. The NSG rule remains stable while the backend membership changes, which reduces operational overhead and improves consistency.

Why this answer

An Application Security Group (ASG) allows you to group backend VMs logically and reference that group in a Network Security Group (NSG) rule. When backend VMs are rebuilt and receive new private IPs, you simply add the new VMs to the same ASG, and the existing NSG rule (which references the ASG as the destination) automatically applies to the new IPs without any manual rule edits. This decouples security policy from dynamic IP addresses, making it the ideal solution for frequently changing backend IPs.

Exam trap

The trap here is that candidates often confuse Application Security Groups (logical grouping for NSG rules) with User-Defined Routes (path control) or Private Endpoints (PaaS connectivity), leading them to pick a routing or endpoint solution instead of the correct security-grouping mechanism.

Why the other options are wrong

A

Static private IP addresses would require manual updates to NSG rules whenever a VM is rebuilt and gets a new IP, which contradicts the requirement to avoid editing NSG rules frequently.

C

A user-defined route (UDR) controls traffic routing at the network layer, not security filtering. It cannot replace NSG rules to allow or deny traffic based on dynamic IP addresses; NSG rules still need to permit traffic, and UDRs do not provide dynamic membership like ASGs.

D

A private endpoint is used to securely access Azure PaaS services over a private IP, not to allow frontend VMs to reach backend VMs on a specific port without editing NSG rules when backend IPs change.

Page 1 of 4 · 244 questions totalNext →

Ready to test yourself?

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