All practice questions
1252 questions
You manage an Azure environment containing a virtual network named `VNet-Prod`. The virtual network has a subnet named `Subnet-App` ().
`Subnet-App` is associated with a Network Security Group (NSG) named `NSG-Subnet`.
A virtual machine named `VM-App1` is deployed in `Subnet-App` and has a network interface named `NIC-App1`. `NIC-App1` is associated with an NSG named `NSG-NIC`.
An Application Security Group (ASG) named `ASG-App` is created, and `NIC-App1` is associated with `ASG-App`.
`NSG-Subnet` contains the following inbound security rules:
* `Rule-Sub1`: Priority , Source: `Internet`, Destination: `ASG-App`, Destination Port: , Protocol: `TCP`, Action: `Allow`
* `Rule-Sub2`: Priority , Source: `Any`, Destination: `Any`, Destination Port: `Any`, Protocol: `Any`, Action: `Deny`
`NSG-NIC` contains the following inbound security rules:
* `Rule-Nic1`: Priority , Source: `203.0.113.50/32`, Destination: `Any`, Destination Port: , Protocol: `TCP`, Action: `Deny`
* `Rule-Nic2`: Priority , Source: `Internet`, Destination: `Any`, Destination Port: , Protocol: `TCP`, Action: `Allow`
A user attempts to establish an HTTPS connection from a client device on the internet with the public IP address to `VM-App1`.
What is the status of the connection attempt, and why?
You are deploying an Azure virtual machine named VM1 in the East US region. You plan to configure VM1 using the Custom Script Extension. The script is stored in a private container in an Azure storage account named `storage1`. The firewall for `storage1` is configured to restrict access to selected networks only. You need to ensure that the VM Agent on VM1 can download and execute the script. Which configuration should you implement?
You are designing the monitoring and notification architecture for an Azure environment. Match each operational requirement to the most appropriate Azure Monitor alert or notification configuration.
Click a left item, then click its matching right item
Items
Matches
You have three virtual networks named VNet-Prod (address space ), VNet-Hub (address space ), and VNet-Shared (address space ). Virtual machines are deployed in the subnets of all three virtual networks to verify connectivity.
You configure virtual network peering between VNet-Prod and VNet-Hub. You also configure virtual network peering between VNet-Hub and VNet-Shared. For both peering connections, 'Allow virtual network access' is enabled, 'Allow forwarded traffic' is disabled, and 'Use remote gateways' and 'Allow gateway transit' are disabled.
An administrator attempts to establish direct network communication between a virtual machine in VNet-Prod and a virtual machine in VNet-Shared.
Which of the following describes the outcome of this network communication?
You are planning to configure a public Azure Load Balancer to distribute internet traffic to two Azure virtual machines named VM1 and VM2. VM1 is deployed in Availability Zone 1, and VM2 is deployed in Availability Zone 2.
You decide to deploy a Standard Load Balancer.
Which two configurations must you perform to successfully deploy the load balancer and allow traffic to the virtual machines? (Select two)
Select all that apply
Your company has an Azure subscription containing a virtual network named `VNet1`. `VNet1` contains two subnets named `Subnet-Front` and `Subnet-Back`.
You deploy two virtual machines:
* `VM-Web` in `Subnet-Front`
* `VM-DB` in `Subnet-Back`
The network interface of `VM-Web` is associated with an Application Security Group (ASG) named `ASG-Web`.
The network interface of `VM-DB` is associated with an ASG named `ASG-DB` and a Network Security Group (NSG) named `NSG-NIC-DB`.
`Subnet-Front` is associated with an NSG named `NSG-Front`.
`Subnet-Back` is associated with an NSG named `NSG-Back`.
`NSG-Front` contains the following custom inbound rule:
* Priority:
* Source: Any
* Port: Any
* Destination: Any
* Action: Deny
`NSG-Back` contains the following custom inbound rule:
* Priority:
* Source: Any
* Port: Any
* Destination: Any
* Action: Deny
`NSG-NIC-DB` contains only default rules.
You must configure network security to meet the following requirements:
* Allow HTTPS traffic (TCP port ) from the Internet to `VM-Web`.
* Allow `VM-Web` to connect to `VM-DB` on TCP port .
* Minimize the number of rules and use ASGs where possible.
* Maintain the principle of least privilege.
Which two of the following rules must you add to meet the requirements?
Select all that apply
An administrator is configuring a public Azure Load Balancer to distribute internet traffic to three standalone virtual machines deployed in the same virtual network. The virtual machines are not configured within an Availability Set. The administrator deploys a Basic SKU Load Balancer, but is unable to add the virtual machines to the backend pool. Which action should the administrator take to resolve this issue?
You have an Azure subscription that contains a virtual network named VNet1. VNet1 contains two virtual machines named VM1 and VM2. VM1 and VM2 are deployed as standalone virtual machines. VM1 has a public IP address named IP1 assigned directly to its network interface. IP1 is configured with the Basic SKU. VM2 does not have a public IP address. You provision a new public IP address named IP2 configured with the Standard SKU. You plan to create a public load balancer named LB1, use IP2 as the frontend IP configuration, and distribute inbound traffic to VM1 and VM2. You need to configure the load balancer and the virtual machines to support this configuration. Which two actions should you perform?
Select all that apply
An administrator is configuring autoscale settings for an Azure Virtual Machine Scale Set named `vmss-orders` that uses Uniform orchestration. The scale set currently has a capacity of instances. The upgrade policy is set to Manual.
The administrator configures a scale-out rule to add instances when the average CPU utilization exceeds .
To prevent instance thrashing, where the scale set repeatedly scales out and then immediately scales in under a constant workload, what is the maximum CPU utilization threshold that should be configured for the scale-in rule (which removes instances)?
An administrator deploys two virtual machines named VM-West1 and VM-West2 to the same virtual network. VM-West1 is deployed in Availability Zone 1, and VM-West2 is deployed in Availability Zone 2.
The administrator deploys a public load balancer named LB-App and successfully configures a frontend IP address using a public IP address named IP-App1.
When attempting to configure the backend pool for LB-App, the administrator discovers that both VM-West1 and VM-West2 cannot be added to the same backend pool.
What is the cause of this issue?
Your company is deploying a high-performance database server on an Azure virtual machine named VM1 in the East US region. The database workload requires sub-millisecond storage latency and up to IOPS. You plan to attach an Ultra Disk managed disk to VM1 to meet these requirements. Which configuration is required during the creation of VM1 to ensure you can attach an Ultra Disk to the virtual machine?
An organization deploys three virtual networks in the East US region:
* VNet-Hub (): Contains a virtual machine named VM-NVA () in the firewall subnet.
* VNet-Spoke1 (): Contains a virtual machine named VM-Spoke1 in the web subnet.
* VNet-Spoke2 (): Contains a virtual machine named VM-Spoke2 in the database subnet.
Bidirectional virtual network peering is established between VNet-Hub and VNet-Spoke1, and between VNet-Hub and VNet-Spoke2. All peering connections currently use default settings:
* Traffic to remote virtual network: Allow
* Traffic forwarded from remote virtual network: Block
* Virtual network gateway: None
A route table is associated with the web subnet of VNet-Spoke1 with a route to `` via Next Hop Type `Virtual appliance` at IP address ``. A route table is also associated with the database subnet of VNet-Spoke2 with a route to `` via Next Hop Type `Virtual appliance` at IP address ``. IP forwarding is enabled on the Azure network interface (NIC) and within the operating system of VM-NVA.
You need to ensure that VM-Spoke1 can communicate with VM-Spoke2 through VM-NVA.
Which of the following configurations should you perform?
An administrator configures application logging for an Azure App Service web app named WebApp1. The administrator enables Application Logging (Filesystem) and sets the level to Information.
Two days later, the administrator notices that application logs are no longer being generated, even though the application is actively processing requests. Other web server logs continue to be written.
What is the most likely cause of this behavior?
You manage an Azure environment that contains a virtual network named `VNet1` (). `VNet1` contains three subnets named `Subnet-Front` (), `Subnet-Back` (), and `Subnet-Security` ().
A network virtual appliance named `NVA1` is deployed in `Subnet-Security` and is assigned the private IP address .
A virtual machine named `VM-Front` () is deployed in `Subnet-Front`. Two virtual machines named `VM-Back1` () and `VM-Back2` () are deployed in `Subnet-Back`.
You create a route table named `RT-Front` and associate it with `Subnet-Front`.
You need to ensure that traffic sent from `VM-Front` to `VM-Back1` is routed through `NVA1` for security inspection, while traffic from `VM-Front` to `VM-Back2` bypasses `NVA1` and is routed directly to `Subnet-Back`.
Which routing configuration and VM setting should you implement?
An administrator is configuring network routing within a single Azure virtual network named `VNet-Prod` (). The virtual network is segmented into the following three subnets:
* `WebSubnet` ()
* `DatabaseSubnet` ()
* `SecuritySubnet` ()
A firewall virtual machine acting as a Network Virtual Appliance (NVA) is deployed in `SecuritySubnet` and has the private IP address .
The administrator must redirect all network traffic sent from `WebSubnet` targeting the `DatabaseSubnet` through the firewall virtual machine.
Which of the following actions should the administrator perform to route the traffic? (Select TWO.)
Select all that apply
CloudScale Logistics has an Azure subscription named sub-cloudscale-prod. You are configuring customer-managed keys (CMK) for a storage account named sacloudscaleprod. You create a user-assigned managed identity named uami-storage-encrypt. You deploy an Azure Key Vault named kv-cloudscale-prod that uses Azure role-based access control (RBAC) authorization. You must ensure that sacloudscaleprod can encrypt data using a key in kv-cloudscale-prod while meeting security compliance policies. Which of the following actions must be performed to successfully complete the CMK configuration? (Select THREE.)
Select all that apply
An administrator manages an Azure subscription with a virtual network named `VNet1`. `VNet1` contains two subnets:
- `Subnet-Web` (), associated with a Network Security Group (NSG) named `NSG-Web`.
- `Subnet-App` (), associated with an NSG named `NSG-App`.
The following virtual machines are deployed:
- `VM-Web1` () and `VM-Web2` () in `Subnet-Web`. The network interfaces (NICs) of both VMs are associated with an Application Security Group (ASG) named `ASG-Web`.
- `VM-App1` () in `Subnet-App`. Its NIC is associated with an ASG named `ASG-App`.
- `VM-App2` () in `Subnet-App`. Its NIC is associated with a dedicated NSG named `NSG-App2-NIC`.
Currently, the NSGs have the following custom rules:
- `NSG-Web` has no custom rules.
- `NSG-App` has a custom inbound rule named `Deny-Web` with priority that denies all protocols and ports from the `10.0.1.0/24` source to `Any` destination.
- `NSG-App2-NIC` has a custom inbound rule named `Deny-All-Inbound` with priority that denies all protocols and ports from `Any` source to `Any` destination.
You need to configure the network security to satisfy the following requirements:
1. Allow HTTPS traffic (TCP port ) from `VM-Web1` and `VM-Web2` to `VM-App1`.
2. Allow SSH traffic (TCP port ) from `VM-Web1` to `VM-App2`.
3. Block all other traffic from `Subnet-Web` to `Subnet-App`.
Which three of the following rules should you configure? (Select three.)
Select all that apply
Your company has an Azure subscription named Sub-Development that contains two resource groups named RG-CoreApp and RG-Testing. You need to implement a governance strategy that enforces the following requirements:
* All virtual machines deployed to Sub-Development must include a tag named Environment.
* The Environment tag value must be either Dev or Test.
* Any virtual machine deployment that does not meet these tagging requirements must be prevented.
* Virtual machines deployed to RG-Testing must be allowed to deploy without any tag requirements.
Which two of the following actions should you perform to meet these requirements?
Select all that apply
An organization has a virtual network configured with the address space . An administrator needs to create a new subnet named `snet-appdev` to deploy exactly virtual machine instances. The administrator proposes assigning the address prefix to the new subnet. Does the proposed address prefix provide a sufficient number of usable IP addresses for the virtual machine instances?
Your company has an Azure subscription containing a virtual network named `VNet1` (). `VNet1` contains a subnet named `AKS-Subnet` (). You plan to deploy an Azure Kubernetes Service (AKS) cluster named `aks-prod` into `AKS-Subnet`. The cluster configuration must satisfy the following requirements:
- The cluster must start with nodes and support scaling up to nodes.
- Each node must run up to pods.
- Pods must be assigned IP addresses directly from `AKS-Subnet` to allow direct routing without NAT to an on-premises network connected via ExpressRoute.
- You must prevent IP address allocation failures in the subnet during scaling.
Which configuration should you select to deploy the cluster?