All practice questions
1252 questions
You plan to deploy a Standard Load Balancer in an Azure subscription. You create a public IP address to be used as the frontend for the load balancer. However, when you attempt to associate the public IP address with the Standard Load Balancer, the public IP address is not available for selection in the Azure portal. What is the most likely cause of this issue?
Luminary Financials has an Azure subscription named sub-luminary-prod. The subscription contains the following resources:
* An Azure Storage account named saluminarydata configured to use a user-assigned managed identity named uami-storage-enc for encryption.
* An Azure Key Vault named kv-luminary-keys that has soft-delete and purge protection enabled, and is configured to use Azure role-based access control (Azure RBAC) for authorization.
You need to configure saluminarydata to encrypt its data using a customer-managed key stored in kv-luminary-keys by using the uami-storage-enc identity.
Which role assignment is required on kv-luminary-keys to successfully configure the storage encryption?
You have an Azure subscription that contains two virtual machines named VM1 and VM2. The network interface of each virtual machine is associated with a Basic SKU public IP address. You deploy a Standard SKU public load balancer named LB1. You need to add VM1 and VM2 to the backend pool of LB1. Which action should you perform first?
An administrator needs to write a Kusto Query Language (KQL) query in a Log Analytics workspace. The query must retrieve all records from the AzureActivity table where the Level column is equal to "Error" and the event occurred within the last 24 hours.
Which two of the following KQL queries will retrieve the required records? (Select two.)
Select all that apply
| where Level == "Error" and TimeGenerated > ago(24h)
| where TimeGenerated > ago(1d)
| where Level == "Error"
| filter Level == "Error" and TimeGenerated > ago(24h)
| where Level = "Error" and TimeGenerated > ago(24h)
An organization's Azure environment is structured with the following hierarchy:
- Management Group: `MG-Finance`
- Subscription: `Sub-Auditing`
- Resource Group: `RG-Compliance`
- Storage Account: `saaudits` (located in `RG-Compliance`)
A user named AuditAdmin1 must be able to read blob logs stored in a container named `logs-2026` inside the storage account `saaudits`. AuditAdmin1 must also be able to view the configuration settings of all resources within the `RG-Compliance` resource group, but must not be able to modify any resources or configuration settings. Which of the following configurations meets the requirements while applying the principle of least privilege?
An administrator is setting up `vnet-retail-prod` within an Azure subscription using the address space . The design requires two subnets: one named `snet-app` to accommodate at least virtual machines, and one named `AzureBastionSubnet` for an Azure Bastion deployment. Which CIDR block prefix sizes represent the minimum requirements for both subnets?
An organization's Azure environment has the following resource hierarchy:
- Management Group: `MG-Corporate`
- Subscription: `Sub-Dev`
- Resource Group: `RG-Shared`
- Resource Group: `RG-Secret`
A group of developers is currently assigned the Reader role at the `Sub-Dev` subscription scope. You must ensure that the developers can view resources in `RG-Shared`, but they must not be able to view any resources in `RG-Secret`.
Which configuration should you implement to meet this requirement while adhering to the principle of least privilege?
You are configuring a script on an Azure virtual machine (VM) to automate the daily upload of log files to a blob container in an Azure storage account named stlogs. The VM is configured with a system-assigned managed identity that has been granted the Storage Blob Data Contributor role on the storage account. The script must run without any interactive prompts. Which command must be executed in the script to authenticate AzCopy before running the copy command?
A company plans to migrate an inventory management application to Azure App Service. The application hosting environment must meet the following requirements:
- Support a custom domain with an IP-based SSL binding.
- Support scaling out to a maximum of 8 instances to handle peak workload demands.
- Support automated backups scheduled twice daily.
Which App Service plan pricing tier is the most cost-effective option that meets these requirements?
An Azure subscription contains the following resources:
- A virtual machine named `vm-sales-portal` located in the `Southeast Asia` region
- A virtual machine named `vm-inventory-db` located in the `East Asia` region
- A Recovery Services Vault named `rsv-sales-sea` located in the `Southeast Asia` region
To which virtual machines can you apply a backup policy from `rsv-sales-sea`?
You have an Azure subscription that contains a Recovery Services vault named `rsv-finance-backup` and a Premium storage account named `sa-finance-prod` in the West US 2 region. The storage account hosts two file shares: `share-smb-data` (an SMB file share) and `share-nfs-repos` (an NFS file share).
The firewall of `sa-finance-prod` is configured to allow access only from selected virtual networks and IP addresses.
You need to enable Azure Backup for the file shares in `sa-finance-prod` using `rsv-finance-backup`. The configuration must adhere to the principle of least privilege.
An administrator named Admin1 is assigned the Backup Operator role for `rsv-finance-backup`.
Which configuration steps should you perform to ensure Admin1 can successfully configure the backup?
You have an Azure SQL Database named `sqldb-sales`. You need to configure diagnostic logging to satisfy the following requirements:
- Send the SQL database audit logs (`SQLSecurityAuditEvents`) to a Log Analytics workspace named `law-security` for querying.
- Send the database performance metrics (`Basic`) to an Azure storage account named `stvalaudit` for long-term archiving.
- Minimize data ingestion costs by ensuring log data is not sent to the storage account and metric data is not sent to the Log Analytics workspace.
Which configuration should you implement?