All practice questions
1252 questions
Zenix Solutions has an Azure subscription named sub-zenix-prod. You deploy an Azure Storage account named sazenixprod and an Azure Key Vault named kv-zenix-secure.
The Key Vault is configured as follows:
- Permission model: Azure role-based access control (Azure RBAC)
- Soft-delete: Enabled
- Purge protection: Enabled
You create a user-assigned managed identity named uami-zenix-storage. You plan to configure customer-managed keys (CMK) for encryption on sazenixprod using uami-zenix-storage to access the keys in kv-zenix-secure.
Which two actions should you perform to configure customer-managed key encryption? Select two.
Select all that apply
An administrator is deploying a new version of a web application to an Azure App Service web app. The application is currently running in a staging deployment slot and needs to be swapped into the production slot. You need to configure a swap operation that allows you to test the new code under production configuration settings (such as connection strings and application settings) before any client traffic is routed to the new version.
Which sequence of actions should you perform to complete this process?
Drag items to arrange them in the correct order
An Azure administrator configures a hub-and-spoke network topology. The hub virtual network is named VNet-Hub () and contains an active VPN gateway. Two spoke virtual networks, named VNet-Spoke1 () and VNet-Spoke2 (), have virtual machines deployed in their respective subnets. The administrator configures bidirectional virtual network peering between VNet-Spoke1 and VNet-Hub, enabling 'Allow gateway transit' on the VNet-Hub side and 'Use remote gateways' on the VNet-Spoke1 side. Similarly, bidirectional virtual network peering is configured between VNet-Spoke2 and VNet-Hub, enabling 'Allow gateway transit' on the VNet-Hub side and 'Use remote gateways' on the VNet-Spoke2 side. There is no direct peering between VNet-Spoke1 and VNet-Spoke2, and no network virtual appliances (NVAs) are deployed.
Statement: Under this configuration, a virtual machine in VNet-Spoke1 can communicate directly with a virtual machine in VNet-Spoke2 by routing traffic through the VNet-Hub gateway.
An administrator creates a resource group named rg-db-migration and applies a tag named CostCenter: Migrations and a CanNotDelete resource lock to it. Within rg-db-migration, the administrator deploys an Azure SQL Database named sqldb-prod. An Azure Policy is assigned to the subscription that audits any resource lacking the CostCenter tag. In this scenario, the sqldb-prod database will be flagged as non-compliant by Azure Policy, and authorized users are prevented from deleting sqldb-prod unless the resource lock on rg-db-migration is removed.
An administrator manages an Azure subscription containing a virtual network named `VNet1`. `VNet1` contains two subnets: `Subnet-Web` () and `Subnet-App` ().
A virtual machine named `VM-Web` is deployed in `Subnet-Web` and has a network interface named `NIC-Web`. A Network Security Group (NSG) named `NSG-Subnet` is associated with `Subnet-Web`. A second NSG named `NSG-NIC` is associated with `NIC-Web`.
`NSG-Subnet` contains the following inbound security rule:
* Priority: , Source: , Port: , Protocol: TCP, Action: Allow
`NSG-NIC` contains the following inbound security rules:
* Priority: , Source: Any, Port: , Protocol: TCP, Action: Deny
* Priority: , Source: , Port: , Protocol: TCP, Action: Allow
A virtual machine named `VM-App` is deployed in `Subnet-App` with the IP address .
If `VM-App` attempts to establish an HTTP connection to `VM-Web` on TCP port , what is the outcome of this connection attempt?
An administrator is configuring network security for an Azure subscription containing a virtual network named `VNet1`. `VNet1` contains two subnets: `Subnet-Web` () and `Subnet-DB` ().
* `VM-Web1` is deployed in `Subnet-Web`, and its network interface is associated with an Application Security Group (ASG) named `ASG-Web`.
* `VM-DB1` is deployed in `Subnet-DB`, and its network interface is associated with an ASG named `ASG-DB`.
* A Network Security Group (NSG) named `NSG-Subnet` is associated with both `Subnet-Web` and `Subnet-DB`. `NSG-Subnet` contains a custom inbound rule named `Deny-CrossSubnet` with a priority of that denies all traffic between the two subnets.
* An NSG named `NSG-NIC` is associated only with the network interface of `VM-DB1`. `NSG-NIC` contains a custom inbound rule named `Deny-SQL` with a priority of that denies inbound TCP traffic on port from any source.
You need to allow `VM-Web1` to establish a database connection to `VM-DB1` on TCP port . The solution must follow the principle of least privilege.
Which two security rules should you add to achieve this goal? (Select TWO)
Select all that apply
A company's Azure environment contains two subnets named Subnet1 and Subnet2.
Subnet1 is associated with a Network Security Group (NSG) named NSG1.
Subnet1 contains two virtual machines named VM1 and VM2. The network interface of VM1 is associated with an Application Security Group (ASG) named ASG-Web. The network interface of VM2 is associated with an ASG named ASG-App.
NSG1 has the following inbound security rules:
- Rule1: Priority , Source: Any, Destination: ASG-Web, Port: , Action: Deny
- Rule2: Priority , Source: Any, Destination: ASG-Web, Port: , Action: Allow
You need to allow inbound HTTP traffic on port from the internet to VM1, while ensuring that security configurations for VM2 are not altered.
Which configuration change should you perform?
An administrator is configuring an Azure Virtual Machine Scale Set (VMSS) named vmss-retail that uses Uniform orchestration to run a web application. The administrator needs to configure the VMSS to roll out application updates automatically when the VMSS model is updated. The configuration must meet the following requirements:
- Updates must be applied to instances gradually in batches.
- A subset of instances must remain available to serve traffic during the update.
- The update process must automatically pause if the new instances are unhealthy.
- No manual intervention should be required to promote the update across batches.
Which two options should the administrator configure to meet these requirements? (Select two.)
Select all that apply
An administrator is setting up a high-availability database server on an Azure virtual machine named VM-DBServer. The virtual machine has a single network interface named nic-db. Currently, VM-DBServer is in the backend pool of a Standard Load Balancer named LB-Database. To configure multiple database instances that require individual public-facing endpoints, the administrator needs to add a secondary IP configuration named ipconfig2 to nic-db and associate it with a public IP address named pip-db-sec. Which configuration must the administrator choose for pip-db-sec?
Your organization is designing an Azure governance strategy to enforce resource compliance. You need to map the operational requirements to the appropriate Azure Policy effects. Match each operational requirement on the left to its corresponding Azure Policy effect on the right.
Click a left item, then click its matching right item
Items
Matches
An organization is setting up a private name resolution system in Azure. A Private DNS zone named corp.internal has been created. The IT team wants virtual machines in a virtual network named VNet-Core to automatically register their hostname and private IP addresses in this DNS zone.
Which setting must be configured to achieve this?
An administrator is configuring customer-managed keys (CMK) for an Azure Storage account named saapexdata. The storage account has a system-assigned managed identity enabled. The key is stored in an Azure Key Vault named kv-apex-keys, which is configured to use the Azure role-based access control (Azure RBAC) permission model. Soft-delete and purge protection are already enabled on the Key Vault. Which role must be assigned to the storage account's managed identity over kv-apex-keys to allow encryption to function?
You are planning the deployment and configuration of several Azure virtual machines. Each virtual machine has specific performance, boot, or administration requirements. Match each virtual machine configuration requirement to its corresponding Azure virtual machine feature.
Click a left item, then click its matching right item
Items
Matches
Your company is deploying a new public-facing application in Azure. You plan to distribute traffic to the application's virtual machines using a Standard Load Balancer. Which two configurations are compatible and supported for this Standard Load Balancer deployment?
Select all that apply
You have two peered Azure virtual networks named VNet1 (address space: ) and VNet2 (address space: ) in the same region. VNet1 contains a subnet named Subnet1 () and a virtual machine named VM1. The network interface of VM1 is associated with an Application Security Group (ASG) named ASG-Web. An NSG named NSG-Subnet1 is associated with Subnet1. VNet2 contains a subnet named Subnet2 () and a virtual machine named VM2. The network interface of VM2 is associated with an NSG named NSG-NIC2. You need to allow inbound HTTPS traffic (TCP port ) to VM2 from VM1. You configure the following security rules:
* In NSG-Subnet1, you add an outbound rule with a priority of that allows TCP port outbound from ASG-Web to the private IP address of VM2.
* In NSG-NIC2, you add an inbound rule with a priority of that allows TCP port inbound from ASG-Web to the private IP address of VM2.
When you attempt to save the configuration for NSG-NIC2, the deployment fails. What is the cause of this configuration failure?
An enterprise administrator manages access controls for a corporate Tenant Root Group. Under this root group, a production subscription named `Sub-Prod` is created, which houses two resource groups: `RG-App-Prod` and `RG-Data-Prod`.
To implement the security baseline, the administrator must grant access to three administrative teams (Team A, Team B, and Team C) using the principle of least privilege.
Match each team's requirement to the correct role and scope configuration.
Click a left item, then click its matching right item
Items
Matches
You are configuring outbound internet connectivity for a subnet named Subnet1 in a virtual network named VNet1. You deploy Azure Firewall to VNet1.
To route all outbound internet traffic from Subnet1 through the Azure Firewall using a User-Defined Route (UDR), which two options must you configure in the route table associated with Subnet1? Select two.
Select all that apply
You are planning the deployment of a new virtual network named `vnet-corporate` in an Azure subscription. The virtual network is configured with the address space . You must create subnets within the virtual network to meet the following requirements:
- Deploy Azure Bastion to allow secure administrative access to virtual machines.
- Create a subnet named `snet-web` that supports at least usable host IP addresses.
- Create a subnet named `snet-db` that supports at least usable host IP addresses.
You need to configure the subnet names and IP address prefixes to satisfy these requirements while minimizing address waste. Which subnet configuration should you use?
An organization has an Azure management group named MG-Finance. A child subscription named Sub-Analytics is under MG-Finance. Within Sub-Analytics, there is a resource group named RG-Reporting.
An administrator configures the following Azure Policy settings:
1. A policy definition that requires a cost-center tag on resources is assigned to MG-Finance with the effect set to Deny. An exclusion is configured on this assignment for RG-Reporting.
2. A policy definition that audits missing cost-center tags on resources is assigned to Sub-Analytics with the effect set to Audit. There are no exclusions configured for this assignment.
An administrator attempts to deploy an Azure SQL database without a cost-center tag into RG-Reporting.
Which of the following describes the outcome of this deployment?
An administrator is designing a new Azure Kubernetes Service (AKS) cluster in a spoke virtual network (VNet) with the address space . The cluster must scale up to nodes, with each node hosting up to pods simultaneously. The network security team mandates the use of Azure Network Policies for pod traffic enforcement. You need to select the network configurations that will support this scale and meet the security requirements while preventing IP address exhaustion in the VNet. Which two configurations should you implement? (Select two.)
Select all that apply