All practice questions
1252 questions
You have an Azure storage account named stdatafiles44 that hosts an Azure file share named templates. You need to configure Microsoft Entra ID authentication over SMB for the file share. The solution must allow cloud-only user accounts in a Microsoft Entra ID group named Designers to read and write files in the share using their Microsoft Entra ID credentials. Which two configurations should you perform? (Select two.)
Select all that apply
An administrator deploys three virtual networks in an Azure subscription:
* VNet-Hub (), containing a VPN gateway and a virtual machine named VM-Hub () deployed in Subnet-Hub.
* VNet-Spoke1 (), containing a virtual machine named VM-Spoke1 () deployed in Subnet-Spoke1.
* VNet-Spoke2 (), containing a virtual machine named VM-Spoke2 () deployed in Subnet-Spoke2.
The administrator configures virtual network peering between VNet-Hub and VNet-Spoke1 with 'Allow gateway transit' enabled on VNet-Hub and 'Use remote gateways' enabled on VNet-Spoke1. The administrator also configures virtual network peering between VNet-Hub and VNet-Spoke2 with 'Allow gateway transit' enabled on VNet-Hub and 'Use remote gateways' enabled on VNet-Spoke2. 'Allow forwarded traffic' is enabled on all peering connections. No User-Defined Routes (UDRs) or Network Virtual Appliances (NVAs) are deployed.
To enable VM-Spoke1 to communicate with VM-Spoke2, no additional peering connections or routing resources are required because the existing gateway transit configurations automatically route traffic between the spokes through the hub.
You are deploying a containerized application to Azure Container Instances (ACI) by using an Azure Resource Manager (ARM) template. You do not define the `restartPolicy` property in the container group definition. The application is designed to execute a one-time data synchronization script and then exit.
What will be the behavior of the container group after the application successfully completes the script and exits with an exit code of 0?
An administrator is configuring network security for a database application in Microsoft Azure. The environment contains the following resources:
* A virtual network named `VNet-Production` with a subnet named `Subnet-Data` ().
* A virtual machine named `VM-Database` with a network interface named `nic-db-01` connected to `Subnet-Data` and associated with an Application Security Group named `ASG-Database`.
* A virtual machine named `VM-WebFrontend` associated with an Application Security Group named `ASG-WebFrontend`.
A Network Security Group named `NSG-Subnet` is associated with `Subnet-Data` and contains the following inbound rules:
| Priority | Name | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|---|
| 100 | Allow-Web-to-DB-Subnet | ASG-WebFrontend | ASG-Database | 1433 | TCP | Allow |
| 1000 | Deny-All-Inbound-Subnet | Any | Any | * | * | Deny |
A Network Security Group named `NSG-NIC` is associated with `nic-db-01` and contains the following inbound rules:
| Priority | Name | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|---|
| 150 | Deny-Web-to-DB-NIC | ASG-WebFrontend | ASG-Database | 1433 | TCP | Deny |
| 200 | Allow-Web-to-DB-NIC | ASG-WebFrontend | ASG-Database | 1433 | TCP | Allow |
You need to ensure that `VM-WebFrontend` can establish a database connection to `VM-Database` on TCP port 1433. The solution must minimize security risks and administrative effort.
Which of the following actions should you perform?
An administrator plans to copy files from an on-premises Linux server to a blob container named archives in an Azure storage account named stmigration2026. The storage account has its firewall configured to 'Enabled from selected virtual networks and IP addresses'. The administrator intends to use AzCopy and authenticate using a Microsoft Entra ID user account. Which two configuration steps must you perform to ensure the transfer succeeds? (Select two.)
Select all that apply
You are configuring routing and security for a hub-and-spoke virtual network topology in Microsoft Azure. The topology contains the following networks:
- A hub virtual network (VNet-Hub) with an address space of .
- A spoke virtual network (VNet-Spoke1) with an address space of .
- A spoke virtual network (VNet-Spoke2) with an address space of .
VNet-Spoke1 and VNet-Spoke2 are peered with VNet-Hub. There is no direct peering between VNet-Spoke1 and VNet-Spoke2. You deploy an Azure Firewall in VNet-Hub, which is assigned the private IP address .
You must meet the following requirements:
- All traffic between VNet-Spoke1 and VNet-Spoke2 must be routed through and inspected by the Azure Firewall.
- All outbound internet traffic from both spoke virtual networks must be routed through and inspected by the Azure Firewall.
- The firewall subnet must be configured according to Microsoft recommendations and support future scalability.
Which three configurations must you perform to meet these requirements? (Select three.)
Select all that apply
You plan to deploy Azure Bastion to a virtual network named VNet1. You need to create the dedicated subnet required for the Azure Bastion host. Which subnet configuration should you use?
An organization deploys a three-tier architecture in a single Azure virtual network named `VNet-Secure` (). The virtual network contains the following subnets:
* `Subnet-Web` ()
* `Subnet-DB` ()
* `Subnet-DMZ` ()
A third-party security firewall operates as a Network Virtual Appliance (NVA) in `Subnet-DMZ` with the private IP address . By default, Azure system routes allow direct IP communication between all subnets.
You must configure the environment to force all outbound traffic from `Subnet-Web` destined for `Subnet-DB` to traverse the firewall NVA.
Which two configurations should you implement? (Select two.)
Select all that apply
An administrator is configuring network security in an Azure subscription. A virtual network named `VNet1` contains two subnets: `Subnet1` () and `Subnet2` ().
* `VM1` (IP address ) is deployed in `Subnet1`. Its network interface is associated with an Application Security Group named `ASG-App` and a Network Security Group named `NSG-VM1`.
* `VM2` (IP address ) is deployed in `Subnet2`. Its network interface is associated with an Application Security Group named `ASG-DB` and a Network Security Group named `NSG-VM2`.
* `Subnet1` is associated with a Network Security Group named `NSG-Subnet1`.
* `Subnet2` is associated with a Network Security Group named `NSG-Subnet2`.
The NSG rules are configured as shown in the following tables:
| Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|
| `ASG-App` | `ASG-DB` | TCP | Allow |
| Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|
| `*` | `ASG-DB` | TCP | Allow | ||
| `*` | TCP | Deny |
| Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|
| `*` | TCP | Deny | |||
| `ASG-App` | `ASG-DB` | TCP | Allow |
| Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|
| `ASG-App` | `ASG-DB` | TCP | Allow |
An administrator attempts to establish a TCP connection from `VM1` to `VM2` on port .
What is the outcome of this connection attempt?
An organization has an Azure environment structured with the following hierarchy:
* Management Group: `MG-Logistics`
* Subscription: `Sub-Shipments`
* Resource Group: `RG-CoreServices`
* Storage Account: `stashipdata`
* Resource Group: `RG-ComputeVets`
You need to configure access for a security group named `Group-LogisticsAdmins` to meet the following requirements:
1. Members of the group must be able to view all resources in the `Sub-Shipments` subscription.
2. Members of the group must be able to upload, download, and delete blobs inside the `stashipdata` storage account.
3. The configuration must follow the principle of least privilege.
Which two role assignments should you configure? (Select two.)
Select all that apply
An administrator manages an Azure subscription and configures resource governance. The subscription contains a resource group named `rg-billing-app`. Inside `rg-billing-app`, there are two resources: a Key Vault named `kv-billing-keys` and a Storage Account named `sa-billing-data`.
The administrator configures the following settings:
- A tag named `CostCenter: Finance` and a `ReadOnly` resource lock are applied to `rg-billing-app`.
- A tag named `Environment: Production` and a `CanNotDelete` resource lock are applied directly to `kv-billing-keys`.
Which of the following statements correctly describe the resulting governance state? (Select two.)
Select all that apply
Your organization is planning to deploy an Azure Application Gateway to load balance traffic across multiple backend web servers. You need to prepare the environment and configure the gateway. Organize the configuration steps in the correct sequential order from start to finish.
Drag items to arrange them in the correct order
An administrator is configuring a public Azure Load Balancer named LB1 by using the Standard SKU. LB1 will distribute inbound traffic to two virtual machines named VM1 and VM2. VM1 is a standalone virtual machine that has a Standard SKU public IP address associated with its network interface (NIC). VM2 is a standalone virtual machine that has a Basic SKU public IP address associated with its network interface (NIC). When the administrator attempts to add VM2 to the backend pool of LB1, the operation fails. You need to resolve the issue while ensuring that both virtual machines retain their respective public IP addresses. What should you do?
You are designing the IP addressing scheme for a new Azure virtual network named `vnet-retail-prod` that has an address space of .
You must configure the following subnets:
- A subnet named `AzureBastionSubnet` to deploy an Azure Bastion host.
- A subnet named `snet-app` to deploy exactly virtual machines.
You need to minimize the address space allocated to each subnet.
Which subnet mask sizes should you assign to `AzureBastionSubnet` and `snet-app`?
You are configuring a public-facing Azure Load Balancer named `LB1` using the Standard SKU. The load balancer will distribute inbound internet traffic to three standalone virtual machines: `VM1`, `VM2`, and `VM3` located in the same Virtual Network `VNet1`.
The virtual machines are configured as follows:
- `VM1` is deployed in Availability Zone 1. Its primary network interface is associated with a Standard SKU public IP address named `Pip1`.
- `VM2` is deployed in Availability Zone 2. Its primary network interface is associated with a Basic SKU public IP address named `Pip2`.
- `VM3` is deployed in Availability Zone 2 and does not have any public IP address assigned to its network interface.
You need to ensure that `VM1`, `VM2`, and `VM3` can be successfully added to the backend pool of `LB1` and are able to receive load-balanced traffic.
Which two actions should you perform?
Select all that apply
You manage an Azure subscription that contains a private DNS zone named private.contoso.local and three virtual networks named VNet-East, VNet-West, and VNet-Central. Currently, VNet-East has a virtual network link to private.contoso.local with auto-registration enabled. You receive a new requirement to configure the networks to meet the following criteria:
- Virtual machines in VNet-West must be able to resolve names in private.contoso.local and must have their DNS records automatically registered in the zone.
- Virtual machines in VNet-Central must be able to resolve names in private.contoso.local but must not have their DNS records automatically registered.
- Virtual machines in VNet-East must still be able to resolve names in private.contoso.local, but automatic registration of their DNS records is no longer required.
Which administrative action should you perform?
An administrator is configuring a public load balancer named `LB1` to distribute incoming Internet traffic to four virtual machines in a virtual network named `VNet1`.
The virtual machines are deployed as follows:
* `VM1` and `VM2` are in `AvailabilitySet1` and located in `Zone 1`.
* `VM3` and `VM4` are standalone virtual machines and located in `Zone 2`.
The administrator has already created a Standard SKU public IP address named `Pub-IP1` to be used by the load balancer.
You need to configure `LB1` to load balance traffic across all four virtual machines.
Which configuration should you use?
An organization has an Azure subscription containing a resource group named rg-hr. Within rg-hr, there is an Azure Storage account named sthrdocs99 that contains a blob container named salaries. A security group named HR-Auditors must be allowed to read the blobs in the salaries container. An administrator assigns the Reader role to the HR-Auditors group at the storage account level. Members of the group report that they can view the storage account properties in the Azure portal but receive an authorization error when they attempt to list or read the blobs. What role assignment should the administrator configure to allow the HR-Auditors group to read the blobs while adhering to the principle of least privilege?
You are configuring a virtual network named `vnet-iot-ingress` in an Azure subscription. The virtual network is assigned the address space of . You need to create a subnet named `snet-devices` that will host 60 virtual machines. You assign the address range to the `snet-devices` subnet. Is the statement that the `snet-devices` subnet has a sufficient number of usable IP addresses to support the 60 virtual machines true?
To support a web application, you plan to configure a public Azure Load Balancer named App-LB. You have three virtual machines: Web-VM1, Web-VM2, and Web-VM3. Web-VM1 is deployed in Availability Zone 1. Web-VM2 is deployed in Availability Zone 2. Web-VM3 is a standalone virtual machine with no zone redundancy. All three virtual machines are located in the same virtual network and subnet. Each virtual machine has a Basic SKU public IP address assigned to its primary network interface. You need to configure App-LB to distribute incoming internet traffic to the three virtual machines. The solution must ensure that traffic can be distributed across all three virtual machines. Which two actions should you perform? (Select two.)
Select all that apply