All practice questions
1252 questions
A company has a containerized data-validation application packaged as a Docker image. The application processes batch files exported from a database once per day, taking approximately 10 minutes to complete. The application must write its output directly to a shared directory that is accessible by other systems, and it must exit immediately after finishing. If the application terminates with an error code, it must attempt to rerun.
You need to deploy the application using Azure Container Instances (ACI).
Which configuration settings should you apply to the container group?
An administrator needs to identify all virtual machines that were successfully deleted in an Azure subscription during the last 24 hours. The diagnostic data is sent to a Log Analytics workspace.
Which of the following Kusto Query Language (KQL) queries will successfully return the records? (Select two.)
Select all that apply
| where TimeGenerated > ago(24h)
| where OperationNameValue =~ "Microsoft.Compute/virtualMachines/delete" and ActivityStatusValue =~ "Succeeded"
| where TimeGenerated >= ago(1d)
| where OperationName == "Microsoft.Compute/virtualMachines/delete"
| where ActivityStatus == "Succeeded"
| where TimeGenerated > ago(24h)
| where OperationNameValue = "Microsoft.Compute/virtualMachines/delete" and ActivityStatusValue = "Succeeded"
WHERE TimeGenerated > ago(24h)
AND OperationNameValue == "Microsoft.Compute/virtualMachines/delete"
You need to recover individual files from a backup of an Azure virtual machine by using the File Recovery option in the Azure portal.
Which sequence of steps should you perform to mount the backup disks, retrieve the files, and clean up the connection?
Drag items to arrange them in the correct order
A company's Azure environment includes a resource group named `rg-analytics-prod`. The resource group contains an Azure Cosmos DB account named `cosmos-prod-db`.
An administrator performs the following tasks:
- Assigns a tag named `CostCenter: 4002` to `rg-analytics-prod`.
- Configures a `ReadOnly` lock named `rg-lock` on `rg-analytics-prod`.
- Configures a `CanNotDelete` lock named `db-lock` on `cosmos-prod-db`.
Which of the following describes the final governance state and administrative permissions for `cosmos-prod-db`?
An enterprise architecture team is deploying a new workload in Azure. Within a virtual network named `vnet-hr-payroll` (), you must create two subnets to meet the following requirements:
* A subnet named `AzureBastionSubnet` to support the deployment of an Azure Bastion host.
* A subnet named `snet-payroll-vms` to host exactly virtual machines that require private IP addresses.
You need to minimize the number of IP addresses allocated to each subnet while meeting the technical requirements.
Which subnet prefixes should you assign to meet the requirements?
An administrator is configuring log monitoring for an Azure virtual machine named VM1. VM1 sends its performance logs to a Log Analytics workspace named Workspace1. The workspace is configured to use the 'Use resource or workspace permissions' access mode. A user named User1 is assigned only the Reader role for VM1. User1 has no roles assigned for Workspace1 or its resource group. User1 needs to run a query to analyze the average CPU utilization of VM1 over the last 24 hours, aggregated in 1-hour intervals. Which action should the administrator instruct User1 to perform?
An administrator plans to deploy a public load balancer named LB1 in an Azure subscription. The subscription contains a virtual network named VNet1. VNet1 contains the following virtual machines:
- VM1: A standalone virtual machine
- VM2: A virtual machine deployed in Availability Zone 1
- VM3: A virtual machine deployed in Availability Zone 2
The administrator needs to configure LB1 to distribute inbound traffic across VM1, VM2, and VM3 by using a new public IP address named PublicIP1.
Which combination of SKUs for LB1 and PublicIP1 must the administrator use?
A cloud engineer needs to configure a single Azure Application Gateway v2 with one public frontend IP address to host two secure websites: `partners.contoso.com` and `customers.contoso.com`. Both websites must be accessible over HTTPS on port 443. Traffic to `partners.contoso.com/orders/*` must be routed to a backend pool named `PartnerOrdersPool`, while all other traffic for both websites must be routed to `DefaultWebPool`. Which configuration should the administrator implement?
You have an Azure Key Vault named KV1. You need to ensure that all secret read and write audit events in KV1 are collected and stored in a Log Analytics workspace named Workspace1. What configuration should you create on KV1?
A company plans to deploy containerized APIs to Azure App Service. The hosting environment has the following requirements:
- Enable auto-scaling to dynamically scale out up to 5 instances during peak traffic.
- Configure up to 2 staging slots for testing updates before swapping to production.
- Perform automated backups of the application and configuration data twice per day.
Which App Service plan pricing tier is the most cost-effective tier that meets these requirements?
An administrator manages an Azure subscription that contains a resource group named `rg-network-core`. Inside `rg-network-core`, there is a Virtual Network named `vnet-prod` and a Network Security Group (NSG) named `nsg-prod`. The administrator applies a `CanNotDelete` lock directly to `vnet-prod`, but does not apply any locks to `rg-network-core` or `nsg-prod`.
Evaluate the following statement: The administrator can delete `rg-network-core` without first removing the lock from `vnet-prod`.
An administrator is configuring routing and security for a hub-and-spoke virtual network topology in Microsoft Azure. The topology contains the following networks and subnets:
- A hub virtual network named `VNet-Hub` () containing an Azure Firewall on the subnet `AzureFirewallSubnet`. The firewall has a private IP address of .
- A spoke virtual network named `VNet-Spoke1` () containing a subnet named `Subnet-Web` ().
- A spoke virtual network named `VNet-Spoke2` () containing a subnet named `Subnet-DB` ().
Virtual network peering is configured between `VNet-Hub` and `VNet-Spoke1`, and between `VNet-Hub` and `VNet-Spoke2`. Gateway transit is disabled.
You need to meet the following requirements:
1. All traffic from `Subnet-Web` to `Subnet-DB` must be routed through the Azure Firewall and allowed.
2. All outbound HTTPS traffic from `Subnet-Web` to the external partner API endpoint at the fully qualified domain name (FQDN) `api.partner.com` must be allowed.
3. All other traffic must be blocked.
Which two configurations should you perform? (Select two.)
Select all that apply
An administrator needs to recover a backed-up Azure virtual machine. The administrator wants to restore the virtual machine's disks to a storage account as virtual hard disk (VHD) templates to perform custom configuration before recreating the virtual machine. Which restore option should the administrator select in the Recovery Services vault?
An administrator is configuring diagnostic settings for an Azure Firewall named FW1 to stream resource logs for security analysis and long-term retention. Which of the following destinations can be specified directly as targets in the diagnostic settings of FW1? (Select two.)
Select all that apply
An administrator is configuring network security for a two-tier application in an Azure subscription. The subscription contains a virtual network named `VNet1` with two subnets: `Subnet-Web` (address space ) and `Subnet-DB` (address space ).
A virtual machine named `VM-Web1` is deployed in `Subnet-Web` and associated with an Application Security Group named `ASG-Web`.
A virtual machine named `VM-DB1` is deployed in `Subnet-DB` and associated with an Application Security Group named `ASG-DB`.
A Network Security Group named `NSG-Web` is associated with `Subnet-Web` and contains the following custom inbound rule:
- Name: `DenyInternetInbound`, Priority: , Source: `Internet`, Destination: `Any`, Port: `*`, Protocol: `Any`, Action: Deny
A Network Security Group named `NSG-DB` is associated with `Subnet-DB` and contains the following custom inbound rule:
- Name: `DenyVNetInbound`, Priority: , Source: `VirtualNetwork`, Destination: `Any`, Port: `*`, Protocol: `Any`, Action: Deny
No Network Security Groups are associated with the virtual machine network interfaces.
You must configure the NSGs to meet the following requirements:
1. Allow HTTPS traffic (port ) from the Internet to `VM-Web1` only.
2. Allow PostgreSQL traffic (port ) from `VM-Web1` to `VM-DB1` only.
3. Minimize the number of rules and adhere to the principle of least privilege.
Which two security rules should you create to meet the requirements?
Select all that apply
You plan to configure an Azure Application Gateway v2 to support end-to-end TLS encryption for a backend pool of web servers. The backend servers use self-signed certificates for their TLS configurations. You have already created the Application Gateway, the frontend public IP address, and the backend pool.
You need to complete the end-to-end TLS configuration so that the Application Gateway can securely receive traffic from clients and securely transmit it to the backend pool.
Which sequence of actions should you perform? To answer, arrange the actions in the correct order.
Drag items to arrange them in the correct order
You are deploying a multi-container group in Azure Container Instances (ACI) that includes a web application container and a log-forwarding sidecar container. The web application container must run continuously to handle user requests, and the sidecar container must also run continuously to read log files generated by the web application. Which of the following configuration settings must you apply to meet these requirements? (Select TWO)
Select all that apply
An Azure environment contains a hub virtual network named `VNet-Hub` () and a spoke virtual network named `VNet-Spoke` (). The virtual networks are connected using virtual network peering.
`VNet-Hub` contains a network virtual appliance (NVA) named `NVA-FW` with a private IP address of .
`VNet-Spoke` contains two subnets:
- `WebSubnet` ()
- `DbSubnet` ()
A route table named `RT-Spoke` is associated with `WebSubnet`. The route table contains the following custom routes:
| Route Name | Destination Prefix | Next Hop Type | Next Hop IP Address |
|---|---|---|---|
| Route-to-DB | Virtual appliance | ||
| Route-to-VNet | Virtual network | N/A |
A virtual machine named `VM-Web` in `WebSubnet` () attempts to establish a connection to a database server in `DbSubnet` ().
Which route is selected from `RT-Spoke`, and what configuration is required on `NVA-FW` to allow the traffic to reach the database server?
A company is migrating a dataset from an on-premises file share to an Azure storage account named stcopydestination. You have been tasked with performing the migration. The security team has configured stcopydestination to reject all shared key authentication requests. You authenticate to Azure via the command line using azcopy login. When you run the command to copy the files to a blob container, you receive an error indicating that the request is not authorized. Your user account currently has the Owner role for the subscription. How should you resolve the authorization issue?
You are deploying a public Azure Load Balancer named LB1 to distribute HTTPS traffic to an application hosted on two virtual machines named VM1 and VM2. VM1 is located in Availability Zone 1, and VM2 is located in Availability Zone 2.
You need to configure LB1 to meet these requirements.
Which two of the following configuration steps should you perform? (Select two.)
Select all that apply