All practice questions
1252 questions
An IT department implements a security policy that disables shared key access for all Azure Storage accounts. To upload log files to a blob container named `application-logs` in a storage account named `stdata2026`, an administrator runs the `azcopy login` command and authenticates using their Microsoft Entra ID credentials. The administrator is a member of a group assigned the Contributor role for the storage account. When attempting to run the copy command, the administrator receives a HTTP 403 error. Which role must be assigned to the administrator to resolve the issue?
An administrator needs to configure secure remote access to virtual machines in an Azure virtual network named VNet1 using Azure Bastion. What is the correct sequence of steps to configure and connect using Azure Bastion?
Drag items to arrange them in the correct order
An administrator is managing an Azure virtual machine named VM1 in the East US region. VM1 is currently configured with the Standard_D2s_v3 size and uses a Premium SSD disk for its operating system. To reduce monthly running costs, you attempt to resize VM1 to the Standard_D2_v3 size. The resize operation fails. What is the cause of this failure?
An administrator deploys a new shipping application. The deployment includes a resource group named rg-shipping-prod that contains an Azure App Service web app and an Azure SQL database. The administrator applies a tag named CostCenter: Shipping and a CanNotDelete resource lock directly to rg-shipping-prod. Which of the following describes the resource governance status of the Azure SQL database?
An administrator needs to synchronize a local directory named C:\Logs to a blob container named applogs in an Azure storage account. Shared key access is disabled on the storage account. The storage account firewall is configured to allow access only from selected networks, and the administrator's workstation public IP address is allowed. The synchronization must meet the following requirements:
- Only files with the .log extension must be synchronized.
- Any files in the destination container that do not exist in the source directory must be deleted automatically.
Which two actions or parameters should the administrator use? (Select two.)
Select all that apply
An administrator wants to review write operations on virtual machines within an Azure subscription. They open the Log Analytics query editor to search the `AzureActivity` table. The query must filter for logs where `OperationNameValue` is equal to `'Microsoft.Compute/virtualMachines/write'` and restrict the output to exactly records.
Which of the following queries use valid Kusto Query Language (KQL) syntax to achieve this goal? (Choose two.)
Select all that apply
You plan to deploy a containerized application to Azure Container Instances (ACI). The application consists of a single container that processes incoming image files from an Azure storage account and then terminates. If the processing fails, the container must attempt to restart. If it succeeds, the container must not run again. The ACI deployment must be integrated into an Azure Virtual Network named VNet1. Which of the following configuration options should you select? (Select TWO).
Select all that apply
An administrator needs to upload files from an on-premises workstation to an Azure Storage account named stdata2026 using Azure Storage Explorer. The storage account has its firewall configured to restrict access to 'Selected networks'. The administrator's workstation public IP address has been added to the allowed IP ranges of the storage account. The administrator is assigned the Contributor role at the storage account scope. When attempting to upload blobs using Microsoft Entra ID authentication in Storage Explorer, the administrator receives an authorization error.
Which action should the administrator take to resolve this error?
A company has a single web application hosted on Azure Virtual Machines. You are configuring an Azure Application Gateway to distribute traffic. You need to ensure that requests for the URL path `/videos/*` are directed to a pool of VMs optimized for video streaming, while all other requests are directed to a default pool of web servers. Which type of routing rule should you configure on the Application Gateway?
You have an Azure subscription containing a Log Analytics workspace named Workspace1 and a virtual machine named VM1. VM1 sends its diagnostic logs to Workspace1. You need to allow a developer to query the logs of VM1. The developer must not be able to view logs for any other resources in Workspace1. Which action should you perform?
An administrator is configuring outbound traffic filtering in a hub-and-spoke virtual network topology in Microsoft Azure. The hub virtual network (`VNet-Hub`) contains an Azure Firewall instance deployed in `AzureFirewallSubnet` with a private IP address of and a public IP address of . The spoke virtual network (`VNet-Spoke`) contains `Subnet-App` () hosting a virtual machine named `VM-App` (). `VNet-Hub` and `VNet-Spoke` are peered.
The administrator configures a route table named `RT-Spoke` associated with `Subnet-App` with a default route () pointing to as a Virtual Appliance next hop.
To restrict `VM-App` outbound access, the administrator configures the following Azure Firewall rules:
- Network Rule Collection (`Net-RC`): Priority , Action: Allow, Source: , Protocol: TCP, Destination Port: , Destination IP:
- Application Rule Collection (`App-RC`): Priority , Action: Allow, Source: , Protocol: HTTPS, Target FQDN: `api.partner.com`
During testing, the administrator observes that `VM-App` can successfully access any external HTTPS website, such as `https://www.microsoft.com`, which violates the security policy.
Which of the following actions should the administrator perform to ensure that `VM-App` can only access `https://api.partner.com`?
An organization has three virtual networks (VNets) in the Northern Europe region:
* VNet-Hub (): Contains a Virtual Network Gateway deployed in GatewaySubnet, and a Network Virtual Appliance (NVA) named NVA-1 () deployed in Subnet-Hub. NVA-1 has IP forwarding enabled in the operating system.
* VNet-App (): Contains a virtual machine named VM-App deployed in Subnet-App.
* VNet-DB (): Contains a virtual machine named VM-DB deployed in Subnet-DB.
The virtual network peering connections are configured as follows:
* Peering-Hub-To-App (from VNet-Hub to VNet-App): 'Allow gateway transit' is enabled, and 'Allow forwarded traffic' is disabled.
* Peering-App-To-Hub (from VNet-App to VNet-Hub): 'Use remote gateways' is enabled, and 'Allow forwarded traffic' is disabled.
* Peering-Hub-To-DB (from VNet-Hub to VNet-DB): 'Allow gateway transit' is disabled, and 'Allow forwarded traffic' is enabled.
* Peering-DB-To-Hub (from VNet-DB to VNet-Hub): 'Use remote gateways' is disabled, and 'Allow forwarded traffic' is enabled.
You associate the following User-Defined Routes (UDRs):
* Table-App (associated with Subnet-App): A route for destination `` with next hop type Virtual Appliance and next hop IP address ``.
* Table-DB (associated with Subnet-DB): A route for destination `` with next hop type Virtual Appliance and next hop IP address ``.
You verify that VM-App can connect to on-premises networks through the gateway in VNet-Hub, but VM-App and VM-DB cannot communicate with each other.
Which configuration change should you implement to allow VM-App and VM-DB to establish communication?
You plan to configure a public Azure Load Balancer named LB1 to load balance inbound traffic to two virtual machines named VM1 and VM2. The virtual machines are currently configured as follows:
* VM1 has a network interface associated with a Basic SKU public IP address.
* VM2 has a network interface with no public IP address.
You need to deploy LB1 as a Standard SKU load balancer.
Which of the following two actions must you perform? (Select two.)
Select all that apply
You have an Azure subscription. You deploy the Azure Monitor agent to virtual machines that run Windows Server. All performance counters are collected and sent to a Log Analytics workspace named Workspace1.
Workspace1 is configured with the default data retention period of days.
You need to analyze the average CPU utilization for the virtual machines over the last days. The results must show only computers with an average CPU utilization greater than and be sorted from the highest utilization to the lowest.
Which action and query should you select to meet these requirements?
kql
Perf
| where TimeGenerated > ago(45d) and ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
| where AvgCPU > 90
| summarize AvgCPU = avg(CounterValue) by Computer
| sort by AvgCPU desc
kql
Perf
| where TimeGenerated > ago(45d)
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize AvgCPU = avg(CounterValue) by Computer
| where AvgCPU > 90
| sort by AvgCPU desc
kql
Perf
| where TimeGenerated > ago(45d)
| where ObjectName == "Processor" and CounterName == "% Processor Time" and InstanceName == "_Total"
| summarize AvgCPU = avg(CounterValue) by Computer
| where AvgCPU > 90
| sort by AvgCPU desc
kql
Perf
| where TimeGenerated > ago(45d)
| where ObjectName = "Processor" and CounterName = "% Processor Time" and InstanceName = "_Total"
| summarize AvgCPU = avg(CounterValue) by Computer
| where AvgCPU > 90
| order by AvgCPU desc
An administrator needs to migrate the DNS resolution of an active public domain named `contoso.com` from an external DNS hosting provider to Azure DNS. The migration must occur with zero downtime for users accessing the domain's web services.
Which sequence of steps should the administrator perform to complete the migration successfully?
Drag items to arrange them in the correct order
An administrator is configuring network security for an application in an Azure subscription. The environment contains the following resources:
* A virtual network named `VNet1` with two subnets: `Subnet-Web` () and `Subnet-App` ().
* A virtual machine named `VM1` in `Subnet-Web` that is associated with an Application Security Group (ASG) named `ASG-Web`.
* A virtual machine named `VM2` in `Subnet-App` that is associated with an ASG named `ASG-App` and has the IP address .
* A Network Security Group (NSG) named `NSG-Subnet` associated with `Subnet-Web`.
* An NSG named `NSG-NIC` associated with the network interface of `VM1`.
`NSG-Subnet` contains the following outbound security rules:
* Priority 150: Deny outbound traffic from `Subnet-Web` to `Subnet-App` on any port, with any protocol.
* Priority 250: Allow outbound traffic from `ASG-Web` to `ASG-App` on TCP port 8080.
`NSG-NIC` contains the following outbound security rules:
* Priority 100: Allow outbound traffic from `ASG-Web` to `ASG-App` on TCP port 8080.
Currently, `VM1` cannot establish a connection to `VM2` on TCP port 8080.
Which of the following modifications resolves the connectivity issue while maintaining the principle of least privilege?
Your company has an Azure subscription containing a resource group named rg-ops. Inside rg-ops, you have an Azure Storage account named stopslogs that contains a blob container named system-logs. You need to configure access for a Microsoft Entra ID group named OpsEngineers. The members of OpsEngineers must be able to read, write, and delete blobs inside the system-logs container, and use the Azure portal to navigate to the stopslogs storage account to view the containers. The solution must use Microsoft Entra ID credentials and follow the principle of least privilege. Which of the following role assignments should you configure? (Select two.)
Select all that apply
An administrator needs to automate a nightly upload of backup files from an on-premises server to an Azure Storage account named `stbackup2026`. The storage account has shared key access disabled to comply with company security policies. You plan to use AzCopy with a Microsoft Entra ID service principal to perform the transfer.
Which sequence of steps should the administrator perform to configure and run the daily upload process?
Drag items to arrange them in the correct order
You plan to deploy an Azure virtual machine named VM1 in the East US region.
VM1 must meet the following requirements:
- Use an Ephemeral OS disk to minimize read/write latency and eliminate OS disk storage costs.
- Provide protection against datacenter-wide failures within the region.
- Be backed up daily using Azure Backup.
Which two settings or actions should you configure to meet the requirements? Select two.
Select all that apply
An administrator manages an Azure subscription. The administrator applies a tag named `CostCenter: Operations` and a `CanNotDelete` lock to a resource group named `rg-ops-prod`. The resource group contains an Azure Virtual Machine named `vm-ops-web`.
Consider the following statement: 'Because the tag and lock are applied at the resource group level, `vm-ops-web` inherits the `CanNotDelete` lock—preventing its deletion—but does not inherit the `CostCenter: Operations` tag.'
Is this statement true or false?