You have an Azure subscription that contains two virtual networks named VNet1 and VNet2. You need to ensure that the resources on both VNet1 and VNet2 can communicate seamlessly between both networks. What should you configure from the Azure portal?Select only one answer.
connected devices
firewall
peerings
service endpoints
peerings
You can connect virtual networks to each other with virtual network peering. Once the virtual networks are peered, the resources on both virtual networks can communicate with each other with the same latency and bandwidth as though the resources were on the same virtual network.
You have an Azure subscription that contains a virtual network named VNet1 and a virtual machine named VM1. VM1 can only be accessed from the internal network. An external contractor needs access to VM1. The solution must minimize administrative effort. What should you configure? Select only one answer.
a public IP address
a second private IP address
a Site-to-Site (S2S) VPN
Azure Firewall
a public IP address
To share a virtual machine with an external user, you must add a public IP address to the virtual machine. An additional IP address or firewall configuration will not help in this case. Configuring a S2S VPN does not have minimal administrative effort.
You have an Azure subscription that contains network security groups (NSGs). Which two resources can be associated with a NSG? Each correct answer presents a complete solution. Select all answers that apply.
Virtual networks
Virtual machines
network interfaces
subnets
network interfaces
subnets
You can use a network security group (NSG) to be assigned to a network interface. NSGs can be associated with subnets or individual virtual machine instances within that subnet. When an NSG is associated with a subnet, the access control list (ACL) rules apply to all virtual machine instances of that subnet.
You have an Azure subscription that contains two resource groups named RG1 and RG2.
RG1 contains the following resources:
A virtual network named VNet1 located in the East US Azure region
A network security group (NSG) named NSG1 located in the West US Azure region
RG2 contains the following resources:
A virtual network named VNet2 located in the East US Azure region
A virtual network named VNet3 located in the West US Azure region
You need to associate NSG1. To which subnets can you associate NSG1? Select only one answer.
the subnets of all the virtual networks
the subnets of VNet1 only
the subnets of VNet1 and VNet2
the subnets of VNet3 only
the subnets of VNet3 only
You can assign an NSG to the subnet of the virtual network in the same region as the NSG and NSG1 is in the West US region.
You create several Azure virtual machines that run Windows Server.
You need to connect to the virtual machines without exposing RDP ports over the internet. Which Azure service should you deploy? Select only one answer.
Azure Bastion
Azure Front Door
Azure Network Watcher
Azure Virtual Desktop
Azure Bastion
Azure Bastion is a service that lets you connect to a virtual machine by using a browser, without exposing RDP and SSH ports. Azure Monitor helps you maximize the availability and performance of applications and services. Azure Network Watcher provides tools to monitor, diagnose, view metrics, and enable or disable logs for resources in an Azure virtual network. Remote Desktop is a feature of the operating system, which exposes the RDP port to connect to a server from the internet.
You have an Azure subscription that contains a resource group named RG1.
You plan to create and configure a network security group (NSG) named NSG1 for the following types of traffic:
Remote Desktop Management
HTTP
NSG1 will be used on the subnets of multiple virtual networks.
Which two cmdlets should you run? Each correct answer presents part of the solution. Select all answers that apply.
Add-AzLoadBalancerFrontendIpConfig
Add-AzNetworkInterfaceTapConfig
New-AzNetworkSecurityGroup
New-AzNetworkSecurityRuleConfig
New-AzNetworkSecurityGroup
New-AzNetworkSecurityRuleConfig
New-AzNetworkSecurityRuleConfig allows you to create a rule and provide the type, protocol, direction, and port number. New-AzNetworkSecurityGroup creates a network security group (NSG). -SecurityRules specifies a list of network security rule objects to create in a NSG.
You have an Azure subscription that contains an ASP.NET application. The application is hosted on four Azure virtual machines that run Windows Server. You have a load balancer named LB1 that load balances requests to the virtual machines. You need to ensure that site users connect to the same web server for all requests made to the application. Which two actions should you perform? Each correct answer presents part of the solution. Select all answers that apply.
Configure an inbound NAT rule.
Set Session persistence to Client IP.
Set Session persistence to None.
Set Session persistence to Protocol.
Set Session persistence to Client IP.
Set Session persistence to Protocol.
By setting Session persistence to Client IP and Protocol, you ensure that site users connect to the same web server for all requests made to the application. Setting Session persistence to None disables sticky sessions and an inbound NAT rule is used to forward traffic from a load balancer frontend to a backend pool.
You have an Azure subscription. You plan to implement four Azure virtual networks that will be peered. All virtual machines will use a DNS suffix of contoso.com. You need to configure name resolution for the virtual networks to ensure that all the virtual machines can communicate by using their FQDNs. The solution must minimize administrative effort. What should you use? Select only one answer.
a DNS server on an Azure virtual machine
an Azure Private DNS zone
an Azure public DNS zone
Azure-provided name resolution
an Azure Private DNS zone
Azure Private DNS allows for private name resolution between Azure virtual networks. Azure public DNS provides DNS for public access, such as name resolution for a publicly accessible website. Azure-provided name resolution does not support user-defined domain names and only supports a single virtual network. A DNS server on a virtual machine can also be used to achieve the goal but involves much more administrative effort to implement and maintain than using Azure Private DNS.
You have an Azure subscription that contains four virtual machines. Each virtual machine is connected to a subnet on a different virtual network. You install the DNS Server role on a virtual machine named VM1. You configure each virtual network to use the IP address of VM1 as the DNS server. You need to ensure that all four virtual machines can resolve IP addresses by using VM1. What should you do? Select only one answer.
Configure a DNS server on all four virtual machines.
Configure network peering.
Create and associate a route table to all four subnets.
Create Site-to-Site (S2S) VPNs.
Configure network peering.
By default, Azure virtual machines can communicate only with other virtual machines that are connected to the same virtual network. If you want a virtual machine to communicate with other virtual machines that are connected to other virtual networks, you must configure network peering. A route table controls how network traffic is routed. But without network peering, network traffic is still limited to single virtual network. Configuring a Site-to-Site (S2S) VPN is incorrect because you are not connecting on-premises virtual machines to the cloud.
Your organization uses an Azure Load Balancer to manage traffic for VMs hosting a web application. Users experience uneven traffic distribution, with some VMs receiving more traffic than others. You need to configure the load balancer to ensure even traffic distribution across all VMs in the backend pool. What should you do? Select only one answer.
Add more VMs to the pool.
Adjust the load balancing rule settings.
Disable session persistence.
Enable session persistence (source IP affinity).
Disable session persistence.
Disabling session persistence ensures even traffic distribution by removing any affinity that directs traffic to the same VM. Adjusting the load balancing rule settings might seem like a solution but does not address the root cause of uneven distribution. Enabling source IP affinity maintains session persistence, potentially exacerbating the uneven distribution of traffic. Adding more VMs does not solve the distribution issue caused by session persistence settings.
You have an Azure virtual network named VNet1. You need to ensure that email is sent to an administrator when a virtual machine is connected to VNet1. What should you create? Select only one answer.
an action group
an alert processing rule
an alert rule
a mail-enabled security group
an alert rule
Azure Monitor alerts proactively notify you when important conditions are found in monitoring data. They allow you to identify and address issues in the system before customers notice them. You can set alerts on metrics, logs, and the activity log. Different types of alerts have benefits and drawbacks. Metrics is a feature of Azure Monitor that collects numeric data from monitored resources into a time-series database. Metrics are numerical values that are collected at regular intervals and describe some aspect of a system at a particular time.
When Azure Monitor data indicates that there may be an issue with an infrastructure or application, an alert is triggered. Azure Monitor, Azure Service Health, and Azure Advisor then use action groups to notify users about the alert and take action. An action group is a collection of notification preferences defined by the owner of an Azure subscription.
You have an Azure subscription that contains a resource group named RG1. RG1 contains two virtual machines named VM1 and VM2. You need to inspect all the network traffic from VM1 to VM2.The solution must use Azure Monitor metrics. Which two actions should you perform? Each correct answer presents part of the solution. Select all answers that apply.
Configure a log alert.
Configure Network In and Network Out.
Install AzureNetworkWatcherExtension.
Use packet capture.
Install AzureNetworkWatcherExtension.
Use packet capture.
Azure Network Watcher variable packet capture allows you to create packet capture sessions to track traffic to and from a virtual machine. Packet capture helps to diagnose network anomalies both reactively and proactively.
You plan to provision an Azure subscription that will contain the following virtual networks:
VNet1 in the East US Azure region with two subnets
VNet2 in the East US region with four subnets
VNet3 in the West Europe Azure region with four subnets
VNet4 in the West Europe region with two subnets
How many Azure Network Watcher instances will be provisioned as part of the deployment? Select only one answer.
1
2
4
12
2
Azure Network Watcher is a regional service that allows you to monitor and diagnose conditions at a network scenario level in, to, and from Azure. When you create or update a virtual network in a subscription, Network Watcher will be enabled automatically in the virtual network’s region. There is no impact on resources or associated charges for automatically enabling Network Watcher.
You have an Azure subscription that contains 20 virtual networks and 500 virtual machines. You deploy a new virtual machine named VM501. You discover that VM501 is unable to communicate with a virtual machine named VM20 in the subscription. You suspect that a network security group (NSG) is the cause of the issue. You need to identify whether an NSG is blocking communications. The solution must minimize administrative effort. What should you use? Select only one answer.
diagnostic logs
IP flow verify
NSG flow logs
packet capture
IP flow verify
IP flow verify lets you specify a source and destination IPv4 address, port, protocol (TCP or UDP), and traffic direction (inbound or outbound). IP flow verify can identify the specific network security group (NSG) that prevents communication. NSG flow logs is a feature of Azure Network Watcher that allows you to log information about IP traffic flowing through an NSG. Although the logs may help you identify the source of the issue, it requires much more configuration and manual evaluation. Packet capture allows you to create packet capture sessions to track traffic to and from a virtual machine. Packet capture may help narrow down the scope of the issue, but it will not identify the specific NSG that prevents communication.
You have a Log Analytics workspace that collects data from various data sources. You create a new Azure Monitor log query. You plan to view data pinned as a chart to a shared dashboard. What is the maximum number of days for which data can be shown on the shared dashboard? Select only one answer.
14
30
90
180
30
Data shown on a shared dashboard can only be displayed for a maximum of 30 days.
You have an Azure virtual machine named Server1 that runs Windows Server. You need to configure Azure Backup to back up files and folders. What should you install on Server1? Select only one answer.
Microsoft Azure Backup Server (MABS)
Microsoft Azure Site Recovery Provider
the Azure Connected Machine agent
the Microsoft Azure Recovery Services (MARS) agent
the Microsoft Azure Recovery Services (MARS) agent
The Microsoft Azure Recovery Service (MARS) agent must be installed on the servers. The MARS agent is mandatory to perform backup and recovery services for any servers.
You have an Azure virtual machine that you back up by using Azure Backup. The backup policy sub type is Standard, and the backup policy has the following configurations:
Backup schedule frequency: Weekly
Retain instant recovery snapshot(s) for: 5 days
Retention of weekly backup point: On Sunday at 8:00 AM for 12 weeks
You discover that Instant Restore is consuming more storage than expected. You need to reduce the amount of storage consumed by Instant Restore. What should you do first? Select only one answer.
Change the backup schedule frequency to Daily.
Change the retention of weekly backup points to 1 week.
Modify the backup policy to reduce the retention of instant recovery snapshots.
Provision an additional blob storage container.
Modify the backup policy to reduce the retention of instant recovery snapshots.
Correct – The “Retain instant recovery snapshot(s)” setting directly determines how long snapshots are stored locally before being transferred to the Recovery Services vault. Reducing this from 5 days to 2 days lowers Instant Restore storage usage.
You are an Azure Administrator for Best For You Organics Company. The company uses ARM templates for deploying resources. You need to pass an array as an inline parameter during the deployment of the ARM template. What should you do? Select only one answer.
Modify the template to include the array values.
Use the –template-file switch to pass the array values.
Provide the array values in the –parameters switch in the deployment command.
Create a separate parameters file that includes the array values.
Provide the array values in the –parameters switch in the deployment command.
To pass an array as an inline parameter during the deployment of a local template, you should provide the array values in the –parameters switch in the deployment command. The other options are not correct methods for passing an array as an inline parameter.
You have an Azure Resource Manager (ARM) template named Template1 that is used to deploy Azure virtual machines. Template1 contains the following text.
“resources”: [
{
“type”: “Microsoft.Compute/virtualMachines”,
“apiVersion”: “2018-06-01”,
“name”: “[parameters(‘vmName’)]”,
“location”: “[resourceGroup().location]”,
“properties”: {
<text removed>
}
}
]
You need to deploy two Azure virtual machines by using Template1. What should you add to Template1? Select only one answer.
a copy element
the API version
the Azure subscription ID
the resource group location
a copy element
The correct solution is to add a copy element, because ARM templates use the copy property to deploy multiple instances of a resource, such as two virtual machines, in a single deployment. The API version is already specified in the template and does not control the number of resources deployed. The subscription ID is never hardcoded in ARM templates since deployments are scoped to a subscription, and the resource group location is already provided through “[resourceGroup().location]”. Therefore, only the copy element enables the template to create two virtual machines from a single resource definition.
You are creating an Azure virtual machine that will run Windows Server. You need to ensure that VM1 will be part of a virtual machine scale set. Which setting should you configure during the creation of the virtual machine? Select only one answer.
Availability options
Azure Spot instance
Management
Region
Availability options
You must configure the virtual machine scale set from the availability options. Azure spot instance is used to add virtual machines with a discounted price. Region will not affect the configuration of the availability options. The management setting allows you to configure the monitoring and management options for the virtual machine.
You have an Azure virtual network that contains two subnets named Subnet1 and Subnet2. You have a virtual machine named VM1 that is connected to Subnet1. VM1 runs Windows Server. You need to ensure that VM1 is connected directly to both subnets. What should you do first? Select only one answer.
From the Azure portal, add a network interface.
From the Azure portal, create an IP group.
From the Azure portal, modify the IP configurations of an existing network interface.
Sign in to Windows Server and create a network bridge.
From the Azure portal, add a network interface.
A network interface is used to connect a virtual machine to a subnet. Since VM1 is connected to Subnet1, VM1 already has a network interface attached that is connected to Subnet1. To connect VM1 directly to Subnet2, you must create a new network interface that is connected to Subnet2. Next, you must attach the new network interface to VM1.
An IP group is a user-defined collection of static IP addresses, ranges, and subnets. A network bridge allows you to connect multiple existing network connection in Windows together. Changing the IP configurations of the existing network interface results in VM1 being connected to Subnet2 but not to Subnet1.
You have an Azure subscription that contains an Azure Storage account named vmstorageaccount1.
You create an Azure container instance named container1.
You need to configure persistent storage for container1.
What should you create in vmstorageaccount1? Select only one answer.
a blob container
a file share
a queue
a table
a file share
An Azure container instance (Docker container) can mount Azure File Storage shares as directories and use them as persistent storage. An Azure container instance cannot mount and use as persistent storage blob containers, queues and tables.
Your development team plans to deploy an Azure container instance. The container needs a persistent storage layer.
Which service should you use? Select only one answer.
Azure Blob storage
Azure Files
Azure Queue Storage
Azure SQL Database
Azure Files
You can persist data for Azure Container Instances with the use of Azure Files. Azure Files offers fully managed file shares hosted in Azure Storage that are accessible via the industry standard Server Message Block (SMB) protocol.
You have an Azure subscription that contains a Docker container image named container1. You plan to create a new Azure web app named WebApp1. You need to ensure that you can use container1 for WebApp1. Which WebApp1 setting should you configure? Select only one answer.
Continuous deployment
Pricing plan
Publish
Runtime stack
Publish
If you want to run a Docker container as an Azure web service, you must configure the Publish option and select Docker container.
Runtime stack specifies the stack that you want to use for the web app. If you want to deploy a Docker container as web app, the runtime stack option is unavailable.
Pricing plan specifies the location, features, and costs of the web app.
Continuous deployment is a strategy for software releases. This option is unavailable when you publish a Docker container as an Azure web app.