All practice questions
1252 questions
An administrator is deploying a multi-container group to Azure Container Instances (ACI) using an Azure Resource Manager (ARM) template. The group contains an application container that runs a continuous processing service and a sidecar container that collects and processes local logs. The deployment must meet the following requirements:
- The container group must reside within an existing Azure Virtual Network (VNet) inside a dedicated subnet.
- The application container must write logs to a shared directory that the sidecar container can access.
- Both containers must be restarted automatically if the application container fails.
Which of the following configurations must be defined in the template to successfully deploy this container group? (Select TWO)
Select all that apply
You are planning the IP addressing schema for a new Azure Virtual Network named `VNet-Prod` that has an allocated address space of . The network must host the following resources:
- A VPN Gateway, which requires a dedicated subnet named `GatewaySubnet` (minimum recommended size is ).
- An Azure Bastion host, which requires a dedicated subnet named `AzureBastionSubnet`.
- A web application tier named `Subnet-Web` that must support at least concurrent virtual machines.
- An application tier named `Subnet-App` that must support at least concurrent virtual machines.
You propose the following subnet configuration:
- `AzureBastionSubnet`:
- `GatewaySubnet`:
- `Subnet-Web`:
- `Subnet-App`:
Determine if the following statement is true or false: The proposed configuration is valid, meets all resource requirements, and avoids any overlapping address spaces.
You have an Azure virtual network named VNet1 that contains two subnets named SubnetA (10.0.1.0/24) and SubnetB (10.0.2.0/24). A Network Virtual Appliance (NVA) with the IP address 10.0.2.4 is deployed in SubnetB. By default, system routes allow direct communication between the two subnets. You want to route all outbound internet traffic from SubnetA through the NVA in SubnetB. You create a route table and associate it with SubnetA. You add a route for the destination 0.0.0.0/0. Which next hop type should you configure in the route?
An organization is deploying a multi-tenant web application on a single Azure Virtual Machine. The network architecture requires a single network interface to receive traffic on two distinct private IP addresses, each mapped to a dedicated public IP address for external access. The virtual network uses the address space and the subnet uses . The network interface currently has a single IP configuration named `ipconfig-primary` with a dynamic private IP address of and a Standard SKU public IP address. Which of the following configuration steps must be performed to implement the secondary IP configuration? (Select TWO).
Select all that apply
An administrator is configuring a virtual network named `vnet-prod` in a resource group named `rg-prod`. The virtual network is assigned the address space of . The administrator needs to create a new subnet to host a database cluster that requires a minimum of usable IP addresses. Which of the following is the smallest subnet mask that meets this requirement in Azure?
You are configuring a virtual machine named VM-App1. The virtual machine has a single network interface named nic-app1. The primary IP configuration of nic-app1 is associated with the backend pool of a Standard Load Balancer. You need to configure a secondary IP configuration on nic-app1 that includes a public IP address. Which of the following configurations should you select for the secondary public IP address? Select two.
Select all that apply
A developer requires temporary access to read and add messages to a single storage queue named orders-queue in the Azure Storage account productionstore. The access must comply with the following requirements:
- Access must be limited to the IP address range 198.51.100.40 to 198.51.100.50.
- All connection requests must use the HTTPS protocol.
- The access must be revocable at any time without rotating the storage account access keys and without affecting other clients.
Which configuration should you implement to meet these requirements?
A company establishes the following Azure resource hierarchy:
- A Management Group named `Corp-MG`
- A subscription named `Sub-Production` located under `Corp-MG`
- A resource group named `RG-App-Prod` in `Sub-Production`
- A resource group named `RG-App-Shared` in `Sub-Production`
The following governance configurations are applied:
1. An Azure Policy initiative named `Gov-Initiative` is assigned at the `Sub-Production` subscription level. The initiative contains a policy definition that restricts allowed virtual machine SKUs to `Standard_D2s_v3` (Effect: `Deny`) and a policy definition that requires the `CostCenter` tag (Effect: `Audit`).
2. An exclusion is configured on the `Gov-Initiative` assignment for the `RG-App-Shared` resource group.
3. An Azure Policy definition that restricts storage account replication SKUs to `Standard_LRS` (Effect: `Deny`) is assigned directly to the `RG-App-Shared` resource group.
A technician attempts to perform the following operations:
- Operation 1: Create a virtual machine with the `Standard_F2s_v2` SKU in `RG-App-Prod` without any tags.
- Operation 2: Create a virtual machine with the `Standard_F2s_v2` SKU in `RG-App-Shared` without any tags.
- Operation 3: Create a storage account with the `Standard_GRS` SKU in `RG-App-Shared`.
Which two of the following outcomes will occur?
Select all that apply
Your company has two web applications that will be deployed to Azure App Service: WebApp1 and WebApp2.
You need to create App Service plans for both applications to meet the following requirements:
- WebApp1 requires 10 deployment slots (including the production slot) and must scale automatically based on CPU utilization.
- WebApp2 must support a custom domain name, SSL binding, and manual scale-out of up to three instances. WebApp2 does not require staging slots, Virtual Network (VNet) integration, or auto-scaling.
To minimize costs, you must deploy each application to the lowest pricing tier that satisfies its requirements.
Which two App Service plan pricing tiers should you recommend? (Select two.)
Select all that apply
You need to deploy a Virtual Machine Scale Set (VMSS) named `vmss-app` that automatically installs an application during provisioning. The installation script is stored in a private Azure Storage account. Which sequence of steps should you perform to configure the VMSS to retrieve and run the script securely?
Drag items to arrange them in the correct order
You have an Azure App Service web app named app-sales that currently runs on a Shared (D1) App Service plan. You need to configure a custom domain named sales.contoso.com and bind a custom SSL certificate to the domain. What is the minimum App Service plan pricing tier required to support this configuration?
An administrator needs to change the size of an Azure virtual machine named VM1 from Standard_D2s_v5 to Standard_F4s_v2 to optimize performance for a CPU-bound workload. Currently, VM1 is running. When attempting to resize VM1 in the Azure portal, the Standard_F4s_v2 size is not displayed in the list of available sizes. What should the administrator do to make the Standard_F4s_v2 size available for selection?
Your company plans to deploy an Azure Kubernetes Service (AKS) cluster in an existing virtual network. The virtual network has a limited subnet address space, and you must conserve IP addresses. The design must ensure that pods do not receive IP addresses directly from the virtual network subnet, and instead use network address translation (NAT) to communicate with other resources. Which two configuration settings should you select when deploying the AKS cluster to meet these requirements?
Select all that apply
Your Azure environment has a subnet containing two virtual machines: and . is associated with an Application Security Group (ASG) named . is associated with an ASG named .
The subnet is associated with a Network Security Group (NSG) that has the following inbound security rules:
* Rule 1: Priority , Source: , Destination: , Port: , Protocol: TCP, Action: Deny
* Rule 2: Priority , Source: Any, Destination: , Port: , Protocol: TCP, Action: Allow
A user attempts to establish a SQL database connection over TCP port from to . Which outcome will occur?
Your organization has a hybrid Active Directory environment and a Microsoft Entra ID tenant with Microsoft Entra ID P1 licenses. You must implement the following identity and access management requirements:
1. On-premises user accounts must be able to change their passwords in the cloud, and these changes must synchronize back to the on-premises Active Directory Domain Services (AD DS) domain.
2. External guest users must not be permitted to invite other guest users unless they are explicitly assigned a directory role that allows invitations.
3. Users must be allowed to reset their own passwords using either email or the Microsoft Authenticator app.
Which of the following actions should you perform? (Select TWO.)
Select all that apply
Your company plans to implement Azure File Sync to synchronize files between an on-premises server named SRV-Retail01 and an Azure file share named salesdata. The salesdata share is located in a storage account named storaretail2026.
You configure the firewall on storaretail2026 to restrict access, permitting traffic only from selected networks.
Which two of the following settings or configurations must you implement to ensure that Azure File Sync can successfully synchronize files with the salesdata file share? (Select two.)
Select all that apply
In an Azure virtual network, a subnet configured with the address prefix has exactly three usable IP addresses available for resource allocation.
An organization has a hub-and-spoke virtual network topology in Microsoft Azure configured as follows:
- VNet-Hub (address space ) contains a subnet named Subnet-DMZ () and a subnet named Subnet-Data ().
- Subnet-DMZ hosts a Network Virtual Appliance (NVA) with the private IP address .
- VNet-Spoke1 (address space ) contains a subnet named Subnet-App1 ().
- VNet-Hub and VNet-Spoke1 are connected via virtual network peering with default settings.
You must implement a routing policy for traffic originating from Subnet-App1 that meets the following requirements:
1. All traffic destined for the hub virtual network () must be inspected by the NVA.
2. All traffic destined for the database servers in Subnet-Data () must bypass the NVA and connect directly over the virtual network peering connection.
3. The NVA must be permitted to forward traffic that is not destined for its local network interfaces.
Which three configuration steps should you perform to meet these requirements? (Select three.)
Select all that apply
Your company has a Hub-and-Spoke network topology in Azure. The Hub VNet () hosts custom DNS servers ( and ) that resolve corporate DNS names and forward all other requests to the Azure recursive resolver (). The Spoke VNet () is peered with the Hub VNet. Virtual network peering is configured to allow forward traffic, but gateway transit is disabled. You deploy a private Azure Kubernetes Service (AKS) cluster named `aks-prod` in a subnet () within the Spoke VNet. You use the default option to let Azure manage the private DNS zone, which creates a zone named `privatelink.eastus.azmk8s.io` in the node resource group. Developers working on virtual machines located in the Hub VNet report that they cannot connect to the AKS cluster because the API server fully qualified domain name (FQDN) does not resolve to a private IP address. Which of the following actions should you perform to resolve the DNS resolution issue?
You are configuring an Azure Virtual Machine Scale Set (VMSS) named `vmss-finance` to handle a queue-based processing workload. The scale set is configured with a Flexible orchestration mode, a current instance count of 8, and a Manual upgrade policy. You need to configure a scale-in policy to ensure that when the queue depth decreases and the scale set scales in, the virtual machines that have been running the longest are deleted first. Which scale-in policy should you configure?