All practice questions
1252 questions
You are managing an Azure environment with a single virtual network named `VNet1`. The virtual network contains two subnets: `Subnet-Web` and `Subnet-DB`.
The resources are configured as follows:
- A virtual machine named `VM-Web` is deployed in `Subnet-Web` and is associated with an Application Security Group named `ASG-Web`.
- A virtual machine named `VM-DB` is deployed in `Subnet-DB` and is associated with an Application Security Group named `ASG-DB`.
- A Network Security Group named `NSG-Subnet-DB` is associated with `Subnet-DB`.
- A Network Security Group named `NSG-NIC-DB` is associated with the network interface of `VM-DB`.
`NSG-Subnet-DB` contains the following inbound security rules:
| Priority | Source | Source Port | Destination | Destination Port | Protocol | Action |
|---|---|---|---|---|---|---|
| `ASG-Web` | `*` | `ASG-DB` | TCP | Allow | ||
| `VirtualNetwork` | `*` | `VirtualNetwork` | TCP | Deny |
`NSG-NIC-DB` contains the following inbound security rules:
| Priority | Source | Source Port | Destination | Destination Port | Protocol | Action |
|---|---|---|---|---|---|---|
| `VirtualNetwork` | `*` | `ASG-DB` | TCP | Deny | ||
| `ASG-Web` | `*` | `ASG-DB` | TCP | Allow |
`VM-Web` attempts to establish a database connection to `VM-DB` on TCP port .
What is the outcome of this connection attempt?
An administrator plans to deploy a new Azure Kubernetes Service (AKS) cluster. The cluster pods must be assigned IP addresses directly from an existing Azure Virtual Network subnet to enable direct routing to other resources in the virtual network without performing Network Address Translation (NAT). Which network plugin should be selected during the AKS cluster configuration?
A company has an Azure virtual network with two subnets named Subnet-Web and Subnet-DB. A virtual machine named VM-Web is deployed in Subnet-Web and associated with an Application Security Group (ASG) named ASG-Web. A virtual machine named VM-DB is deployed in Subnet-DB and associated with an ASG named ASG-DB.
A Network Security Group (NSG) named NSG-Web is associated with Subnet-Web, and an NSG named NSG-DB is associated with Subnet-DB.
In NSG-DB, the following inbound security rules are configured:
- Rule1: Priority 150, Source: ASG-Web, Destination: ASG-DB, Port: 80, Protocol: TCP, Action: Deny
- Rule2: Priority 250, Source: Any, Destination: Any, Port: 80, Protocol: TCP, Action: Allow
NSG-Web contains a custom outbound rule that allows all traffic on port 80 to ASG-DB.
What is the outcome when VM-Web attempts to establish an HTTP connection on TCP port 80 to VM-DB?
You have an Azure virtual network named `VNet1` that contains two subnets: `Subnet1` () and `Subnet2` (). You deploy a virtual machine in `Subnet2` that acts as a Network Virtual Appliance (NVA) with the private IP address of . You need to route all outbound traffic from `Subnet1` destined for the internet through the NVA. Which two actions should you perform? (Select two.)
Select all that apply
An administrator is configuring Microsoft Entra ID to meet security, governance, and hybrid connectivity requirements. Match each administrative requirement to its minimum required license tier or configuration setting.
Click a left item, then click its matching right item
Items
Matches
An organization hosts a web application on an Azure App Service named `hr-prod-app` that runs on a Standard (S1) App Service plan. You need to implement a new deployment slot named `hr-stage-app` to test code updates. To perform canary testing under production load, you must direct of incoming user traffic to the staging slot. Which two actions should you perform? (Select TWO.)
Select all that apply
A retail company is preparing to launch a new customer portal on Azure App Service. The portal must be hosted under a custom domain name with a custom SSL certificate. The operations team needs to test new updates in a staging environment before routing live user traffic to them. Additionally, the hosting environment must support scaling out to dedicated instances to handle traffic spikes. Which App Service plan pricing tier is the most cost-effective option that satisfies all requirements?
You have an Azure Storage account named financestorage that contains a blob container named audits. You need to grant an external audit application temporary access to read and list blobs in the audits container. The solution must meet the following requirements:
- Limit access to the IP address range 203.0.113.0/24.
- Allow connections only over HTTPS.
- Limit access to a duration of 8 hours.
- Provide the ability to immediately revoke access before the 8-hour period expires without rotating the storage account access keys.
Which two actions should you perform? (Select two.)
Select all that apply
You have an Azure subscription that contains the virtual networks shown in the following table:
| Virtual Network | Address Space | Resources Deployed |
|---|---|---|
| `VNet-Hub` | `VPNGW1` (VPN Gateway), `NVA1` (Network Virtual Appliance at ) | |
| `VNet-Spoke1` | `VM1` (Virtual Machine at ) | |
| `VNet-Spoke2` | `VM2` (Virtual Machine at ) |
An on-premises network () is connected to `VPNGW1` via a Site-to-Site VPN connection. IP forwarding is enabled on the network interface of `NVA1`.
You configure the following virtual network peering connections:
1. `Peering-Hub-Spoke1` between `VNet-Hub` and `VNet-Spoke1`
2. `Peering-Hub-Spoke2` between `VNet-Hub` and `VNet-Spoke2`
The peerings are currently configured with the following settings:
- On both peerings, the hub-side settings have 'Traffic forwarded from remote virtual network' set to Block, and 'Use this virtual network's gateway or Route Server' set to Block (disabled).
- On both peerings, the spoke-side settings have 'Traffic forwarded from remote virtual network' set to Block, and 'Use the remote virtual network's gateway or Route Server' set to Allow (enabled).
You associate route tables to the subnets in `VNet-Spoke1` and `VNet-Spoke2` to route traffic destined for the opposite spoke to `NVA1` ().
You need to ensure that:
1. `VM1` and `VM2` can communicate with each other through `NVA1`.
2. Both `VM1` and `VM2` can access the on-premises network through `VPNGW1`.
Which configuration changes should you perform?
An organization has a backend API hosted on an Azure App Service web app. You need to restrict inbound network access to the API so that it only accepts traffic originating from a virtual network subnet named Subnet1. Which configuration should you implement?
An administrator of a Microsoft Entra ID tenant configures a Self-Service Password Reset (SSPR) policy. The policy requires two authentication methods for a password reset. The enabled authentication methods in the SSPR policy are:
- Mobile app notification
- Email
- Security questions
Three users in the tenant register the following authentication methods:
- Elena: Registers an email address and configures the Microsoft Authenticator app for notifications.
- David: Registers an email address and a mobile phone number.
- Chloe: Registers a mobile phone number and configures security questions.
Which user or users will be able to successfully perform a self-service password reset?
You have an Azure Virtual Machine Scale Set named vmss-prod that has a manual upgrade policy. You need to configure the scale set to retrieve a secret from an Azure Key Vault named kv-prod. The configuration must use the principle of least privilege. Which sequence of actions should you perform? To answer, drag the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Drag items to arrange them in the correct order
An organization implements an Azure virtual network named `VNet-Production` (). The virtual network contains four subnets:
- `FrontEndSubnet` ()
- `BackEndSubnet` ()
- `SecuritySubnet` ()
- `GatewaySubnet` () which contains a Virtual Network Gateway configured with BGP to propagate routes for an on-premises network ().
A virtual machine named `NVA1` is deployed in `SecuritySubnet` and has the private IP address .
You need to implement custom routing to meet the following requirements:
- All outbound traffic from `FrontEndSubnet` to the internet must be routed through `NVA1`.
- All traffic from `FrontEndSubnet` to `BackEndSubnet` must be routed through `NVA1`.
- Traffic from `FrontEndSubnet` to the on-premises network () must bypass `NVA1` and route directly through the Virtual Network Gateway.
Which two actions should you perform to implement this routing configuration? (Select two.)
Select all that apply
An administrator is designing a virtual network named `vnet-prod` in an Azure subscription. The virtual network is assigned the address space . The administrator needs to configure subnets to support the following requirements:
* A subnet named `subnet-app` to host at least virtual machines.
* A subnet named `AzureBastionSubnet` to enable secure administrative access.
* A subnet named `GatewaySubnet` to support a VPN gateway.
The administrator proposes the following subnet allocations:
* `subnet-app`:
* `AzureBastionSubnet`:
* `GatewaySubnet`:
Which subnet in the proposed configuration will cause a deployment or configuration failure due to Azure subnet size constraints?
An administrator is configuring security rules for an Azure virtual network named `VNet1`. The virtual network contains two subnets: `Subnet-Web` () and `Subnet-Data` ().
The environment contains the following resources:
- `VM-Web1`: Located in `Subnet-Web` and associated with the Application Security Group `ASG-Web`.
- `VM-Data1`: Located in `Subnet-Data` and associated with the Application Security Group `ASG-Data`.
- `NSG-SubnetWeb`: A Network Security Group associated with `Subnet-Web`.
- `NSG-SubnetData`: A Network Security Group associated with `Subnet-Data`.
- `NSG-NicData`: A Network Security Group associated with the network interface of `VM-Data1`.
Currently, database traffic on TCP port from `VM-Web1` to `VM-Data1` is blocked. The security groups contain the custom rules shown in the following tables:
| Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|
| 500 | `ASG-Web` | `ASG-Data` | Any | Any | Deny |
| Priority | Source | Destination | Port | Protocol | Action |
|---|---|---|---|---|---|
| 600 | `10.10.1.0/24` | `ASG-Data` | 1433 | TCP | Deny |
NSG-NicData (Inbound Rules)
- Only default rules are active.
You need to allow SQL Server database traffic on TCP port from `VM-Web1` to `VM-Data1` while maintaining the principle of least privilege.
Which two configuration changes should you perform?
Select all that apply
An administrator is planning the deployment of a new Azure virtual machine named VM-Prod1 in the West US 3 region. The deployment must meet the following requirements:
- Ensure the virtual machine is protected against datacenter-wide outages within the region.
- Back up VM-Prod1 to an existing Recovery Services vault named Vault1, which is located in the West US 3 region.
Which of the following actions should you perform? Select two.
Select all that apply
You have an Azure virtual network named `VNet1` that contains three subnets named `Subnet-Public` (), `Subnet-Secure` (), and `Subnet-DMZ` (). A Network Virtual Appliance (NVA) is deployed in `Subnet-DMZ` and is assigned the private IP address . You need to create a user-defined route in a route table associated with `Subnet-Secure` to direct all outbound internet traffic from `Subnet-Secure` through the NVA. Which next hop type and next hop IP address should you configure in the route table to meet this requirement?
Your company has a hub-and-spoke network topology in Azure consisting of three virtual networks: `Hub-VNet` (), `Spoke-VNet1` (), and `Spoke-VNet2` (). Virtual machines are deployed in subnets within all three virtual networks to establish data plane connectivity.
You configure virtual network peering between `Hub-VNet` and `Spoke-VNet1`, and between `Hub-VNet` and `Spoke-VNet2`. No virtual network gateways or virtual appliances are deployed.
Which configuration is required to allow virtual machines in `Spoke-VNet1` to communicate directly with virtual machines in `Spoke-VNet2` over the Azure backbone network?
You have an Azure subscription that contains a Standard Load Balancer named LB1 and two virtual machines named VM1 and VM2. VM1 and VM2 are deployed in the same virtual network. The network interfaces of VM1 and VM2 are currently associated with Basic SKU public IP addresses.
You need to add VM1 and VM2 to the backend pool of LB1. The virtual machines must remain accessible from the internet via public IP addresses.
Which two actions should you perform?
Select all that apply
An organization deploys three Azure virtual networks in the East US region: `VNet-Alpha` (), `VNet-Beta` (), and `VNet-Gamma` (). Virtual machines are running within the subnets of each virtual network.
You establish a virtual network peering link between `VNet-Alpha` and `VNet-Beta`. Next, you establish a virtual network peering link between `VNet-Beta` and `VNet-Gamma`.
The peering configurations have 'Allow forwarded traffic' enabled, and 'Use remote gateways' and 'Allow gateway transit' are disabled. There are no virtual network gateways or network virtual appliances in any of the virtual networks.
What is the resulting connectivity between the virtual machines in `VNet-Alpha` and the virtual machines in `VNet-Gamma`?