All practice questions
1252 questions
You are deploying an Azure Application Gateway to publish a secure web application. You need to configure a new listener to accept incoming HTTPS traffic. Which two settings must be defined directly within the listener configuration? (Select two.)
Select all that apply
You configure the Log Analytics agent to collect performance counters from several Azure virtual machines. You need to write a query to identify all records where the processor utilization exceeds 90 percent. Which Kusto Query Language (KQL) query should you run?
| where CounterName == "% Processor Time"
| where CounterValue > 90
| where CounterName = "% Processor Time" and CounterValue > 90
| where CounterName == "% Processor Time"
| where CounterValue > 90
| filter CounterName == "% Processor Time" and CounterValue > 90
An administrator is deploying an Azure Application Gateway v2 to load balance traffic for two secure web applications, `app1.contoso.com` and `app2.contoso.com`, which are hosted on virtual machines in a separate peered virtual network named `VNet-Backend`.
You must meet the following requirements:
- Incoming traffic to `https://app1.contoso.com/images/*` must be routed to a backend pool named `ImagePool`.
- All other traffic to `https://app1.contoso.com/*` must be routed to a backend pool named `App1Pool`.
- Incoming traffic to `https://app2.contoso.com/*` must be routed to a backend pool named `App2Pool`.
- HTTPS connections must be decrypted at the Application Gateway (SSL termination).
- The Application Gateway must be able to communicate with the Azure infrastructure and route traffic to the peered backend VMs.
Which configuration should you implement to satisfy these requirements?
An administrator is configuring a container group in Azure Container Instances (ACI) to execute a scheduled database maintenance script. The script runs for approximately 10 minutes and then terminates. If the script exits with a non-zero code, it must attempt to run again. If it exits with code 0, the container group must release its compute resources. Which setting should the administrator configure to achieve this behavior?
Your company has an Azure environment with a hub-and-spoke virtual network topology. The hub virtual network (VNet-Hub) contains an Azure Firewall deployed in the AzureFirewallSubnet with a private IP address of 10.0.1.4. A spoke virtual network (VNet-Spoke1) is peered with VNet-Hub and contains a subnet named Subnet-Web (10.1.1.0/24) housing web servers.
You need to meet the following requirements:
1. Route all outbound internet traffic from Subnet-Web through the Azure Firewall.
2. Allow the web servers in Subnet-Web to access the FQDN *.github.com over HTTPS.
Which two configurations should you perform? (Select two.)
Select all that apply
You are designing the subnet configuration for an Azure virtual network named `vnet-prod` that has an address space of . The virtual network currently contains a single subnet named `snet-web` with an address range of . You need to add two new subnets to `vnet-prod` to support the following requirements:
1. Deploy an Azure Bastion host to secure management access to virtual machines.
2. Deploy a Virtual Network Gateway to establish a hybrid connection with an on-premises datacenter.
You want to allocate the minimum recommended address space for both subnets while ensuring they are fully functional and compliant with Microsoft best practices. Which of the following configurations should you implement?
An organization manages its Azure resources using the following hierarchy:
- Management Group: `MG-Finance`
- Subscription: `Sub-Accounting`
- Resource Group: `RG-Audit`
- Storage Account: `saaudittemplates` (configured to use Microsoft Entra ID authorization for data plane access)
A user named Auditor1 is assigned the Reader role at the `Sub-Accounting` subscription level. Auditor1 is also assigned the Contributor role at the `RG-Audit` resource group level.
Auditor1 attempts to upload a spreadsheet to a blob container named `templates` in `saaudittemplates` using their Microsoft Entra ID credentials but receives an authorization error.
Which action should you perform to allow Auditor1 to upload the file to the container while adhering to the principle of least privilege?
Your organization manages an Azure Storage account named stdeployments that contains a blob container named software-builds. A developer named Dev1 is currently assigned the Reader role for the resource group that contains stdeployments. Dev1 needs to download software builds from the software-builds container using Microsoft Entra ID credentials. When Dev1 attempts to access the container in the Azure portal, they receive an authorization error. You need to resolve the authorization error. The solution must follow the principle of least privilege. Which action should you perform?
You have three virtual machines named VM1, VM2, and VM3 in a virtual network named VNet1. VM1 and VM2 are deployed in Availability Set AS1, while VM3 is deployed as a standalone virtual machine. You have an existing Basic SKU public IP address named PublicIP1.
You need to configure a public load balancer to distribute inbound internet traffic to VM1, VM2, and VM3.
Which action should you perform?
You manage an Azure subscription that contains a virtual network named `VNet-Corp` (). `VNet-Corp` contains three subnets:
- `Subnet-Web` ()
- `Subnet-DB` ()
- `Subnet-Sec` () containing a Network Virtual Appliance (NVA) at IP address .
A route table named `RT-Web` is associated with `Subnet-Web`. `RT-Web` contains the following user-defined routes (UDRs):
- A route for destination with a next hop type of Virtual Network Gateway.
- A route for destination with a next hop type of Virtual appliance and a next hop IP address of .
IP forwarding is enabled on the network interface of the NVA. The default system route for the virtual network is with a next hop type of Virtual network.
A virtual machine in `Subnet-Web` attempts to send traffic to a database server at IP address in `Subnet-DB`.
Which next hop will Azure select for this traffic?
You have an Azure subscription that contains a Log Analytics workspace named Workspace1. Workspace1 is configured with the 'Require workspace permissions' access control mode. The subscription contains an Azure Key Vault named KeyVault1 and a virtual machine named VM1, both of which send their diagnostics to Workspace1. A user named User1 needs to run KQL queries to monitor KeyVault1 and VM1. User1 has the Reader role on both KeyVault1 and VM1, but currently has no access to Workspace1. When User1 attempts to query logs, no data is returned. You need to ensure User1 can query the diagnostics logs. Which two actions should you perform?
Select all that apply
An administrator needs to deploy Azure Bastion (Standard SKU) to secure access to virtual machines in an existing virtual network named VNet1. The organization's security policy requires that a Network Security Group (NSG) be associated with the Bastion subnet, and that the subnet is secured from the very beginning of the Bastion host deployment.
Which sequence of steps must you perform to successfully configure and deploy Azure Bastion while adhering to the security policy and avoiding validation errors?
Drag items to arrange them in the correct order
An administrator deploys a Basic SKU public Azure Load Balancer to distribute traffic to two virtual machines named VM1 and VM2. VM1 is located in Availability Zone 1, and VM2 is located in Availability Zone 2. Both virtual machines are configured with Standard SKU public IP addresses. When attempting to add the network interfaces of VM1 and VM2 to the load balancer's backend pool, the virtual machines are not available for selection. Which change should the administrator implement to resolve this issue?
An administrator needs to identify unauthorized access attempts to an Azure Key Vault named KV-Prod. You are tasked with writing a Kusto Query Language (KQL) query in Log Analytics to retrieve all secret retrieval operations (SecretGet) that failed due to unauthorized access (HTTP status codes 401 or 403) within the last 24 hours. The query must only output the columns for TimeGenerated, Resource, CallerIPAddress, and ResultSignature. Which KQL query should you use?
| where TimeGenerated > ago(24h)
| where ResourceProvider == "MICROSOFT.KEYVAULT"
| where OperationName == "SecretGet"
| where ResultSignature in ("401", "403")
| project TimeGenerated, Resource, CallerIPAddress, ResultSignature
| project TimeGenerated, Resource, CallerIPAddress, ResultSignature
| where TimeGenerated > ago(24h) and ResourceProvider == "MICROSOFT.KEYVAULT"
| where OperationName == "SecretGet" and (ResultSignature == "401" or ResultSignature == "403")
FROM AzureDiagnostics
WHERE TimeGenerated > ago(24h)
AND ResourceProvider = 'MICROSOFT.KEYVAULT'
AND OperationName = 'SecretGet'
AND ResultSignature IN ('401', '403')
| where TimeGenerated > ago(24h)
| where ResourceProvider = "MICROSOFT.KEYVAULT"
| where OperationName = "SecretGet"
| where ResultSignature == "401" or "403"
| project TimeGenerated, Resource, CallerIPAddress, ResultSignature
An administrator needs to write a Kusto Query Language (KQL) query in a Log Analytics workspace. The query must retrieve all heartbeat records for a virtual machine named VM1 that were generated in the last 24 hours.
Which two KQL queries meet these requirements? Select two.
Select all that apply
An administrator creates an Azure resource group named `rg-hr-prod` and applies a tag named `Environment: Production` and a `ReadOnly` resource lock to the resource group. The administrator then deploys an Azure Storage account named `storeprod` to `rg-hr-prod`. The administrator attempts to view the tags applied to `storeprod` and retrieve the access keys for `storeprod`. What are the results of these actions?
Your company has an Azure subscription containing a virtual network named `VNet1`. `VNet1` has two subnets: `Subnet-Web` () and `Subnet-DB` ().
The web servers are deployed in `Subnet-Web` and associated with an Application Security Group (ASG) named `ASG-Web`. The database servers are 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`. An NSG named `NSG-DB` is associated with `Subnet-DB`. `NSG-DB` contains the following custom inbound security rule:
- Priority:
- Source: `VirtualNetwork`
- Destination: `Any`
- Port: `*`
- Protocol: `Any`
- Action: `Deny`
You need to configure the NSGs to meet the following requirements:
1. Allow HTTPS traffic (TCP port ) from the Internet to the web servers.
2. Allow SQL Server traffic (TCP port ) from the web servers to the database servers.
3. Adhere to the principle of least privilege.
Which two inbound security rules should you configure? (Select two.)
Select all that apply
An administrator is planning the deployment of a new virtual machine named VM1 to host a business-critical application in the East US region. The application must be protected against datacenter-wide failures. Additionally, VM1 must be configured for daily backups. Which configuration should the administrator implement?
Your company implements a split-horizon DNS infrastructure in Azure. You configure the following resources:
- A public Azure DNS zone named contoso.com that contains an A record for www.contoso.com pointing to a public IP address.
- An Azure Private DNS zone named contoso.com that is linked to a virtual network named VNet1. The private zone contains an A record for db.contoso.com pointing to an internal IP address.
- A virtual machine named VM1 deployed in VNet1 that uses default Azure-provided DNS.
VM1 can successfully resolve db.contoso.com. However, when attempting to resolve www.contoso.com, VM1 receives a name resolution error (NXDOMAIN).
What should you do to ensure that VM1 can successfully resolve www.contoso.com?
An administrator is designing a hub-and-spoke network topology in Azure using the following virtual networks in the East US region:
* VNet-Hub (): Contains a virtual network gateway in a subnet named GatewaySubnet, and a Network Virtual Appliance (NVA) in a subnet named DMZSubnet.
* VNet-SpokeA (): Contains a virtual machine named VM-App in a subnet named AppSubnet.
* VNet-SpokeB (): Contains a virtual machine named VM-DB in a subnet named DBSubnet.
The administrator establishes the following virtual network peering connections:
* Peering-Hub-SpokeA from VNet-Hub to VNet-SpokeA
* Peering-SpokeA-Hub from VNet-SpokeA to VNet-Hub
* Peering-Hub-SpokeB from VNet-Hub to VNet-SpokeB
* Peering-SpokeB-Hub from VNet-SpokeB to VNet-Hub
The administrator has configured user-defined routes (UDRs) on AppSubnet and DBSubnet to route traffic between the spokes through the NVA in VNet-Hub.
The administrator must meet the following requirements:
1. VM-App must be able to access on-premises networks via the virtual network gateway in VNet-Hub.
2. VM-App and VM-DB must be able to communicate with each other through the NVA in VNet-Hub.
3. VM-DB must be prevented from using the virtual network gateway in VNet-Hub.
Which configuration settings should the administrator apply to the peering connections to meet these requirements?