Microsoft certification · Exam AZ-700

AZ-700 Mock Exam

Designing and Implementing Microsoft Azure Networking Solutions

Free AZ-700 questions on Topic 3, Mix Questions, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Topic 3, Mix Questions questions

1–10 of 43 free
Question 1 Choose 2

You have an Azure virtual network named Vnet1 that hosts an Azure firewall named FW1 and 150 virtual machines. Vnet1 is linked to a private DNS zone named contoso.com. All the virtual machines have their name registered in the contoso.com zone.
Vnet1 connects to an on-premises datacenter by using ExpressRoute.

You need to ensure that on-premises DNS servers can resolve the names in the contoso.com zone.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Show answerHide answer

Correct answer: A, D

On the on-premises DNS servers, configure forwarders that point to the frontend IP address of FW1.

For FW1, enable DNS proxy.

Explanation

Explanation:
This question tests integrating on-premises DNS resolution with Azure Private DNS zones. The core challenge is allowing on-premises servers to resolve names in the private zone contoso.com, which is only natively accessible from the linked virtual network (Vnet1). The Azure Firewall's DNS proxy feature, combined with proper forwarding, bridges this connectivity gap.

Correct Option:

D. For FW1, enable DNS proxy.
This is the foundational step. Enabling DNS proxy on the firewall allows it to intercept DNS queries from sources (like on-premises forwarders) and forward them to the Azure-provided DNS service (168.63.129.16), which can resolve names in the privately linked zone contoso.com.

A. On the on-premises DNS servers, configure forwarders that point to the frontend IP address of FW1.
Once the firewall's DNS proxy is active, on-premises DNS servers must be configured to forward queries for the contoso.com domain to the firewall's private IP address. The firewall then proxies these queries to Azure's DNS.

Incorrect Option:

B. On the on-premises DNS servers, configure forwarders that point to the Azure provided DNS service at 168.63.129.16.
The IP 168.63.129.16 is a virtual Azure metadata service IP that is only reachable from within an Azure virtual network. It is not accessible from on-premises over ExpressRoute.

C. Modify the DNS server settings of Vnet1.
Changing Vnet1's DNS server setting (e.g., to a custom server) affects the DNS resolution for the VMs within Vnet1, not the on-premises servers. The problem is about on-premises resolution.

E. For FW1, configure a custom DNS server.
Configuring a custom DNS server on the firewall tells it where to forward queries it intercepts. However, the default/correct destination for resolving Azure Private DNS zones is the Azure-provided DNS (168.63.129.16). This action is not the primary requirement; enabling the proxy (D) is essential first, and the default configuration often works without a custom setting.

Reference:
Microsoft Learn - Configure DNS settings for Azure Firewall and Azure Private DNS hybrid resolution. The documentation specifies using the firewall's DNS proxy to enable hybrid resolution for private zones.
Question 2 Choose 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have two Azure virtual networks named Vnet1 and Vnet2.
You have a Windows 10 device named Client1 that connects to Vnet1 by using a Point-to- Site (P2S) IKEv2 VPN.
You implement virtual network peering between Vnet1 and Vnet2. Vnet1 allows gateway transit. Vnet2 can use the remote gateway.
You discover that Client1 cannot communicate with Vnet2. You need to ensure that Client1 can communicate with Vnet2. Solution: You enable BGP on the gateway of Vnet1.
Does this meet the goal?

Show answerHide answer

Correct answer: B

No

Explanation

Explanation:
This question tests P2S VPN connectivity over a peered virtual network topology. The issue is that P2S clients receive a route to the peered VNet (Vnet2) only if BGP is enabled for the P2S connection. Gateway transit settings alone are insufficient; the P2S configuration must advertise the remote network's routes.

Correct Option:

B. No.
The solution does not meet the goal. While enabling BGP on the VNet gateway is a prerequisite, it is not the complete solution by itself. The P2S VPN client (Client1) will only receive a route to the peered VNet2 if BGP is also specifically enabled on the Point-to-Site configuration of the gateway. Merely enabling BGP on the gateway does not automatically propagate the peered network's routes to P2S clients.

Incorrect Option:

A. Yes.
This is incorrect. Enabling BGP on the gateway is a necessary step, but it's incomplete. Without configuring BGP for the P2S connection, the client's VPN tunnel profile will not include the route to Vnet2. The client's route table will only contain routes for Vnet1, causing the communication failure to persist.

Reference:
Microsoft Learn - Configure BGP for VPN Gateway: P2S. The documentation specifies that for P2S connections to use BGP for dynamic routing, you must enable BGP when generating the VPN client profile, not just on the gateway resource.
Question 3 Choose 1
You have a network security group named NSG1.

You need to enable network security group (NSG) flow logs for NSG1. The solution must support retention policies.

What should you create first?
Show answerHide answer

Correct answer: A A standard general-purpose v2 Azure Storage account

Explanation

Explanation:
NSG flow logs capture information about IP traffic flowing through a network security group. To enable them with support for retention policies, the logs must be stored in a durable and scalable storage service that supports lifecycle management and retention settings.

Correct Option:

A. A standard general-purpose v2 Azure Storage account.
This is the required first step. NSG flow logs must be sent to an Azure Storage account, and general-purpose v2 is the recommended and supported type. It supports features like tiering and lifecycle management policies, which are essential for implementing retention policies for the flow log data.

Incorrect Options:

B. An Azure Log Analytics workspace:
While NSG flow logs can be sent to a Log Analytics workspace for analysis, this is an optional second destination. The primary and mandatory storage location for raw flow logs is an Azure Storage account. Retention policies are configured at the storage account level.

C. A premium Block blobs Azure Storage account:
Premium storage is designed for high-performance scenarios and is not required or cost-effective for storing log data. It does not support the hierarchical namespace or lifecycle policies as effectively as a standard general-purpose v2 account for this use case.

D. A standard general-purpose v1 Azure Storage account:
While v1 accounts can store flow logs, they lack advanced features like lifecycle management and access tiers that are available in v2. Retention policies are best supported with a v2 account.

Reference:
Microsoft Azure documentation, "Introduction to flow logging for network security groups," specifies that NSG flow logs require an Azure Storage account for retention. It recommends using a standard general-purpose v2 storage account to leverage features like tiering and lifecycle management for log retention.
Question 4 Choose 1

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure application gateway that has Azure Web Application Firewall (WAF) enabled.
You configure the application gateway to direct traffic to the URL of the application gateway.
You attempt to access the URL and receive an HTTP 403 error. You view the diagnostics log and discover the following error.

You need to ensure that the URL is accessible through the application gateway.
Solution: You create a WAF policy exclusion for request headers that contain 137.135.10.24.
Does this meet the goal?

 

Show answerHide answer

Correct answer: B

No

Explanation

Explanation:
This question tests troubleshooting WAF-related HTTP 403 Forbidden errors. The JSON log snippet shows a triggered WAF rule (rule ID 920300). The solution proposes an exclusion based on a specific IP in the request headers, which is a misdiagnosis of the actual cause shown in the log.

Correct Option:

B. No.
The solution does not meet the goal. The WAF log indicates rule 920300 was triggered, which is part of the OWASP Core Rule Set (CRS) and typically blocks requests due to missing a User-Agent or Host header, or because the request contains an IP address in the Host header field. The log's details field ("Missing/Empty Host Header") explicitly states the cause. An exclusion for an IP address in a request header would not resolve this specific rule violation.

Incorrect Option:

A. Yes.
This is incorrect. Creating an exclusion for the IP address 137.135.10.24 is not the appropriate fix. The error is caused by the Host header being missing or containing an IP address instead of a hostname. The correct fix would be to ensure the client request includes a valid Host header with the application gateway's domain name, or to create a WAF exclusion for the Host header for the specific rule ID 920300 if using an IP in the Host header is a legitimate requirement.

Reference:
Microsoft Learn - Web Application Firewall (WAF) exclusion lists. The documentation explains that exclusions must be targeted at the correct part of the request (e.g., request header name) and matched to the specific rule ID. Rule 920300 is documented as "Request Missing/Empty Host Header."
Question 5 Choose 1

You have an Azure subscription that contains the resources shown in the following table.

Subshell contains Three virtual machines that host an app named App1. App1 is accessed by using the SFTP protocol.
From NSG1. you configure an inbound security rule named Rule2 that allows inbound SFTP connections to ASG1.
You need to ensure that the inbound SFTP connections are managed by using ASG1. The solution must minimize administrative effort.
What should you do?

Show answerHide answer

Correct answer: B

From each virtual machine, associate the network interface to ASG1

Explanation

Explanation:
This question tests the implementation of Application Security Groups (ASGs). ASGs are logical groupings of virtual machine NICs that allow NSG rules to target applications rather than specific IPs. For an NSG rule targeting an ASG to be effective, the NICs of the relevant VMs must be associated with that ASG.

Correct Option:

B. From each virtual machine, associate the network interface to ASG1.
This is the direct and necessary action. ASGs function by being attached to the network interfaces (NICs) of virtual machines. Since Rule2 in NSG1 is already configured to allow SFTP traffic to ASG1, traffic will only be permitted to VMs whose NICs are members of ASG1. This approach centralizes management; updating the ASG membership automatically applies the NSG rule without modifying the rule itself.

Incorrect Option:

A. From NSG1, modify the priority of Rule2.
Changing the rule's priority affects its evaluation order relative to other rules but does nothing to link the VMs to the ASG. The rule already targets ASG1, but if no VM NICs are associated with it, the rule has no effect.

C. From Subnet1, create a subnet delegation.
Subnet delegation is used to grant specific Azure services (like Azure NetApp Files or Azure Dedicated HSM) permission to create service-specific resources in the subnet. It has no relation to NSG rules or ASG membership.

D. From ASG1, modify the role assignments.
Role assignments in Azure control access management (RBAC) for creating, modifying, or deleting the ASG resource itself. They do not control which NICs are members of the ASG or how traffic is filtered.

Reference:
Microsoft Learn - Application security groups. The documentation states: "You can define your application's structure by grouping VMs and defining network security policies based on those groups. You can reuse your security policy at scale without manual maintenance of explicit IP addresses... An application security group is associated with a network interface."
Question 6

You configure a route table named RT1 that has the routes shown in the following table.


You have an Azure virtual network named Vnet1 that has the subnets shown in the following table.


You have the resources shown in the following table.


Vnet1 connects to an ExpressRoute circuit. The on-premises router advertises the following routes:
* 0.0.0.0/0

* 10.0.0.0/16

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation



Statement 1: Internet traffic from NVA1 is routed to the on-premises network.
Analysis: Internet traffic matches the 0.0.0.0/0 route. This route is learned from on-premises via ExpressRoute. In Azure, ExpressRoute routes have a lower Administrative Distance (AD = 20) than the default Azure Internet service route (AD = 100 for "Internet" in system routes). Therefore, the more specific AD 20 route via ExpressRoute will be preferred over the native Azure Internet egress.

Correct Option:
Yes. Because the on-premises router advertises 0.0.0.0/0, this becomes the active default route for all subnets in VNet1 via ExpressRoute (due to its lower AD). Any traffic destined for the public internet from NVA1 will be routed to the on-premises network.

Statement 2: Traffic from VM1 is routed to the on-premises network through NVA1.
Analysis: First, check routing from VM1's subnet (192.168.1.0/24). According to RT1, traffic destined for 192.168.1.0/24 has a next hop of Virtual Appliance (NVA1). However, traffic to the on-premises network (10.0.0.0/16) or the internet (0.0.0.0/0) does NOT match the 192.168.1.0/24 prefix. These routes are learned via ExpressRoute (BGP) and will appear in the effective route table for VM1's NIC as "BGP" next hop type, pointing directly to the ExpressRoute gateway, not to NVA1. The custom route in RT1 only applies to traffic destined for its own subnet, forcing it through the NVA for inspection (hairpin), not for on-premises traffic.

Correct Option:
No. Traffic from VM1 to the on-premises network (10.0.0.0/16) uses the BGP route learned via ExpressRoute, which has a next hop of the VPN/ExpressRoute gateway, not NVA1. The custom route in the table only affects traffic destined for the 192.168.1.0/24 subnet itself.

Statement 3: Traffic from VM1 is routed to VM2 through NVA1.
Analysis: VM1 is in subnet 192.168.1.0/24. VM2 is in subnet 192.168.2.0/24. According to route table RT1, traffic destined for 192.168.2.0/24 has a next hop of Virtual Appliance (NVA1 at 192.168.0.4). Therefore, traffic from VM1 to VM2 will be forced through NVA1.

Correct Option:
Yes. The user-defined route (UDR) for the 192.168.2.0/24 prefix overrides the system route that would normally allow direct VNet communication. It directs that traffic to the NVA, creating a "forced tunneling" or inspection scenario for east-west traffic.
Question 7 Choose 1

Your company has offices in Montreal. Seattle, and Paris. The outbound traffic from each office originates from a specific public IP address.
You create an Azure Front Door instance named FD1 that has Azure Web Application Firewall (WAF) enabled. You configure a WAF policy named Policy! that has a rule named Rule1. Rule1 applies a rate limit of 100 requests for traffic that originates from the office in Montreal.
You need to apply a rate limit of 100 requests for traffic that originates from each office. What should you do?

Show answerHide answer

Correct answer: A

Modify the conditions of Rule1.

Explanation

Explanation:
This question tests the configuration of WAF custom rate limit rules in Azure Front Door. A single rate limit rule can include multiple matching conditions to identify traffic from different sources. The goal is to apply the same limit to traffic originating from three distinct public IPs (one per office), not to create separate rules.

Correct Option:

A. Modify the conditions of Rule1.
This is the correct and most efficient approach. A WAF custom rule's match conditions can include a logical OR group. You can edit Rule1's match condition to include all three public IP addresses (from Montreal, Seattle, and Paris) in a single list. The rate limit of 100 requests will then be applied collectively to traffic matching any of those IPs.

Incorrect Option:

B. Create two additional associations.
Associations link a WAF policy to a Front Door endpoint or domain. The policy (Policy1) is already associated with FD1. Creating more associations would not change which source IPs the rule evaluates; it would just reapply the same policy to the same resources.

C. Modify the rule type of Rule1.
The rule type is correctly set as a "Rate limiting rule." Changing it to a different type (like "Match rule") would remove the rate-limiting functionality entirely, breaking the requirement.

D. Modify the rate limit threshold of Rule1.
Changing the threshold (e.g., from 100 to 300) would adjust the limit's value but would not expand the scope of the rule to include the IP addresses from the Seattle and Paris offices. The rule would still only apply to the Montreal IP.

Reference:
Microsoft Learn - Rate limiting rule with Azure Web Application Firewall on Azure Front Door. The documentation shows that a single rate limit rule's match condition can specify multiple IP addresses, which are evaluated with an OR logic.
Question 8

Your on-premises network contains an Active Directory Domain Services {AD DS) domain named contoso.com that has an internal certification authority (CA).
You have an Azure subscription.

You deploy an Azure application gateway named AppGwy1 and perform the following actions:
•    Configure an HTTP listener.
•    Associate a routing rule with the listener.

You need to configure AppGwy1 to perform mutual authentication for requests from domain-joined computers to contoso.com.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Show answerHide answer

Explanation



Explanation:
This question tests the configuration of mutual TLS (mTLS) authentication on an Azure Application Gateway. The process requires the gateway to present its own TLS certificate to clients and also to validate client certificates against a trusted root. The steps involve uploading the trusted root certificate, configuring SSL settings, linking them to listeners, and finally, creating the client authentication policy rule.

Correct Option:

Based on standard mTLS configuration flow for Application Gateway v2 (WAF_v2 SKU), the correct sequence is:
From AppGw1, upload the root certificate to AppGw1. The gateway must trust the CA that issued the client certificates (contoso.com's internal CA). This is done by uploading the CA's root or intermediate certificate to the gateway's Trusted Root Certificate store.

From AppGw1, create an SSL profile. An SSL profile is a v2 SKU resource that holds TLS/SSL configuration, including the reference to the uploaded trusted root certificate for client authentication.

From AppGw1, add the HTTP listener and associate the listener to the SSL profile. You create a new (or modify the existing) HTTP listener. To enable mTLS, you associate the SSL profile (configured in step 2) with this listener.

From AppGw1, create a mutual authentication rule. Finally, you create a mutual authentication rule (also known as an SSL policy rule for client authentication) that enforces the requirement for a client certificate and references the trusted root certificate. This rule is then associated with the listener.

Incorrect/Out-of-Sequence Actions:
From AppGw1, create a routing rule. This is typically done before or independently of configuring mTLS. A routing rule links a listener to a backend pool. While necessary for overall functionality, it is not a core sequential step specific to enabling mutual authentication.

From the on-premises CA, export the client certificate to AppGw1. The gateway does not need the client certificates themselves; it needs the root CA certificate to validate them. Exporting individual client certificates is incorrect and non-scalable.

Reference:
Microsoft Learn - Configure mutual authentication with Application Gateway v2. The documented process outlines: 1) Upload trusted client CA certificates, 2) Configure SSL profile, 3) Configure listener with the SSL profile, 4) Configure mutual authentication policy.
Question 9 Choose 2

You have an Azure subscription that is linked to an Azure AD tenant named contoso.onmicrosoft.com. The subscription contains the following resources:

• A virtual network named Vnet1
• An App Service plan named ASPI
• An Azure App Service named webapp1
• An Azure private DNS zone named private.contoso.com
• Virtual machines on Vnet1 that cannot communicate outside the virtual network

You need to ensure that the virtual machines on Vnet1 can access webapp1 by using a URL of https:/Avwwprivate.contosocom.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Show answerHide answer

Correct answer: A, D

Create a private endpoint for webapp1.

Create a CNAME record that maps wwwprivatemntoso.com to webapp1.contoso.onmicrosoft.com.

Explanation

Explanation:
This question tests integrating an App Service with a private network using Private Endpoint and Private DNS. The goal is to make the web app accessible from VMs in a locked-down VNet via a custom private domain (www.private.contoso.com). This requires a private endpoint for network connectivity and a DNS record to resolve the custom name to the private endpoint's address.

Correct Option:

A. Create a private endpoint for webapp1.
This is the core networking requirement. A private endpoint creates a private IP address for the App Service within Vnet1. This allows the VMs, which cannot communicate outside the VNet, to reach the App Service via this internal IP, as all traffic stays within the Microsoft backbone.

C. Create a CNAME record that maps www.private.contoso.com to webapp1.privatelink.azurewebsites.net.
This is the correct DNS configuration. After creating the private endpoint, Azure automatically creates an A record in the linked private.contoso.com zone pointing to the private IP. However, to use the friendly name www.private.contoso.com, you must create a CNAME record that aliases it to the Azure-managed privatelink FQDN (webapp1.privatelink.azurewebsites.net), which will then resolve via the linked zone's A record.

Incorrect Option:

B. Create a service endpoint for webapp1.
Service Endpoints extend VNet identity to Azure services over the Microsoft backbone but do not provide private IP addresses. The VMs "cannot communicate outside the virtual network," which means they likely have no outbound internet access, making Service Endpoints ineffective for this connectivity requirement.

D. Create a CNAME record that maps www.private.contoso.com to webapp1.contoso.onmicrosoft.com.
This is incorrect. The contoso.onmicrosoft.com domain is an Azure AD tenant domain, not related to the App Service's public or private DNS. It would not resolve to the private endpoint's IP address.

E. Register an enterprise application in Azure AD for webapp1.
This is related to app identity and authentication (like OAuth), not to private network connectivity or DNS resolution for accessing the app's endpoint.

F. Create a CNAME record that maps www.private.contoso.com to webapp1.private.contoso.com.
This would create a DNS loop, as www.private.contoso.com and webapp1.private.contoso.com are both within the same zone. The correct target is the privatelink subdomain.

Reference:
Microsoft Learn - Use private endpoints for Azure App Service. The documentation details that creating a private endpoint automatically integrates with Azure Private DNS zones and that you can configure custom DNS for the private endpoint FQDN.
Question 10 Choose 1

You have an Azure application gateway named AppGW1 that balances requests to a web app named App1.
You need to modify the server variables in the response header of App1. What should you configure on AppGW1?

Show answerHide answer

Correct answer: B

rewrites

Full mock exam

Sit the AZ-700 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real AZ-700 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full AZ-700 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 181questions in the bank
  • Newmock on every attempt