All practice questions
1252 questions
A company deploys two virtual machines in the same subnet of an Azure virtual network. The network interface of the first virtual machine, named `VM-App`, is associated with an Application Security Group named `ASG-App`. The network interface of the second virtual machine, named `VM-Data`, is associated with an Application Security Group named `ASG-Data`. The subnet is associated with a Network Security Group named `NSG-Subnet` that contains the following inbound security rules:
* Rule1: Priority , Source: `ASG-App`, Destination: `ASG-Data`, Port: , Protocol: TCP, Action: Allow
* Rule2: Priority , Source: `*`, Destination: `ASG-Data`, Port: , Protocol: TCP, Action: Deny
A network interface-level Network Security Group named `NSG-NIC` is associated with the network interface of `VM-Data` and contains the following inbound security rules:
* Rule3: Priority , Source: `ASG-App`, Destination: `*`, Port: , Protocol: TCP, Action: Allow
* Rule4: Priority , Source: `*`, Destination: `*`, Port: , Protocol: TCP, Action: Deny
Which two of the following statements are correct? (Select two.)
Select all that apply
You have an Azure virtual network named `VNet1` that contains a subnet named `Subnet1`. A virtual machine named `VM1` is deployed to `Subnet1`. The network interface (NIC) of `VM1` is associated with a Network Security Group (NSG) named `NSG-NIC`. `Subnet1` is associated with an NSG named `NSG-Subnet`.
`NSG-Subnet` contains the following inbound security rule:
| Rule Name | Priority | Source | Destination | Port | Action |
|---|---|---|---|---|---|
| Deny-Internet | Internet | Any | * | Deny |
`NSG-NIC` contains the following inbound security rule:
| Rule Name | Priority | Source | Destination | Port | Action |
|---|---|---|---|---|---|
| Deny-All-Internet | Internet | Any | * | Deny |
You need to allow HTTP traffic (port ) from the Internet to `VM1`.
Which two rules should you add? (Choose two.)
Select all that apply
An administrator is configuring a peering connection from a hub virtual network named VNet-Hub () to a spoke virtual network named VNet-Spoke (). Both virtual networks have virtual machines deployed in their subnets. VNet-Hub contains a virtual network gateway. The administrator wants virtual machines in VNet-Spoke to be able to use the virtual network gateway in VNet-Hub to access on-premises resources. Which two actions must the administrator perform to configure this gateway transit functionality?
Select all that apply
An administrator creates an Azure Private DNS zone named private.contoso.com. The administrator configures a virtual network link from private.contoso.com to a virtual network named VNet1 with auto-registration enabled. The administrator then configures a second virtual network link from private.contoso.com to a virtual network named VNet2 with auto-registration disabled. How does this configuration affect the name resolution and registration of the virtual machines deployed in VNet2?
You are configuring a public load balancer in Azure to distribute incoming internet traffic across two virtual machines. You have already created a Standard SKU public IP address to be used for the frontend.
Which of the following configuration options are compatible with this setup? (Select two.)
Select all that apply
An Azure administrator configures a hub-and-spoke network topology in the East US region with the following virtual networks:
* VNet-Hub (): Contains a Virtual Network Gateway named Hub-GW and a Network Virtual Appliance (NVA).
* VNet-SpokeA (): Contains a virtual machine named VM-A.
* VNet-SpokeB (): Contains a virtual machine named VM-B.
The administrator establishes bidirectional peering between VNet-Hub and VNet-SpokeA (using peering links Link-Hub-to-A and Link-A-to-Hub), and between VNet-Hub and VNet-SpokeB (using peering links Link-Hub-to-B and Link-B-to-Hub).
The configuration must meet the following requirements:
* VM-A must be able to communicate with an on-premises network through Hub-GW.
* VM-B must be able to receive traffic originating from on-premises that is routed and forwarded through the NVA in VNet-Hub.
Which configuration settings must be enabled on the virtual network peering links to satisfy these requirements?
An administrator is configuring autoscaling for an Azure Virtual Machine Scale Set named `vmss-payments` that uses Flexible orchestration. The scale set currently has instances and uses a Rolling upgrade policy. You configure a scale-out rule to increase the instance count by when the average CPU percentage is greater than for minutes. You need to configure a scale-in rule that decreases the instance count by when the average CPU percentage is less than a threshold value for minutes. To prevent instance thrashing, what is the maximum value that you should set for the scale-in CPU threshold?
You are configuring access to a blob container named `telemetry-upload` in an Azure Storage account named `iotmetrics2026` for a third-party application. The application requires permissions to upload files to the container under the following constraints:
- Access must be limited solely to the `telemetry-upload` container.
- The token must become invalid after 8 hours.
- Requests must be accepted only from the public IP address .
- You must have the ability to invalidate the token immediately if a leak occurs, without rotating the storage account's primary or secondary keys or impacting other applications.
Which two actions should you perform to meet these requirements? (Select two.)
Select all that apply
You are configuring Azure resources to support a web application. You plan to deploy a public Azure Load Balancer to distribute incoming HTTP requests across three virtual machines named VM1, VM2, and VM3. The virtual machines are deployed in a single Virtual Network (VNet) but are located in different Availability Zones. VM1 and VM2 currently have Basic SKU public IP addresses assigned directly to their network interfaces. VM3 does not have a public IP address. You need to configure the load balancer and backend resources to ensure that the load balancer can successfully distribute traffic to all three virtual machines. Which two configuration actions should you perform? (Select two.)
Select all that apply
To enforce security standards, a company assigns an Azure Policy definition that blocks the deployment of public IP addresses to a management group named `MG-Corp`. A project team needs to deploy a public IP address inside a resource group named `RG-App1` within a subscription that is a child of `MG-Corp`. Which action should the administrator perform to allow this deployment while keeping the policy enforced for all other resources under the management group?
You plan to deploy an Azure virtual machine named VM1. You configure a network interface named NIC1 for VM1 and connect it to a subnet in a virtual network named VNet1. You need to create and attach a second network interface named NIC2 to VM1. Which configuration is required for NIC2?
An administrator is configuring a hub-and-spoke network topology in Microsoft Azure. VNet-Hub has the address space , contains an Azure VPN Gateway, and has virtual machines deployed. VNet-Spoke has the address space , does not contain a gateway, and has virtual machines deployed. A virtual network peering is established between VNet-Hub and VNet-Spoke. The administrator wants virtual machines in VNet-Spoke to route their on-premises traffic through the VPN Gateway in VNet-Hub. Which setting must the administrator configure on the peering connection from VNet-Spoke to VNet-Hub to achieve this objective?
An administrator is configuring network security for an Azure subscription containing a virtual network named `VNet1`. `VNet1` contains two subnets: `Subnet-Web` () and `Subnet-DB` ().
The subnets contain the following virtual machines and network configurations:
| Subnet | VM Name | Private IP | NIC Name | ASG Association |
|---|---|---|---|---|
| `Subnet-Web` | `VM-Web1` | `` | `nic-web1` | `ASG-Web` |
| `Subnet-Web` | `VM-Web2` | `` | `nic-web2` | `ASG-Web` |
| `Subnet-DB` | `VM-DB1` | `` | `nic-db1` | `ASG-DB` |
| `Subnet-DB` | `VM-DB2` | `` | `nic-db2` | None |
A Network Security Group named `NSG-DB` is associated with `Subnet-DB`. No other Network Security Groups are associated with the subnets or network interfaces (NICs).
You must configure `NSG-DB` to meet the following requirements:
- Allow inbound SQL Database traffic (TCP port ) from `VM-Web1` to `VM-DB1` only.
- Block all other TCP port traffic from `Subnet-Web` to `Subnet-DB`.
- Minimize administrative effort and follow the principle of least privilege.
Which two of the following inbound security rules should you add to `NSG-DB` to meet these requirements? (Select two.)
Select all that apply
Your company has an Azure environment with a virtual network named `vnet-hybrid-prod` that has an address space of . The virtual network contains an existing subnet named `snet-db` with an address range of .
You plan to deploy a VPN Gateway and a new application cluster to `vnet-hybrid-prod`. You must satisfy the following requirements:
- The VPN Gateway must be deployed to a subnet named `GatewaySubnet`.
- The application cluster will consist of 27 virtual machines that require individual private IP addresses.
- You must minimize IP address waste.
Which two subnets should you create to meet the requirements? (Choose two.)
Select all that apply
Your company's security mandate requires all new AKS deployments to be private clusters, ensuring that the Kubernetes API server is accessible only within the internal network. You are preparing to deploy a private AKS cluster in a spoke virtual network named `VNet-Spoke` (). The Azure environment has a hub-and-spoke topology. The hub virtual network, `VNet-Hub` (), contains a custom DNS server running on a virtual machine at . `VNet-Spoke` is peered with `VNet-Hub` and is configured to use as its primary DNS server. You need to deploy the private AKS cluster and ensure that management clients in both `VNet-Spoke` and `VNet-Hub` can resolve the private FQDN of the AKS API server. What configuration should you implement?
An organization's Azure environment is structured with the following resource hierarchy:
* Management Group: Tenant-Root-MG
* Subscription: Sub-Prod-App
* Resource Group: RG-Web-Services
You need to grant a security group named Web-Operators the permission to restart and start virtual machines within the RG-Web-Services resource group. The operators must be able to view the virtual machines in the Azure portal but must not be permitted to create, delete, or modify the virtual machines or any other resources in the subscription.
Which of the following configurations should you implement to meet this requirement while adhering to the principle of least privilege?
You provision a public IP address named IP-Pub1 and select the Standard SKU. You now need to set up a new Azure Load Balancer that will utilize IP-Pub1 as its frontend configuration. Which load balancer SKU must you select to ensure compatibility with IP-Pub1?
You have an Azure subscription containing a virtual network named `VNet1` (). `VNet1` contains the following three subnets:
* `Subnet-Web` ()
* `Subnet-App` ()
* `Subnet-Transit` ()
You deploy a Network Virtual Appliance (NVA) named `NVA1` to `Subnet-Transit`. The primary network interface of `NVA1` is named `nic-nva` and has a private IP address of .
You need to implement a routing solution that meets the following requirements:
1. All outbound internet-bound traffic from `Subnet-Web` must be routed through `NVA1`.
2. All internal traffic from `Subnet-Web` destined for database servers in `Subnet-App` must bypass `NVA1` and route directly.
3. `NVA1` must be able to forward transit packets.
Which two configurations should you perform to meet these requirements? (Select two.)
Select all that apply
Your company has an Azure subscription containing a virtual network named `VNet1`. `VNet1` contains two subnets named `Subnet-Web` and `Subnet-App`.
The virtual machines in the subnets are configured as follows:
| Virtual Machine | Subnet | Application Security Group (ASG) | NIC-level NSG |
|---|---|---|---|
| `VM-Web1` | `Subnet-Web` | `ASG-Web` | None |
| `VM-Web2` | `Subnet-Web` | `ASG-Web` | None |
| `VM-App1` | `Subnet-App` | `ASG-App` | `NSG-App-NIC` |
`Subnet-Web` is associated with a Network Security Group (NSG) named `NSG-Web-Subnet`. `Subnet-App` is associated with an NSG named `NSG-App-Subnet`.
The NSGs have the following custom inbound rules:
- `NSG-Web-Subnet`: Only default rules.
- `NSG-App-Subnet`: A rule with Priority 1000, Source: `VirtualNetwork`, Destination: `VirtualNetwork`, Port: `Any`, Protocol: `Any`, Action: `Deny`.
- `NSG-App-NIC`: A rule with Priority 1000, Source: `VirtualNetwork`, Destination: `VirtualNetwork`, Port: `Any`, Protocol: `Any`, Action: `Deny`.
You need to allow `VM-Web1` and `VM-Web2` to connect to `VM-App1` on TCP port 8443. All other traffic from `Subnet-Web` to `Subnet-App` must remain blocked.
Which two security rules should you configure? (Select two.)
Select all that apply
An administrator needs to configure name resolution for virtual machines in an Azure virtual network named VNet1. The administrator decides to use a custom private domain namespace. Arrange the steps in the correct order to configure private name resolution using an Azure Private DNS zone.
Drag items to arrange them in the correct order