Courseiva

CCNA Virtual Network Questions

75 of 244 questions · Page 2/4 · Virtual Network topic · Answers revealed

76
MCQeasy

Based on the exhibit, what should the administrator do so the hub and spoke can be peered successfully?

A.Keep the current ranges and enable gateway transit on the peering.
B.Change the spoke VNet to a non-overlapping address space.
C.Add another subnet inside the spoke VNet and reuse the current address space.
D.Create a network security group on the spoke subnet before peering.
AnswerB

Azure VNet peering requires that the address spaces of the two virtual networks do not overlap, so the spoke's current CIDR range is blocking the connection. You must change the spoke to a non-overlapping address space—usually by recreating the VNet with a unique range or by adding a new non-conflicting prefix and migrating resources—before peering can be established. This is the only remediation that removes the underlying route conflict with the hub.

Why this answer

VNet peering requires that the address spaces of the peered VNets do not overlap. Overlapping IP ranges cause routing conflicts and prevent successful peering. Changing the spoke VNet to a non-overlapping address space resolves this issue and allows the peering to be established.

Exam trap

The trap here is that candidates may think overlapping subnets can be worked around by using NSGs or gateway transit, but Azure VNet peering strictly requires non-overlapping VNet address spaces at the time of peering creation.

Why the other options are wrong

A

The hub and spoke VNets have overlapping address ranges (10.1.0.0/16), which prevents peering. Enabling gateway transit does not resolve address overlap; peering requires non-overlapping address spaces.

C

Adding another subnet inside the spoke VNet does not resolve the overlapping address space issue; the hub and spoke VNets still have conflicting IP ranges, which prevents successful peering.

D

The question is about resolving overlapping address spaces between hub and spoke VNets for successful peering. Creating a network security group (NSG) on the spoke subnet does not address the address overlap issue; NSGs control traffic filtering, not IP address conflicts.

77
MCQmedium

A subnet has a user-defined route for 0.0.0.0/0 that sends traffic to a network virtual appliance at 10.10.1.4. The VM in the subnet still reaches an Azure Storage account using the public endpoint, but the administrator expected all outbound traffic to go through the NVA. What is the most likely reason?

A.Azure always ignores user-defined routes for storage traffic.
B.The storage account traffic is using a more specific route than the 0.0.0.0/0 route.
C.NSG outbound rules override user-defined routes in Azure.
D.The subnet needs a public IP address assigned to each VM for the route to take effect.
AnswerB

Route selection prefers the most specific matching prefix. If a more specific route exists for the storage destination, it can win over the default route to the NVA. This is why forced tunneling designs must be checked against specific system or learned routes. Understanding route precedence is essential when traffic does not follow the default next hop that appears to be in place.

Why this answer

The most likely reason is that the storage account traffic is using a more specific route than the 0.0.0.0/0 route. Azure uses longest prefix match routing, so a route with a smaller prefix (e.g., a specific public IP range for Azure Storage) will take precedence over the default route. The 0.0.0.0/0 route only applies when no more specific route exists, and Azure automatically adds platform routes for Azure services like Storage, which can override user-defined routes.

Exam trap

The trap here is that candidates often assume a default route (0.0.0.0/0) will catch all outbound traffic, forgetting that Azure's platform routes for Azure services (like Storage) can be more specific and take precedence over user-defined routes.

Why the other options are wrong

A

Azure does not ignore user-defined routes for storage traffic; UDRs apply to all traffic, including storage. The issue is that a more specific route (e.g., to the storage service tag) overrides the 0.0.0.0/0 route.

C

NSG outbound rules do not override user-defined routes; they are evaluated after routing decisions. Routes determine the next hop, and NSGs filter traffic based on that route, but they cannot change the path.

D

A public IP address is not required for a user-defined route to take effect; the route applies to all traffic from the subnet regardless of public IP assignment.

78
MCQmedium

Based on the exhibit, which Network Watcher tool should the administrator use to identify the exact NSG rule that is blocking TCP 1433 traffic?

A.Connection troubleshoot
B.IP flow verify
C.Next hop
D.Packet capture
AnswerB

IP flow verify takes a source/destination IP, port, protocol, and direction, then simulates the traffic against the effective NSG security rules on the target NIC. It reports either Allowed or Denied and, when denied, identifies the exact NSG rule (including the rule name and priority) that caused the verdict. This makes it the correct tool when you need to determine which NSG rule is affecting a specific traffic flow.

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 virtual machine based on a 5-tuple (source IP, destination IP, source port, destination port, and protocol). By specifying TCP 1433 as the destination port, the tool evaluates all effective security rules (NSG and ASG) and returns the exact rule name and direction that is blocking the traffic.

Exam trap

The trap here is that candidates often confuse 'Connection troubleshoot' (which tests end-to-end connectivity but not rule-level blocking) with 'IP flow verify' (which explicitly evaluates NSG rules), leading them to select A instead of B.

Why the other options are wrong

A

Connection troubleshoot tests end-to-end connectivity between a source and destination VM, but it does not identify which specific NSG rule is blocking traffic; it only reports connectivity success or failure.

C

Next hop identifies the next hop IP address and route for a packet, but it does not evaluate NSG rules to determine if traffic is allowed or blocked.

D

Packet capture captures raw network packets for deep analysis but does not identify which specific NSG rule is blocking traffic; it requires manual inspection of captured data and does not correlate with NSG rules.

79
MCQmedium

An administrator is deploying a new VPN gateway in an existing VNet. The GatewaySubnet currently uses a /28 range, and the deployment fails because the selected gateway configuration does not have enough available IP addresses. What is the best action?

A.Move one of the gateway's NICs into a normal workload subnet.
B.Expand GatewaySubnet to a larger range, such as /27, and redeploy the VPN gateway.
C.Create a private endpoint inside GatewaySubnet to reserve extra addresses.
D.Enable BGP so the gateway needs fewer IP addresses.
AnswerB

GatewaySubnet is a dedicated subnet for VPN gateway resources, and the gateway requires enough free IP addresses to deploy and operate. If the current prefix is too small for the chosen configuration, the correct fix is to expand the subnet to a larger size, such as /27, if the VNet address space allows it. After resizing, the administrator can retry the gateway deployment with adequate capacity.

Why this answer

The GatewaySubnet requires a minimum /27 range to support most VPN gateway SKUs, as Azure reserves several IP addresses for internal use and the gateway instances need at least 3–6 usable IPs depending on the SKU. Expanding the subnet to /27 provides enough addresses (32 total, minus reserved) to satisfy the gateway's allocation requirements, allowing the deployment to succeed.

Exam trap

The trap here is that candidates assume a /28 subnet is always sufficient because it works for smaller gateways, but they overlook that larger SKUs or active-active configurations require more IPs, and Azure's reservation of 5 addresses per subnet further reduces usable space.

Why the other options are wrong

A

Moving a gateway NIC into a normal workload subnet is not supported; VPN gateway NICs must reside in the GatewaySubnet. This action would break the gateway deployment.

C

Creating a private endpoint inside GatewaySubnet does not increase the number of available IP addresses for the VPN gateway; private endpoints consume IP addresses from the subnet, making the shortage worse.

D

Enabling BGP does not reduce the number of IP addresses required by the VPN gateway; BGP is a routing protocol that exchanges routes, not a method to change IP address consumption. The gateway still needs the same number of IP addresses for its instances.

80
MCQhard

Based on the exhibit, what should the administrator change to allow only the web tier to reach the app tier on TCP 8443?

A.Move the allow rule for WebTier-ASG to a priority lower than 100.
B.Change the deny rule source from VirtualNetwork to Internet.
C.Associate the NSG with the virtual machine NIC instead of the subnet.
D.Replace the ASG destination with the subnet address range.
AnswerA

NSG rules are processed in ascending priority order, where a lower number (e.g., 90) is evaluated before a higher number (e.g., 100). The existing deny rule at priority 100 matches all traffic from VirtualNetwork to AppTier-ASG on TCP 8443, including the web tier's traffic. To let the web tier through, the allow rule for WebTier-ASG must carry a priority lower than 100, ensuring it is evaluated first. Without this change, the deny rule will always block the desired traffic, regardless of the allow rule's other settings.

Why this answer

The exhibit shows a default-deny NSG rule at priority 100 that blocks all traffic from VirtualNetwork to VirtualNetwork. To allow only the web tier (WebTier-ASG) to reach the app tier (AppTier-ASG) on TCP 8443, the administrator must move the allow rule for WebTier-ASG to a priority lower than 100 (e.g., 90). This ensures the allow rule is evaluated before the deny rule, as NSG rules are processed in priority order (lowest number first).

Exam trap

The trap here is that candidates often overlook the default-deny rule at priority 100 and assume any allow rule will work regardless of priority, failing to realize that NSG rules are processed in strict priority order and a higher-priority deny will override a lower-priority allow.

Why the other options are wrong

B

Changing the deny rule source from VirtualNetwork to Internet would block all internet traffic, but the issue is that the deny rule with priority 65000 is blocking traffic from the web tier (which is within the virtual network) to the app tier. The source should remain VirtualNetwork to allow internal traffic; the problem is the rule priority.

C

Associating the NSG with the VM NIC instead of the subnet would not resolve the issue because the NSG rules are evaluated at the subnet level for traffic between subnets. The problem is that the deny rule with priority 100 is blocking traffic from the web tier subnet to the app tier subnet; moving the NSG to the NIC would not change the subnet-level rule evaluation.

D

Replacing the ASG destination with the subnet address range would remove the application security group's ability to dynamically track the web tier's VMs, breaking the intended rule that only the web tier (ASG members) can reach the app tier on TCP 8443.

81
MCQmedium

You need to control inbound and outbound traffic to resources in a subnet by allowing or denying traffic based on IP address, port, and protocol. Which Azure feature should you use?

A.A network security group
B.A route table
C.A private DNS zone
D.Azure Advisor
AnswerA

NSGs are the Azure feature used to allow or deny traffic based on rule criteria.

Why this answer

A network security group (NSG) is the correct Azure feature because it contains security rules that allow or deny inbound and outbound traffic at the subnet or network interface level based on source/destination IP address, port, and protocol (TCP, UDP, or Any). This directly matches the requirement to control traffic by these three parameters.

Exam trap

The trap here is that candidates often confuse a route table (which controls traffic routing) with an NSG (which controls traffic filtering), especially since both are associated with subnets in the Azure portal.

Why the other options are wrong

B

A route table controls network traffic routing (next hop) between subnets and on-premises networks, not traffic filtering based on IP, port, and protocol. It does not allow or deny traffic; it directs packets.

C

A private DNS zone is used for custom domain name resolution within a virtual network, not for filtering traffic based on IP, port, or protocol.

D

Azure Advisor provides recommendations for best practices in cost, security, reliability, and performance, but it does not control traffic flow based on IP, port, or protocol.

82
MCQmedium

A company has frontend and backend VMs in the same subnet. Security rules must allow the frontend tier to reach only the backend tier on TCP 443, without assigning rules to individual VM IP addresses. What should the administrator use in the NSG rule?

A.A user-defined route that sends frontend traffic to the backend subnet.
B.A network security group rule that references both subnets by address prefix only.
C.Application security groups for the frontend and backend VMs.
D.A VNet peering connection between the two tiers.
AnswerC

Application security groups (ASGs) are the correct mechanism because they let you group VM NICs by workload role (frontend or backend) and then write NSG rules that use those groups as source and destination. This works even when both tiers share the same subnet because the grouping is by application attribute, not IP topology. ASG-based rules also survive IP address changes and simplify maintenance by centralizing the role definition outside the NSG.

Why this answer

Application Security Groups (ASGs) allow you to group VMs logically by their application tier (e.g., frontend, backend) without relying on individual IP addresses. You can then create an NSG rule that uses the frontend ASG as the source and the backend ASG as the destination, restricting traffic to TCP 443. This meets the requirement of not assigning rules to individual VM IPs while ensuring only frontend VMs can reach backend VMs within the same subnet.

Exam trap

The trap here is that candidates assume subnet-based NSG rules are sufficient for tier isolation, but since both tiers share the same subnet, a subnet-to-subnet rule would allow all VMs in that subnet to communicate, failing the requirement to restrict traffic to only frontend-to-backend on TCP 443.

Why the other options are wrong

A

User-defined routes control traffic routing, not security filtering. The question requires allowing traffic on TCP 443, which is a security rule function, not a routing decision.

B

Option B is wrong because using subnet address prefixes in an NSG rule would allow traffic between any VMs in the two subnets, not just between the specific frontend and backend tiers. The requirement is to restrict traffic to only the frontend and backend VMs, not all VMs in the subnets.

D

VNet peering connects entire virtual networks, not individual tiers within the same subnet. The question specifies frontend and backend VMs are in the same subnet, so peering is irrelevant and cannot restrict traffic between tiers.

83
Multi-Selecteasy

Which two statements about application security groups and service tags are correct? Select two.

Select 2 answers
A.An application security group lets you reference a set of virtual machines in NSG rules.
B.A service tag is a Microsoft-managed label for a service or address range.
C.Application security groups are used to assign Azure roles.
D.Service tags are custom labels you create for your own subscriptions.
E.Service tags create a private IP address for a service.
AnswersA, B

An application security group (ASG) is a logical grouping of virtual machine network interfaces, often based on workload such as web servers or database servers. When you write an NSG rule, you can use the ASG name as the source or destination instead of individual IP addresses or CIDR blocks. This simplifies rule management because adding or removing VMs from the ASG automatically updates which interfaces match the rule, without requiring edits to the NSG itself. ASGs are supported only for NICs in the same virtual network as the NSG that references them.

Why this answer

An application security group (ASG) allows you to group virtual machines logically, and then reference that group as a source or destination in network security group (NSG) rules. This simplifies rule management by decoupling the rule from individual VM IP addresses or NICs, enabling dynamic membership based on application tiers.

Exam trap

The trap here is confusing application security groups (which handle network traffic filtering) with Azure RBAC roles (which handle access control), and assuming service tags are user-defined labels rather than Microsoft-managed, dynamic IP prefix groups.

Why the other options are wrong

C

Application security groups are used to group virtual machines for network security rule application, not for Azure role assignment. Azure roles are assigned via Azure RBAC, not ASGs.

D

Service tags are Microsoft-managed labels for Azure services, not custom labels created by users for their own subscriptions.

E

Service tags do not create private IP addresses; they represent a group of IP address prefixes for a given Azure service, which Microsoft manages and updates automatically.

84
MCQmedium

A web tier and an app tier run on separate Azure VMs in the same region. Each VM's NIC is added to an application security group named WebASG or AppASG. The administrator must allow only the web tier to connect to the app tier on TCP 8443, and future VM scale-outs must be included automatically. Which NSG rule should be created?

A.An inbound rule that uses the current web VM's private IP as the source and the current app VM's private IP as the destination.
B.An inbound rule with source WebASG, destination AppASG, protocol TCP, and destination port 8443.
C.A route table that sends TCP 8443 traffic from the web subnet to the app subnet.
D.An Azure Firewall application rule collection that permits all traffic between the two subnets.
AnswerB

Using application security groups is the best fit because the rule follows the role of the VM, not a fixed IP address. When new web or app VMs are added to their respective ASGs, the NSG rule automatically covers them. This provides least-privilege connectivity between tiers while keeping the configuration maintainable during scale-out and redeployment events.

Why this answer

Application security groups (ASGs) allow you to configure network security as a natural extension of an application's structure, enabling you to group VMs by their roles (e.g., web tier, app tier) and define rules based on those groups. By creating an inbound NSG rule with source WebASG and destination AppASG on TCP port 8443, any VM added to WebASG can initiate traffic to any VM in AppASG, and future scale-outs are automatically included without manual IP updates. This approach is dynamic, scalable, and aligns with the requirement for automatic inclusion of new VMs.

Exam trap

The trap here is that candidates often confuse network security groups (NSGs) with route tables, thinking that routing can enforce access control, or they default to using static IP addresses in NSG rules, missing the dynamic, group-based capability of application security groups that automatically includes new VMs.

Why the other options are wrong

A

This rule uses static private IPs, so it fails to automatically include future VM scale-outs, violating the requirement for automatic inclusion.

C

Route tables control IP routing between subnets, not traffic filtering. They cannot enforce application-layer allow rules like TCP port 8443, and they don't integrate with application security groups for automatic scale-out inclusion.

D

Azure Firewall application rules are for outbound HTTP/S traffic from applications, not for inbound network filtering between VMs. This question requires an NSG rule, not a firewall rule, and the requirement is for inbound connectivity from web to app tier.

85
MCQmedium

A web app in VNet1 must access a storage account by using a private IP address, and the storage account has public network access disabled. The app resolves the storage FQDN from inside the VNet. What should you deploy?

A.A service endpoint on the subnet so the storage account gets a private IP.
B.A private endpoint for the storage account and the required private DNS zone linkage.
C.A storage account firewall rule that allows the VNet and a public DNS record update.
D.A SAS token created for the application service principal.
AnswerB

A private endpoint gives the storage account a private IP address inside the virtual network, which is exactly what the scenario requires. Because the app must resolve the storage FQDN from within the VNet, private DNS is also needed so name resolution points to the private address instead of the public endpoint. This is the standard design for fully private access to Azure Storage.

Why this answer

A private endpoint assigns the storage account a private IP address from the VNet, enabling access via a private IP while public network access is disabled. The required private DNS zone linkage ensures the storage FQDN resolves to that private IP from within the VNet, meeting both requirements.

Exam trap

The trap here is confusing service endpoints (which only provide source VNet identity and no private IP) with private endpoints (which provide a true private IP and DNS resolution), leading candidates to choose option A incorrectly.

Why the other options are wrong

A

A service endpoint does not assign a private IP to the storage account; it only allows traffic from the VNet to the storage account's public endpoint. The requirement is for the app to access the storage account by a private IP address, which service endpoints cannot provide.

C

The storage account has public network access disabled, so a firewall rule allowing the VNet is irrelevant because the storage account cannot be accessed over the public endpoint at all. Additionally, a public DNS record update would not provide a private IP address for the storage account.

D

A SAS token provides delegated access to a storage account using the storage account's public endpoint, but the question states public network access is disabled and requires a private IP address. SAS tokens do not enable private IP connectivity.

86
MCQmedium

Two virtual networks were created in different subscriptions. VNet-A uses 10.4.0.0/16 and VNet-B uses 10.4.128.0/17. You try to create peering between them, but Azure rejects the request. What is the best fix?

A.Enable gateway transit on both VNets before creating the peering.
B.Add a route table to one VNet so the address spaces no longer overlap.
C.Change one VNet to a non-overlapping address range, then create the peering again.
D.Create a private endpoint between the two VNets instead of peering.
AnswerC

VNet peering requires that the address spaces of the two VNets do not overlap, because overlapping ranges create routing ambiguity that Azure cannot resolve. To fix this, you must modify one VNet so its address space no longer overlaps the other—this can be done by removing the conflicting range if no subnets use it and adding a new non-overlapping range. After the address space is updated, you can then create the peering between the two VNets, even if they are in different subscriptions.

Why this answer

VNet peering requires that the address spaces of the two virtual networks do not overlap. VNet-A uses 10.4.0.0/16, which covers 10.4.0.0 to 10.4.255.255, and VNet-B uses 10.4.128.0/17, which falls entirely within that range (10.4.128.0 to 10.4.255.255). Azure rejects the peering because overlapping address spaces would cause routing conflicts.

The only correct fix is to change one VNet's address space to a non-overlapping range, then recreate the peering.

Exam trap

The trap here is that candidates may think adding a route table or enabling gateway transit can fix the overlap, but Azure enforces a strict non-overlapping address space requirement for VNet peering at the time of creation, and no routing configuration can bypass this fundamental constraint.

Why the other options are wrong

A

Azure VNet peering requires non-overlapping address spaces; enabling gateway transit does not resolve address overlap, and peering will still fail.

D

Private endpoints are used for secure access to PaaS services over a private IP, not for connecting two VNets; they cannot replace VNet peering for inter-VNet connectivity.

87
MCQmedium

A company wants to peer a new spoke virtual network to an existing hub VNet. The hub uses 10.40.0.0/16, and the new spoke was created with 10.40.128.0/17 because that range seemed available in the branch office plan. Peering creation fails. What should the administrator do?

A.Add a second address prefix to the spoke VNet and keep the overlapping range.
B.Change the spoke VNet to a non-overlapping address space before peering.
C.Enable gateway transit on the hub VNet before retrying peering.
D.Create custom DNS records for the spoke VNet so the address ranges no longer conflict.
AnswerB

VNet peering enforces a hard constraint: the address spaces of peered VNets must not overlap, because overlapping ranges make IP traffic semantically ambiguous at L3. To fix the spoke, you must remove the conflicting prefix from its address space before adding a non-overlapping one. Ensure no existing subnets or resources are deployed in the overlapping range, since you cannot delete an address space that is currently in use. Only then can the hub-spoke peering establish successfully.

Why this answer

VNet peering requires that the address spaces of the peered virtual networks do not overlap. The hub uses 10.40.0.0/16, and the spoke uses 10.40.128.0/17, which is a subset of the hub’s range. Azure blocks peering when there is any overlap to prevent routing conflicts.

The correct fix is to change the spoke VNet to a non-overlapping address space, such as a different RFC 1918 range like 10.1.0.0/16, before attempting to peer.

Exam trap

The trap here is that candidates assume a subnet range like 10.40.128.0/17 is 'available' because it is not used by the hub’s subnets, but Azure VNet peering checks the entire VNet address space, not just the subnets, so any overlap at the VNet level causes failure.

Why the other options are wrong

A

Azure VNet peering requires non-overlapping address spaces. Adding a second prefix to the spoke VNet does not resolve the existing overlap with the hub's 10.40.0.0/16, and the overlapping range (10.40.128.0/17) remains, causing peering to fail.

C

Gateway transit enables a spoke to use the hub's VPN/ExpressRoute gateway, but it does not resolve IP address overlap. Peering fails due to conflicting address spaces (10.40.0.0/16 and 10.40.128.0/17), not gateway configuration.

D

Peering fails due to overlapping address spaces (10.40.0.0/16 and 10.40.128.0/17), not DNS resolution. DNS records do not resolve IP address conflicts; Azure VNet peering requires non-overlapping address spaces.

88
MCQmedium

You create 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. What should you configure?

A.A private DNS zone linked to VNet-App
B.A user-defined route on the subnet
C.An additional public IP address
D.An Azure Firewall policy
AnswerA

A private DNS zone (e.g., `privatelink.blob.core.windows.net` for Azure Blob) stores an A record mapping the storage account's FQDN to the private IP assigned to the endpoint. Linking that zone to VNet-App enables VMs to resolve the account name via the private IP, ensuring traffic uses the private endpoint instead of the public endpoint. Without this link, the DNS query falls back to the public endpoint and the private path is not used.

Why this answer

A private DNS zone linked to VNet-App is required because Azure Private Endpoint uses a private IP address from the virtual network, but the storage account's fully qualified domain name (FQDN) must resolve to that private IP within the VNet. By linking a private DNS zone (e.g., `privatelink.blob.core.windows.net`) to VNet-App and configuring an A record for the endpoint's private IP, VMs can resolve the storage account name to the correct private address. Without this, DNS resolution would fall back to the public IP, defeating the purpose of the private endpoint.

Exam trap

The trap here is that candidates often confuse network-level controls (like UDRs or firewalls) with DNS resolution, assuming they can force traffic to a private IP without configuring name resolution, but private endpoints require explicit DNS configuration to ensure the FQDN resolves to the private IP.

Why the other options are wrong

C

An additional public IP address is not needed because the private endpoint already provides a private IP for the storage account; the goal is name resolution to that private IP, not public connectivity.

D

An Azure Firewall policy controls inbound/outbound traffic filtering and does not provide DNS resolution or name-to-IP mapping for private endpoints.

89
MCQeasy

An administrator needs two non-overlapping VNets in the same region to communicate directly over private IP addresses without deploying a gateway. What should be configured?

A.VNet peering between the two virtual networks.
B.A site-to-site VPN gateway connection.
C.A service endpoint on both subnets.
D.A route table with default routes to each VNet.
AnswerA

Azure VNet peering connects the two virtual networks directly over the Microsoft backbone, using private IP addresses with no gateway, VPN tunnel, or public internet traversal. Because the address spaces are non-overlapping, each peered VNet can route traffic to the other's prefix using automatically injected system routes, and unicast traffic can flow in both directions with low and consistent latency. This is the appropriate native mechanism for private VNet-to-VNet communication in the same region, and it can also work globally.

Why this answer

VNet peering enables direct connectivity between two Azure virtual networks using private IP addresses across the Microsoft backbone, without requiring a gateway or public internet. It supports non-overlapping address spaces in the same region and provides low-latency, high-bandwidth communication. This matches the requirement exactly.

Exam trap

The trap here is that candidates confuse VNet peering with VPN gateways or service endpoints, assuming a gateway is always required for cross-VNet communication or that service endpoints can connect VNets, when in fact peering is the direct, gateway-free solution for private IP connectivity.

Why the other options are wrong

B

A site-to-site VPN gateway connection requires a gateway and routes traffic over the internet or ExpressRoute, not directly over private IPs, and incurs additional cost and complexity.

C

Service endpoints secure Azure service access from a VNet but do not enable direct private IP communication between two VNets; they only provide a direct path to PaaS services, not VNet-to-VNet connectivity.

D

Route tables with default routes to each VNet do not enable direct private IP communication between VNets; they only control traffic within a VNet or to forced-tunneling destinations. VNet peering is required for direct connectivity.

90
MCQmedium

An administrator is troubleshooting inbound HTTPS to a VM. The subnet NSG has these custom rules: Deny-Internet-Inbound at priority 150, Allow-HTTPS-Admin at priority 200, and the default deny rules remain in place. The administrator’s client is on the internet and should be able to reach the VM on TCP 443. What change will fix the problem?

A.Move the allow rule to a lower priority number than the deny rule.
B.Change the allow rule source from Internet to Any and keep the same priority.
C.Create a route table to the VM subnet so traffic reaches the VM faster.
D.Associate an application security group with the VM and leave the rules unchanged.
AnswerA

NSG rules are evaluated in priority order, and the lowest number wins. Because the deny rule at 150 is evaluated before the allow rule at 200, inbound HTTPS is blocked even though an allow rule exists. Making the allow rule higher priority than the deny rule, such as 100, lets the permitted traffic match first and be accepted.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, with lower numbers evaluated first. The Deny-Internet-Inbound rule at priority 150 is evaluated before the Allow-HTTPS-Admin rule at priority 200, so the deny rule blocks the inbound HTTPS traffic before the allow rule can be processed. Moving the allow rule to a lower priority number (e.g., 140) ensures it is evaluated first, permitting the traffic from the internet on TCP 443.

Exam trap

The trap here is that candidates often assume NSG rules are evaluated in the order they are listed or that allow rules automatically override deny rules, but Azure NSGs strictly evaluate by priority number, so a deny rule with a lower number will block traffic even if an allow rule with a higher number exists.

Why the other options are wrong

B

The deny rule at priority 150 explicitly blocks traffic from the Internet, so changing the allow rule's source from Internet to Any does not override the deny; the deny still applies because it has higher priority (lower number).

C

The issue is that the deny rule at priority 150 blocks inbound HTTPS from the Internet before the allow rule at priority 200 can be evaluated. Adding a route table does not affect NSG rule evaluation order; it only influences traffic routing, which is not the problem here.

D

Associating an application security group (ASG) with the VM does not change the NSG rule evaluation order; the deny rule at priority 150 still blocks inbound HTTPS from the Internet, regardless of ASG membership.

91
Multi-Selecteasy

A team wants an Azure VM in a subnet to reach a storage account securely without opening the account to the entire internet. Which two configuration choices can be used to achieve this? Select two.

Select 2 answers
A.Private endpoint
B.Service endpoint
C.Enable anonymous blob access
D.Move the account to the Archive tier
E.Apply a delete lock to the storage account
AnswersA, B

A private endpoint assigns the storage account a network interface with a private IP from the virtual network's subnet, so traffic from the VM flows directly to that IP over the Microsoft backbone without leaving the VNet. You must also configure DNS to resolve the storage account's FQDN to that private IP. This removes exposure to the public internet and is the recommended way to establish secure, subnet-scoped connectivity.

Why this answer

Private endpoint (A) assigns a private IP address from the VM's subnet to the storage account, enabling secure connectivity over the Microsoft backbone network without exposing the account to the public internet. Service endpoint (B) extends the virtual network identity to the storage account via its public endpoint but restricts access to traffic originating from the specified subnet, also avoiding full internet exposure. Both options satisfy the requirement for secure, subnet-restricted access.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, thinking both are interchangeable, but service endpoints still use the storage account's public endpoint (just restricted by subnet), while private endpoints use a private IP from the subnet, making private endpoints the more secure choice for scenarios requiring complete isolation from the internet.

Why the other options are wrong

C

Enabling anonymous blob access would allow any internet user to access the storage account without authentication, which violates the requirement to keep the storage account secure and not open to the entire internet.

D

Moving a storage account to the Archive tier does not affect network security; it only changes the access tier for cost optimization, leaving the account still accessible over the internet if not otherwise restricted.

E

Applying a delete lock prevents accidental deletion of the storage account but does not provide secure network access from a VM to the storage account. It does not restrict traffic to a specific subnet or private IP.

92
MCQmedium

A route table contains these entries: 10.0.0.0/8 with next hop Virtual appliance, and 10.1.1.0/24 with next hop Virtual network gateway. Which next hop will Azure use for traffic to 10.1.1.5?

A.Virtual appliance, because the broader 10.0.0.0/8 route was created first.
B.Virtual network gateway, because the /24 route is more specific than the /8 route.
C.Internet, because Azure always prefers the default system route for public addresses.
D.None, because Azure ignores overlapping route entries in the same table.
AnswerB

For a destination such as 10.1.1.5, Azure finds all matching routes in the table and then applies longest prefix match. The 10.1.1.0/24 route is more specific than 10.0.0.0/8 because 10.1.1.0/24 has 24 fixed bits versus only 8, so the /24 route's next hop (virtual network gateway) is used. This is true even if the /8 route was defined earlier, because specificity, not creation order, determines the effective route.

Why this answer

Azure uses the most specific route prefix (longest prefix match) to determine the next hop for traffic. For destination 10.1.1.5, the route 10.1.1.0/24 (prefix length 24) is more specific than 10.0.0.0/8 (prefix length 8), so the next hop Virtual network gateway is selected, regardless of the order in which routes were created.

Exam trap

The trap here is that candidates mistakenly believe route creation order or the 'broader' route being created first determines priority, but Azure always uses the most specific prefix match, not the order of route entries.

Why the other options are wrong

A

Azure uses the most specific route prefix (longest prefix match) for traffic, not the order of creation. The /24 route is more specific than the /8 route, so the virtual network gateway is used.

C

Azure uses longest prefix match for routing, not default system routes. The destination 10.1.1.5 matches the more specific /24 route, so the virtual network gateway is used, not the Internet.

D

Azure uses the most specific route (longest prefix match) for traffic, so the /24 route to the virtual network gateway is chosen over the /8 route. Overlapping routes do not cause Azure to ignore them; they are evaluated based on prefix length.

93
MCQhard

A storage account has a blob private endpoint in VNet-A. A VM in peered VNet-B can reach the storage account by private IP, but name resolution for the storage account still returns the public IP address. The private DNS zone privatelink.blob.core.windows.net is already linked only to VNet-A. What should the administrator do next?

A.Create a second private endpoint in VNet-B for the same storage account.
B.Enable a service endpoint on VNet-B and remove the private endpoint.
C.Add a user-defined route in VNet-B that points the storage FQDN to the private IP.
D.Create a virtual network link from the private DNS zone to VNet-B.
AnswerD

Private endpoint access depends on correct DNS resolution to the private endpoint IP. Because the private DNS zone is linked only to VNet-A, VNet-B does not receive the private name mapping. Linking the zone to VNet-B allows resources in the peered VNet to resolve the blob endpoint name to the private IP as intended.

Why this answer

The private DNS zone `privatelink.blob.core.windows.net` is linked only to VNet-A, so VMs in VNet-B cannot resolve the storage account's FQDN to its private IP. By creating a virtual network link from the private DNS zone to VNet-B, the zone's records become available for resolution in VNet-B, allowing the VM to resolve the storage FQDN to the private endpoint's IP address instead of the public IP.

Exam trap

The trap here is that candidates assume private endpoint connectivity alone ensures name resolution, but they forget that DNS resolution requires the private DNS zone to be linked to the peered VNet, not just the VNet where the endpoint resides.

Why the other options are wrong

A

Creating a second private endpoint in VNet-B for the same storage account is unnecessary and violates the principle of using a single private endpoint with DNS resolution. The issue is DNS resolution, not connectivity; the VM can already reach the storage account via private IP, but name resolution fails because the private DNS zone is not linked to VNet-B.

B

Enabling a service endpoint on VNet-B and removing the private endpoint would break private connectivity for VNet-A and does not resolve DNS resolution; service endpoints do not provide private DNS integration.

C

User-defined routes (UDRs) cannot override DNS resolution; they only control network traffic flow. The issue is name resolution returning the public IP, not routing, so a UDR won't fix the DNS query.

94
MCQmedium

A storage account has public network access disabled. An application runs on a VM in a VNet and must access the storage account over a private IP address. The team also wants the storage name to resolve to a private address inside the VNet without changing application code. What should the administrator create?

A.A service endpoint on the subnet and a storage account firewall rule allowing that subnet.
B.A private endpoint for the storage account and a corresponding private DNS zone link.
C.An account SAS token with read/write permissions for the application.
D.Allow trusted Microsoft services to bypass the storage firewall.
AnswerB

A private endpoint places the storage service on a private IP inside the VNet, and DNS integration allows the storage FQDN to resolve to that private address. That combination meets both requirements: private connectivity and no application code changes. This is the standard pattern when public network access is disabled.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, making it accessible over a private IP address. A corresponding private DNS zone link (e.g., privatelink.blob.core.windows.net) ensures the storage account name resolves to that private IP inside the VNet without modifying application code, meeting both requirements.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, assuming both provide private IP connectivity, when only private endpoints assign a private IP and require a private DNS zone for name resolution.

Why the other options are wrong

A

Service endpoints do not provide private IP resolution; the storage account's public DNS name still resolves to a public IP. The question requires private IP resolution without changing application code, which only a private endpoint with a private DNS zone can achieve.

C

An account SAS token provides delegated access to the storage account using the public endpoint, but the question requires private IP access and private DNS resolution, which a SAS token cannot achieve.

D

Option D allows trusted Microsoft services to bypass the firewall, but it does not provide private IP connectivity or private DNS resolution. The requirement is for the storage account to be accessed over a private IP address and resolve to a private address inside the VNet, which only a private endpoint with private DNS zone can achieve.

95
MCQmedium

After a private endpoint for an Azure Blob Storage account is created, VMs in the same VNet still resolve the storage name to the public IP address. The administrator wants the name to resolve to the private endpoint address instead. What should be configured?

A.Link the private DNS zone for blob storage to the virtual network.
B.Create a route table that sends storage traffic to the private endpoint subnet.
C.Enable a service endpoint on the subnet that hosts the VMs.
D.Assign a public IP address to the private endpoint subnet.
AnswerA

Private endpoints require private DNS so clients resolve the storage name to the endpoint's private IP instead of the public address. For Blob Storage, the relevant zone is the privatelink.blob.core.windows.net zone, and it must be linked to the VNet used by the clients. Once linked, Azure can answer DNS queries with the private endpoint address, which makes access work consistently without manual hosts file edits.

Why this answer

When a private endpoint is created for Azure Blob Storage, the private DNS zone (privatelink.blob.core.windows.net) must be linked to the virtual network to enable automatic resolution of the storage account's FQDN to the private endpoint's private IP address. Without this link, VMs in the VNet continue to use public DNS resolution, which returns the public IP. Linking the private DNS zone to the VNet ensures that DNS queries from VMs resolve to the private endpoint address via Azure's DNS infrastructure.

Exam trap

The trap here is that candidates often confuse network-level controls (like route tables or service endpoints) with DNS resolution, assuming they can redirect traffic to the private endpoint without addressing how the name is resolved to an IP.

Why the other options are wrong

B

Route tables control network traffic flow based on IP addresses, but they do not affect DNS resolution. The issue is that the storage account's public DNS name is still resolving to the public IP instead of the private endpoint's private IP, which requires DNS configuration, not routing.

C

Service endpoints do not affect DNS resolution; they only provide direct connectivity to Azure services over the Azure backbone network. The VM still resolves the storage name to the public IP address, so the private endpoint address is not used.

D

Assigning a public IP to the private endpoint subnet does not affect DNS resolution; private endpoints use private IPs, and DNS resolution to the private IP requires a private DNS zone linked to the VNet.

96
MCQmedium

You have two virtual networks in the same Azure region named VNet-App and VNet-DB. Resources in the two networks must communicate privately over the Azure backbone without using VPN gateways. What should you configure?

A.Virtual network peering
B.A site-to-site VPN
C.A network security group
D.An Azure Firewall policy only
AnswerA

Virtual network peering is the native Azure connectivity mechanism for connecting two VNets in the same region. It creates a direct, private connection over the Microsoft backbone network, allowing resources in each VNet to communicate using private IP addresses without traversing the public internet, an Azure VPN gateway, or a virtual WAN. The connection is simple to configure, low-latency, and does not require a physical device or gateway, making it the correct answer.

Why this answer

Virtual network peering connects two Azure virtual networks in the same region via the Microsoft backbone infrastructure, enabling private IP communication without a VPN gateway or public internet. This is the correct solution because it meets the requirement for private, low-latency connectivity between VNet-App and VNet-DB using Azure's high-speed backbone.

Exam trap

The trap here is that candidates often confuse network security groups (NSGs) or Azure Firewall as connectivity solutions, when they are only security controls that require an existing network path (like peering) to function.

Why the other options are wrong

B

A site-to-site VPN requires a VPN gateway and connects on-premises networks to Azure, not two Azure virtual networks in the same region. It does not provide private communication over the Azure backbone without a gateway.

C

Network security groups (NSGs) filter traffic but do not establish connectivity between virtual networks; they are not a connectivity solution.

D

An Azure Firewall policy alone does not enable private connectivity between virtual networks; it only controls traffic filtering. To allow private communication over the Azure backbone, you need virtual network peering or a VPN gateway, not just a firewall policy.

97
MCQmedium

An operations team wants device-generated log messages collected centrally so engineers can review interface changes, warnings, and errors from one place. Which technology is most directly associated with that goal?

B.NetFlow
C.DHCP relay
AnswerA

Syslog is the standard protocol for centralized event and log reporting. It enables network devices, servers, and firewalls to send timestamped event messages—identified by facility and severity levels—over UDP port 514 or TCP 6514 to a central log collector. This allows the operations team to aggregate, filter, and analyze device-generated logs in a single location, making it the correct answer.

Why this answer

Syslog (A) is the standard protocol for collecting and centralizing log messages from network devices, servers, and other infrastructure. It allows engineers to forward interface changes, warnings, and errors to a central syslog server, enabling unified review and alerting. This directly matches the goal of centralized device-generated log collection.

Exam trap

The trap here is that candidates confuse NetFlow (traffic flow analysis) with syslog (log message collection), because both involve network monitoring, but NetFlow does not capture device-generated log messages like interface changes or errors.

Why the other options are wrong

B

NetFlow is primarily used for monitoring and analyzing network traffic rather than collecting log messages. It provides flow data but does not centralize log messages for review.

C

DHCP relay is primarily used to forward DHCP packets between clients and servers across different subnets, not for collecting log messages. It does not provide centralized logging capabilities for interface changes, warnings, or errors.

D

Port security is a feature used to control access to a switch port by limiting the devices that can connect, but it does not collect or centralize log messages for review. It focuses on securing network access rather than log management.

98
MCQmedium

A company has a virtual machine in a subnet that must access an Azure Storage account. The storage account should remain reachable through its public endpoint, but access must be limited to that subnet, and the traffic should stay on the Azure backbone rather than the internet. Which feature should the administrator configure on the subnet?

A.A private endpoint for the storage account.
B.A service endpoint for Microsoft.Storage.
C.A site-to-site VPN connection to the storage account.
D.An application security group assigned to the storage account.
AnswerB

A service endpoint extends the subnet's identity to the storage service and keeps traffic on the Azure backbone while still using the storage account's public endpoint. This fits when the organization wants network restriction by subnet without introducing a private IP for the service. The storage firewall can then allow only the selected subnet.

Why this answer

A service endpoint for Microsoft.Storage extends the virtual network identity to the storage account, allowing traffic from the subnet to the storage account's public endpoint to be routed over the Azure backbone network rather than the internet. This satisfies the requirement to limit access to the subnet while keeping the public endpoint reachable and traffic within Azure's infrastructure.

Exam trap

The trap here is that candidates often confuse private endpoints with service endpoints, mistakenly thinking a private endpoint is required to keep traffic on the Azure backbone, but a private endpoint removes public endpoint access, whereas a service endpoint preserves it while still routing traffic internally.

Why the other options are wrong

A

A private endpoint assigns the storage account a private IP from the subnet, removing public endpoint access entirely, which contradicts the requirement that the storage account remain reachable through its public endpoint.

C

A site-to-site VPN connects on-premises networks to Azure, not a subnet to a storage account, and it routes traffic over the internet or VPN gateway, not ensuring traffic stays on the Azure backbone.

D

An application security group (ASG) is used to group virtual machines and apply network security rules based on that group, not to restrict access to a storage account from a subnet. It cannot limit traffic to the Azure backbone or provide subnet-level access control to a storage account's public endpoint.

99
MCQmedium

A spoke VM can connect to a hub VM by IP address after peering is configured, but it cannot resolve internal host names such as app01.corp.local. The hub has a DNS server at 10.50.1.4 that hosts those records. What should the administrator configure so the spoke VMs use that DNS server?

A.Add an NSG rule allowing UDP and TCP port 53 between the VNets.
B.Set the spoke VNet's custom DNS server to 10.50.1.4.
C.Create a private endpoint for the hub DNS server.
D.Enable remote gateways on the spoke peering.
AnswerB

The spoke VNet must be told to use the DNS server that contains the internal zone records. By configuring 10.50.1.4 as the custom DNS server for the spoke VNet, new and existing VMs in that VNet can query the hub-based resolver for names such as app01.corp.local. Peering alone does not change DNS behavior, so the DNS server setting is the missing configuration.

Why this answer

The spoke VNet must be configured to use a custom DNS server to override Azure's default internal name resolution. By setting the spoke VNet's DNS server to 10.50.1.4, all VMs in the spoke will query that server for hostname resolution, including app01.corp.local. This is a VNet-level setting that applies to all VMs in the spoke, and it does not require any changes to NSGs or peering configurations.

Exam trap

The trap here is that candidates often confuse VNet peering with DNS resolution, assuming that peering automatically enables name resolution across VNets, when in fact you must explicitly configure a custom DNS server or use Azure Private DNS Zones to resolve private hostnames.

Why the other options are wrong

A

The issue is DNS resolution, not network connectivity. NSG rules control traffic flow, but the spoke VNet still uses its default Azure DNS, not the hub's DNS server. Adding NSG rules for port 53 does not change the DNS server configuration.

C

A private endpoint is used to securely access Azure PaaS services (like Azure SQL, Storage) over a private IP within a VNet, not to configure DNS resolution for VMs. It does not set a custom DNS server for a VNet.

D

Enabling remote gateways on the spoke peering allows the spoke VNet to use the hub's VPN/ExpressRoute gateway for outbound connectivity, but it does not configure DNS settings. The spoke VMs still need a custom DNS server address to resolve internal host names.

100
MCQmedium

A hub VNet already has a VPN gateway connected to on-premises. A spoke VNet in the same region must reach on-premises networks through that existing gateway, and you do not want to deploy a separate VPN gateway in the spoke. What peering settings should you use?

A.Create peering only; the spoke will automatically use the hub gateway without extra settings.
B.Enable Use remote gateways on the hub peering and Allow gateway transit on the spoke peering.
C.Enable Allow gateway transit on the hub peering and Use remote gateways on the spoke peering.
D.Create a service endpoint from the spoke VNet to the on-premises network.
AnswerC

In a hub-spoke design, the hub VNet that owns the VPN gateway must allow gateway transit, and the spoke must be configured to use the remote gateway. This lets the spoke route on-premises traffic through the hub without deploying its own gateway. The direction of these settings matters, and reversing them breaks the design.

Why this answer

To enable a spoke VNet to use a hub VNet's VPN gateway for on-premises connectivity without deploying a separate gateway, you must configure the hub peering with 'Allow gateway transit' and the spoke peering with 'Use remote gateways'. This allows the spoke to route traffic through the hub's VPN gateway, leveraging the existing site-to-site VPN connection to on-premises.

Exam trap

The trap here is confusing which peering direction gets which setting: candidates often mistakenly enable 'Use remote gateways' on the hub side and 'Allow gateway transit' on the spoke side, which is the reverse of the correct configuration.

Why the other options are wrong

A

In Azure, a spoke VNet does not automatically use the hub's VPN gateway just by creating peering. You must explicitly configure gateway transit by enabling 'Allow gateway transit' on the hub peering and 'Use remote gateways' on the spoke peering.

B

The settings are reversed: 'Use remote gateways' must be enabled on the spoke peering (from spoke to hub), and 'Allow gateway transit' on the hub peering (from hub to spoke). Option B swaps these, which would not allow the spoke to use the hub's VPN gateway.

D

Service endpoints are used for secure access to Azure services (like Storage or SQL) from a VNet, not for connecting to on-premises networks via VPN. They do not provide IP-level routing or gateway transit capabilities.

101
MCQhard

Third-party support engineers connect from the public internet and need browser-based RDP and SSH access to Azure VMs that have only private IPs. The security team will not allow public IPs on the VMs, inbound 3389 or 22 from the internet, or a client VPN on each laptop. What should you deploy?

A.Azure Bastion
B.VPN Gateway with point-to-site configuration
C.A public load balancer with inbound NAT rules
D.A NAT gateway attached to the VM subnet
AnswerA

Azure Bastion provides secure browser-based RDP and SSH access without exposing the VMs to public IP-based inbound traffic.

Why this answer

Azure Bastion provides secure, seamless browser-based RDP and SSH connectivity to Azure VMs directly from the Azure portal over TLS, without requiring public IPs on the VMs or exposing inbound RDP/SSH ports (3389/22) to the internet. It uses a hardened bastion host deployed in a dedicated subnet, which brokers the connection via the Azure portal, satisfying the security team's constraints of no public IPs on VMs, no inbound internet access to those ports, and no client VPN software.

Exam trap

The trap here is that candidates often confuse Azure Bastion with a NAT gateway or VPN Gateway, mistakenly thinking any 'gateway' solution provides inbound RDP/SSH access, but Bastion is the only option that delivers browser-based connectivity without public IPs, client VPNs, or open inbound ports.

Why the other options are wrong

B

The question requires browser-based RDP/SSH access without client VPN on each laptop. VPN Gateway with point-to-site requires a VPN client on each laptop, violating the 'no client VPN' constraint.

C

A public load balancer with inbound NAT rules would require the VMs to have public IPs or be reachable via the load balancer's frontend IP, which still exposes RDP/SSH ports (3389/22) to the internet, violating the security team's restrictions.

D

A NAT gateway provides outbound internet access for VMs with private IPs, but it does not enable inbound RDP/SSH connections from the internet. The question requires browser-based inbound access, which NAT gateway cannot provide.

102
MCQmedium

An NSG is associated with a subnet. It contains these inbound rules: - Priority 100: Deny TCP 443 from Internet to Any - Priority 200: Allow TCP 443 from 203.0.113.0/24 to Any A tester at 203.0.113.10 browses to the VM's HTTPS endpoint in that subnet. What happens?

A.The request is allowed because the more specific source range matches first.
B.The request is denied because the priority 100 deny rule matches before the allow rule.
C.The request is denied only if the VM has no public IP address.
D.The request is allowed because default NSG rules always override custom rules.
AnswerB

Azure NSGs evaluate rules by priority, and the lowest number is processed first. Both rules match this HTTPS traffic, but the deny rule at priority 100 is considered before the allow rule at priority 200. Because the first match wins, the packet is blocked even though the source is in the allowed range.

Why this answer

Network Security Group (NSG) rules are evaluated in priority order, from lowest to highest numeric value. The priority 100 rule explicitly denies TCP 443 from the Internet (which includes the 203.0.113.0/24 range), and it is evaluated before the priority 200 allow rule. Since the deny rule matches first, the traffic is blocked regardless of the more specific source IP in the allow rule.

Exam trap

The trap here is that candidates mistakenly believe NSG rules are evaluated based on the specificity of the source or destination (like a firewall with longest-prefix matching), but Azure NSGs strictly use priority-based evaluation where lower numeric priority wins.

Why the other options are wrong

A

NSG rules are evaluated by priority order, not by specificity. The priority 100 deny rule matches all traffic from Internet, including 203.0.113.0/24, so it is applied before the priority 200 allow rule, resulting in denial.

C

NSG rules are stateless and apply to all traffic entering the subnet, regardless of whether the VM has a public IP. The deny rule at priority 100 blocks TCP 443 from Internet (any source), so the tester's request is denied irrespective of the VM's public IP.

D

Default NSG rules have lower priority than custom rules and do not override them; the priority 100 deny rule explicitly blocks the traffic before any default rule could apply.

103
MCQmedium

An NSG attached to a subnet contains these inbound rules: Deny-All-Inbound at priority 200, Allow-HTTPS-Admin at priority 250 from 203.0.113.20/32, and Allow-HTTPS-Internet at priority 300. A VM in the subnet cannot receive HTTPS from the admin workstation even though the source IP is correct. What should the administrator change?

A.Change the protocol from TCP to Any on the allow rule.
B.Move the Allow-HTTPS-Admin rule to a priority number lower than 200.
C.Associate a NAT gateway with the subnet.
D.Enable service endpoint policies on the subnet.
AnswerB

NSG rules are processed in priority order, and the lowest number wins. Because Deny-All-Inbound is at priority 200, it is evaluated before the allow rule at 250 and blocks the traffic. Moving the allow rule to a smaller number than 200 lets the admin workstation's HTTPS traffic match the allow rule first.

Why this answer

The Deny-All-Inbound rule at priority 200 blocks all traffic, including HTTPS from the admin workstation, because NSG rules are evaluated in priority order (lowest number first). The Allow-HTTPS-Admin rule at priority 250 is never reached since the deny rule with a higher priority (lower number) matches first. To allow the admin traffic, the allow rule must have a priority lower than 200 (e.g., 150) so it is evaluated before the deny rule.

Exam trap

The trap here is that candidates assume a higher priority number means higher precedence, but in Azure NSGs, a lower numeric priority value (e.g., 200) is evaluated before a higher one (e.g., 250), so the deny rule blocks the traffic before the allow rule is checked.

Why the other options are wrong

A

The issue is that the Deny-All-Inbound rule at priority 200 blocks HTTPS traffic before the Allow-HTTPS-Admin rule at priority 250 is evaluated. Changing the protocol to Any does not affect the priority order; the deny rule still takes precedence.

C

A NAT gateway provides outbound internet connectivity for private subnets, but does not affect inbound traffic filtering by NSG rules. The issue is that the Deny-All-Inbound rule at priority 200 blocks HTTPS before the Allow-HTTPS-Admin rule at priority 250 is evaluated.

D

Service endpoint policies control access to Azure services (like Storage or SQL) from a subnet, not inbound HTTPS traffic to a VM. They do not affect NSG rule processing or priority, so they cannot resolve the issue where a higher-priority Deny-All rule blocks the admin's HTTPS.

104
Multi-Selecthard

Two virtual networks are in different subscriptions. VNet-A uses 10.20.0.0/16 and VNet-B uses 10.20.128.0/17. A design review also states that traffic between two spoke VNets should flow through a hub VNet instead of directly between spokes. Which two statements are correct? Select two.

Select 2 answers
A.The two VNets cannot be peered until one address space is changed because the ranges overlap.
B.VNet peering is transitive, so spoke-to-spoke traffic will automatically use the hub peering.
C.To reach another spoke through the hub, you need an explicit design such as gateway transit or routing controls.
D.Overlapping CIDR blocks are allowed if the VNets are placed in separate resource groups.
E.If the hub has a VPN gateway, spoke traffic to other spokes is routed automatically without additional configuration.
AnswersA, C

VNet peering in Azure mandates that connected virtual networks must have unique, non-overlapping IP address spaces. In this scenario, VNet-A (10.20.0.0/16) encompasses the entire address range of VNet-B (10.20.128.0/17). This direct overlap violates the fundamental peering requirement. Consequently, peering cannot be established between VNet-A and VNet-B until one of their address spaces is reconfigured to ensure complete separation.

Why this answer

VNet peering in Azure requires that the address spaces of the peered VNets do not overlap. VNet-A uses 10.20.0.0/16 and VNet-B uses 10.20.128.0/17, which are overlapping ranges (10.20.128.0/17 is a subset of 10.20.0.0/16). Azure will reject the peering request until one of the address spaces is changed to eliminate the overlap.

Exam trap

The trap here is that candidates often assume VNet peering is transitive (like in some other cloud providers) or that a VPN gateway automatically routes spoke-to-spoke traffic, but Azure requires explicit routing configuration for transitive traffic through a hub.

Why the other options are wrong

B

VNet peering is non-transitive; a peered connection between VNet-A and the hub, and between VNet-B and the hub, does not automatically enable direct traffic between VNet-A and VNet-B through the hub.

D

Overlapping CIDR blocks are not allowed for VNet peering even if VNets are in separate resource groups; peering requires non-overlapping address spaces.

E

In Azure, VNet peering is non-transitive; traffic from one spoke to another must be explicitly routed through a hub, typically using a network virtual appliance or gateway transit. A VPN gateway in the hub does not automatically route spoke-to-spoke traffic without additional configuration like user-defined routes.

105
MCQeasy

Based on the exhibit, what inbound NSG rule should the administrator add to allow only the web tier to reach the app tier on TCP 8080?

A.Source: WebASG, Destination: AppASG, Protocol: TCP, Port: 8080, Priority: 250
B.Source: Internet, Destination: VirtualNetwork, Protocol: TCP, Port: 8080, Priority: 250
C.Source: AppASG, Destination: WebASG, Protocol: TCP, Port: 8080, Priority: 250
D.Source: WebASG, Destination: AppASG, Protocol: TCP, Port: 8080, Priority: 350
AnswerA

This rule uses application security groups to target the web tier and app tier precisely. Priority 250 is evaluated before the deny rule at 300, so the allowed web-to-app traffic can pass while everything else remains blocked.

Why this answer

The inbound NSG rule must allow traffic from the web tier (source: WebASG) to the app tier (destination: AppASG) on TCP port 8080. A priority of 250 is lower than the default rules (65000+) and ensures this rule is evaluated before any higher-numbered deny rules, while being high enough to leave room for more specific rules if needed.

Exam trap

The trap here is that candidates often confuse the source and destination in NSG rules, mistakenly thinking the rule should allow the app tier to receive traffic from the web tier by setting the source to AppASG and destination to WebASG, which is the reverse of the required direction.

Why the other options are wrong

B

This rule allows inbound traffic from the Internet to any virtual network resource on TCP 8080, which is overly permissive and does not restrict access to only the web tier reaching the app tier.

C

The rule specifies Source: AppASG and Destination: WebASG, which is the reverse direction (app to web) instead of allowing web tier to reach app tier on TCP 8080.

D

Priority 350 is higher than the default deny rule (65000) but lower than the required priority to override any existing rules; however, the question does not specify a need for a specific priority, so priority 250 is acceptable. The real issue is that option D is identical to the correct answer A, so it is not wrong; the question likely expects priority 250 as the correct one, but D is also correct. Actually, the question states correct answer is A, so D is wrong because it has a higher priority number (350) which means lower priority, potentially being overridden by other rules with lower numbers.

106
MCQmedium

Two VNets are peered successfully, and a VM in the spoke can reach a private endpoint in the hub by IP address. However, the VM cannot resolve the storage account name to the private endpoint FQDN. The private DNS zone is linked only to the hub VNet. What should the administrator do?

A.Add a route table to the spoke subnet pointing to the private endpoint IP.
B.Link the private DNS zone to the spoke VNet as well.
C.Enable gateway transit on the peering connection.
D.Create an NSG rule to allow DNS traffic to the storage account.
AnswerB

Private DNS zones must be linked to every VNet that needs to resolve the private endpoint name through Azure-provided DNS behavior. Since the spoke VNet is not linked to the zone, its VM does not receive the private endpoint record and cannot resolve the storage account FQDN correctly. Linking the zone to the spoke VNet allows name resolution to return the private IP.

Why this answer

The VM can reach the private endpoint by IP, confirming that network connectivity (peering and routing) is working. However, name resolution fails because the private DNS zone, which contains the private endpoint FQDN mapping, is linked only to the hub VNet. By linking the private DNS zone to the spoke VNet (option B), the spoke VMs will use Azure-provided DNS to resolve the storage account name to the private IP, enabling seamless name resolution across the peered VNets.

Exam trap

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

Why the other options are wrong

A

The issue is DNS resolution, not routing. The VM can already reach the private endpoint by IP, so adding a route table does not help resolve the storage account name to the private endpoint FQDN.

C

Gateway transit is used to allow a peered VNet to use the hub's VPN/ExpressRoute gateway for connectivity to on-premises networks, not for DNS resolution of private endpoints. The issue here is DNS resolution, not routing or gateway access.

D

The issue is DNS resolution, not network traffic. The VM can already reach the private endpoint by IP, so NSG rules for DNS traffic are irrelevant because DNS queries are sent to the Azure-provided DNS (168.63.129.16) or a custom DNS server, not to the storage account's IP.

107
MCQmedium

A VM in a spoke subnet must send all traffic destined for 172.16.0.0/12 to a firewall appliance at 10.1.1.4. All other destinations should continue to use Azure system routes. Which user-defined route should the administrator add to the subnet route table?

A.Destination 0.0.0.0/0 with next hop Internet.
B.Destination 172.16.0.0/12 with next hop Virtual appliance and next hop address 10.1.1.4.
C.Destination 172.16.0.0/12 with next hop Virtual network gateway.
D.Destination 172.16.0.0/12 with next hop None.
AnswerB

A UDR should match the exact destination prefix that must be redirected. By adding 172.16.0.0/12 with next hop type Virtual appliance and the firewall private IP, Azure sends only that traffic to the appliance. All other traffic continues to follow the built-in system routes.

Why this answer

A user-defined route (UDR) with destination 172.16.0.0/12 and next hop type 'Virtual appliance' (with IP 10.1.1.4) overrides the default Azure system route for that prefix, forcing all traffic to the 172.16.0.0/12 range through the firewall at 10.1.1.4. This satisfies the requirement while leaving all other destinations (including 0.0.0.0/0) to be handled by Azure's default system routes.

Exam trap

The trap here is that candidates often confuse the 'Virtual appliance' next hop with 'Virtual network gateway' or assume a default route (0.0.0.0/0) is needed, but the requirement specifically limits the forced tunneling to only the 172.16.0.0/12 range, not all traffic.

Why the other options are wrong

A

The question requires traffic to 172.16.0.0/12 to be sent to a firewall, not all traffic. A 0.0.0.0/0 route would send all internet-bound traffic to the firewall, which is not the requirement and would break internet connectivity.

C

The next hop must be a virtual appliance (firewall) at 10.1.1.4, not a virtual network gateway. A virtual network gateway is used for VPN or ExpressRoute connections, not for routing to a firewall.

D

Setting next hop to 'None' drops traffic to 172.16.0.0/12 instead of forwarding it to the firewall at 10.1.1.4, which violates the requirement that all traffic to that range must go through the firewall.

108
MCQhard

A storage account must remain reachable through its public endpoint for an on-premises integration server, but only one Azure subnet should be allowed to access it from Azure. The team does not want private endpoints or DNS changes. What should the administrator configure?

A.Add a private endpoint and disable public network access
B.Enable a service endpoint on the subnet and add that subnet to the storage account networking rules
C.Create a SAS token restricted to that subnet
D.Assign Storage Blob Data Reader to the subnet
AnswerB

A service endpoint lets traffic from the chosen Azure subnet reach the storage account over the Microsoft backbone while still using the account's public endpoint. Adding the subnet to the storage account firewall rules then restricts Azure access to only that subnet. This meets the requirement to keep public access available for the on-premises integration server while tightly limiting Azure-based access without private endpoints or DNS changes.

Why this answer

A service endpoint extends the virtual network identity to the storage account, allowing you to restrict access to a specific subnet while keeping the public endpoint enabled for on-premises access. This meets the requirement of allowing only one Azure subnet to access the storage account from Azure without using private endpoints or DNS changes.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming that service endpoints require disabling public access or that private endpoints are the only way to restrict subnet access, when in fact service endpoints allow selective subnet access while keeping the public endpoint active.

Why the other options are wrong

A

A private endpoint disables public endpoint access, but the question requires the storage account to remain reachable through its public endpoint for the on-premises server.

C

A SAS token restricts access to specific resources or operations, not network-level access. It cannot enforce that traffic originates from a specific subnet; the SAS token can be used from any IP address that has the token.

D

Assigning Storage Blob Data Reader to the subnet grants read access to blob data but does not control network access; the storage account's public endpoint would still be accessible from any IP, violating the requirement to restrict access to only one Azure subnet.

109
MCQmedium

A storage account must be reachable only from a single Azure VNet. The team wants the storage account to have a private IP in that VNet and wants to disable public network access. Which solution should the administrator implement?

A.Configure a service endpoint on the subnet and keep public network access enabled.
B.Create a private endpoint for the storage account and disable public network access.
C.Assign a shared access signature and rely on IP-based firewall rules.
D.Use a route table to force traffic to the storage account over the virtual network gateway.
AnswerB

A private endpoint places a private IP address in the VNet for the storage service, allowing traffic to stay on the private network path. Disabling public network access ensures the service cannot be reached through its public endpoint.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, making it accessible only within that VNet over a private connection. Disabling public network access ensures no traffic can reach the storage account from the internet, meeting both requirements. This is the only option that provides a private IP and blocks all public access.

Exam trap

The trap here is that candidates often confuse service endpoints with private endpoints, assuming a service endpoint provides a private IP, when in fact it only provides a public endpoint with a VNet source identity.

Why the other options are wrong

A

A service endpoint does not assign a private IP to the storage account; it only provides direct connectivity from the subnet to the service over the Azure backbone. Public network access must be disabled to meet the requirement, but service endpoints do not disable public access.

C

A shared access signature (SAS) provides time-limited access but does not disable public network access or assign a private IP. IP-based firewall rules still expose the storage account to the internet, failing the requirement for private IP and disabled public access.

D

A route table forces traffic through a gateway but does not provide a private IP for the storage account within the VNet, nor does it disable public network access. It also cannot enforce that the storage account is reachable only from that VNet.

110
MCQmedium

A hub VNet is peered to two spoke VNets. The spokes can reach the hub, but they cannot communicate with each other through the hub. The administrator wants centralized inspection in the hub. What should be deployed and configured?

A.An Azure Firewall or other NVA in the hub, plus user-defined routes and forwarding support.
B.Only additional peering links between the hub and both spokes.
C.A private endpoint in the hub for each spoke subnet.
D.A service endpoint on each spoke subnet to the hub VNet.
AnswerA

VNet peering is non-transitive, so for spoke VNets to communicate through the hub, you must insert a routing element. Deploying Azure Firewall (or an NVA with IP forwarding enabled) in the hub, then configuring user-defined routes (UDRs) on each spoke subnet with the firewall/NVA's private IP as the next hop, forces spoke-to-spoke traffic to transit the hub. The NVA must also have IP forwarding enabled and be able to route between the spoke address spaces; Azure Firewall does this natively. This setup provides the centralized inspection and connectivity the scenario requires.

Why this answer

Azure Firewall or an NVA in the hub can inspect traffic between spokes, but by default, Azure routing does not forward spoke-to-spoke traffic through the hub. To force this traffic through the firewall, you must configure user-defined routes (UDRs) on the spoke subnets with a next hop of the firewall's private IP, and enable IP forwarding on the NVA. This setup enables centralized inspection and transitive routing through the hub.

Exam trap

The trap here is that candidates assume VNet peering is transitive by default, similar to a router, but Azure explicitly requires UDRs and a forwarding device to enable spoke-to-spoke communication through a hub.

Why the other options are wrong

B

Additional peering links between the hub and both spokes do not enable spoke-to-spoke communication through the hub; they only create direct peering, which still requires routing configuration (like UDRs) to forward traffic through the hub for centralized inspection.

C

A private endpoint in the hub allows private connectivity to a specific Azure service (e.g., Azure SQL) from the spokes, but it does not enable inter-spoke routing or centralized inspection of traffic between spokes.

D

Service endpoints allow private access from a VNet to Azure PaaS services, not routing traffic between VNets. They do not enable spoke-to-spoke communication through the hub.

111
MCQmedium

A private endpoint was created for Azure SQL Database in VNet A. A VM in peered VNet B can reach other resources, but it resolves the SQL server name to the public IP and connection attempts fail because public network access is disabled. What is the best fix?

A.Add an outbound NSG rule allowing TCP 1433 to the internet.
B.Link the appropriate private DNS zone to VNet B.
C.Assign a public IP address to the private endpoint.
D.Replace the private endpoint with a service endpoint.
AnswerB

Clients in VNet B must resolve the SQL server name to the private endpoint address. Linking the private DNS zone to VNet B allows the VM to receive the correct private IP mapping through DNS.

Why this answer

When public network access is disabled on an Azure SQL Database, the private endpoint in VNet A provides a private IP address for the SQL server. However, for VMs in peered VNet B to resolve the SQL server's fully qualified domain name (FQDN) to that private IP instead of the public IP, the private DNS zone (typically `privatelink.database.windows.net`) must be linked to VNet B. Without this link, DNS resolution falls back to the public IP, causing connection failures because public access is disabled.

Exam trap

The trap here is that candidates assume DNS resolution works automatically across peered VNets, but private DNS zones are not transitive and must be explicitly linked to each peered VNet for private IP resolution to succeed.

Why the other options are wrong

A

The issue is DNS resolution, not outbound connectivity. Adding an outbound NSG rule for TCP 1433 to the internet does not change the DNS resolution of the SQL server name from public IP to private IP, so the connection will still fail because public network access is disabled.

C

Assigning a public IP to a private endpoint is not supported; private endpoints use private IPs from the VNet. It would not resolve the DNS resolution issue in peered VNet B.

112
MCQhard

You create a private endpoint for an Azure Storage account and disable public network access on the account. A VM in a peered VNet cannot reach the storage account by name. The private endpoint resides in VNet-App. What is the most likely missing configuration?

A.A private DNS zone linked so the relevant VNet can resolve the storage account to the private endpoint IP
B.An NSG rule allowing outbound DNS to 8.8.8.8
C.A Recovery Services vault in the peered VNet
D.A public IP address on the private endpoint NIC
AnswerA

A private endpoint allocates a private IP from the VNet subnet, but the storage account's public FQDN still resolves to its public IP unless you override resolution. Linking a private DNS zone (e.g., privatelink.blob.core.windows.net) to the VNet and creating an A record for the endpoint makes the storage account name resolve to the private IP. This DNS integration is the essential companion to the private endpoint, and without it clients in the VNet would keep bypassing the endpoint.

Why this answer

When you create a private endpoint for an Azure Storage account and disable public network access, the storage account's public DNS name must resolve to the private endpoint's private IP address within the VNet. This requires a private DNS zone (privatelink.blob.core.windows.net) linked to the VNet where the VM resides. Without that DNS zone link, the VM in the peered VNet will resolve the storage account name to the public IP, which is unreachable because public access is disabled, causing the connection failure.

Exam trap

The trap here is that candidates assume VNet peering automatically extends DNS resolution for private endpoints, but Azure requires explicit private DNS zone links to each VNet that needs to resolve the private endpoint name.

Why the other options are wrong

B

The issue is DNS resolution, not outbound internet DNS. The VM cannot resolve the storage account name because the private endpoint's private DNS zone is not linked to the peered VNet. An NSG rule allowing outbound DNS to 8.8.8.8 would not help because the VM uses Azure DNS (168.63.129.16) for name resolution, and the private endpoint requires a custom DNS zone.

C

A Recovery Services vault is used for backup and disaster recovery, not for network connectivity or DNS resolution. It does not enable a VM in a peered VNet to resolve a storage account's private endpoint.

D

A private endpoint NIC does not require a public IP address; it uses a private IP from the VNet. Adding a public IP would not resolve the name resolution issue, as the problem is DNS resolution, not public connectivity.

113
MCQmedium

A team is creating a new spoke VNet that will later be peered to an existing hub VNet and connected to on-premises networks. The proposed address space for the spoke is 10.60.1.0/24. The hub already uses 10.60.0.0/16. What should the administrator do before deploying the spoke?

A.Use the proposed address space because the spoke subnet is smaller than the hub address space.
B.Choose a non-overlapping address space for the spoke, such as 10.61.1.0/24.
C.Create a private endpoint in the spoke to separate its routing table from the hub.
D.Enable gateway transit on the hub peering before creating the spoke.
AnswerB

VNet peering requires non-overlapping address spaces. Because 10.60.1.0/24 is contained inside the hub's 10.60.0.0/16 range, the spoke cannot be safely peered as proposed. The correct fix is to pick a different CIDR block that does not overlap with the hub or any other connected network, such as 10.61.1.0/24.

Why this answer

VNet address spaces must not overlap when peered or connected via VPN/ExpressRoute. The proposed spoke address 10.60.1.0/24 falls within the hub's 10.60.0.0/16 range, creating an overlap that would prevent successful peering and routing. A non-overlapping address space like 10.61.1.0/24 ensures unique IP ranges, allowing proper route propagation and connectivity.

Exam trap

The trap here is that candidates mistakenly think a smaller subnet within a larger address space is acceptable for VNet peering, but Azure requires completely non-overlapping address spaces to avoid routing ambiguity.

Why the other options are wrong

A

The proposed spoke address space 10.60.1.0/24 overlaps with the hub's 10.60.0.0/16, causing IP conflicts when peered. Azure requires non-overlapping VNet address spaces for peering.

C

Creating a private endpoint does not separate routing tables; it provides private connectivity to Azure PaaS services. The issue here is overlapping IP address spaces between hub and spoke, which would prevent VNet peering, not routing separation.

D

Gateway transit is configured on the hub peering to allow the spoke to use the hub's VPN gateway for on-premises connectivity, but it is not a prerequisite for creating the spoke VNet. The spoke must be created first, then peered, and gateway transit can be enabled afterward.

114
MCQeasy

Based on the exhibit, the administrator cannot create VNet peering between the hub and spoke networks. What should be changed?

A.Change the hub VNet to use a smaller subnet mask.
B.Change the spoke VNet address space so it does not overlap the hub.
C.Add a route table to the spoke VNet before creating peering.
D.Enable a service endpoint on both VNets.
AnswerB

This is the correct fix because Azure VNet peering requires non-overlapping IP ranges. The exhibit shows the spoke range sits inside the hub range, which causes the peering attempt to fail. Readdressing the spoke to a unique CIDR block resolves the conflict and allows the peering to be created.

Why this answer

VNet peering requires that the address spaces of the peered VNets do not overlap. Overlapping address spaces cause routing conflicts because Azure cannot distinguish between resources in the hub and spoke when IP addresses are identical or within the same CIDR range. Changing the spoke VNet address space to a non-overlapping range resolves this issue and allows peering to be established.

Exam trap

The trap here is that candidates often confuse VNet peering prerequisites with routing or security features, mistakenly thinking route tables or service endpoints are required, when the core requirement is non-overlapping address spaces.

Why the other options are wrong

A

VNet peering fails due to overlapping address spaces, not subnet mask size. Changing the subnet mask does not resolve address space overlap.

C

VNet peering does not require route tables; overlapping address spaces are the issue here, not routing.

D

Enabling a service endpoint does not resolve VNet peering failures caused by overlapping address spaces; service endpoints are used for secure access to Azure services, not for VNet connectivity.

115
MCQmedium

Frontend VMs in one subnet must reach backend VMs on TCP 8443. The backend VMs are rebuilt frequently, so their private IP addresses change often. The administrator wants to avoid updating NSG rules every time the backend IPs change. What should be used in the NSG rule?

A.Application Security Groups for the frontend and backend tiers.
B.A service endpoint on the backend subnet.
C.A route table with a next hop of Virtual network gateway.
D.A private endpoint for each backend VM.
AnswerA

Application Security Groups let you reference groups of VMs in NSG rules instead of individual IP addresses. That is ideal when backend IPs change often because the rule continues to target the backend application tier rather than a specific address. The administrator can place the frontend VMs in one ASG and the backend VMs in another, then allow TCP 8443 between those groups without constantly editing the NSG.

Why this answer

Application Security Groups (ASGs) allow you to group VMs logically by function (e.g., frontend, backend) and reference those groups in NSG rules. Since the backend VMs are rebuilt frequently and their private IPs change, using ASGs in the NSG rule (source = frontend ASG, destination = backend ASG, port = 8443) eliminates the need to update IP addresses manually. The NSG rule remains valid as long as the VMs are assigned to the correct ASG, regardless of IP changes.

Exam trap

The trap here is that candidates often confuse Application Security Groups with Network Security Groups themselves, or think that service endpoints or private endpoints are designed for VM-to-VM communication, when in fact they are for securing access to Azure PaaS services.

Why the other options are wrong

B

A service endpoint secures Azure service traffic (e.g., to Azure Storage) to a subnet, not TCP traffic between VMs. It does not allow dynamic IP-based rules for backend VMs.

C

Route tables control traffic routing, not security filtering. A route table with a next hop of Virtual network gateway would redirect traffic to a VPN gateway, which does not solve the need to allow TCP 8443 traffic to dynamically changing backend IPs without updating NSG rules.

D

Private endpoints are used to securely access Azure PaaS services over a private IP address, not to allow VMs in one subnet to communicate with VMs in another subnet within the same VNet. They do not solve the problem of dynamic private IP addresses for backend VMs.

116
MCQmedium

Based on the exhibit, which address space can you assign to the new spoke virtual network so it can be peered to the hub and later connected to on-premises without an IP overlap?

A.10.50.128.0/17
B.10.51.0.0/16
C.10.52.0.0/16
D.10.50.0.0/24
AnswerC

10.52.0.0/16 is the only proposed range that is disjoint from both the existing hub VNet (10.50.0.0/16) and the on-premises address space (10.51.0.0/16). Because Azure VNet peering and hybrid VPN/ExpressRoute connections require non-overlapping address spaces, assigning this range to the new spoke VNet is safe and will allow route exchange without ambiguity. It also leaves ample room for subnet segmentation and future growth.

Why this answer

(10.52.0.0/16) is correct because it does not overlap with the hub virtual network's address space (10.50.0.0/16) or the on-premises network (10.51.0.0/16). This allows the spoke VNet to be peered to the hub and later connected to on-premises via a gateway in the hub without IP address conflicts, which is a requirement for successful VNet peering and VPN/ExpressRoute connectivity.

Exam trap

The trap here is that candidates often assume any address outside the hub's exact /16 is safe, forgetting to check the on-premises range (10.51.0.0/16), leading them to pick option B, which overlaps with on-premises and would break hybrid connectivity.

Why the other options are wrong

A

Option A (10.50.128.0/17) overlaps with the hub's address space 10.50.0.0/16, which would prevent successful peering and cause IP conflicts with on-premises connections.

B

Option B (10.51.0.0/16) overlaps with the hub's address space 10.51.0.0/16 shown in the exhibit, preventing successful peering and connection to on-premises without IP overlap.

D

Option D (10.50.0.0/24) is a subset of the hub's address space 10.50.0.0/16, which would cause an IP overlap when peering, violating the requirement for no overlap.

117
MCQmedium

Administrators need to connect to Windows and Linux VMs from the Azure portal using a browser. The VMs do not have public IP addresses, and the security team does not want a VPN client installed on admin laptops. Which service should be deployed?

A.Azure VPN Gateway
C.A network security group with RDP and SSH rules
D.Azure Bastion
AnswerD

Azure Bastion provides secure browser-based RDP and SSH to VMs that have no public IP addresses. It keeps management traffic inside Azure and avoids exposing administrative ports to the internet or requiring a client VPN on the administrator's device.

Why this answer

Azure Bastion provides secure, seamless RDP and SSH connectivity to Azure VMs directly from the Azure portal over TLS, without requiring public IP addresses on the VMs or a VPN client on the admin's laptop. It uses a hardened bastion host deployed in the same virtual network, acting as a jump server that brokers browser-based connections, meeting both the security and connectivity requirements.

Exam trap

The trap here is that candidates often confuse Azure Bastion with a VPN gateway or assume that an NSG with RDP/SSH rules alone is sufficient for secure browser-based access, overlooking the requirement for no public IPs and no client software.

Why the other options are wrong

A

Azure VPN Gateway requires a VPN client installed on admin laptops to establish a site-to-site or point-to-site connection, which conflicts with the security team's requirement of no VPN client installation.

B

Azure Load Balancer distributes traffic to VMs but does not provide inbound RDP/SSH connectivity without public IPs or a jump box; it operates at the transport layer and cannot replace a secure bastion host for browser-based access.

C

A network security group (NSG) with RDP and SSH rules controls inbound traffic at the subnet or NIC level, but it does not provide browser-based connectivity without public IPs or a VPN. The VMs lack public IPs, so NSG rules alone cannot enable access from the Azure portal.

118
Multi-Selecthard

A company wants encrypted connectivity between its on-premises network and an Azure VNet. The organization has one edge VPN device at headquarters, and the Azure design must support a classic site-to-site tunnel rather than individual user VPN connections. Which three prerequisites are required? Select three.

Select 3 answers
A.Deploy a virtual network gateway in a dedicated GatewaySubnet.
B.Assign a public IP address to the Azure VPN gateway.
C.Configure the on-premises VPN device with a public IP and supported IKE/IPsec settings.
D.Create a private endpoint for the headquarters network.
E.Enable Microsoft peering on the virtual network gateway.
AnswersA, B, C

Azure VPN gateways must be deployed into the special GatewaySubnet within the VNet.

Why this answer

A virtual network gateway must be deployed in a dedicated subnet called GatewaySubnet to host the VPN gateway resources. This subnet is required for the gateway to function and must be named exactly 'GatewaySubnet' to be recognized by Azure when creating a site-to-site VPN connection.

Exam trap

The trap here is that candidates may confuse private endpoints (used for PaaS services) or ExpressRoute peering with the prerequisites for a classic site-to-site VPN, which strictly requires a GatewaySubnet, a public IP on the gateway, and a compatible on-premises VPN device.

Why the other options are wrong

D

Private endpoints are used for secure access to Azure PaaS services (e.g., Storage, SQL) over a private IP within a VNet, not for establishing site-to-site VPN connectivity between on-premises and Azure.

E

Microsoft peering is used for ExpressRoute, not site-to-site VPN. A classic site-to-site tunnel requires a VPN gateway with a public IP and IKE/IPsec settings, not peering.

119
MCQmedium

A company wants to peer a new spoke virtual network with an existing hub VNet. The hub uses 10.20.0.0/16. The spoke was created with 10.20.1.0/24 because that range was still available in the IPAM spreadsheet. VNet peering creation fails. What should the administrator do first?

A.Enable gateway transit on the hub and retry the peering.
B.Add a route table to the spoke subnet so the networks can communicate.
C.Change the spoke VNet address space to a non-overlapping range, then recreate or update peering.
D.Configure a custom DNS server in the spoke to translate the overlapping range.
AnswerC

VNet peering requires the two virtual networks to have non-overlapping IP address spaces. Because the hub already uses 10.20.0.0/16, the spoke cannot use 10.20.1.0/24. The administrator must renumber the spoke to a different range, such as 10.21.0.0/16 or another approved block, before peering can succeed.

Why this answer

VNet peering in Azure requires that the address spaces of the peered virtual networks do not overlap. The hub uses 10.20.0.0/16, and the spoke uses 10.20.1.0/24, which is a subset of the hub's range. This overlap causes the peering creation to fail.

The administrator must first change the spoke's address space to a non-overlapping range (e.g., 10.21.0.0/24) and then recreate or update the peering.

Exam trap

The trap here is that candidates may think overlapping address spaces can be resolved by routing or DNS changes, but Azure explicitly prohibits peering with overlapping ranges, and no configuration workaround exists—the address space must be changed.

Why the other options are wrong

A

The peering fails because the spoke VNet (10.20.1.0/24) overlaps with the hub VNet (10.20.0.0/16). Enabling gateway transit does not resolve address space overlap; it only allows the spoke to use the hub's VPN gateway for connectivity to on-premises networks.

B

Adding a route table to the spoke subnet does not resolve the address overlap issue. VNet peering requires non-overlapping address spaces; routing cannot fix overlapping IP ranges.

D

The peering failure is due to overlapping address spaces (10.20.0.0/16 hub vs 10.20.1.0/24 spoke), not DNS resolution. Configuring a custom DNS server does not resolve the IP address overlap, which prevents peering from being established.

120
MCQmedium

A VM in a subnet has both a subnet-level NSG and a NIC-level NSG. The subnet NSG allows inbound TCP 22 from the VirtualNetwork service tag, but the NIC NSG denies inbound TCP 22 from the same source. An administrator says the subnet rule should be enough because it allows the traffic. What is the actual behavior?

A.The allow rule wins because subnet NSGs always override NIC NSGs.
B.The traffic is blocked because a deny in either NSG is effective.
C.The traffic is allowed because service tags bypass NIC-level rules.
D.The connection succeeds unless a route table sends the traffic elsewhere.
AnswerB

Azure treats subnet and NIC NSGs as independent security layers that both apply to the packet. For a connection to succeed, traffic must be permitted by the effective rules of BOTH the subnet NSG and the NIC NSG. If either NSG contains a matching deny rule, that packet is immediately discarded — a later allow rule in the other NSG has no chance to override it. This is true regardless of whether the deny comes from the subnet layer or the NIC layer.

Why this answer

When both a subnet-level NSG and a NIC-level NSG are applied to a virtual machine, network traffic is evaluated against both NSGs. The effective rule is the most restrictive: if either NSG contains a deny rule that matches the traffic, the traffic is blocked. In this scenario, the NIC-level NSG explicitly denies inbound TCP 22 from the VirtualNetwork service tag, so even though the subnet NSG allows it, the deny at the NIC level takes precedence and the traffic is blocked.

Exam trap

The trap here is that candidates often assume subnet-level NSGs take precedence over NIC-level NSGs, but Azure actually applies both and the most restrictive rule (any deny) wins, making it critical to check both NSGs for conflicting rules.

Why the other options are wrong

A

In Azure, NSG rules are evaluated in order of priority, and a deny rule in either the subnet or NIC NSG will block traffic, regardless of an allow rule in the other NSG. Subnet NSGs do not override NIC NSGs; both are evaluated, and the most restrictive rule applies.

C

Service tags do not bypass NSG rules; NSGs are evaluated in order of priority, and a deny rule in the NIC NSG will block traffic regardless of the subnet NSG allow rule.

D

In Azure, NSG rules are evaluated in order of priority, and a deny rule in either the subnet or NIC NSG will block traffic. Route tables do not affect NSG rule evaluation; they only influence traffic routing.

121
MCQmedium

Based on the exhibit, what should the administrator do so VM-B resolves the storage account name to the private IP address?

A.Create a service endpoint on VNet-B and leave DNS unchanged.
B.Link the private DNS zone to VNet-B.
C.Assign a public IP address to the private endpoint.
D.Add a route table with a next hop to the storage account.
AnswerB

The DNS zone link lets workloads in VNet-B resolve the storage name to the private endpoint address.

Why this answer

The private DNS zone for the storage account must be linked to VNet-B so that VM-B can resolve the storage account's fully qualified domain name (FQDN) to the private IP address of the private endpoint. Without this link, the DNS resolution will fall back to the public endpoint, bypassing the private connectivity. Linking the zone ensures Azure's default DNS servers return the private IP for the storage account within VNet-B.

Exam trap

The trap here is that candidates often confuse network-level controls (like service endpoints or route tables) with DNS resolution, assuming that private connectivity alone will automatically change name resolution without explicitly linking the private DNS zone.

Why the other options are wrong

A

Creating a service endpoint on VNet-B does not enable private DNS resolution for the storage account; it only allows traffic to the storage account's public endpoint via the Azure backbone network. The question requires resolving the storage account name to a private IP address, which requires linking the private DNS zone to VNet-B.

C

Assigning a public IP to the private endpoint does not affect DNS resolution for the storage account; it only exposes the endpoint to the internet, which defeats the purpose of private connectivity and does not make VM-B resolve the name to the private IP.

D

Adding a route table with a next hop to the storage account does not affect DNS resolution; it only controls network traffic routing. The issue is that VM-B cannot resolve the storage account name to the private IP address, which requires DNS configuration, not routing.

122
MCQmedium

A subnet uses a route table with gateway route propagation disabled so internet-bound traffic can be forced through a network virtual appliance. After the change, VMs in the subnet can no longer reach servers in the on-premises network 172.16.0.0/16 over the VPN gateway. What should the administrator add to the route table?

A.A user-defined route for 172.16.0.0/16 with next hop type Virtual network gateway.
B.A user-defined route for 172.16.0.0/16 with next hop type Internet.
C.An NSG allow rule for TCP 172.16.0.0/16.
D.A service endpoint for the on-premises network range.
AnswerA

When gateway route propagation is disabled, the subnet no longer learns on-premises routes automatically from the VPN gateway. Adding a specific route for the on-premises prefix with next hop Virtual network gateway restores reachability to that network while keeping the forced-tunneling design for other traffic.

Why this answer

When gateway route propagation is disabled on a route table, the subnet no longer receives the default system routes that include the VPN gateway route for on-premises networks. To restore connectivity to 172.16.0.0/16, you must add a user-defined route (UDR) with next hop type 'Virtual network gateway', which explicitly directs traffic for that prefix through the VPN gateway. This overrides the missing propagated route and forces the traffic to the on-premises network correctly.

Exam trap

The trap here is that candidates confuse routing (UDR) with filtering (NSG) or connectivity methods (service endpoints), assuming an NSG rule or service endpoint can fix a routing issue, when only a user-defined route with the correct next hop type can restore traffic flow to the on-premises network.

Why the other options are wrong

B

The next hop type 'Internet' would route traffic destined for 172.16.0.0/16 to the internet, not to the on-premises network via the VPN gateway, breaking connectivity.

C

An NSG rule controls traffic at the network interface or subnet level based on ports and protocols, but it cannot route traffic to a VPN gateway. The issue is a missing route for 172.16.0.0/16, not a firewall rule.

D

Service endpoints are used to secure Azure service access to specific virtual networks, not to route traffic to on-premises networks. They do not affect routing to on-premises destinations like 172.16.0.0/16.

123
MCQmedium

A subnet has a NAT gateway attached, but outbound internet traffic from the VMs is still leaving through a network virtual appliance. The subnet's route table includes a user-defined route for 0.0.0.0/0 with the next hop set to Virtual appliance. The business wants internet traffic to use the NAT gateway while keeping any required specific routes to on-premises networks. What should the administrator do?

A.Keep the default route and add a second NAT gateway to the subnet.
B.Remove the 0.0.0.0/0 user-defined route and keep only specific routes for private prefixes.
C.Disable network security groups on the subnet so the NAT gateway becomes active.
D.Set gateway route propagation to Disabled so the NAT gateway is preferred.
AnswerB

A subnet-level 0.0.0.0/0 UDR to a virtual appliance overrides the system route that would otherwise let the NAT gateway handle internet-bound traffic. Removing that default route restores normal outbound internet handling through the NAT gateway, while more specific routes for on-premises or private destinations can remain in place. This preserves both functionality and control.

Why this answer

The user-defined route (UDR) for 0.0.0.0/0 with next hop Virtual appliance is overriding the NAT gateway's default route. NAT gateways require a default route (0.0.0.0/0) with next hop 'Internet' to direct outbound traffic through them. By removing the conflicting UDR and keeping only specific routes for on-premises prefixes, the subnet will use the NAT gateway for internet traffic while maintaining connectivity to on-premises networks via the remaining UDRs.

Exam trap

The trap here is that candidates mistakenly think NAT gateways can coexist with a default UDR to a virtual appliance, or that disabling gateway propagation or adding more NAT gateways will override the UDR, when in fact the UDR's higher priority always wins for the 0.0.0.0/0 prefix.

Why the other options are wrong

A

Adding a second NAT gateway does not resolve the conflict; the 0.0.0.0/0 user-defined route with next hop Virtual appliance still overrides the NAT gateway for outbound internet traffic, because UDRs have higher priority than the default route to the NAT gateway.

C

Disabling NSGs does not affect route selection; the NAT gateway is not used because the user-defined route for 0.0.0.0/0 with next hop Virtual appliance overrides the default route to the NAT gateway.

D

Disabling gateway route propagation does not affect the priority of a NAT gateway over a user-defined route (UDR). The 0.0.0.0/0 UDR with next hop Virtual Appliance still has higher priority than the NAT gateway's default route, so traffic continues to use the NVA.

124
MCQmedium

A subnet has a route table with a 0.0.0.0/0 user-defined route to an on-premises virtual appliance. The business now wants Azure VM outbound internet traffic to use a NAT gateway so the public source IP stays consistent, and the firewall appliance is no longer required for internet egress. What should the administrator do?

A.Keep the default route to the virtual appliance and add the NAT gateway to the subnet.
B.Remove the 0.0.0.0/0 UDR and associate the NAT gateway with the subnet.
C.Change the route next hop to Virtual network gateway.
D.Create an NSG outbound rule that allows internet traffic from the subnet.
AnswerB

NAT gateway is used for outbound internet traffic when the subnet does not already force that traffic elsewhere. Because the 0.0.0.0/0 UDR sends all internet-bound packets to the virtual appliance, NAT gateway cannot provide the source IP. Removing the UDR allows the subnet to use the NAT gateway for outbound connectivity as intended.

Why this answer

Removing the 0.0.0.0/0 user-defined route (UDR) that points to the on-premises virtual appliance and associating a NAT gateway with the subnet ensures that all outbound internet traffic from Azure VMs uses the NAT gateway's public IP address. The NAT gateway automatically creates a default route (0.0.0.0/0) with a next hop type of 'Internet' for the subnet, overriding any conflicting UDRs. This provides a consistent source IP for internet egress without requiring the firewall appliance.

Exam trap

The trap here is that candidates may think a NAT gateway can coexist with a conflicting UDR (Option A) or that changing the next hop to a virtual network gateway (Option C) will provide internet egress, when in fact the UDR must be removed to allow the NAT gateway's default route to take effect.

Why the other options are wrong

A

Keeping the 0.0.0.0/0 UDR to the virtual appliance forces internet traffic through the appliance, bypassing the NAT gateway. The NAT gateway requires the subnet's default route to be 0.0.0.0/0 with next hop 'Internet' to handle outbound traffic directly.

C

Changing the route next hop to Virtual network gateway would route traffic to a VPN gateway or ExpressRoute gateway, which does not provide NAT gateway functionality for consistent public IP. The NAT gateway must be associated with the subnet, and the UDR to the appliance must be removed to allow direct internet egress.

D

An NSG outbound rule allows traffic but does not provide a consistent public source IP; NAT gateway is required for that. The NSG cannot replace the route table change needed to bypass the virtual appliance.

125
MCQmedium

A storage account has public network access disabled. An app in a VNet must read and write blobs privately, and the team wants the blob endpoint name to resolve to a private IP without exposing the service publicly. What should the administrator configure?

A.A service endpoint on the subnet and a storage firewall allow rule.
B.A public IP address for the app and allow access from that IP in the storage firewall.
C.An NSG rule that allows outbound TCP 443 from the app subnet to storage.
D.A private endpoint for the storage account and a private DNS zone for blob name resolution.
AnswerD

A private endpoint assigns the storage account a private IP address from your VNet (via a network interface in the app subnet), so all traffic to the blob service stays within the Microsoft backbone. The private DNS zone for blob name resolution is essential because it overrides the default public CNAME record for the storage account, causing `mystorageaccount.blob.core.windows.net` to resolve to that private IP instead of the public endpoint. This combination meets both requirements: private connectivity and name resolution, even when public network access is disabled.

Why this answer

A private endpoint assigns the storage account a private IP from the VNet, ensuring all traffic to the blob endpoint stays within Microsoft's backbone. A private DNS zone (e.g., `privatelink.blob.core.windows.net`) is required so that the blob endpoint name resolves to that private IP instead of the public IP, meeting the requirement for private name resolution without any public exposure.

Exam trap

The trap here is that candidates confuse service endpoints (which only provide source IP preservation and firewall rules) with private endpoints (which provide a true private IP and private DNS resolution), leading them to pick Option A thinking it achieves private connectivity when it does not change the public DNS resolution.

Why the other options are wrong

A

Service endpoints do not provide private IP resolution; the blob endpoint still resolves to a public IP, and public network access is disabled, so the firewall allow rule would be ineffective.

B

This option exposes the storage account to the public internet by allowing access from a specific public IP, which contradicts the requirement to keep the service non-public and resolve the blob endpoint to a private IP.

C

An NSG rule controls traffic at the network layer but does not provide private connectivity or DNS resolution to a private IP for the blob endpoint. The question requires the blob endpoint to resolve to a private IP, which NSGs cannot achieve.

126
MCQhard

Based on the exhibit, what should the administrator configure so the VM in the spoke VNet can resolve internal hostnames that are hosted on the DNS server in the hub VNet? The team has already verified that IP connectivity between the spoke VM and the hub VM works.

A.Set the SpokeVNet DNS server list to use 10.40.0.4 so the spoke queries the hub resolver directly.
B.Create a private endpoint for web01.corp.contoso.local in the spoke VNet so DNS resolves automatically.
C.Enable gateway transit on the peering so the spoke inherits the hub VNet DNS configuration.
D.Add inbound and outbound NSG rules allowing UDP and TCP port 53 between the two VNets.
AnswerA

The spoke already has network connectivity to the hub, so the remaining problem is name resolution. Azure VNet peering does not copy DNS settings from one VNet to another. By configuring the spoke to use the hub DNS server, queries for the internal zone are sent to the resolver that actually hosts or forwards that namespace.

Why this answer

Setting the SpokeVNet DNS server list to 10.40.0.4 (the IP of the DNS server in the hub VNet) configures the spoke VNet to forward all DNS queries to that custom DNS server. Since IP connectivity between the VNets is already verified, the spoke VM can resolve internal hostnames hosted on the hub DNS server. This is the standard method for cross-VNet DNS resolution when using a custom DNS server in a hub-and-spoke topology.

Exam trap

The trap here is that candidates often confuse VNet peering's gateway transit feature with DNS settings inheritance, but gateway transit only applies to network gateway routes, not DNS server configuration.

Why the other options are wrong

B

A private endpoint resolves DNS for a specific Azure service (e.g., Storage, SQL) within a VNet, not for custom internal hostnames like web01.corp.contoso.local hosted on a VM DNS server.

C

Gateway transit is used to route traffic through a VPN gateway or ExpressRoute gateway in the hub to on-premises or other networks, not to propagate DNS server settings across a peering. DNS server configuration is a VNet property, not inherited via peering.

D

The question states IP connectivity already works, so NSG rules for port 53 are unnecessary. The issue is DNS resolution configuration, not network security.

127
MCQhard

After a user-defined route and VNet peering were added, a VM in a spoke subnet still does not reach 10.20.4.8 as expected. You need to confirm which route Azure will actually select on that VM's NIC, including any propagated routes and the route that wins. Which Network Watcher tool should you use?

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

Effective routes is the correct tool because it displays the complete route table that the network interface actually uses, combining system routes, user-defined routes, and VNet peering routes. After adding a user-defined route or a VNet peering, the blade shows the next hop type and next hop IP address for each destination prefix, including any 0.0.0.0/0 override. This lets you confirm exactly which route the VM will use for a given destination, based on longest prefix match and route priority.

Why this answer

Effective routes displays the actual routes applied to a network interface, including user-defined routes (UDRs), BGP-propagated routes, and VNet peering routes, along with the route priority (based on the longest prefix match and route source precedence). This allows you to see exactly which route wins for the destination 10.20.4.8, resolving why the VM cannot reach it despite the configured UDR and peering.

Exam trap

The trap here is that candidates confuse 'IP flow verify' (which checks NSG rules) with route verification, but IP flow verify does not show the routing table or the winning route for a destination IP.

Why the other options are wrong

A

Connection troubleshoot tests end-to-end connectivity between a source and destination, but it does not show the effective route table applied to a specific NIC. The question asks to confirm which route Azure will select, which requires viewing the effective routes, not testing connectivity.

C

IP flow verify tests connectivity by checking if traffic is allowed or denied by security rules, but it does not show the actual route selected from multiple possible routes, including propagated routes. The question asks for confirming which route wins, which requires effective routes.

D

Packet capture captures raw network traffic but does not analyze routing tables or show which route is selected for a specific destination. It cannot confirm the effective route on a VM's NIC.

128
MCQmedium

You need to connect VNet-Hub and VNet-Spoke so that resources in both virtual networks can communicate privately over the Microsoft backbone. Both virtual networks are in the same region. What should you configure?

A.Virtual network peering
B.A site-to-site VPN
C.A network security group
D.An Azure Policy assignment
AnswerA

VNet peering is the correct solution for private, low-latency communication between Azure VNets.

Why this answer

Virtual network peering (A) is the correct solution because it enables direct, private connectivity between two virtual networks over the Microsoft backbone infrastructure. Since both VNets are in the same region, you can use standard VNet peering, which routes traffic between the peered networks using only private IP addresses, with no internet transit or gateway required. This meets the requirement for private communication without any additional VPN or gateway overhead.

Exam trap

Microsoft often tests the misconception that a site-to-site VPN is required for private connectivity between VNets, but VNet peering is the native, simpler solution for same-region private communication over the Microsoft backbone.

Why the other options are wrong

B

A site-to-site VPN connects on-premises networks to Azure via the internet, not for private VNet-to-VNet communication within the same region over the Microsoft backbone.

C

A network security group (NSG) filters traffic at the subnet or NIC level but does not establish connectivity between virtual networks; it cannot enable private communication across VNets.

D

Azure Policy assignment is used to enforce compliance rules across resources, not to establish network connectivity. It cannot enable private communication between virtual networks.

129
MCQmedium

Based on the exhibit, why is TCP 8443 traffic from the web tier still denied to the app tier, and what should you do to allow only the web tier?

A.Change the deny-all rule at priority 200 to allow TCP 8443 from ASG-Web.
B.Add an inbound allow rule for TCP 8443 from ASG-Web to ASG-App with a priority lower than 100.
C.Add a route table entry for 8443 traffic from the web tier to the app tier.
D.Remove the AzureLoadBalancer rule because it is overriding the web tier traffic.
AnswerB

An allow rule must be evaluated before the existing deny rule, and using ASGs limits access to the web tier.

Why this answer

In Azure Network Security Groups (NSGs), rules are evaluated in priority order, with lower numbers evaluated first. The existing rule at priority 100 allows traffic from the web tier but does not explicitly allow TCP 8443, so a subsequent deny-all rule at priority 200 blocks it. To allow only the web tier, you must add an inbound allow rule for TCP 8443 from ASG-Web with a priority lower than 100 (e.g., 90).

This new rule is evaluated before the existing rule at priority 100, permitting the desired traffic while still blocking other sources.

Exam trap

The trap here is that candidates often assume changing the deny-all rule is the simplest fix, but they overlook that it would open the port to all sources, not just the web tier, failing the specific requirement.

Why the other options are wrong

A

Changing the deny-all rule at priority 200 to allow TCP 8443 would allow traffic from all sources, not just the web tier, violating the requirement to restrict access to ASG-Web only.

C

Route tables control traffic routing between subnets, not firewall rules. The question involves Network Security Group (NSG) rules, which filter traffic at the subnet or NIC level; adding a route table entry does not affect NSG allow/deny decisions.

D

Removing the AzureLoadBalancer rule would not fix the issue because that rule is likely needed for Azure Load Balancer health probes, and it does not override web tier traffic; the deny-all rule at priority 200 is blocking the traffic.

130
MCQmedium

Based on the exhibit, which feature should be enabled on the subnet so the storage account remains reachable through its public endpoint but only from that subnet?

A.Private endpoint
B.Service endpoint
C.Azure Bastion
AnswerB

A service endpoint extends your VNet's identity and security rules to the Azure storage service over the Microsoft backbone, so the storage account can be locked down to accept traffic only from a specific subnet without assigning any private IP. The storage account still uses its public endpoint, but the Source IP is rewritten to the subnet's IP range, enabling firewall rules like "Allow from 10.0.1.0/24." This meets the exhibit's requirement to avoid a private IP while enforcing subnet-only access.

Why this answer

Service endpoints (B) extend the virtual network private address space and the identity of the VNet to Azure services over a direct connection. By enabling a Microsoft.Storage service endpoint on the subnet and configuring the storage account firewall to allow access only from that subnet's virtual network, the storage account remains reachable via its public endpoint but only from the specified subnet, without requiring a public IP on the subnet.

Exam trap

The trap here is that candidates often confuse private endpoints with service endpoints, mistakenly thinking a private endpoint is required for subnet-level access control, when in fact service endpoints achieve the same goal while preserving public endpoint accessibility.

Why the other options are wrong

A

Private endpoint assigns a private IP to the storage account, making it accessible only from the virtual network, not from its public endpoint. The question requires the storage account to remain reachable through its public endpoint, which private endpoint does not allow.

C

Azure Bastion provides secure RDP/SSH connectivity to virtual machines without exposing public IPs, but it does not control network access to storage accounts or restrict access to a subnet.

D

VPN Gateway is used for site-to-site or point-to-site encrypted connectivity over the internet, not for restricting access to a public endpoint from a specific subnet. It does not provide the subnet-level service endpoint policy needed to allow only that subnet to reach the storage account's public endpoint.

131
MCQeasy

Based on the exhibit, why is the administrator's HTTPS test still being denied, and what should be changed?

A.Increase the deny rule priority number from 200 to 300.
B.Move Allow-HTTPS-Admin to a priority lower than 200.
C.Change Allow-HTTPS-Admin to use protocol Any.
D.Assign a public IP address to the VM.
AnswerB

NSG rules are processed from the lowest priority number upward. Because the deny rule is evaluated first, the admin allow rule never gets a chance. Moving the allow rule ahead of the deny rule lets only the admin IP reach HTTPS while everyone else remains blocked.

Why this answer

The administrator's HTTPS test is denied because Azure Network Security Groups (NSGs) process rules in priority order, from lowest to highest numeric value. The deny rule at priority 200 is evaluated before the allow rule at priority 300, so the HTTPS traffic is blocked. To allow HTTPS traffic, the allow rule must have a lower priority number (e.g., 100) than the deny rule, ensuring it is evaluated first.

Option B correctly identifies that moving Allow-HTTPS-Admin to a priority lower than 200 (i.e., a smaller number) will allow the traffic before the deny rule is applied.

Exam trap

The trap here is that candidates often confuse priority numbers, thinking a higher number means higher priority, when in fact lower numbers are evaluated first; this leads them to incorrectly choose increasing the deny rule's priority or other irrelevant changes.

Why the other options are wrong

A

Increasing the deny rule priority from 200 to 300 makes it a lower priority (higher number), which does not resolve the issue because the deny rule still has a higher priority than the allow rule (which is at priority 100). The HTTPS test is denied because the deny rule at priority 200 is evaluated before the allow rule at priority 100.

C

The Allow-HTTPS-Admin rule already uses protocol TCP (HTTPS). Changing it to 'Any' would not resolve the issue because the deny rule with priority 200 is blocking traffic before the allow rule is evaluated. The problem is rule priority, not protocol.

D

Assigning a public IP address to the VM does not affect Azure Firewall rules; the HTTPS test is denied by a firewall rule with priority 200, and the VM's IP assignment does not bypass firewall policies.

132
MCQmedium

Based on the exhibit, which Azure service should you deploy to provide browser-based administrative access to the VM without assigning it a public IP address?

A.Azure Bastion
B.Azure VPN Gateway
C.Public IP address on the VM
AnswerA

Azure Bastion is a fully managed PaaS service deployed inside an Azure virtual network; it brokers RDP and SSH sessions from the Azure portal over TLS/443 to a VM using only its private IP address. Because the VM never receives a public IP and Bastion establishes the connection from its own subnet, the management ports stay hidden from the internet. It supports Microsoft Entra ID credential validation, clipboard file transfer, and can be secured with RBAC roles and NSGs on the Bastion subnet.

Why this answer

Azure Bastion provides secure, seamless RDP/SSH connectivity to virtual machines directly in the Azure portal over TLS, without requiring a public IP address on the VM. It uses a hardened bastion host in your virtual network that brokers the connection, eliminating exposure of the VM to the internet.

Exam trap

The trap here is that candidates often confuse Azure Bastion with a VPN Gateway, thinking both provide secure remote access, but Bastion is specifically for browser-based administrative sessions without a public IP, while VPN Gateway extends the network for full client-to-site or site-to-site connectivity.

Why the other options are wrong

B

Azure VPN Gateway provides site-to-site or point-to-site VPN connectivity, not browser-based RDP/SSH access to a VM without a public IP. It requires a public IP on the gateway and does not offer a native browser-based administrative interface.

C

Assigning a public IP address to the VM would expose it directly to the internet, which contradicts the requirement for browser-based administrative access without a public IP. Azure Bastion provides secure RDP/SSH access via the Azure portal without a public IP.

D

Azure Load Balancer distributes incoming network traffic across multiple VMs, but it does not provide browser-based administrative access (RDP/SSH) to a VM without a public IP. It requires backend VMs to have routeable IPs or be reachable via other means.

133
MCQhard

VM-Web01 is connected to Subnet-Web in VNet-Prod. Users on the internet cannot access the website hosted on TCP port 443. You confirm that VM-Web01 has a public IP address and the web service is running. You need to allow inbound HTTPS traffic with the least administrative effort. What should you do?

A.Add an inbound NSG rule allowing TCP 443.
B.Create a user-defined route to the internet.
C.Configure VNet peering with another virtual network.
D.Create a private endpoint for VM-Web01.
AnswerA

The VM can accept HTTPS traffic only if an inbound security rule explicitly permits TCP 443. Azure network security groups (NSGs) are stateful and default to deny all inbound internet traffic, so even if the VM has a public IP address and a web server running, connections on port 443 will be dropped until a rule with a higher priority (e.g., 100) is added. This rule should specify Source as 'Internet', Destination port range as '443', Protocol as 'TCP', and Action as 'Allow'. Because NSGs are stateful, the corresponding outbound return traffic on the ephemeral port will be automatically allowed, making this the only action listed that directly resolves the problem.

Why this answer

The VM has a public IP and the web service is running, but internet users cannot access it. The most common reason is that the Network Security Group (NSG) associated with the subnet or NIC is blocking inbound traffic. Adding an inbound NSG rule to allow TCP 443 is the least administrative effort to permit HTTPS traffic from the internet.

Exam trap

The trap here is that candidates may think a public IP alone is sufficient for internet access, forgetting that NSGs act as a stateful firewall that blocks all inbound traffic by default unless explicitly allowed.

Why the other options are wrong

B

A user-defined route (UDR) controls traffic routing within a virtual network, not inbound access control. It cannot allow or deny traffic to a VM; that is the function of network security groups (NSGs).

C

VNet peering connects two virtual networks, but it does not allow inbound internet traffic to a VM. Internet access requires an NSG rule or a public IP with proper security, not peering.

D

A private endpoint is used to securely connect to Azure PaaS services (like Azure SQL, Storage) over a private IP address, not to allow inbound internet traffic to a VM. It does not expose a VM to the internet.

134
MCQhard

A company has VNet-A with address space 10.20.0.0/16 and active workloads in several subnets. The team must peer VNet-A with VNet-B, but VNet-B currently uses 10.20.128.0/17 and cannot be rebuilt from scratch. What should the administrator do first to make peering possible without interrupting current workloads?

A.Create the peering now and let Azure automatically route overlapping prefixes.
B.Add a new non-overlapping address space to VNet-B, create replacement subnets there, and migrate workloads gradually.
C.Attach a route table to VNet-B so traffic to VNet-A is forced through a firewall appliance.
D.Create a private endpoint between the two VNets so Azure ignores the overlap during connectivity checks.
AnswerB

Adding a second, non-overlapping address space to VNet-B is the correct remediation because Azure permits multiple address ranges per VNet as long as they do not collide with peered networks. You create fresh subnets in the new range, migrate workloads onto them, and then remove the old overlapping range once it is empty. This resolves the conflict and lets peering succeed without downtime or IP fragmentation.

Why this answer

Azure Virtual Network peering requires that the address spaces of the peered VNets do not overlap. VNet-A uses 10.20.0.0/16, which fully contains VNet-B's 10.20.128.0/17, creating an overlap. Since VNet-B cannot be rebuilt, the correct first step is to add a new non-overlapping address space (e.g., 10.30.0.0/16) to VNet-B, create subnets in that new range, migrate workloads gradually, and then remove the overlapping address space before establishing the peering.

This ensures no IP conflicts and avoids disrupting existing workloads.

Exam trap

The trap here is that candidates assume Azure can handle overlapping address spaces through routing tricks (like route tables or firewalls), but Azure VNet peering strictly prohibits any address overlap and will reject the peering request outright, forcing you to resolve the conflict by adding a non-overlapping address space and migrating workloads.

Why the other options are wrong

A

Azure does not automatically route overlapping prefixes; overlapping address spaces prevent VNet peering from being established. Creating the peering without resolving the overlap will fail.

C

Route tables cannot resolve address space overlap; Azure VNet peering requires non-overlapping address spaces, and forcing traffic through a firewall does not change the underlying conflict.

D

Private endpoints are used for secure access to PaaS services over a private IP, not for resolving VNet peering address overlap. They do not bypass the requirement for non-overlapping address spaces in peering.

135
MCQeasy

Based on the exhibit, the VPN gateway deployment fails during validation. What resource is missing?

A.A public IP address resource associated with the VPN gateway.
B.A network security group attached to GatewaySubnet.
C.A route table with a default route to the on-premises network.
D.A private endpoint for the on-premises VPN device.
AnswerA

A VPN gateway needs a public IP resource so the on-premises VPN device can establish encrypted tunnels to Azure. The exhibit already has GatewaySubnet, so the missing piece is the public-facing IP on the gateway itself. Once that resource is created and attached during deployment, the gateway can be provisioned successfully.

Why this answer

A VPN gateway requires a dedicated public IP address resource to establish the IPsec tunnel with the on-premises VPN device. During validation, Azure checks that a public IP address is associated with the gateway; if missing, the deployment fails because the gateway cannot route traffic over the internet or terminate the VPN connection.

Exam trap

The trap here is that candidates often confuse the requirement for a public IP on the VPN gateway with the need for an NSG or route table on GatewaySubnet, but Azure explicitly blocks NSG association on GatewaySubnet and route tables are optional for site-to-site VPNs.

Why the other options are wrong

C

A route table with a default route to the on-premises network is not required for VPN gateway deployment validation; the gateway automatically handles routing. The missing resource is a public IP address, which is mandatory for the gateway to establish connectivity.

D

A private endpoint is used for secure access to Azure PaaS services over a private IP, not for VPN gateway connectivity. The VPN gateway requires a public IP for establishing the IPsec tunnel with the on-premises VPN device.

136
MCQmedium

A company merged with another business, and two Azure virtual networks need to be peered for shared application access. One VNet uses 10.20.0.0/16 and the other uses 10.20.128.0/17. The administrator must make the peering work with minimal operational complexity. What should be done first?

A.Create a route table on both VNets and point the overlapping prefixes to a virtual appliance.
B.Renumber one VNet to a non-overlapping address range before creating the peering.
C.Enable gateway transit on both VNets so overlapping ranges can be routed around.
D.Create a private endpoint in each VNet for the applications that need access.
AnswerB

Peering requires non-overlapping CIDR ranges, so one network must be redesigned first.

Why this answer

Azure VNet peering requires non-overlapping address spaces. The two VNets (10.20.0.0/16 and 10.20.128.0/17) overlap because 10.20.128.0/17 is a subset of 10.20.0.0/16. Peering will fail with an error about overlapping address ranges.

Renumbering one VNet to a non-overlapping range (e.g., 10.21.0.0/16) is the only way to satisfy the prerequisite for peering with minimal operational complexity.

Exam trap

The trap here is that candidates assume overlapping ranges can be handled with routing or network virtual appliances, but Azure VNet peering has a hard requirement for non-overlapping address spaces at creation time, and no post-peering configuration can override this.

Why the other options are wrong

A

Azure VNet peering requires non-overlapping address spaces. Overlapping ranges (10.20.0.0/16 and 10.20.128.0/17) cannot be directly peered; route tables cannot resolve the conflict because Azure peering does not support overlapping prefixes.

C

Gateway transit does not resolve overlapping IP address ranges; it only allows one VNet to use the other's VPN gateway for connectivity to on-premises networks. Overlapping ranges prevent peering from being established at all.

D

Private endpoints provide secure access to Azure PaaS services from a VNet, but they do not resolve IP address overlap between two VNets. Peering requires non-overlapping address spaces, and private endpoints cannot route traffic between overlapping ranges.

137
MCQmedium

An internal line-of-business application runs on two VMs in Azure. Users connect only from a peered virtual network and from on-premises through VPN. The application must not be reachable from the internet, but traffic should be balanced across the two VMs. Which configuration should you choose?

A.A public Standard Load Balancer with a public frontend IP.
B.A Standard Load Balancer with a private frontend IP.
C.A NAT gateway attached to the application subnet.
D.A network security group rule allowing TCP 443 from the internet.
AnswerB

A Standard Load Balancer with a private frontend provides load balancing only within the virtual network boundary, which fits an internal application. It can balance traffic from peered VNets or hybrid connections without assigning a public frontend. This is the appropriate pattern when the service must remain private but still needs distribution across backend VMs.

Why this answer

A Standard Load Balancer with a private frontend IP is correct because it distributes traffic to the two VMs using a private IP address that is only reachable from within the peered virtual network and the on-premises network via VPN. This configuration ensures the application is not exposed to the internet while still providing load balancing across the VMs.

Exam trap

The trap here is that candidates often assume a load balancer must have a public frontend IP to function, but Azure Standard Load Balancer fully supports private frontend IPs for internal load balancing without any internet exposure.

Why the other options are wrong

A

A public Standard Load Balancer with a public frontend IP would make the application reachable from the internet, violating the requirement that the application must not be reachable from the internet.

C

A NAT gateway provides outbound internet connectivity for private subnets, not inbound load balancing. The requirement is to balance traffic across two VMs from internal sources only, which a NAT gateway cannot do.

D

A network security group rule allowing TCP 443 from the internet would expose the application to the internet, violating the requirement that it must not be reachable from the internet.

138
MCQmedium

A subnet uses a user-defined route that sends 0.0.0.0/0 to a firewall appliance. One server in the subnet must download updates directly from 40.90.10.25 over the Internet, while all other outbound traffic should continue through the firewall. What is the best change?

A.Remove the default route so all traffic uses the system routes.
B.Add a more specific /32 route for 40.90.10.25 with next hop type Internet.
C.Create a service endpoint for the server and the update site.
D.Attach a NAT gateway to the subnet so the server can bypass the firewall.
AnswerB

Azure uses longest-prefix matching when selecting routes. A specific /32 route for one destination is more specific than the broader 0.0.0.0/0 forced-tunnel route, so traffic to that IP can bypass the firewall and go directly to the Internet. This is the cleanest way to create a targeted exception without changing the behavior for all other outbound traffic from the subnet.

Why this answer

Adding a more specific /32 route for 40.90.10.25 with next hop type Internet overrides the default route (0.0.0.0/0) for traffic destined to that specific IP. User-defined routes (UDRs) follow the longest prefix match principle, so the /32 route takes precedence over the /0 route, allowing the server to reach the update site directly via the internet while all other outbound traffic continues through the firewall appliance.

Exam trap

The trap here is that candidates often think a NAT gateway or service endpoint can bypass a firewall for specific traffic, but they fail to understand that route precedence (longest prefix match) is the only way to override a default route for a specific destination in Azure.

Why the other options are wrong

A

Removing the default route would cause all outbound traffic, including the server's update traffic, to use system routes, which would not route through the firewall but also would not allow the server to directly reach 40.90.10.25 without a specific route. This fails to meet the requirement that only the server's traffic to 40.90.10.25 bypasses the firewall.

C

A service endpoint does not bypass the firewall; it only provides direct connectivity to Azure services over the Azure backbone, not to a specific public IP like 40.90.10.25. The requirement is to allow direct internet access for a specific IP, which service endpoints cannot achieve.

D

A NAT gateway provides outbound internet access with source network address translation, but it does not allow selective bypass of the firewall for specific destinations; all traffic would still follow the UDR unless a more specific route is added.

139
Drag & Dropmedium

Arrange the steps to deploy an Azure Policy that enforces tagging on resources.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Deploying an Azure Policy that enforces tagging requires first navigating to the Azure Policy service, then creating a policy definition with the appropriate rule, assigning it to the desired scope (e.g., subscription or resource group), and finally testing to ensure the policy works as expected. Incorrect orders may lead to errors or ineffective policy enforcement.

140
MCQeasy

Based on the exhibit, the spoke virtual network must use the hub's existing VPN gateway to reach on-premises networks. Which peering setting should be enabled on the spoke-to-hub peering?

A.Allow forwarded traffic on the spoke peering.
B.Use remote gateways on the spoke peering.
C.Delete the peering and create a virtual network gateway in the spoke.
D.Enable service endpoints on the spoke subnet.
AnswerB

To let the spoke use the hub's VPN gateway, the spoke-to-hub peering must be configured with Use remote gateways enabled. This tells Azure that the spoke should send gateway-bound traffic through the remote VNet's gateway rather than deploying its own gateway. It is the required setting in a hub-and-spoke design with shared VPN connectivity.

Why this answer

The 'Use remote gateways' setting on the spoke-to-hub peering allows the spoke virtual network to use the hub's existing VPN gateway for connectivity to on-premises networks. This setting forwards traffic from the spoke through the hub's gateway, enabling transitive routing without deploying a separate gateway in the spoke. It requires the hub-to-spoke peering to have 'Allow gateway transit' enabled.

Exam trap

The trap here is that candidates often confuse 'Allow forwarded traffic' with 'Use remote gateways', mistakenly thinking that enabling forwarded traffic alone is sufficient to route spoke traffic through the hub's VPN gateway, when in fact 'Use remote gateways' is the specific setting required for gateway transit.

Why the other options are wrong

A

The question requires the spoke to use the hub's VPN gateway, which is achieved by enabling 'Use remote gateways' on the spoke peering, not 'Allow forwarded traffic'. 'Allow forwarded traffic' permits the hub to forward traffic from other networks to the spoke, but does not allow the spoke to use the hub's gateway.

C

Deleting the peering and creating a VPN gateway in the spoke would bypass the hub's existing VPN gateway, which contradicts the requirement to use the hub's gateway for on-premises connectivity. This would also incur additional cost and management overhead.

D

Service endpoints secure Azure service access from a virtual network to specific Azure services (e.g., Azure Storage) by forcing traffic over the Microsoft backbone. They do not enable a spoke VNet to use a hub's VPN gateway for on-premises connectivity; that requires the 'Use remote gateways' peering setting.

141
MCQmedium

An NSG outbound rule allows TCP 8443 traffic from ASG-Web to ASG-Api. The web VM NIC is in ASG-Web, but the API VM NICs were deployed into the correct subnet and never added to ASG-Api. The traffic still fails. What should the administrator do?

A.Move the NSG to the web subnet so source membership is automatically detected.
B.Add the API VM NICs to ASG-Api.
C.Change the destination port to 443 because ASGs only work with common HTTPS traffic.
D.Create a service endpoint for the spoke subnet so the NSG rule becomes effective.
AnswerB

Adding the API VM NICs to ASG-Api is the correct fix because the NSG rule's destination object is that ASG, and Azure matches traffic by checking which NICs are currently members of that ASG. The rule only takes effect for traffic whose destination IP is on a NIC that belongs to ASG-Api; without those memberships, the rule's condition cannot be satisfied. Note that ASG membership is assigned at the NIC layer, so the VM's NIC must be explicitly associated with the ASG, independent of the NSG's association to the subnet or VM.

Why this answer

The NSG rule references ASG-Api as the destination, but the API VM NICs were never added to that application security group. ASGs are logical groupings of VM NICs; a rule targeting an ASG only applies to NICs that are members of that ASG. Since the API NICs are not in ASG-Api, the rule does not match them, and traffic fails.

Adding the API VM NICs to ASG-Api resolves the issue by making them valid destinations for the rule.

Exam trap

The trap here is that candidates assume ASGs automatically include all VMs in the same subnet, but ASGs require explicit NIC membership and do not inherit subnet scope.

Why the other options are wrong

A

Moving the NSG to the web subnet does not resolve the issue because the API VM NICs are not in ASG-Api, so the destination ASG membership is not recognized. The NSG rule requires the destination to be ASG-Api, but the API VMs are not members.

C

ASGs (Application Security Groups) have no port restrictions; they work with any TCP/UDP port. Changing the port to 443 is unnecessary and does not address the root cause—the API VM NICs are not in ASG-Api.

D

Service endpoints extend VNet identity to Azure service resources, not to NSG rules. They do not affect NSG destination matching; the NSG rule still requires the destination ASG to contain the target NICs.

142
MCQmedium

A company needs to peer VNet-Prod, which uses 10.30.0.0/16, with VNet-Shared, which uses 10.30.64.0/18. The peering creation fails with an address-space overlap error. The team can renumber the shared environment, but they do not want to change any addresses in VNet-Prod. What should the administrator do before retrying the peering?

A.Add an NSG that allows traffic between the two VNets.
B.Reconfigure VNet-Shared to use a non-overlapping address range, then recreate its subnets and migrate workloads.
C.Rename VNet-Shared so Azure treats it as a different network.
D.Enable gateway transit on both VNets so Azure can route around the overlap.
AnswerB

Azure VNet peering requires the two address spaces to be unique and non-overlapping. If any prefix overlaps, the peering cannot be created. The correct fix is to renumber one VNet by introducing a different address range, rebuilding or moving subnets as needed, and then removing the conflicting range. This addresses the root cause instead of trying to work around it with security or routing settings.

Why this answer

VNet peering requires that the address spaces of the two VNets do not overlap. VNet-Prod uses 10.30.0.0/16, which includes the range 10.30.64.0/18 used by VNet-Shared, causing the overlap error. The only way to resolve this without changing VNet-Prod is to reconfigure VNet-Shared to use a non-overlapping address range, which involves deleting and recreating its subnets and migrating workloads, as stated in option B.

Exam trap

The trap here is that candidates may think gateway transit or NSGs can bypass address space overlap, but Azure strictly enforces non-overlapping address spaces for VNet peering, and no network feature can override this fundamental routing requirement.

Why the other options are wrong

A

NSGs filter traffic but do not resolve overlapping IP address spaces; peering requires non-overlapping ranges to establish routing.

C

Renaming a virtual network does not change its address space; Azure identifies VNets by their address ranges, not names, so the overlap error persists.

D

Gateway transit does not resolve address space overlap; it only enables a VPN gateway in one VNet to route traffic to on-premises or other VNets via the peered VNet. Overlapping IP ranges prevent peering from being established at all.

143
MCQmedium

You need to expose a web application running on several VMs and distribute traffic across them based on HTTP request attributes such as URL path. Which service should you use?

B.Azure Application Gateway
C.Traffic Manager
D.Network Watcher
AnswerB

Azure Application Gateway is a Layer 7 web traffic load balancer that inspects HTTP requests and can route them based on URL paths, host headers, and query strings. It supports path-based routing, allowing you to direct /api traffic to one backend pool and /images to another. Additional features like SSL termination, cookie-based session affinity, and Web Application Firewall (WAF) make it ideal for web applications on multiple VMs.

Why this answer

Azure Application Gateway is a Layer 7 load balancer that can route traffic based on HTTP request attributes such as URL path, host headers, or query strings. This allows you to distribute incoming web traffic across multiple VMs based on the specific URL path (e.g., /images to one backend pool, /api to another), which is exactly what the question requires.

Exam trap

The trap here is that candidates often confuse Azure Load Balancer (Layer 4) with Application Gateway (Layer 7), assuming any load balancer can route based on HTTP attributes, but only Application Gateway can inspect and route based on URL paths, host headers, or query strings.

Why the other options are wrong

A

Azure Load Balancer operates at Layer 4 (transport layer) and distributes traffic based on IP address and port, not HTTP request attributes like URL path. It cannot perform content-based routing.

C

Traffic Manager operates at the DNS level, distributing traffic based on domain name resolution, not HTTP request attributes like URL path. It cannot inspect or route based on HTTP-level details.

D

Network Watcher is a monitoring and diagnostics service for Azure networks, not a traffic distribution service. It cannot route or load balance HTTP traffic based on request attributes.

144
MCQhard

A backend VM belongs to AppASG and listens on TCP 8443. The subnet NSG has a deny rule at priority 200 that blocks TCP 8443 from VirtualNetwork to any destination. The backend VM's NIC NSG has an allow rule at priority 100 for TCP 8443 from WebASG to AppASG. Web VMs in WebASG still cannot connect. What should you change to allow only the web tier while keeping other virtual network traffic blocked?

A.Move the NIC NSG allow rule to priority 50.
B.Add an allow rule in the subnet NSG at priority 150 for TCP 8443 from WebASG to AppASG.
C.Replace the subnet deny rule with a rule for the AzureLoadBalancer service tag.
D.Remove the backend VM from AppASG and allow traffic by subnet only.
AnswerB

Adding an allow rule in the subnet NSG at priority 150 for TCP 8443 from WebASG to AppASG works because inbound traffic is first evaluated against the subnet NSG, and a lower priority number (150) is processed before the existing subnet deny rule. This places a more specific allow ahead of the deny, so the connection is permitted. Also, by scoping both source and destination to application security groups, the rule grants only the Web tier access to the backend AppASG on the required port, rather than opening the whole subnet.

Why this answer

In Azure, network security group (NSG) rules are evaluated in priority order, and subnet NSG rules are evaluated before NIC NSG rules for inbound traffic. The subnet NSG has a deny rule at priority 200 that blocks TCP 8443 from VirtualNetwork to any destination, which overrides the NIC NSG allow rule because the subnet deny is evaluated first. To allow traffic from WebASG to AppASG while still blocking other virtual network traffic, you must add an allow rule in the subnet NSG at a higher priority (e.g., 150) than the deny rule, explicitly permitting TCP 8443 from WebASG to AppASG.

Exam trap

The trap here is that candidates often assume NIC NSG rules can override subnet NSG rules due to higher priority, but in Azure, subnet NSG rules are evaluated before NIC NSG rules for inbound traffic, so a subnet deny will always block traffic regardless of NIC allow rules.

Why the other options are wrong

A

The NIC NSG rule at priority 100 already allows traffic from WebASG to AppASG on TCP 8443, but the subnet NSG deny rule at priority 200 blocks it. Since subnet NSG rules are evaluated before NIC NSG rules, traffic is denied regardless of NIC rule priority. Moving the NIC rule to a higher priority does not override the subnet deny rule.

C

The subnet NSG deny rule blocks TCP 8443 from VirtualNetwork to any destination. Replacing it with a rule for AzureLoadBalancer service tag would allow health probe traffic from the load balancer, but it would not allow traffic from WebASG to AppASG because the deny rule is removed, potentially allowing all virtual network traffic, which violates the requirement to keep other traffic blocked.

D

Removing the backend VM from AppASG would break the application security group association, preventing the NIC NSG rule from matching traffic from WebASG. Additionally, allowing traffic by subnet only would permit all VMs in the subnet, violating the requirement to allow only the web tier.

145
MCQmedium

A web application runs on three VMs in a backend subnet. The backend team wants the load balancer in the frontend tier to reach the VMs on TCP 8443, and they want the rule to keep working even if the backend VM IP addresses change. What should you use in the NSG rule?

A.Use the individual private IP addresses of each backend VM as the source.
B.Use an application security group for the frontend tier as the source and another ASG for the backend tier as the destination.
C.Use the VirtualNetwork service tag for both source and destination.
D.Create a route table entry that sends TCP 8443 traffic to the backend subnet.
AnswerB

Application security groups let you reference groups of NICs instead of hard-coded IP addresses. That makes the NSG rule resilient when VMs are replaced or reimaged and their private IP addresses change. It also keeps the access model aligned to application tiers rather than infrastructure details, which is the preferred design for maintainable network security rules.

Why this answer

Application Security Groups (ASGs) allow you to define network security rules based on logical groupings of VMs, regardless of their IP addresses. By using an ASG for the frontend tier as the source and another ASG for the backend tier as the destination, the NSG rule remains valid even if backend VM IP addresses change, as ASGs are dynamically updated. This meets the requirement for the load balancer in the frontend tier to reach backend VMs on TCP 8443 without hardcoding IP addresses.

Exam trap

The trap here is that candidates often confuse NSG rules with route tables, thinking a route table entry can control access (Option D), or they assume that using specific IP addresses (Option A) is acceptable despite the requirement for dynamic IP changes, missing the purpose of ASGs for logical grouping.

Why the other options are wrong

A

Using individual private IP addresses as the source would require updating the NSG rule whenever a backend VM's IP changes, failing the requirement for the rule to keep working automatically.

C

The VirtualNetwork service tag allows traffic from any resource within the virtual network, which is too broad and does not restrict traffic to only the frontend tier's load balancer, failing to meet the requirement for a specific source.

D

Route tables control traffic routing between subnets, not security filtering. NSG rules require source/destination based on IP addresses, service tags, or ASGs, not route table entries.

146
MCQmedium

An app running on an Azure VM must access Azure SQL Database over a private IP inside the VNet. The team also wants the SQL server name to resolve to that private address without using custom host-file entries. What should be configured?

A.A service endpoint on the VM subnet and a firewall rule on Azure SQL Database.
B.A private endpoint for Azure SQL Database and a linked private DNS zone.
C.A public IP address on the VM and a SQL server firewall exception.
D.An NSG rule that allows outbound TCP 1433 to the SQL server.
AnswerB

A private endpoint places the service on a private IP in your virtual network, which satisfies the requirement for private network access. Linking the appropriate private DNS zone to the VNet lets the SQL server name resolve to that private IP automatically. This combination gives the application private connectivity and avoids manual host-file updates or reliance on public endpoints.

Why this answer

A private endpoint assigns Azure SQL Database a private IP address from the VM's VNet, enabling traffic to stay within Microsoft's backbone. Linking a private DNS zone automatically resolves the SQL server's FQDN (e.g., server.database.windows.net) to that private IP, eliminating the need for custom host-file entries. This meets both requirements: private IP connectivity and DNS resolution without manual configuration.

Exam trap

The trap here is confusing service endpoints with private endpoints; candidates often think a service endpoint provides a private IP, but it only provides source VNet identity while the destination remains a public endpoint, failing the private IP and DNS resolution requirements.

Why the other options are wrong

A

A service endpoint and firewall rule allow access over the public endpoint using the VM's private IP, but the SQL server name still resolves to a public IP, not a private IP inside the VNet.

147
MCQeasy

Based on the exhibit, what should the administrator create so the storage account is reachable only by private IP from AppSubnet?

A.A private endpoint in AppSubnet for the storage account.
B.A service endpoint on AppSubnet for Microsoft.Storage.
C.A user-defined route to the storage account public IP.
D.An application security group that contains the storage account.
AnswerA

A private endpoint gives the storage account a private IP address in the VNet, which is exactly what the requirement calls for. Because public network access is disabled and DNS is already configured, this completes the private-only access path.

Why this answer

A private endpoint assigns a private IP address from the AppSubnet to the storage account, making it reachable only via private IP within that subnet. This ensures all traffic to the storage account stays within the Microsoft Azure backbone network, eliminating public internet exposure. The private endpoint uses Azure Private Link to map the storage account's PaaS resource to a network interface in the virtual network.

Exam trap

The trap here is confusing service endpoints with private endpoints: service endpoints keep the public endpoint but restrict access via subnet firewall rules, while private endpoints assign a private IP and fully remove public exposure, which is required for reachability only by private IP.

Why the other options are wrong

B

A service endpoint does not make the storage account reachable only by private IP; it allows access from the subnet to the storage account via the Azure backbone but still uses the public endpoint of the storage account, and it does not block public access.

C

A user-defined route (UDR) controls traffic flow to a destination IP, but the storage account's public IP is still publicly accessible. It does not enforce private IP-only access from AppSubnet; traffic would still leave Azure backbone and could be intercepted.

D

An application security group (ASG) is used to group virtual machines by application roles for network security policy enforcement, not to control network access to a storage account. It cannot make a storage account reachable only by private IP from a subnet.

148
MCQmedium

A VM has an NSG with these inbound rules: Deny-RDP at priority 100 for TCP 3389 from Any, and Allow-RDP-Admins at priority 200 for TCP 3389 from 10.8.1.0/24. Admins from 10.8.1.0/24 still cannot connect by RDP. What change fixes access while keeping all other sources blocked?

A.Change the deny rule to protocol Any so the allow rule will be evaluated first.
B.Add a UDR that sends TCP 3389 traffic to the VM subnet.
C.Move the allow rule to a lower priority number than 100.
D.Associate an application security group with the VM and keep the existing priorities.
AnswerC

NSG rules are evaluated in priority order, where the lowest number wins. Because the deny rule at priority 100 is matched before the allow rule at 200, the connection is blocked even for the admin subnet. Moving the allow rule to a priority such as 90 makes it the first matching rule, while the deny rule still blocks all other sources afterward.

Why this answer

C is correct because NSG rules are evaluated in priority order, with lower numbers evaluated first. The Deny-RDP rule at priority 100 is evaluated before the Allow-RDP-Admins rule at priority 200, so traffic from 10.8.1.0/24 is denied before the allow rule is reached. Moving the allow rule to a priority lower than 100 (e.g., 90) ensures it is evaluated first, allowing the admin traffic while the deny rule still blocks all other sources.

Exam trap

The trap here is that candidates often think changing the protocol or adding a route or ASG can override the priority-based evaluation order, but the core issue is simply that the deny rule has a lower priority number and is evaluated first.

Why the other options are wrong

A

Changing the deny rule to protocol Any does not affect rule evaluation order; NSG rules are evaluated by priority number, not protocol. The deny rule at priority 100 will still block all RDP traffic before the allow rule at priority 200 is evaluated.

B

A User Defined Route (UDR) controls traffic routing between subnets or to on-premises, not NSG rule evaluation. Since the VM is in the same subnet, RDP traffic already reaches the VM; the issue is the NSG deny rule blocking it, not routing.

D

Associating an application security group (ASG) with the VM does not change the priority of existing NSG rules. The deny rule at priority 100 still blocks all RDP traffic, including from the admin subnet, regardless of ASG membership.

149
MCQmedium

A backend tier runs on three Azure VMs. The VMs are rebuilt frequently and receive new private IP addresses during redeployment. The administrator must allow inbound TCP 1433 from the app tier without rewriting the NSG rule each time the backend VMs change. What should be used?

A.Individual private IP addresses assigned directly in the NSG rule
B.An application security group referenced by the NSG rule
C.A service endpoint enabled on the subnet
D.A load balancer inbound NAT rule on port 1433
AnswerB

Application security groups let you group VMs logically and reference that group in NSG rules. When the backend VMs are rebuilt or their IPs change, the rule still applies as long as the NICs remain members of the ASG, which reduces manual maintenance.

Why this answer

An application security group (ASG) allows you to group VMs logically (e.g., by tier) and reference that group in a network security group (NSG) rule. When backend VMs are rebuilt and receive new private IPs, the ASG membership is automatically updated, so the NSG rule continues to apply without manual changes. This makes ASG the correct choice for dynamic environments where IP addresses change frequently.

Exam trap

The trap here is that candidates often confuse application security groups with network security groups or think that a load balancer or service endpoint can solve dynamic IP changes, but only ASGs provide a logical grouping that automatically follows VM IP changes without manual rule updates.

Why the other options are wrong

A

Individual private IP addresses change each time the VMs are rebuilt, requiring NSG rule updates. This does not meet the requirement to avoid rewriting rules.

C

A service endpoint secures Azure service access from a subnet to a specific service (e.g., Azure SQL Database) and does not filter traffic between VMs within a VNet. It cannot be used to allow inbound TCP 1433 from the app tier to backend VMs with dynamic private IPs.

D

A load balancer inbound NAT rule translates a specific frontend port to a backend VM's private IP and port, but it does not solve the problem of changing private IPs because the NAT rule must be updated each time the backend VM's IP changes, which is the same rewriting issue the question aims to avoid.

150
MCQmedium

A payroll application in a VNet must access an Azure Storage account containing confidential blobs. The security team requires the storage account to be reachable only over a private IP, and public network access must be disabled. Which feature should the administrator implement?

A.A service endpoint for Microsoft.Storage on the application subnet.
B.A private endpoint for the storage account in the VNet.
C.A shared access signature embedded in the application configuration.
D.A VPN gateway connection between the subnet and the storage account.
AnswerB

A private endpoint gives the storage account a private IP address from the VNet address space, allowing traffic to stay on private connectivity. This matches the requirement to disable public network access while still letting the application reach blob data. The private endpoint also integrates with DNS so the storage FQDN resolves to the private address. That design is the correct choice when access must be restricted to a private path only.

Why this answer

A private endpoint assigns the storage account a private IP address from the VNet, enabling secure access over a private connection while completely disabling public network access. This meets the security team's requirement because traffic never traverses the public internet, and the storage account's firewall can be configured to deny all public traffic.

Exam trap

The trap here is that candidates confuse service endpoints with private endpoints, not realizing that service endpoints still use the public endpoint and cannot disable public network access, whereas private endpoints provide a true private IP and full public access disablement.

Why the other options are wrong

A

A service endpoint does not provide a private IP; it allows access over the public endpoint but restricts it to the VNet. The requirement is to disable public network access entirely, which only a private endpoint can achieve.

C

A shared access signature (SAS) provides delegated access over the public endpoint, but the question requires public network access to be disabled and only private IP access allowed. SAS does not enforce private-only connectivity.

D

A VPN gateway connection does not provide private IP access to the storage account; it only extends the VNet to on-premises networks. The storage account would still be publicly accessible unless additional measures are taken, and it does not disable public network access.

← PreviousPage 2 of 4 · 244 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Virtual Network questions.