Deploy and manage Azure compute resources Flashcards

1
Q

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

A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A. Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A. Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A. Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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
A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

A. Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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

A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A. an Azure Key Vault and an access policy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

D. Modify the extensionProfile section of the Azure Resource Manager template
E. Create a new virtual machine scale set in the Azure portal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A. From Plan1, scale up the App Service plan

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

C. one Availability Set that has 10 update domains and one fault domain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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
A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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

A

B. No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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

A. Yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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 Update management blade, you click Enable.
Does this meet the goal?
A. Yes
B. No

A

B. No

18
Q

You have an Azure subscription that contains a web app named webapp1.
You need to add a custom domain named www.contoso.com to webapp1.

What should you do first?
A. Create a DNS record
B. Add a connection string
C. Upload a certificate.
D. Stop webapp1.
A

A. Create a DNS record

19
Q

You deploy an Azure Kubernetes Service (AKS) cluster named Cluster1 that uses the IP addresses shown
in the following table.

IP address | Assigned to

  1. 107.2.1 - Load balancer front end
  2. 168.10.2 - Kubernetes DNS Servidor
  3. 17.7.1 - Docket bridge address
  4. 0.10.11 - Kubernetes cluster node

You need to provide internet users with access to the applications that run in Cluster1.
Which IP address should you include in the DNS record for Cluster1?
A. 131.107.2.1
B. 10.0.10.11
C. 172.17.7.1
D. 192.168.10.2

A

A. 131.107.2.1

20
Q
You have a deployment template named Template1 that is used to deploy 10 Azure web apps.
You need to identify what to deploy before you deploy Template1. The solution must minimize Azure costs.
What should you identify?
A. five Azure Application Gateways
B. one App Service plan
C. 10 App Service plans
D. one Azure Traffic Manager
E. one Azure Application Gateway
A

B. one App Service plan

21
Q

You have an Azure subscription that contains a virtual machine named VM1. VM1 hosts a line-of-business
application that is available 24 hours a day. VM1 has one network interface and one managed disk. VM1
uses the D4s v3 size.
You plan to make the following changes to VM1:
Change the size to D8s v3.
Add a 500-GB managed disk.
Add the Puppet Agent extension.
Enable Desired State Configuration Management.
Which change will cause downtime for VM1?
A. Enable Desired State Configuration Management
B. Add a 500-GB managed disk
C. Change the size to D8s v3
D. Add the Puppet Agent extension

A

C. Change the size to D8s v3

22
Q

You have an app named App1 that runs on an Azure web app named webapp1.
The developers at your company upload an update of App1 to a Git repository named Git1.
Webapp1 has the deployment slots shown in the following table.

Name | Function

webapp1-prod - Production
webapp1-test - Staging

You need to ensure that the App1 update is tested before the update is made available to users.
Which two actions should you perform? Each correct answer presents part of the solution.
A. Swap the slots
B. Deploy the App1 update to webapp1-prod, and then test the update
C. Stop webapp1-prod
D. Deploy the App1 update to webapp1-test, and then test the update
E. Stop webapp1-test

A

A. Swap the slots

D. Deploy the App1 update to webapp1-test, and then test the update

23
Q
You have an Azure subscription named Subscription1 that has the following providers registered:
Authorization
Automation
Resources
Compute
KeyVault
Network
Storage
Billing
Web

Subscription1 contains an Azure virtual machine named VM1 that has the following configurations:
Private IP address: 10.0.0.4 (dynamic)
Network security group (NSG): NSG1
Public IP address: None
Availability set: AVSet
Subnet: 10.0.0.0/24
Managed disks: No
Location: East US
You need to record all the successful and failed connection attempts to VM1.
Which three actions should you perform? Each correct answer presents part of the solution.

A. Enable Azure Network Watcher in the East US Azure region.
B. Add an Azure Network Watcher connection monitor.
C. Register the MicrosoftLogAnalytics provider.
D. Create an Azure Storage account.
E. Register the Microsoft.Insights resource provider.
F. Enable Azure Network Watcher flow logs.

A

A. Enable Azure Network Watcher in the East US Azure region.
E. Register the Microsoft.Insights resource provider.
F. Enable Azure Network Watcher flow logs.

24
Q

You need to deploy an Azure virtual machine scale set that contains five instances as quickly as possible.
What should you do?
A. Deploy five virtual machines. Modify the Availability Zones settings for each virtual machine.
B. Deploy five virtual machines. Modify the Size setting for each virtual machine.
C. Deploy one virtual machine scale set that is set to VM (virtual machines) orchestration mode.
D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode.

A

D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode.

25
Q

You plan to create the Azure web apps shown in the following table.

Name | Runtime Stack

WebApp1 - .NetCore3.0
WebApp2 - ASP.NET V4.7
WebApp3 - PHP 7.3
WebApp4 - Ruby 2.6
What is the minimum number of App Service plans you should create for the web apps?
A. 1
B. 2
C. 3
D. 4
A

A. 1

26
Q

You have an Azure subscription named Subscription1. Subscription1 contains a resource group named
RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the Subscriptions blade, you select the subscription, and then click Programmatic
deployment.
Does this meet the goal?
A. Yes
B. No

A

B. No

27
Q

You have an Azure Active Directory (Azure AD) tenant named adatum.com that contains the users shown in the following table.

Name | Role
User1 - None
User2 - Global administrator
User3 - Cloud device administrator
User4 - Intune administrator

Adatum.com has the following configurations:
Users may join devices to Azure AD is set to User1.
Additional local administrators on Azure AD joined devices is set to None.
You deploy Windows 10 to a computer named Computer1. User1 joins Computer1 to adatum.com.
You need to identify the local Administrator group membership on Computer1.
Which users are members of the local Administrators group?
A. User1 only
B. User2 only
C. User1 and User2 only
D. User1, User2, and User3 only
E. User1, User2, User3, and User4

A

C. User1 and User2 only

28
Q

You have an Azure Kubernetes Service (AKS) cluster named AKS1.
You need to configure cluster autoscaler for AKS1.
Which two tools should you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. the kubectl command
B. the az aks command
C. the Set-AzVm cmdlet
D. the Azure portal
E. the Set-AzAks cmdlet

A

A. the kubectl command

B. the az aks command

29
Q

You create the following resources in an Azure subscription:
An Azure Container Registry instance named Registry1
An Azure Kubernetes Service (AKS) cluster named Cluster1
You create a container image named App1 on your administrative workstation.
You need to deploy App1 to Cluster1.
What should you do first?
A. Run the docker push command.
B. Create an App Service plan.
C. Run the az acr build command.
D. Run the az aks create command.

A

C. Run the az acr build command.

30
Q

You have an Azure subscription named Subscription1. Subscription1 contains a resource group named
RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the Subscriptions blade, you select the subscription, and then click Resource providers.
Does this meet the goal?
A. Yes
B. No

A

B. No

31
Q

You have an Azure subscription named Subscription1. Subscription1 contains a resource group named
RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the RG1 blade, you click Automation script.
Does this meet the goal?
A. Yes
B. No

A

B. No

32
Q

You have an Azure subscription named Subscription1. Subscription1 contains a resource group named
RG1. RG1 contains resources that were deployed by using templates.
You need to view the date and time when the resources were created in RG1.
Solution: From the RG1 blade, you click Deployments.
Does this meet the goal?
A. Yes
B. No

A

A. Yes

33
Q

You have an Azure subscription named Subscription1.
You deploy a Linux virtual machine named VM1 to Subscription1.
You need to monitor the metrics and the logs of VM1.
What should you use?
A. Azure HDInsight
B. Linux Diagnostic Extension (LAD) 3.0
C. the AzurePerformanceDiagnostics extension
D. Azure Analysis Services

A

C. the AzurePerformanceDiagnostics extension

34
Q

You plan to deploy three Azure virtual machines named VM1, VM2, and VM3. The virtual machines will host
a web app named App1.
You need to ensure that at least two virtual machines are available if a single Azure datacenter becomes
unavailable.
What should you deploy?
A. all three virtual machines in a single Availability Zone
B. all virtual machines in a single Availability Set
C. each virtual machine in a separate Availability Zone
D. each virtual machine in a separate Availability Set

A

C. each virtual machine in a separate Availability Zone

35
Q

You have an Azure virtual machine named VM1 that runs Windows Server 2019.
You save VM1 as a template named Template1 to the Azure Resource Manager library.
You plan to deploy a virtual machine named VM2 from Template1.
What can you configure during the deployment of VM2?
A. operating system
B. administrator username
C. virtual machine size
D. resource group

A

B. administrator username

36
Q

You have an Azure subscription that contains an Azure virtual machine named VM1. VM1 runs a financial
reporting app named App1 that does not support multiple active instances.
At the end of each month, CPU usage for VM1 peaks when App1 runs.
You need to create a scheduled runbook to increase the processor performance of VM1 at the end of each
month.
What task should you include in the runbook?
A. Add the Azure Performance Diagnostics agent to VM1.
B. Modify the VM size property of VM1.
C. Add VM1 to a scale set.
D. Increase the vCPU quota for the subscription.
E. Add a Desired State Configuration (DSC) extension to VM1

A

E. Add a Desired State Configuration (DSC) extension to VM1

37
Q

You plan to deploy several Azure virtual machines that will run Windows Server 2019 in a virtual machine
scale set by using an Azure Resource Manager template.
You need to ensure that NGINX is available on all the virtual machines after they are deployed.
What should you use?

A. Deployment Center in Azure App Service
B. A Desired State Configuration (DSC) extension
C. the New-AzConfigurationAssignment cmdlet
D. a Microsoft Intune device configuration profile

A

B. A Desired State Configuration (DSC) extension

38
Q

You have an Azure virtual machine named VM1 that runs Windows Server 2019. The VM was deployed
using default drive settings.
You sign in to VM1 as a user named User1 and perform the following actions:

Create files on drive C.
Create files on drive D.
Modify the screen saver timeout.
Change the desktop background.

You plan to redeploy VM1.
Which changes will be lost after you redeploy VM1?
A. the modified screen saver timeout
B. the new desktop background
C. the new files on drive D
D. the new files on drive C
A

C. the new files on drive D

39
Q

You have an Azure subscription named Subscription1 that is used by several departments at your
company. Subscription1 contains the resources in the following table:

Name | Type
storage1 - Storage account
RG1 - Resource group
container1 - Blob container
share1 - File share

Another administrator deploys a virtual machine named VM1 and an Azure Storage account named
storage2 by using a single Azure Resource Manager template.
You need to view the template used for the deployment.

From which blade can you view the template that was used for the deployment?
A. VM1
B. RG1
C. storage2
D. container1
A

B. RG1

40
Q

You have an Azure web app named App1. App1 has the deployment slots shown in the following table:

Name | Function

webapp1-prod - Production
webapp1-test - Staging

In webapp1-test, you test several changes to App1.
You back up App1.
You swap webapp1-test for webapp1-prod and discover that App1 is experiencing performance issues.
You need to revert to the previous version of App1 as quickly as possible.
What should you do?
A. Redeploy App1
B. Swap the slots
C. Clone App1
D. Restore the backup of App1

A

B. Swap the slots

41
Q

You plan to back up an Azure virtual machine named VM1.
You discover that the Backup Pre-Check status displays a status of Warning.
What is a possible cause of the Warning status?
A. VM1 is stopped.
B. VM1 does not have the latest version of the Azure VM Agent (WaAppAgent.exe) installed.
C. VM1 has an unmanaged disk.
D. A Recovery Services vault is unavailable.

A

B. VM1 does not have the latest version of the Azure VM Agent (WaAppAgent.exe) installed.

42
Q

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 resource group.
Does this meet the goal?
A. Yes
B. No

A

B. No