Deploy and manage Azure compute resources Flashcards
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System event log
on VM1 within an hour.
Solution: You create an Azure Log Analytics workspace and configure the data settings. You add the
Microsoft Monitoring Agent VM extension to VM1. You create an alert in Azure Monitor and specify the Log
Analytics workspace as the source.
Does this meet the goal?
A. Yes
B. No
B. No
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System event log
on VM1 within an hour.
Solution: You create an Azure Log Analytics workspace and configure the data settings. You install the
Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the Log Analytics workspace as the source.
Does this meet the goal?
A. Yes
B. No
A. Yes
You have an Azure subscription named Subscription1 that contains the resources shown in the following
table.
Name / Type/ Location / Resource group
RG1 - Resource group - East US - Not applicable
RG2 - Resource group - West Europe - Not applicable
RG3 - Resource group -North Europe - Not applicable
VNET1 - Virtual Network - Central US - RG1
VM1 - Virtual Machine - West US - RG2
VM1 connects to a virtual network named VNET2 by using a network interface named NIC1.
You need to create a new network interface named NIC2 for VM1.
Solution: You create NIC2 in RG1 and West US.
Does this meet the goal?
A. Yes
B. No
A. Yes
You have an Azure subscription named Subscription1 that contains the resources shown in the following
table.
Name / Type/ Location / Resource group
RG1 - Resource group - East US - Not applicable
RG2 - Resource group - West Europe - Not applicable
RG3 - Resource group -North Europe - Not applicable
VNET1 - Virtual Network - Central US - RG1
VM1 - Virtual Machine - West US - RG2
VM1 connects to a virtual network named VNET2 by using a network interface named NIC1.
You need to create a new network interface named NIC2 for VM1.
Solution: You create NIC2 in RG2 and Central US.
Does this meet the goal?
A. Yes
B. No
B. No
You have an Azure subscription named Subscription1 that contains the resources shown in the following
table.
Name / Type/ Location / Resource group
RG1 - Resource group - East US - Not applicable
RG2 - Resource group - West Europe - Not applicable
RG3 - Resource group -North Europe - Not applicable
VNET1 - Virtual Network - Central US - RG1
VM1 - Virtual Machine - West US - RG2
VM1 connects to a virtual network named VNET2 by using a network interface named NIC1.
You need to create a new network interface named NIC2 for VM1.
Solution: You create NIC2 in RG2 and West US.
Does this meet the goal?
A. Yes
B. No
A. Yes
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1.
You need to deploy a YAML file to AKS1. Solution: From Azure Cloud Shell, you run az aks. Does this meet the goal? A. Yes B. No
B. No
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1.
You need to deploy a YAML file to AKS1.
Solution: From Azure Cloud Shell, you run the kubectl client.
Does this meet the goal?
A. Yes
B. No
A. Yes
You deploy an Azure Kubernetes Service (AKS) cluster named AKS1.
You need to deploy a YAML file to AKS1.
Solution: From Azure CLI, you run azcopy.
Does this meet the goal?
A. Yes
B. No
B. No
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System event log
on VM1 within an hour.
Solution: You create an Azure storage account and configure shared access signatures (SASs). You install
the Microsoft Monitoring Agent on VM1. You create an alert in Azure Monitor and specify the storage account as the source.
Does this meet the goal?
A. Yes
B. No
B. No
You download an Azure Resource Manager template based on an existing virtual machine. The template
will be used to deploy 100 virtual machines.
You need to modify the template to reference an administrative password. You must prevent the password
from being stored in plain text.
What should you create to store the password?
A. an Azure Key Vault and an access policy
B. an Azure Storage account and an access policy
C. a Recovery Services vault and a backup policy
D. Azure Active Directory (AD) Identity Protection and an Azure policy
A. an Azure Key Vault and an access policy
You plan to automate the deployment of a virtual machine scale set that uses the Windows Server 2016 Datacenter image.
You need to ensure that when the scale set virtual machines are provisioned, they have web server components installed.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
A. Upload a configuration script
B. Create an automation account
C. Create an Azure policy
D. Modify the extensionProfile section of the Azure Resource Manager template
E. Create a new virtual machine scale set in the Azure portal
D. Modify the extensionProfile section of the Azure Resource Manager template
E. Create a new virtual machine scale set in the Azure portal
You create an App Service plan named Plan1 and an Azure web app named webapp1.
You discover that the option to create a staging slot is unavailable.
You need to create a staging slot for Plan1.
What should you do first?
A. From Plan1, scale up the App Service plan
B. From webapp1, modify the Application settings
C. From webapp1, add a custom domain
D. From Plan1, scale out the App Service plan
A. From Plan1, scale up the App Service plan
You plan to move a distributed on-premises app named App1 to an Azure subscription.
After the planned move, App1 will be hosted on several Azure virtual machines.
You need to ensure that App1 always runs on at least eight virtual machines during planned Azure
maintenance.
What should you create?
A. one virtual machine scale set that has 10 virtual machines instances
B. one Availability Set that has three fault domains and one update domain
C. one Availability Set that has 10 update domains and one fault domain
D. one virtual machine scale set that has 12 virtual machines instances
C. one Availability Set that has 10 update domains and one fault domain
You have an Azure virtual machine named VM1 that runs Windows Server 2016.
You need to create an alert in Azure when more than two error events are logged to the System event log
on VM1 within an hour.
Solution: You create an event subscription on VM1. You create an alert in Azure Monitor and specify VM1 as the source Does this meet the goal? A. Yes B. No
B. No
You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure Resource
Manager template named ARM1.json.
You receive a notification that VM1 will be affected by maintenance.
You need to move VM1 to a different host immediately.
Solution: From the Overview blade, you move the virtual machine to a different subscription.
Does this meet the goal?
A. Yes
B. No
B. No
You have an Azure virtual machine named VM1. VM1 was deployed by using a custom Azure Resource.
Manager template named ARM1.json.
You receive a notification that VM1 will be affected by maintenance.
You need to move VM1 to a different host immediately.
Solution: From the Redeploy blade, you click Redeploy.
Does this meet the goal?
A. Yes
B. No
A. Yes