az-104 dumps topic 4, 1-106 Flashcards

(101 cards)

1
Q

Note: This question is part of a series of questions that present the same scenario.

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

A

B. No

To deploy a YAML file, the command is:
To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl, then run “kubectl apply -f azure-vote.yaml”
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough

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

Note: This question is part of a series of questions that present the same scenario.

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

To deploy a YAML file, the command is:
To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl, then run “kubectl apply -f azure-vote.yaml”
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough

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

Note: This question is part of a series of questions that present the same scenario.

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

A

A. Yes

To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl, then run “kubectl apply -f azure-vote.yaml”
Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough

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

Note: This question is part of a series of questions that present the same scenario.

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 that meet the goal?
A. Yes
B. No

A

B. No

Instead: 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.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview

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

You have an Azure subscription named Subscription1. Subscription1 contains the resources in the following table.
Name Type
RG1 Resource group
RG2 Resource group
VNet1 Virtual network
VNet2 Virtual network
VNet1 is in RG1. VNet2 is in RG2. There is no connectivity between VNet1 and VNet2.
An administrator named Admin1 creates an Azure virtual machine named VM1 in RG1. VM1 uses a disk named Disk1 and connects to VNet1.
Admin1 then installs a custom application in VM1.
You need to move the custom application to VNet2. The solution must minimize administrative effort.
Which two actions should you perform?
First action:
- Create a network interface in RG2.
- Detach a network interface.
- Delete VM1.
- Move a network interface to RG2.
Second action:
- Attach a network interface.
- Create a network interface in RG2.
- Create a new virtual machine.
- Move VM1 to RG2.

A

First action: - Delete VM1.
Second action: - Create a new virtual machine.

We cannot just move a virtual machine between networks. What we need to do is identify the disk used by the VM, delete the VM itself while retaining the disk, and recreate the VM in the target virtual network and then attach the original disk to it.
Note: You can change the Subnet a VM is connected to after it’s created, but you cannot change the VNet.

Reference:
https://blogs.technet.microsoft.com/canitpro/2014/06/16/step-by-step-move-a-vm-to-a-different-vnet-on-azure/
https://4sysops.com/archives/move-an-azure-vm-to-another-virtual-network-vnet/#migrate-an-azure-vm-between-vnets
https://docs.microsoft.com/en-us/azure/virtual-machines/network-overview

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
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

You can use a template that allows you to deploy a simple Windows VM by retrieving the password that is stored in a Key Vault. Therefore, the password is never put in plain text in the template parameter file.
Reference:
https://azure.microsoft.com/en-us/resources/templates/101-vm-secure-password/

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

You have the App Service plans shown in the following table.
Name Operating system Location
ASP1 Windows West US
ASP2 Windows Central US
ASP3 Linux West US
You plan to create the Azure web apps shown in the following table.
Name Runtime stack Location
WebApp1 .NET Core 3.0 West US
WebApp2 ASP.NET 4.7 West US
You need to identify which App Service plans can be used for the web apps. What should you identify?
WebApp1:
WebApp2:
- ASP1 only
- ASP3 only
- ASP1 and ASP2 only
- ASP1 and ASP3 only
- ASP1, ASP2, and ASP3

A

WebApp1: - ASP1 and ASP3 only
ASP.NET Core apps can be hosted both on Windows or Linux.
The region in which your app runs is the region of the App Service Plan is in.
ASP2 is in Central US, not the same as WebApp1. Different locations.

WebApp2: - ASP1 only
ASP.NET apps can be hosted on Windows only. Only ASP1 is in the same Location as the WebApp2 (West US).

Reference:
https://docs.microsoft.com/en-us/azure/app-service/quickstart-dotnetcore?pivots=platform-linux
https://docs.microsoft.com/en-us/azure/app-service/app-service-plan-manage

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

You create a virtual machine scale set named Scale1. Scale1 is configured as shown in the following exhibit.
Initial instance count: 4
Minimum number of VMs: 2
Scale out
CPU threshold: 80
Duration in minutes: 5
Number of VMs to increase by: 2
Scale in
CPU threshold: 30
Number of VMs to decrease by: 4
Dropdowns:
If Scale1 is utilized at 85 percent for six minutes after it is deployed, Scale1 will be running [answer choice]:
- 2 virtual machines
- 4 virtual machines
- 6 virtual machines
- 10 virtual machines
- 20 virtual machines
If Scale1 is first utilized at 25 percent for six minutes after it is deployed, and then utilized at 50 percent for six minutes, Scale1 will be running [answer choice]:
- 2 virtual machines
- 4 virtual machines
- 6 virtual machines
- 8 virtual machines
- 10 virtual machines

A

If Scale1 is utilized at 85 percent for six minutes after it is deployed, Scale1 will be running [answer choice]:
- 6 virtual machines
The Autoscale scale out rule increases the number of VMs by 2 if the CPU threshold is 80% or higher. The initial instance count is 4 and rises to 6 when the 2 extra instances of VMs are added.

If Scale1 is first utilized at 25 percent for six minutes after it is deployed, and then utilized at 50 percent for six minutes, Scale1 will be running [answer choice]:
- 2 virtual machines
The Autoscale scale in rule decreases the number of VMs by 4 if the CPU threshold is 30% or lower. The initial instance count is 4 and thus cannot be reduced to 0 as the minimum instances is set to 2. Instances are only added when the CPU threshold reaches 80%.

Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-overview
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-best-practices
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-common-scale-patterns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
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?
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

A. Upload a conguration script
D. Modify the extensionProfile section of the Azure Resource Manager template

The Custom Script Extension downloads and executes scripts on Azure VMs. This extension is useful for post deployment configuration, software installation, or any other configuration / management task. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run-time.

The Custom Script extension integrates with Azure Resource Manager templates, and can also be used with the Azure CLI, Azure PowerShell, Azure portal, or the REST API
The following Custom Script Extension definition downloads a sample script from GitHub, installs the required packages, then writes the VM instance hostname to a basic HTML page.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template

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

You have an Azure Kubernetes Service (AKS) cluster named AKS1 and a computer named Computer1 that runs Windows 10. Computer1 that has the Azure CLI installed.
You need to install the kubectl client on Computer1.
Which command should you run?
[1…] [2…] Install-cli
1. - az
- docker
- msiexec.exe
- Install-Module
2. - aks
- /package
- -name
- pull

A

[az] [aks] Install-cli
To install kubectl locally, use the az aks install-cli command.
Note: Azure cli commands start with az. We use Install-Module to install a Powershell module.

Reference:
https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
https://docs.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest

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

You onboard 10 Azure virtual machines to Azure Automation State Conguration.
You need to use Azure Automation State Conguration to manage the ongoing consistency of the virtual machine congurations.
Which three actions should you perform in sequence?
- Assign tags to the virtual machines
- Check the compliance status of the node
- Compile a configuration into a node configuration
- Upload a configuration to Azure Automation State Configuration
- Create a management group

A

1: Upload a configuration to Azure Automation State Configuration
2: Compile a configuration into a node configuration
3: Check the compliance status of the node.

Step 1: Create and upload a configuration to Azure Automation
Step 2: Compile a configuration into a node configuration
Step 3: Register a VM to be managed by State Configuration
Step 4: Specify configuration mode settings
Step 5: Assign a node configuration to a managed node
Step 6: Check the compliance status of a managed node

Reference:
https://docs.microsoft.com/en-us/azure/automation/automation-dsc-getting-started
https://docs.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state

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

You have an Azure Resource Manager template named Template1 that is used to deploy an Azure virtual machine.
Template1 contains the following text:
“location” : { “allowedValues” : [
“canadacentral”, “eastus”, “westeurope”, “westus” ] }
The variables section in Template1 contains the following text:
“location”: “westeurope”
The resources section in Template1 contains the following text:
“location”: “westeurope”
You need to deploy the virtual machine to the West US location by using Template1.
What should you do?
A. Modify the location in the resources section to westus
B. Select West US during the deployment
C. Modify the location in the variables section to westus

A

A. Modify the location in the resources section to westus
You can change the location in resources. Parameters used to define the value of some variables to be able to use in different places in the template resources. Resources are used only for complicated expressions. In any case, RM will only deploy from resources. In case the value is not mentioned directly, then it will check parameters if it is specified in the resources. Based on this question, the value of location is defined directly in resources. so you change the resources location value.

Use location parameter. To allow flexibility when deploying your template, use a parameter to specify the location for resources. Set the default value of the parameter to resourceGroup().location.

Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/resource-location?tabs=azure-powershell
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax#resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
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

The app must be running in the Standard, Premium, or Isolated tier in order for you to enable multiple deployment slots. If the app isn’t already in the Standard, Premium, or Isolated tier, you receive a message that indicates the supported tiers for enabling staged publishing. At this point, you have the option to select Upgrade and go to the Scale tab of your app before continuing.

Scale up: Get more CPU, memory, disk space, and extra features like dedicated virtual machines (VMs), custom domains and certificates, staging slots, autoscaling, and more.
Scale out: Increase the number of VM instances that run your app. You can scale out to as many as 30 instances

Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots
https://docs.microsoft.com/en-us/azure/app-service/manage-scale-up

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
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

A. one virtual machine scale set that has 10 virtual machines instances

VM Scale Set consists of a set of identically configured VMs.
Availability Set consists of a set of discrete VMs.
No more than 20% of the Scale Set upgrading at any time, then 2 machines out of 10 will have maintenance, the 8 remaining VMs will be up.

Virtual machine scale sets are created with five fault domains by default in Azure regions with no zones. For the regions that support zonal deployment of virtual machine scale sets and this option is selected, the default value of the fault domain count is 1 for each of the zones. FD=1 in this case implies that the VM instances belonging to the scale set will be spread across many racks on a best effort basis.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/manage-availability
https://docs.microsoft.com/en-us/learn/modules/build-app-with-scale-sets/2-features-benefits-virtual-machine-scale-sets
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade

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

Note: This question is part of a series of questions that present the same scenario.
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

Instead: 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.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview

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

Note: This question is part of a series of questions that present the same scenario.
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 notication 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

You would need to redeploy the VM.
Changing Subscription won’t affect the downtime, it will just you change the billing. You would need to redeploy the VM. After you redeploy a VM, the temporary disk is lost, and dynamic IP addresses associated with virtual network interface are updated.

From Overview there is no option to move the VM to another hardware to skip the maintenance.
Ideally you need an Availability Set and defining the Update Domains.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node

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

Note: This question is part of a series of questions that present the same scenario.
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 notication 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

When you redeploy a VM, it moves the VM to a new node within the Azure infrastructure and then powers it back on, retaining all your configuration options and associated resources.

Use the Azure portal. Select the VM you wish to redeploy, then select the Redeploy button in the Settings blade. You may need to scroll down to see the Support and Troubleshooting section that contains the ‘Redeploy’ button.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node

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

Note: This question is part of a series of questions that present the same scenario
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 notication 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
You would need to redeploy the VM.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
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 certicate.
D. Stop webapp1.

A

A. Create a DNS record

You can use either a CNAME record or an A record to map a custom DNS name to App Service.
You should use CNAME records for all custom DNS names except root domains (for example, contoso.com). For root domains, use A records.

Reference:
https://docs.microsoft.com/en-us/Azure/app-service/app-service-web-tutorial-custom-domain

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

Note: This question is part of a series of questions that present the same scenario
You have an Azure subscription that contains the resources shown in the following table.
Name Туре Region
RG1 Resource group West US
RG2 Resource group East Asia
storage1 Storage account West US
storage2 Storage account East Asia
VM1 Virtual machine West US
VNET1 Virtual network West US
VNET2 Virtual network East Asia
VM1 connects to VNET1.
You need to connect VM1 to VNET2.
Solution: You move VM1 to RG2, and then you add a new network interface to VM1.
Does this meet the goal?
A. Yes
B. No

A

B. No

Instead, you should delete VM1. Then recreate VM1 and add the network interface for VM1.
To migrate a VM from a VNET to another VNET. The only option is to delete the VM and redeploy it using a new NIC and NIC connected to VNET2.
Note: When you create an Azure Virtual Machine (VM), you must create a Virtual Network (VNet) or use an existing VNet. You can change the subnet a VM is connected to after it’s created, but you cannot change the VNet. You can also change the size of a VM.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview

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

Note: This question is part of a series of questions that present the same scenario.
You have an Azure subscription that contains the resources shown in the following table.
Name Туре Region
RG1 Resource group West US
RG2 Resource group East Asia
storage1 Storage account West US
storage2 Storage account East Asia
VM1 Virtual machine West US
VNET1 Virtual network West US
VNET2 Virtual network East Asia
VM1 connects to VNET1.
You need to connect VM1 to VNET2.
Solution: You delete VM1. You recreate VM1, and then you create a new network interface for VM1 and connect it to VNET2.
Does this meet the goal?
A. Yes
B. No

A

A. Yes

You should delete VM1. You recreate VM1, and then you add the network interface for VM1.
Note: When you create an Azure virtual machine (VM), you must create a virtual network (VNet) or use an existing VNet. You can change the subnet a VM is connected to after it’s created, but you cannot change the VNet.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview

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

Note: This question is part of a series of questions that present the same scenario.
You have an Azure subscription that contains the resources shown in the following table.
Name Туре Region
RG1 Resource group West US
RG2 Resource group East Asia
storage1 Storage account West US
storage2 Storage account East Asia
VM1 Virtual machine West US
VNET1 Virtual network West US
VNET2 Virtual network East Asia
VM1 connects to VNET1.
You need to connect VM1 to VNET2.
Solution: You turn off VM1, and then you add a new network interface to VM1.
Does this meet the goal?
A. Yes
B. No

A

B. No

Instead, you should delete VM1. Then recreate VM1 and add the network interface for VM1.
To migrate a VM from a VNET to another VNET the only option is to delete the VM and redeploy it using a new NIC and NIC connected to VNET2.
Note: When you create an Azure Virtual Machine (VM), you must create a Virtual Network (VNet) or use an existing VNet. You can change the subnet a VM is connected to after it’s created, but you cannot change the VNet. You can also change the size of a VM.

Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview

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

You have an Azure subscription named Subscription1 that contains the quotas shown in the following table.
Quota Location Usage
Standard BS Family VCPUs West US 0 of 20
Standard D Family vCPUs West US 0 of 20
Total Regional vCPUs West US 0 of 20
You deploy virtual machines to Subscription1 as shown in the following table.
Name Size vCPUs Location Status
VM1 Standard_B2ms 2 West US Running
VM2 Standard_B16ms 16 West US Stopped(Deallocated)
You plan to deploy the virtual machines shown in the following table.
Name Size vCPUs
VM3 Standard_B2ms 1
VM4 Standard_D4s_v3 4
VM5 Standard_B16ms 16

Yes/No
You can deploy VM3 to West US.
You can deploy VM4 to West US.
You can deploy VM5 to West US.

A

You can deploy VM3 to West US. - Yes
You can deploy VM4 to West US. - No
You can deploy VM5 to West US. - No

Total regional vCPUs = 20
2 vCPUs (VM1) + 16 vCPUs (VM20) = 18 vCPUs, which means that only 2 vCPUs left to exceed usage limit.

We can add 1 vCPU. 2 vCPUs (VM1) + 16 vCPUs (VM20) + 1 vCPU (VM3) = 19 vCPUs

We cannot add 4 vCPUs. 2 vCPUs (VM1) + 16 vCPUs (VM20) + 4 vCPU (VM4) = 22 vCPUs

We cannot add 16 vCPU. 2 vCPUs (VM1) + 16 vCPUs (VM20) + 16 vCPU (VM5) = 34 vCPUs
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quotas

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

You have an Azure subscription that contains an Azure Availability Set named WEBPROD-AS-USE2 as shown in the following exhibit.
“platformFaultDomainCount” : 2,
“platformUpdateDomainCount” : 10
You add 14 virtual machines to WEBPROD-AS-USE2.
Dropdowns:
When Microsoft performs planned maintenance in East US 2, the maximum number of unavailable virtual machines will be [answer choice]: 2, 7, 10, 14
If the server rack in the Azure datacenter that hosts WEBPROD-AS-USE2 experiences a power failure, the maximum number of unavailable virtual machines will be [answer choice]: 2, 7, 10, 14

A

When Microsoft performs planned maintenance in East US 2, the maximum number of unavailable virtual machines will be [answer choice]: 2
If the server rack in the Azure datacenter that hosts WEBPROD-AS-USE2 experiences a power failure, the maximum number of unavailable virtual machines will be [answer choice]: 7

There are 10 update domains. The 14 VMs are shared across the 10 update domains, so 4 update domains will have 2 VMs and 6 update domains will have 1 VM. Only one update domain is rebooted at a time.
There are 2 fault domains. The 14 VMs are shared across the 2 fault domains, so 7 VMs in each fault domain. A rack failure will affect one fault domain so 7 VMs will be offline.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
You deploy an Azure Kubernetes Service (AKS) cluster named Cluster1 that uses the IP addresses shown in the following table. IP address Assigned to 131.107.2.1 Load balancer front end 192.168.10.2 Kubernetes DNS service 172.17.7.1 Docket bridge address 10.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. 131.107.2.1 To be able to access applications on kubernetes , you need a application Load Balancer created by Azure which have public ip.
26
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
B. one App Service plan Creating one App Service Plan, you can support up to 10 Web Apps. Adding any of the other resources are pointless and not noted as a requirement. Reference: https://docs.microsoft.com/en-us/azure/app-service/overview-hosting-plans No, ref https://learn.microsoft.com/en-us/azure/app-service/manage-scale-up you should search for scale instance, + Free - N/A + Basic - 3 ins + Standard - 10 ins + Premium - 30 ins Free: up 10 Shared: up 100
27
You plan to deploy an Azure container instance by using the following Azure Resource Manager template. "restartPolicy" : "OnFailure" ipAddress: ports : protocol: TCP, port: 80 type: public osType: Windows Dropdowns: Internet users [answer choice]: - can connect to the container from any device - cannot connect to the container - can only connect to the container from devices that run Windows If Internet Information Services (IIS) in the container fail, [answer choice]: - the container will restart automatically - the container will only restart manually - the container must be redeployed
Internet users [answer choice]: - can connect to the container from any device If Internet Information Services (IIS) in the container fail, [answer choice]: - the container will restart automatically No Access restrictions are specified. The "restartPolicy" is set as "OnFailure".
28
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 Conguration Management. Which change will cause downtime for VM1? A. Enable Desired State Conguration Management B. Add a 500-GB managed disk C. Change the size to D8s v3 D. Add the Puppet Agent extension
C. Change the size to D8s v3 While resizing, the VM must be in a stopped state, therefore there will be a downtime. Reference: https://azure.microsoft.com/en-us/blog/resize-virtual-machines Scaling up VM cause a downtime Nowadays you don't need to stop the vm prior to resizing, even if the vm is running, you may resize, but it will restart the vm causing downtime anyway. Also another advantage of stopping vm prior to resizing is that it gives more choices to choose from in the vm list.
29
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? 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
D. Deploy the App1 update to webapp1-test, and then test the update A. Swap the slots 1.Deploy the App to “webapp1-test” which is staging environment and test it there. 2.Once the test is success swap the slots, so the new changes will be available under production.
30
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 congurations: ✑ 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? 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.
D. Create an Azure Storage account. E. Register the Microsoft.Insights resource provider. F. Enable Azure Network Watcher flow logs. When you create or update a virtual network in your subscription, Network Watcher will be enabled automatically in your Virtual Network's region. There is no impact to your resources or associated charge for automatically enabling Network Watcher. https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-nsg-flow-logging-portal Create a VM with a network security group Enable Network Watcher (done by default with the vnet/subnet creation) -- and register the Microsoft.Insights provider ---------todo Enable a traffic flow log for an NSG, using Network Watcher's NSG flow log capability --todo BUT ! NSG flow log data is written to an Azure Storage account. Complete the following steps to create a storage account for the log data. So you need to create a storage account before enable the NSG flow Download logged data View logged data
31
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.
D. Deploy one virtual machine scale set that is set to ScaleSetVM orchestration mode. the main idea is to create 5 VMs asap. To do this you should let Azure do it for you with the least steps. either by using ARM template which is not mentioned here or VM scale set. That leaves us with 2 options C or D. C is like unmanaged Scale set where you add the VMs manually to the scale set as a unmanaged group. while D is managed scale set by Azure where it is based on configuration set during the setup of the VM Scale set ScaleSetVM orchestration mode: Virtual machine instances added to the scale set are based on the scale set configuration model. The virtual machine instance lifecycle - creation, update, deletion - is managed by the scale set. It the current default VMSS behavior. (Scale set VMs are created in a single shot). VM (virtual machines) orchestration mode: Virtual machines created outside of the scale set can be explicitly added to the scale set. The orchestration mode VM will only create an empty VMSS without any instances, and you will have to manually add new VMs into it by specifying the VMSS ID during the creation of the VM. (Separately VMs are created and added to scale set later) Reference: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/orchestration-modes
32
You plan to create the Azure web apps shown in the following table. Name Runtime stack WebApp1 .NET Core 3.1(LTS) WebApp2 ASP.NET V4.8 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
B. 2 .NET Core 3.0: Windows and Linux ASP .NET V4.7: Windows only PHP 7.3: Windows and Linux Ruby 2.6: Linux only Also, you can’t use Windows and Linux Apps in the same App Service Plan, because when you create a new App Service plan you have to choose the OS type. You can't mix Windows and Linux apps in the same App Service plan. So, you need 2 ASPs. Reference: https://docs.microsoft.com/en-us/azure/app-service/overview
33
You have a pay-as-you-go Azure subscription that contains the virtual machines shown in the following table. Name Resource group Daily cost VM1 RG1 20 euros VM2 RG2 30 euros You create the budget shown in the following exhibit. The AG1 action group contains a user named admin@contoso.com only. Dropdowns: When the maximum amount in Budget1 is reached. [answer choice]: - VM1 and VM2 are turned off - VM1 and VM2 continue to run - VM1 is turned off, and VM2 continues to run Based on the current usage costs of the virtual machines, [answer choice]: - no email notifications will be sent each month - one email notification will be sent each month - two email notifications will be sent each month - three email notifications will be sent each month
When the maximum amount in Budget1 is reached. [answer choice]: - VM1 and VM2 continue to run Based on the current usage costs of the virtual machines, [answer choice]: - one email notification will be sent each month The Budget’s scope is RG1, so only VM1 will be handled. When the budget thresholds you've created are exceeded, only notifications are triggered. To stop resources, you need to setup additional things, none of which are mentioned in the question. Budget alerts have scope in Resource Group RG1, which includes VM1, but not VM2. VM1 consumes 20 Euro/day, so 20 euros * 30 days = 600 euros. The 50%, 500 Euro limit, will be reached in 25 days (25*20 = 500), so an email will be sent. The 70% and 100% alert conditions will not be reached within a month, and they don't trigger email actions anyway, because AG1 action group contains a user. Credit alerts: Credit alerts are generated automatically at 90% and at 100% of your Azure credit balance. Whenever an alert is generated, it's reflected in cost alerts and in the email sent to the account owners. 90% and 100% will not be reached though. Reference: https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/cost-mgt-alerts-monitor-usage-spending https://docs.microsoft.com/en-gb/azure/cost-management-billing/costs/tutorial-acm-create-budgets
34
Note: This question is part of a series of questions that present the same scenario. 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
From the RG1 blade, click Deployments. You see a history of deployment for the resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-rst-template?tabs=azure-powershell
35
Note: This question is part of a series of questions that present the same scenario. You have an Azure subscription that contains the resources shown in the following table. Name Туре Region RG1 Resource group West US RG2 Resource group East Asia storage1 Storage account West US storage2 Storage account East Asia VM1 Virtual machine West US VNET1 Virtual network West US VNET2 Virtual network East Asia VM1 connects to VNET1. You need to connect VM1 to VNET2. Solution: You create a new network interface, and then you add the network interface to VM1. Does this meet the goal? A. Yes B. No
B. No Instead, you should delete VM1. Then recreate VM1 and add the network interface for VM1. To migrate a VM from a VNET to another VNET the only option is to delete the VM and redeploy it using a new NIC and NIC connected to VNET2. Note: When you create an Azure Virtual Machine (VM), you must create a Virtual Network (VNet) or use an existing VNet. You can change the subnet a VM is connected to after it's created, but you cannot change the VNet. You can also change the size of a VM. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/network-overview
36
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 congurations: ✑ 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
C. User1 and User2 only Users may join devices to Azure AD - This setting enables you to select the users who can register their devices as Azure AD joined devices. The default is All. Additional local administrators on Azure AD joined devices - You can select the users that are granted local administrator rights on a device. Users added here are added to the Device Administrators role in Azure AD. Global administrators, here User2, in Azure AD and device owners are granted local administrator rights by default. Reference: https://docs.microsoft.com/en-us/azure/active-directory/devices/device-management-azure-portal First the only user who can join Azure AD devices is User 1 . since User1 is admin on machine. So, the machine can be added. Second, the ones that can be local admins on Windows 10 are managed under "Additional local administrators" , since this is not mentioned, so we can assume default. By default, the ones are global administrator and device owners (device administrators). This lead us to User1 and User2 only When you connect a Windows device with Azure AD using an Azure AD join, Azure AD adds the following security principals to the local administrators group on the device: The Azure AD global administrator role The Azure AD joined device local administrator role The user performing the Azure AD join
37
You have Azure subscriptions named Subscription1 and Subscription2. Subscription1 has following resource groups: Name Region Lock type RG1 West Europe None RG2 West Europe Read Only RG1 includes a web app named App1 in the West Europe location. Subscription2 contains the following resource groups: Name Region Lock type RG3 East Europe Delete RG4 Central US none Yes/No: App1 can be moved to RG2 App1 can be moved to RG3 App1 can be moved to RG4
App1 can be moved to RG2 - No RG2 is read only. ReadOnly means authorized users can read a resource, but they cannot delete or update the resource App1 can be moved to RG3 - Yes App1 can be moved to RG4 - Yes A read-only lock on a resource group prevents you from moving existing resources in or out of the resource group. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json#considerations-before-applying-your-locks Note: App Service resources are region-specic and cannot be moved directly across regions. You can move the App Service resource by creating a copy of your existing App Service resource in the target region, then move your content over to the new app. You can then delete the source app and App Service plan. To make copying your app easier, you can clone an individual App Service app into an App Service plan in another region. Reference: https://docs.microsoft.com/en-us/azure/app-service/manage-move-across-regions https://docs.microsoft.com/en-us/azure/azure-resourcemanager/management/move-limitations/app-service-move-limitations
38
You have an Azure subscription named Subscription1 that contains the following resource group: ✑ Name: RG1 ✑ Region: West US ✑ Tag: `tag1`: `value1` You assign an Azure policy named Policy1 to Subscription1 by using the following congurations: ✑ Exclusions: None ✑ Policy denition: Append a tag and its value to resources ✑ Assignment name: Policy1 ✑ Parameters: ✑ Tag name: tag2 Tag value: value2 - After Policy1 is assigned, you create a storage account that has the following conguration: ✑ Name: storage1 ✑ Location: West US ✑ Resource group: RG1 ✑ Tags: `tag3`: `value3` You need to identify which tags are assigned to each resource. What should you identify? Tags assigned to RG1: - "tag1": "value1" only - "tag2": "value2" only - "tag1": "value1" and "tag2": "value2" Tags assigned to storage1: - "tag3": "value3" only - "tag1": "value1" and "tag3": "value3" only - "tag2": "value2" and "tag3": "value3" only - "tag1": "value1", "tag2": "value2", and "tag3": "value3"
Tags assigned to RG1: - "tag1": "value1" only Tags assigned to storage1: - "tag2": "value2" and "tag3": "value3" only RG1 already exists so does not receive tag2. According to the documentation: "Add a tag to resources" Adds the specified tag and value when any resource missing this tag is created or updated. Existing resources can be remediated by triggering a remediation task. If the tag exists with a different value it will not be changed. Does not modify tags on resource groups. Tags applied to the resource group are not inherited by the resources in that resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-using-tags
39
You have an Azure subscription named Subscription1. In Subscription1, you create an alert rule named Alert1. The Alert1 action group is congured as shown in the following exhibit. Enabled: true EmailReceivers: {Action1_ "EmailAction"} SmsReceivers: {Action1_ "SmsAction"} Alert1 alert criteria triggered every minute. Dropdowns: The number of email messages that Alert1 will send in an hour is: The number of SMS messages that Alert2 will send in an hour is: 0, 4, 6, 12, 60
The number of email messages that Alert1 will send in an hour is: 60 One alert per minute will trigger one email per minute. The number of SMS messages that Alert2 will send in an hour is: 12 -If it’s a typo and it means Alert1, then Answer = 12 (60/5 = 12) -If it is actually Alert2 then Answer = 0 No more than 1 SMS every 5 minutes can be send, which equals 12 per hour (60/5 = 12). Note: Rate limiting is a suspension of notifications that occurs when too many are sent to a particular phone number, email address or device. Rate limiting ensures that alerts are manageable and actionable. The rate limit thresholds are: ✑ SMS: No more than 1 SMS every 5 minutes. ✑ Voice: No more than 1 Voice call every 5 minutes. ✑ Email: No more than 100 emails in an hour. ✑ Other actions are not rate limited. Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-rate-limiting
40
You have an Azure subscription named Subscription1 that contains the resources shown in the following table. Name Туре Region Resource group RG1 Resource group West Europe Not applicable RG2 Resource group North Europe Not applicable Vault1 Recovery Services vault West Europe RG1 You create virtual machines in Subscription1 as shown in the following table. Name Resource group Region Operating system VM1 RG1 West Europe Windows Server 2016 VM2 RG1 North Europe Windows Server 2016 VM3 RG2 West Europe Windows Server 2016 VMA RG1 West Europe Ubuntu Server 18.04 VMB RG1 North Europe Ubuntu Server 18.04 VMC RG2 West Europe Ubuntu Server 18.04 You plan to use Vault1 for the backup of as many virtual machines as possible. Which virtual machines can be backed up to Vault1? A. VM1 only B. VM3 and VMC only C. VM1, VM2, VM3, VMA, VMB, and VMC D. VM1, VM3, VMA, and VMC only E. VM1 and VM3 only
D. VM1, VM3, VMA, and VMC only To create a Recovery Services Vault to protect Virtual Machines, the vault must be in the same Region as the Virtual Machines. If you have Virtual Machines in several Regions, create a Recovery Services Vault in each Region. It works with any resource group or any Operating System. Reference: https://docs.microsoft.com/bs-cyrl-ba/azure/backup/backup-create-rs-vault https://docs.microsoft.com/en-us/azure/backup/backup-azure-arm-vms-prepare
41
You have an Azure Kubernetes Service (AKS) cluster named AKS1. You need to congure cluster autoscaler for AKS1. Which two tools should you use? A. the kubectl command B. the az aks command C. the Set-AzVm cmdlet D. the Azure portal E. the Set-AzAks cmdlet
B. the az aks command D. the Azure portal We need to configure autoscaler for the AKS cluster. We do not want to scale Kubernetes pods, so kubectl command is not needed. A: kubectl command is used for configuring Kubernetes and not AKS cluster. B: The az aks command is used for the AKS cluster configuration. C: Set-AzVm cmdlet is used for VMs. D: Azure portal, under node pools, press scale, then choose auto scale. E: Set-AzAks, creates or updates an AKS cluster, the correct cmdlet is Set-AzAksCluster. AKS clusters can scale in one of two ways: - The cluster autoscaler watches for pods that can't be scheduled on nodes because of resource constraints. The cluster then automatically increases the number of nodes. - The horizontal pod autoscaler uses the Metrics Server in a Kubernetes cluster to monitor the resource demand of pods. If an application needs more resources, the number of pods is automatically increased to meet the demand. Reference: https://docs.microsoft.com/en-us/azure/aks/cluster-autoscaler
42
(AKS is no longer in the AZ-104 study guide) 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. Run the docker push command. or ???? C. Run the az acr build command.
43
You have an Azure subscription that contains the resources shown in the following table. Name Туре Resource group Location RG1 Resource group Not applicable Central US RG2 Resource group Not applicable West US VMSS1 Virtual machine scale set RG2 West US Proximity1 Proximity placement group RG1 Central US Proximity2 Proximity placement group RG2 West US Proximity3 Proximity placement group RG1 Central US You need to configure a proximity placement group for VMSS1. Which proximity placement groups should you use? A. Proximity2 only B. Proximity1, Proximity2, and Proximity3 C. Proximity1 only D. Proximity1 and Proximity3 only
A. Proximity2 only Placement Groups is a capability to achieve co-location of your Azure Infrastructure as a Service (IaaS) resources and low network latency among them, for improved application performance. Azure proximity placement groups represent a new logical grouping capability for your Azure Virtual Machines, which in turn is used as a deployment constraint when selecting where to place your virtual machines. In fact, when you assign your virtual machines to a proximity placement group, the virtual machines are placed in the same data center, resulting in lower and deterministic latency for your applications. The VMSS should share the same region, even it should be the same zone as proximity groups are located in the same data center. Accordingly, it should be proximity 2 only. Reference: https://azure.microsoft.com/en-us/blog/introducing-proximity-placement-groups
44
Note: This question is part of a series of questions that present the same scenario. 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
B - No From the RG1 blade, click Deployments. You see a history of deployment for the resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-first-template?tabs=azure-powershell
45
Note: This question is part of a series of questions that present the same scenario. 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
B. No From the RG1 blade, click Deployments. You see a history of deployment for the resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-rst-template?tabs=azure-powershell
46
Note: This question is part of a series of questions that present the same scenario. 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. Yes From the RG1 blade, click Deployments. You see a history of deployment for the resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-rst-template?tabs=azure-powershell
47
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
B. Linux Diagnostic Extension (LAD) 3.0 The Linux diagnostic extension helps a user monitor the health of a Linux VM running on Microsoft Azure. It has the following collection and capabilities: - Metrics - Syslog - Files A: Azure HDInsight is a managed, full-spectrum, open-source analytics service in the cloud for enterprises. You can use open-source frameworks such as Hadoop, Apache Spark, Apache Hive, LLAP, Apache Kafka, Apache Storm, R, and more. C: Azure Performance Diagnostics VM Extension is used for Windows VM only. D: Azure Analysis Services is a fully managed platform as a service (PaaS) that provides enterprise-grade data models in the cloud.
48
You have an Azure subscription named Subscription1. Subscription1 contains a virtual machine named VM1. You install and congure a web server and a DNS server on VM1. VM1 has the effective network security rules shown in the following exhibit: Dropdowns: Internet users [answer choice]: If you delete Rule2, Internet users [answer choice]: - can connect to only the DNS server on VM1 - can connect to only the web server on VM1 - can connect to the web server and the DNS server on VM1 - cannot connect to the web server and the DNS server on VM1
Internet users [answer choice]: - can connect to only the web server on VM1 Rule2 blocks ports 50-60, which includes port 53, the DNS port. Internet users can reach to the Web server, since it uses port 80. If you delete Rule2, Internet users [answer choice]: - can connect to the web server and the DNS server on VM1. If Rule2 is removed internet users can reach the DNS server as well. Note: Rules are processed in priority order, with lower numbers processed before higher numbers, because lower numbers have higher priority. Once traffic matches a rule, processing stops. As a result, any rules that exist with lower priorities (higher numbers) that have the same attributes as rules with higher priorities are not processed. Reference: https://docs.microsoft.com/en-us/azure/virtual-network/security-overview
49
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
C. each virtual machine in a separate Availability Zone if you want Datacenter level high availability - vms should be deployed in different zones. Simply adding that an availability zone can have only one datacenter. Availability set - Within data centre - configure update domains and fault domains Availability zone - Within region (usually three data centres per region) Use availability zones to protect from datacenter level failures. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/manage-availability https://docs.microsoft.com/en-us/azure/virtualmachines/windows/tutorial-availability-sets
50
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
D. resource group I tried the only ones that need to be updated manually are resource group and password. Manual steps: log in, deploy VM1. Accept all defaults. Go to resource > template > save to library. View library > deploy template, It pre-populates the subscription but you have to set an RG. VM Name can be customized, admin user/pass are pulled from template. Administrator username: You can specify a new administrator username during deployment. Virtual machine size: You can select the VM size (e.g., Standard_D2s_v3) during deployment. Resource group: You can choose the resource group where the new VM will be deployed. Azure resource manager library is no longer available, It will be deprecated in March 2025 Instead we can use TemplateSpecs to store the template Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template
51
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 Conguration (DSC) extension to VM1.
B. Modify the VM size property of VM1. Here we need to modify the size of the VM to increase the number of vCPU's assigned to the VM. This can be included as a task in the runbook. The VM size property can be modified by a runbook that is triggered by metrics, but you can schedule it monthly. C: Scheduled vertical scaling could be a solution, but then you don't need a scheduled runbook and it states that it does not support multiple active instances. Scale Set is not a n option. E: DSC is only useful to keep the resources on a VM (OS, File shares, etc.) in a consistent state, not to change VM properties. Reference: https://www.apress.com/us/blog/all-blog-posts/scale-up-azure-vms/15823864#:~:text=If%20you%20select%20the%20option,to%20the%20next%20larger%20size
52
You deploy an Azure Kubernetes Service (AKS) cluster that has the network prole shown in the following exhibit. Pod CIDR 10.244.0.0/16 Service CIDR 10.0.0.0/16 DNS service CIDR 10.0.0.10 Docker bridge CIDR 172.17.0.1/16 Dropdowns: Containers will be assigned an IP address in the [answer choice] subnet: Services in the AKS cluster will be assigned an IP address in the [answer choice] subnet: - 10.244.0.0/16 - 10.0.0.0/16 - 172.17.0.1/16
Containers will be assigned an IP address in the [answer choice] subnet: 10.244.0.0/16 Services in the AKS cluster will be assigned an IP address in the [answer choice] subnet: 10.0.0.0/16 Box 1: 10.244.0.0/16 - The Pod CIDR. Note: The --pod-cidr should be a large address space that isn't in use elsewhere in your network environment. This range includes any onpremises network ranges if you connect, or plan to connect, your Azure virtual networks using Express Route or a Site-to-Site VPN connection. This address range must be large enough to accommodate the number of nodes that you expect to scale up to. You can't change this address range once the cluster is deployed if you need more addresses for additional nodes. Box 2: 10.0.0.0/16 - The --service-cidr is used to assign internal services in the AKS cluster an IP address. Reference: https://docs.microsoft.com/en-us/azure/aks/congure-kubenet
53
You have the App Service plan shown in the following exhibit. scale based on metric scale out when homepage (max) CPUperc > 85 increase count by 1 scale in when homepage (aver) CPUperc < 30 decrease count by 1 instance limits: min 1 max 5 def 1 this scale condition is executed when none of the other scale conditions match The scale-in settings for the App Service plan are congured as shown in the following exhibit. operator: less than metric to trigger scale action: 30 duration in min: 5 time grain statistics: average operation decrease count by: instance count: 1, cool down: 5 The scale out rule is congured with the same duration and cool down tile as the scale in rule. Dropdowns: If after deployment CPU usage is 70 percent for one hour and then reaches 90 percent for five minutes, at that time the total number of instances will be [answer choice]: 1, 2, 3, 4, 5 If after deployment the CPU maintains constant usage of 90 percent for one hour, and then the average CPU usage is below 25 percent for nine minutes, at that point the number of instances will be [answer choice]: 1, 2, 3, 4, 5
If after deployment CPU usage is 70 percent for one hour and then reaches 90 percent for five minutes, at that time the total number of instances will be [answer choice]: 5 The maximum 5 will kept as the CPU Usage >= 30. If after deployment the CPU maintains constant usage of 90 percent for one hour, and then the average CPU usage is below 25 percent for nine minutes, at that point the number of instances will be [answer choice]: 3 As soon as the average CPU usage drops below 30%, the count will decrease by 1. After the 5 minute cool-down it will decrease by another 1, reaching 3. Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-autoscale-performance-schedule
54
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 modied screen saver timeout B. the new desktop background C. the new files on drive D D. the new files on drive C
C. the new files on drive D For Windows Server, the temporary disk is mounted as “D:\”. For Linux based VM’s the temporary disk is mounted as “/dev/sdb1”. Reference: https://www.cloudelicious.net/azure-vms-and-their-temporary-storage
55
You have an Azure subscription. You have an on-premises virtual machine named VM1. The settings for VM1 are shown in the exhibit. (Click the Exhibit tab.) (Question #56 Topic 4) You need to ensure that you can use the disks attached to VM1 as a template for Azure virtual machines. What should you modify on VM1? A. the memory B. the network adapters C. the hard drive D. the processor E. Integration Services
C. the hard drive The Virtual hard disk is VHDx, it should be formated to VHD before migration from on-premises to Azure. Azure supports only generation 1 VMs that are in the VHD file format and have a fixed sized disk. The maximum size allowed for the VHD is 1,023 GB. You can convert a generation 1 VM from the VHDX file system to VHD and from a dynamically expanding disk to fixed-sized. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/prepare-for-upload-vhd-image
56
You have an Azure subscription that contains a virtual machine scale set. The scale set contains four instances that have the following congurations: ✑ Operating system: Windows Server 2016 ✑ Size: Standard_D1_v2 You run the get-azvmss cmdlet as shown in the following exhibit: enableAutomaticUpdates: false Dropdowns: When an administrator changes the virtual machine size, the size will be changed on up to [answer choice] virtual machines simultaneously: 0, 1, 2, 4 When a new build of the Windows Server 2016 image is released, the new build will be deployed to up to [answer choice] virtual machines simultaneously: 0, 1, 2, 4
When an administrator changes the virtual machine size, the size will be changed on up to [answer choice] virtual machines simultaneously: 4 If you resize the Scale Set all the VMs get resized at once, thus 4 is the correct answer. When a new build of the Windows Server 2016 image is released, the new build will be deployed to up to [answer choice] virtual machines simultaneously: 1 Automatic OS updates update 20% of the VMs at once, with a minimum of 1 VM instance at a time. Also 20% of 4 = 0.8. Reference: https://docs.microsoft.com/en-us/learn/modules/build-app-with-scale-sets/2-features-benefits-virtual-machine-scale-sets https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set The Get-AzVmssVM cmdlet gets the model view and instance view of a Virtual Machine Scale Set (VMSS) virtual machine. Box 1: 0 - The enableAutomaticUpdates parameter is set to false. To update existing VMs, you must do a manual upgrade of each existing VM. Box 2: 4 - Enabling automatic OS image upgrades on your scale set helps ease update management by safely and automatically upgrading the OS disk for all instances in the scale set. Reference: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade
57
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 Туре 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
B RG1. the only way to see both together storage and VM Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-export-template
58
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
B. Swap the slots When you swap deployment slots, Azure swaps the Virtual IP addresses of the source and destination slots, thereby swapping the URLs of the slots. We can easily revert the deployment by swapping back. Reference: https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots
59
You have an Azure subscription named Subscription1. Subscription1 contains two Azure virtual machines VM1 and VM2. VM1 and VM2 run Windows Server 2016. VM1 is backed up daily by Azure Backup without using the Azure Backup agent. VM1 is affected by ransomware that encrypts data. You need to restore the latest backup of VM1. To which location can you restore the backup? You can perform a file recovery of VM1 to: - VM1 only - VM1 or a new Azure virtual machine only - VM1 and VM2 only - A new Azure virtual machine only - Any Windows computer that has Internet connectivity You can restore VM1 to: - VM1 only - VM1 or a new Azure virtual machine only - VM1 and VM2 only - Any Windows computer that has Internet connectivity
You can perform a file recovery of VM1 to: - VM1 or a new Azure virtual machine only (mlantonis says different but I dont care) You can restore VM1 to: - VM1 or a new Azure virtual machine only For restoring a VM, you can choose 'Create new' or 'Replace existing'. Reference: https://docs.microsoft.com/en-us/azure/backup/backup-azure-restore-files-from-vm https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/backup/backup-azure-restore-files-from-vm.md#for-windows-os
60
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.
B. VM1 does not have the latest version of the Azure VM Agent (WaAppAgent.exe) installed The Warning state indicates one or more issues in VM's conguration that might lead to backup failures and provides recommended steps to ensure successful backups. Not having the latest VM Agent installed, for example, can cause backups to fail intermittently and falls in this class of issues. Reference: https://azure.microsoft.com/en-us/blog/azure-vm-backup-pre-checks/
61
Note: This question is part of a series of questions that present the same scenario. 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 notication 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
B. No You would need to redeploy the VM. Changing Subscription won't affect the downtime, it will just you change the billing. You would need to redeploy the VM. After you redeploy a VM, the temporary disk is lost, and dynamic IP addresses associated with virtual network interface are updated. From Overview there is no option to move the VM to another hardware to skip the maintenance. Ideally you need an Availability Set and defining the Update Domains. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/redeploy-to-new-node
62
You have an Azure subscription. You plan to use Azure Resource Manager templates to deploy 50 Azure virtual machines that will be part of the same availability set. You need to ensure that as many virtual machines as possible are available if the fabric fails or during servicing. How should you congure the template? location: eastus, properties: { platformFaultDomainCount: 0, 1, 2, 3, 4 platformUpdateDomainCount: 10, 20, 25, 30, 40, 50 }
platformFaultDomainCount: 2 or 3, depending on which region you are in. 3 (since its in East US) platformUpdateDomainCount: 20 Use 20 for platformUpdateDomainCount Increasing the update domain (platformUpdateDomainCount) helps with capacity and availability planning when the platform reboots nodes. A higher number for the pool (20 is max) means that fewer of their nodes in any given availability set would be rebooted at once. Reference: https://www.itprotoday.com/microsoft-azure/check-if-azure-region-supports-2-or-3-fault-domains-managed-disks https://github.com/Azure/acs-engine/issues/1030
63
Note: This question is part of a series of questions that present the same scenario. 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 Agent conguration 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 References: https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response https://docs.microsoft.com/en-us/azure/azuremonitor/platform/agents-overview
64
You have an Azure subscription. You deploy a virtual machine scale set that is congured as shown in the following exhibit. Initial instance count: 2 Minimum number of VMs: 1 max num of vms: 10 Scale out CPU threshold: 75 Duration in minutes: 10 Number of VMs to increase by: 1 Scale in CPU threshold: 25 Number of VMs to decrease by: 1 Dropdowns: At 9:00 AM, the scale set starts and CPU utilization is 90 percent for 15 minutes. How many virtual machine instances will be running at 9:15 AM? : 2, 3, 4, 5 At 10:00 AM, the scale set has five virtual machine instances running and CPU utilization falls to less than 15 percent for 60 minutes. How many virtual machine instances will be running at 11:00 AM? : 1, 2, 3, 4
At 9:00 AM, the scale set starts and CPU utilization is 90 percent for 15 minutes. How many virtual machine instances will be running at 9:15 AM? : 3 At 10:00 AM, the scale set has five virtual machine instances running and CPU utilization falls to less than 15 percent for 60 minutes. How many virtual machine instances will be running at 11:00 AM? : 1 Reference: https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-autoscale-portal
65
You have web apps in the West US, Central US and East US Azure regions. You have the App Service plans shown in the following table. Name Operating system Location SKU and size ASP1 Windows West US Standard S1 ASP2 Linux Central US Premium V2 P1v2 ASP3 Linux East US Premium V2 P1v2 ASP4 Linux East US Premium V2 P1v2 You plan to create an additional App Service plan named ASP5 that will use the Linux operating system. You need to identify in which of the currently used locations you can deploy ASP5. What should you recommend? A. West US, Central US, or East US B. Central US only C. East US only D. West US only
A. West US, Central US, or East US Reference: https://docs.microsoft.com/en-us/azure/app-service/app-service-plan-manage
66
You have an Azure subscription that contains the resources shown in the following table. Name Туре ManagementGroup1 Management group RG1 Resource group 9c8bc1cd-7655-4c66-b3ea-a8ee101d8f75 Subscription ID Tag1 Tag In Azure Cloud Shell, you need to create a virtual machine by using an Azure Resource Manager (ARM) template. How should you complete the command? Hot Area: $adminPassword = Read-Host -Prompt "Enter the administrator password" -AsSecureString [1...] [2...] TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/101-vm-simple-windows/azuredeploy.json" adminUsername LocalAdministrator -adminPassword $adminPassword -dnsLabel Prefix ContosoVM1 1. New-AzVm New-AzResource New-AzTemplateSpec New-AzResourceGroupDeployment 2. -Tag Tag1' -ResourceGroupName RG1' -GroupName ManagementGroup1' -Subscription 9c8bc1cd-7655-4c66-b3ea-a8ee101d8f75
1. New-AzResourceGroupDeployment 2. -ResourceGroupName RG1' 1. This cmdlet allows you to use a custom ARM template file to deploy resources to a resource group. For example: New-AzResourceGroup -Name $resourceGroupName -Location "$location" New-AzResourceGroupDeployment ` -ResourceGroupName $resourceGroupName ` -TemplateUri "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/quickstarts/microsoft.compute/vm-simple-windows/azuredeploy.json" ` -adminUsername $adminUsername ` -adminPassword $adminPassword ` -dnsLabelPrefix $dnsLabelPrefix 2: It’s one of parameters of New-AzResourceGroupDeployment to specify to which resource group you want to deploy resources. You could use New-AzVm to create a VM, but it doesn’t use a template. You would need to provide all parameters in the command line. Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/windows/ps-template https://docs.microsoft.com/en-us/powershell/module/az.compute/new-azvm?view=azps-7.0.0
67
Note: This question is part of a series of questions that present the same scenario. You deploy an Azure Kubernetes Service (AKS) cluster named AKS1. You need to deploy a YAML le to AKS1. Solution: From Azure Cloud Shell, you run az aks. Does this meet the goal? A. Yes B. No
B. No To deploy a YAML file, the command is: To manage a Kubernetes cluster, use the Kubernetes command-line client, kubectl, then run "kubectl apply -f azure-vote.yaml" Reference: https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough
68
Note: This question is part of a series of questions that present the same scenario. 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 congure 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 must install the Microsoft Monitoring Agent on VM1, and not the Microsoft Monitoring Agent VM extension. Instead: 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. Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agents-overview
69
Note: This question is part of a series of questions that present the same scenario. 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 congure 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 Alerts in Azure Monitor can identify important information in your Log Analytics repository. They are created by alert rules that automatically run log searches at regular intervals, and if results of the log search match particular criteria, then an alert record is created and it can be congured to perform an automated response. The Log Analytics agent collects monitoring data from the guest operating system and workloads of virtual machines in Azure, other cloud providers, and on- premises. It collects data into a Log Analytics workspace. Reference: https://docs.microsoft.com/en-us/azure/azure-monitor/learn/tutorial-response https://docs.microsoft.com/en-us/azure/azuremonitor/platform/agents-overview
70
You have an Azure subscription that contains the resources shown in the following table. Name Type Resource group Location Vault1 Recovery services vault RG1 East US VM1 Virtual machine RG1 East US VM2 Virtual machine RG1 West US All virtual machines run Windows Server 2016. On VM1, you back up a folder named Folder1 as shown in the following exhibit. Schedule Backup Wizard Specify Backup Schedule (Files and Folders) Select Items to Backup Specify Backup Schedu... Define a schedule when you want to create a backup copy for selected files and folders Schedule a backup every * Day O Week At following times (Maximum allowed is three times a day) 6:00 AM 10:00 PM None You plan to restore the backup to a different virtual machine. You need to restore the backup to VM2. What should you do first? A. From VM1, install the Windows Server Backup feature. B. From VM2, install the Microsoft Azure Recovery Services Agent. C. From VM1, install the Microsoft Azure Recovery Services Agent. D. From VM2, install the Windows Server Backup feature
B. From VM2, install the Microsoft Azure Recovery Services Agent. Microsoft Azure Recovery Services Agent also known as MARS or Azure Backup Agent can be used to restore data for entire volume or just individual folders and files. reference: https://learn.microsoft.com/en-us/azure/backup/restore-all-files-volume-mars
71
You have an Azure subscription. You need to use an Azure Resource Manager (ARM) template to create a virtual machine that will have multiple data disks. How should you complete the template? storageProfile: { ... - "copy" : [ - "copyIndex" : [ - "dependsOn" : [ { name: dataDisks, input: { lun: ... ('dataDisks') - "[copy - "[copyIndex - "[dependsOn
- "copy" : [ - "[copyIndex https://docs.microsoft.com/nl-nl/azure/azure-resource-manager/templates/copy-properties
72
Note: This question is part of a series of questions that present the same scenario. 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 Subscription1 also includes a virtual network named VNET2. 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 Multiple NICs allow a VM to connect to different subnets. VM must have at least one NIC. A virtual machine can have more than one NIC, depending on the size of the VM you create. Each NIC attached to a VM must exist in the same location and subscription as the VM. Each NIC must be connected to a VNet that exists in the same Azure location and subscription as the NIC. Reference: https://learn.microsoft.com/en-us/azure/virtual-network/network-overview
73
Note: This question is part of a series of questions that present the same scenario. 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 Subscription1 also includes a virtual network named VNET2. 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 The virtual machine you attach a network interface to and the virtual network you connect it to must exist in the same location, here West US, also referred to as a region. Multiple NICs allow a VM to connect to different subnets. VM must have at least one NIC. A virtual machine can have more than one NIC, depending on the size of the VM you create. Each NIC attached to a VM must exist in the same location and subscription as the VM. Each NIC must be connected to a VNet that exists in the same Azure location and subscription as the NIC. Reference: https://learn.microsoft.com/en-us/azure/virtual-network/network-overview https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
74
Note: This question is part of a series of questions that present the same scenario. 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 Subscription1 also includes a virtual network named VNET2. 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 The virtual machine you attach a network interface to and the virtual network you connect it to must exist in the same location, here West US, also referred to as a region. Reference: https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface
75
You develop the following Azure Resource Manager (ARM) template to create a resource group and deploy an Azure Storage account to the resource group. Which cmdlet should you run to deploy the template? A. New-AzResource B. New-AzResourceGroupDeployment C. New-AzTenantDeployment D. New-AzDeployment
D. New-AzDeployment The New-AzDeployment cmdlet adds a deployment at the current subscription scope. This includes the resources that the deployment requires. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-powershell https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azdeployment?view=azps-8.3.0
76
You have an Azure App Service app named WebApp1 that contains two folders named Folder1 and Folder2. You need to configure a daily backup of WebApp1. The solution must ensure that Folder2 is excluded from the backup. What should you create first, and what should you use to exclude Folder2? First create: - An Azure Storage account - A Backup vault - A Recovery Services vault - A resource group To exclude Folder2, use: - A _backup.filter file - A backup policy - A lock - A WebJob
First create: - An Azure Storage account App Service can back up the following information to an Azure storage account and container that you have configured your app to use: App configuration, File content, Database connected to your app. To exclude Folder2, use: - A _backup.filter file Exclude files from your backup. Note: Choose your backup destination by selecting a Storage Account and Container. The storage account must belong to the same subscription as the app you want to back up. If you wish, you can create a new storage account or a new container in the respective pages. You need a Recovery service vault if you want to backup VMs, File Shares, SAP HANA in a VM or SQL Server in a VM. You need a Backup vault if you want to backup Azure Disks, Azure Blobs or Azure Database for PostgreSQL Server. The question asks about an App Service, this one backs up to a storage account. Suppose you have an app that contains log files and static images that have been backup once and are not going to change. In such cases, you can exclude those folders and files from being stored in your future backups. To exclude files and folders from your backups, create a _backup.filter file in the D:\home\site \wwwroot folder of your app. Specify the list of files and folders you want to exclude in this file. Reference: https://docs.microsoft.com/en-us/azure/app-service/manage-backup
77
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. the Publish-AzVMDscConguration cmdlet B. Azure Application Insights C. Azure Custom Script Extension D. a Microsoft Endpoint Manager device conguration profile E. the New-AzConfigurationAssignement cmdlet F. Deployment Center in Azure App Service G. a Microsoft Intune device configuration profile
C. Azure Custom Script Extension Note: There are several versions of this question in the exam. The question has two correct answers: 1. a Desired State Configuration (DSC) extension 2. Azure Custom Script Extension The question can have other incorrect answer options, including the following: ✑ the Publish-AzVMDscConfiguration cmdlet ✑ Azure Application Insights Reference: https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/dsc-overview https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-template https://docs.microsoft.com/en-us/samples/mspnp/samples/azure-well-architected-framework-sample-state-configuration https://docs.microsoft.com/en-us/azure/architecture/framework/devops/automation-configuration
78
You have an Azure subscription. The subscription contains a virtual machine that runs Windows 10. You need to join the virtual machine to an Active Directory domain. How should you complete the Azure Resource Manager (ARM) template? type: ... - extensions - microsoft.compute/virtualmachines - microsoft.compute/virtualmachines/extensions ... : - "ProtectedSettings" : { - "Settings" : { - "Statuses" : { password: [parameters('domainPassword')]
type: - microsoft.compute/virtualmachines/extensions The following JSON example uses the Microsoft.Compute/virtualMachines/extensions resource type to install the Active Directory domain join extension. Parameters are used that you specify at deployment time. When the extension is deployed, the VM is joined to the specified managed domain. ... : - "ProtectedSettings" : { https://docs.microsoft.com/en-us/azure/active-directory-domain-services/join-windows-vm-template#azure-resource-manager-template-overview https://docs.microsoft.com/en-us/azure/active-directory-domain-services/join-windows-vm-template
79
You have an Azure subscription that contains three virtual machines named VM1, VM2, and VM3. All the virtual machines are in an availability set named AVSet1. You need to scale up VM1 to a new virtual machine size, but the intended size is unavailable. What should you do first? A. Create a proximity placement group. B. Deallocate VM1. C. Convert AvSet1 into a managed availability set. D. Shut down VM3 and VM3.
B. Deallocate VM1. When you need to scale up a virtual machine (VM1) to a new size, and the intended size is unavailable, the most likely reason is that the size is not available on the current hardware cluster where the VM is hosted. To make the new size available, you must move the VM to a different cluster, which requires deallocating the VM.
80
You are creating an Azure Kubernetes Services (AKS) cluster as shown in the following exhibit. To ensure that you can create Windows containers in AKS1, you must [answer choice]: enable virtual nodes increase the number of node pools modify the Kubernetes version setting modify the Network configuration setting To ensure that you can integrate AKS1 with an Azure container registry, you must modify the [answer choice] setting: AKS-managed Azure Active Directory Authentication method Authorized IP ranges Kubernetes version Network configuration
To ensure that you can create Windows containers in AKS1, you must [answer choice]: modify the Network configuration setting To ensure that you can integrate AKS1 with an Azure container registry, you must modify the [answer choice] setting: AKS-managed Azure Active Directory
81
You have an Azure subscription that contains an Azure Kubernetes Service (AKS) cluster named Cluster1. Cluster1 hosts a node pool named Pool1 that has four nodes. You need to perform a coordinated upgrade of Cluster1. The solution must meet the following requirements: * Deploy two new nodes to perform the upgrade. * Minimize costs. How should you complete the command? az aks nodepool [1...] -n pool1 -g RG1 --cluster-name cluster1 [2...] 1. add get-updates scale updates 2. --max-count 2 --max-pods 2 --max-surge 2 --node-count 2
az aks nodepool [1 add] -n pool1 -g RG1 --cluster-name cluster1 [2 --max-surge 2]
82
You have an Azure subscription. You create the following file named Deploy.json. location: { defaultValue: westus } resources: [ { type: storage location: [resourceGroup().location] copy: { name: storagecopy, count: 3 } You connect to the subscription and run the following commands. New-AzResourceGroup -Name RG1 -Location "centralus" New-AzResourceGroupDeployment - ResourceGroupName RG1 -TemplateFile "deploy.json" Yes/No Statements: The commands will create four new resources. The commands will create storage accounts in the West US Azure region. The first storage account that is created will have a prefix of 0.
The commands will create four new resources. - Yes Y: The 4 resources created are the RG1 resource group + the 3 storage accounts The commands will create storage accounts in the West US Azure region. - No The first storage account that is created will have a prefix of 0. - Yes
83
You have an Azure subscription that contains a resource group named RG1. You plan to use an Azure Resource Manager (ARM) template named template1 to deploy resources. The solution must meet the following requirements: * Deploy new resources to RG1. * Remove all the existing resources from RG1 before deploying the new resources. How should you complete the command? New-AzResourceGroupDeployment -TemplateUri "https://contoso.com/template1" -TemplateParameterfile params.json [1...] RG1 -Mode [2...] 1.-Name -QueryString -ResourceGroupName -Tag 2. All Complete Incremental
params.json [1...] RG1 -Mode [2...] 1. -ResourceGroupName 2. Complete -Mode Specifies the deployment mode. The acceptable values for this parameter are: Complete: In complete mode, Resource Manager deletes resources that exist in the resource group but are not specified in the template. Incremental: In incremental mode, Resource Manager leaves unchanged resources that exist in the resource group but are not specified in the template. https://learn.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroupdeployment?view=azps-9.2.0 There is no such mode called "All"
84
You have an Azure App Service web app named app1. You configure autoscaling as shown in following exhibit. scale based on metric scale out when (aver) CPUperc > 70 increase count by 1 instance limits: min 1 max 5 def 1 this scale condition is executed when none of the other scale conditions match You configure the autoscale rule criteria as shown in the following exhibit. operator: greater than metric to trigger scale action: 70 duration in min: 10 time grain statistics: average operation increase count by: instance count: 1, cool down: 5 Dropdowns: After CPU usage has reached 80 percent for 15 minutes, [answer choice] will be running: 1 instance 2 instances 3 instances 4 instances 5 instances Once the first scale-out instance is created, the minimum time before an additional instance is created will be [answer choice]: 1 minute 5 minutes 10 minutes 15 minutes
After CPU usage has reached 80 percent for 15 minutes, [answer choice] will be running: 2 instances Once the first scale-out instance is created, the minimum time before an additional instance is created will be [answer choice]: 15 minutes Initial instance is 1 as specified in first figure. 80% for 15 minutes reaches 10 minutes duration, but haven't reached second turn of scale out, so only one new instance is created. Since cool down time is 5 minutes, which means after one scale happens, it will count 5 minutes before counting a new 10 minutes, so 15 minutes total.
85
You have an Azure subscription. You plan to deploy the Azure container instances shown in the following table. Name Operating system Instance1 Nano Server installation of Windows Server 2019 Instance2 Server Core installation of Windows Server 2019 Instance3 Linux Instance4 Linux Which instances can you deploy to a container group? A. Instance1 only B. Instance2 only C. Instance1 and Instance2 only D. Instance3 and Instance4 only
D. Instance3 and Instance4 only Read the question carefully. The instances you are about to deploy will be deployed "in a Container Group", making it a multi-instance container group. As per the article referred below, its only available for Linux Containers for now: https://learn.microsoft.com/en-us/azure/container-instances/container-instances-container-groups Multi-container groups currently support only Linux containers. For Windows containers, Azure Container Instances only supports deployment of a single container instance.
86
You have an Azure subscription that has the public IP addresses shown in the following table. Name IP version SKU Tier IP address assignment IP1 IPv4 Standard Regional Static IP2 IPv4 Standard Global Static IP3 IPv4 Basic Regional Dynamic IP4 IPv4 Basic Regional Static IP5 IPv6 Standard Regional Static You plan to deploy an Instance of Azure Firewall Premium named FW1. Which IP addresses can you use? A. IP2 only B. IP1 and IP2 only C. IP1, IP2, and IP5 only D. IP1, IP2, IP4, and IP5 only
B. IP1 and IP2 only IPv4 + standard + static https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses#at-a-glance Azure Firewall - Dynamic IPv4: No - Static IPv4: Yes - Dynamic IPv6: No - Static IPv6: No https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/configure-public-ip-firewall Azure Firewall is a cloud-based network security service that protects your Azure Virtual Network resources. Azure Firewall requires at least one public static IP address to be configured. This IP or set of IPs are used as the external connection point to the firewall. Azure Firewall supports standard SKU public IP addresses. Basic SKU public IP address and public IP prefixes aren't supported.
87
You have an Azure subscription. You need to deploy a virtual machine by using an Azure Resource Manager (ARM) template. How should you complete the template? "dependsOn": [ [ ... ('networdInterfaces', 'vm1') - reference - resourceId - Union "storageProfile" : { - Array - Image - ImageReference - vhd
"dependsOn": [ [ ... ('networdInterfaces', 'vm1') - resourceId "storageProfile" : { - ImageReference
88
You need to configure a new Azure App Service app named WebApp1. The solution must meet the following requirements: * WebApp1 must be able to verify a custom domain name of app.contoso.com. * WebApp1 must be able to automatically scale up to eight instances. * Costs and administrative effort must be minimized. Which pricing plan should you choose, and which type of record should you use to verify the domain? Pricing plan: Basic Free Shared Standard Record type: A AAAA PTR TXT
Pricing plan: Standard Record type: TXT
89
You have an Azure subscription that contains the virtual machines shown in the following table. Name Location VCPUs Generation VM1 West Europe 8 2 VM2 East US 2 1 VM3 West US 12 1 You create an Azure Compute Gallery named ComputeGallery1 as shown in the Azure Compute Gallery exhibit. (Click the Azure Compute Gallery tab.) Subscription: Azure Pass + Sponsorship Region: West Europe In ComputeGallery1, you create a virtual machine image denition named Image1 as shown in the image denition exhibit. (Click the Image Definition tab.) Region: East US OS type: Windows Security type: Standard VM gen: V1 Recommended VM vCPUs: 4-16 Recommended VM memory: 1-32 gb Statements Yes/No The operating system disk of VM1 can be used as a source for a version of Image1. The operating system disk of VM2 can be used as a source for a version of Image1. The operating system disk of VM3 can be used as a source for a version of Image1.
The operating system disk of VM1 can be used as a source for a version of Image1. - No The operating system disk of VM2 can be used as a source for a version of Image1. - Yes The operating system disk of VM3 can be used as a source for a version of Image1. - Yes image definition needs V1 generation, but vCPU and memory are only recommendations. Text from Azure Portal while creating image definition: "These recommendations are informational only, and do not constrain VM specification"
90
You plan to create the Azure web apps shown in the following table. Name Runtime stack WebApp1 .NET 6 (LTS) WebApp2 ASP.NET V4.8 WebApp3 PHP 8.1 WebApp4 Python 3.11 What is the minimum number of App Service plans you should create for the web apps? A. 1 B. 2 C. 3 D. 4
B. 2 https://learn.microsoft.com/en-us/azure/app-service/overview Can run only on Windows: .NET, ASP.NET Can run only on Linux: Python Can run on either Windows/Linux: PHP From Azure documentation: ASP.NET Core (on Windows or Linux) ASP.NET (on Windows) PHP (on Windows or Linux) Ruby (on Linux) Node.js (on Windows or Linux) Java (on Windows or Linux) Python (on Linux) HTML Custom container (Windows or Linux)
91
You have an Azure subscription that contains the resource groups shown in the following table. Name Location RG1 East US RG2 West US You create the following Azure Resource Manager (ARM) template named deploy.json. "parameters": {} } "variables": {}, "resources": [ { "type": "Microsoft.Resources/resourceGroups", "location": "eastus", "name": "[concat ('RG', copyIndex())]", "copy": { "name": "copy", "count": 4 } You deploy the template by running the following cmdlet. New-AzSubscription Deployment -Location westus -TemplateFile deploy.json Statements Yes/No The template creates a resource group named RGO in the East US Azure region. The template creates four new resource groups. The template creates a resource group named RG3 in the West US Azure region.
The template creates a resource group named RGO in the East US Azure region. - Yes. RG0 will be created with location from template file. For subscription level deployments, you must provide a location for the deployment. The location of the deployment is separate from the location of the resources you deploy. The deployment location specifies where to store deployment data. The template creates four new resource groups. - No. Only RG0 and RG3 will be created, RG1 and RG2 already exist and can't be created. The template creates a resource group named RG3 in the West US Azure region. - No. RG3 will be created in east region.
92
You have an Azure App Service app named App1 that contains two running instances. You have an autoscale rule configured as shown in the following exhibit. Operator; greater than Metric: 70% Duration: 15 minutes Cooldown: 5 minutes Operation: increase by Count: 1 For the Instance limits scale condition setting, you set Maximum to 5. During a 30-minute period, App1 uses 80 percent of the available memory. What is the maximum number of instances for App1 during the 30-minute period? A. 2 B. 3 C. 4 D. 5
D. 5 Start at 2 instances, after 15 min, > 70%, then +1 instance Cooling 5 mins, still >70%, then +1 instance Cooling 5 mins, still > 70%, then +1 instance Cooling 5 mins, still >70%, since max 5 instances, keep 5 instances only -https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-understanding-settings -https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-best-practices
93
You have an Azure subscription that contains the container images shown in the following table. Name Operating system Image1 Windows Server Image2 Linux You plan to use the following services: * Azure Container Instances * Azure Container Apps * Azure App Service In which services can you run the images? Image1: Image2: Azure Container Instances only Azure Container Apps only Azure Container Instances and App Services only Azure Container Apps and App Services only Azure Container Instances, Azure Container Apps, and App Services
Image1: Azure Container Instances and App Services only Image2: Azure Container Instances, Azure Container Apps, and App Services - Azure Container Instances can schedule both Windows and Linux containers with the same API. You can specify your OS type preference when you create your container groups. Some features are currently restricted to Linux containers. https://learn.microsoft.com/en-us/azure/container-instances/container-instances-overview - Azure Container Apps supports: Any Linux-based x86-64 (linux/amd64) container image with no required base image Containers from any public or private container registry Sidecar and init containers https://learn.microsoft.com/en-us/azure/container-apps/containers - Azure App Service is an HTTP-based service for hosting web applications, REST APIs, and mobile back ends. You can develop in your favorite language, be it .NET, .NET Core, Java, Node.js, PHP, and Python. Applications run and scale with ease on both Windows and Linux-based environments.https://learn.microsoft.com/en-us/azure/app-service/overview
94
You have an Azure AD tenant named contoso.com. You have an Azure subscription that contains an Azure App Service web app named App1 and an Azure key vault named KV1. KV1 contains a wildcard certicate for contoso.com. You have a user named user1@contoso.com that is assigned the Owner role for App1 and KV1. You need to configure App1 to use the wildcard certicate of KV1. What should you do first? A. Create an access policy for KV1 and assign the Microsoft Azure App Service principal to the policy. B. Assign a managed user identity to App1. C. Configure KV1 to use the role-based access control (RBAC) authorization system. D. Create an access policy for KV1 and assign the policy to User1.
B. Assign a managed user identity to App1. https://learn.microsoft.com/en-us/azure/key-vault/general/tutorial-net-create-vault-azure-web-app First Step is to Assign a managed identity to the App.
95
You have an Azure subscription. You plan to deploy the resources shown in the following table. Name Type IP1 Microsoft.Network/publicIPAddresses NSG1 Microsoft.Network/networkSecurityGroups VNET1 Microsoft.Network/virtualNetworks NIC1 Microsoft.Network/networkInterfaces VM1 Microsoft.Compute/virtualMachines You need to create a single Azure Resource Manager (ARM) template that will be used to deploy the resources. Which resource should be added to the dependsOn section for VM1? A. VNET1 B. NIC1 C. IP1 D. NSG1
B. NIC1 Therefore, the most direct and crucial dependency for VM1 among the listed resources is NIC1 (Option B). The NIC acts as the bridge between the VM and the other network resources like the virtual network, public IP, and network security group. Hence, it's essential to ensure that NIC1 is deployed before VM1. https://learn.microsoft.com/en-us/azure/templates/microsoft.compute/virtualmachines?pivots=deployment-language-arm-template https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/resource-dependency https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-tutorial-create-templates-with-dependent-resources?tabs=CLI
96
You have an Azure subscription. You create the following Azure Resource Manager (ARM) template named Template.json. You need to deploy Template.json. Which PowerShell cmdlet should you run from Azure Cloud Shell? A. New-AzSubscriptionDeployment B. New-AzManagementGroupDeployment C. New-AzResourceGroupDeployment D. New-AzTenantDeployment
A. New-AzSubscriptionDeployment Deploy across entire subscription: New-AzSubscriptionDeployment Deploy across subscriptions in a management group: New-AzManagementGroupDeployment Deploy within a specific resource group: New-AzResourceGroupDeployment Deploy across entire organization (rare): New-AzTenantDeployment
97
You have an Azure subscription that contains a resource group named RG1. You plan to create a storage account named storage1. You have a Bicep le named File1. You need to modify File1 so that it can be used to automate the deployment of storage1 to RG1. Which property should you modify? A. kind B. scope C. sku D. location
B. scope We would use scope to target the resource group for storage account. kind: This property defines the type of resource within the storage account (e.g., BlobStorage, FileStorage, etc.). It's unlikely you need to modify this in your scenario as Bicep likely already has the correct type defined. scope: This property specifies the location where the resource will be deployed. In your case, you want to deploy it to the resource group "RG1", so modifying the scope property to reference "RG1" is necessary. sku: This property defines the performance tier of the storage account. While you might adjust this depending on your needs, it's not directly related to deployment location. location: This property can also define the deployment location, but it's generally recommended to use the scope property with resource groups for clarity and consistency. Bicep might already have the location set within the resource definition.
98
Your company purchases a new Azure subscription. You create a file named Deploy.json as shown in the following exhibit. resources: [ { type: resourceGroups, name: copyIndex, copy: count: 3 }, { type: deployments, resourceGroup: RG1, properties: ... lock: ... cannotdelete }, { type: deployments, resourceGroup: RG2, properties: ... lock: ... readonly } You connect to the subscription and run the following cmdlet. New-AzDeployment -Location westus -TemplateFile “deploy.json” Statements Yes/No You can deploy a virtual machine to RG1. You can deploy a virtual machine to RG2. You can manually create a resource group named RG3.
You can deploy a virtual machine to RG1. - Yes You can deploy a virtual machine to RG2. - No You can manually create a resource group named RG3. - Yes The deployment creates 3 RGs called RG0, RG1, RG2 as the index is 0-based. You can deploy to RG1 as the lock is delete. You can't deploy to RG2 as the lock is read-only, hence it can't be modified.
99
You have an Azure subscription that contains the resources shown in the following table. Name Туре Resource group Location RG1 Resource group Not applicable Central US RG2 Resource group Not applicable West US VMSS1 Virtual machine scale set RG2 West US Proximity1 Proximity placement group RG1 West US Proximity2 Proximity placement group RG2 Central US Proximity3 Proximity placement group RG1 Central US You need to configure a proximity placement group for VMSS1. Which proximity placement groups should you use? A. Proximity2 only B. Proximity1, Proximity2, and Proximity3 C. Proximity1 only D. Proximity1 and Proximity3 only
C. Proximity1 only Placement Groups is a capability to achieve co-location of your Azure Infrastructure as a Service (IaaS) resources and low network latency among them, for improved application performance. Azure proximity placement groups represent a new logical grouping capability for your Azure Virtual Machines, which in turn is used as a deployment constraint when selecting where to place your virtual machines. In fact, when you assign your virtual machines to a proximity placement group, the virtual machines are placed in the same data center, resulting in lower and deterministic latency for your applications. The VMSS should share the same region, even it should be the same zone as proximity groups are located in the same data center. Accordingly, it should be proximity 1 only. Reference: https://azure.microsoft.com/en-us/blog/introducing-proximity-placement-groups
100
You have an Azure subscription that contains the virtual networks shown in the following table. Name Subnet Subnet-associated network security group (NSG) Peered with VNet1 Subnet1 NSG1 VNet2 VNet2 Subnet2 NSG2 VNet1 The subscription contains the virtual machines shown in the following table. Name Connected to VM1 Subnet1 VM2 Subnet2 The subscription contains the Azure App Service web apps shown in the following table. Name Description WebApp1 Uses the Premium pricing tier and has virtual network integration with VNet1 WebApp2 Uses the Isolated pricing tier and is deployed to Subnet2 Statements Yes/No WebApp1 can communicate with VM2. NSG1 controls inbound traffic to WebApp1. WebApp2 can communicate with VM1.
WebApp1 can communicate with VM2. - Yes Explanation: webapp1 is integrated with vnet1 and vnet1 is peered with vnet2, which vm2 is connected to. So, webapp1 can communicate with vm2. NSG1 controls inbound traffic to WebApp1. - No Explanation: nsg1 is associated with subnet1, not directly with webapp1. It controls the inbound traffic to the subnet1, not to the webapp1. Virtual network integration is used only to make outbound calls from your app into your virtual network WebApp2 can communicate with VM1. - No or Yes Yes: Explanation: webapp2 is deployed to subnet2 and subnet2 is in vnet2. vnet2 is peered with vnet1, which vm1 is connected to. So, webapp2 can communicate with vm1. NO: There are some limitations with using virtual network integration: The feature isn't available for Isolated plan apps in an App Service Environment Reference: https://learn.microsoft.com/en-us/azure/app-service/overview-vnet-integration
101
You have an Azure subscription that contains an Azure container registry named ContReg1. You enable the Admin user for ContReg1. Which username can you use to sign in to ContReg1? A. root B. admin C. administrator D. ContReg1
D. ContReg1 "If activated, you can use the registry name as username and admin user access key as password to docker login to your container registry." when you go to this Option in the Portal - next to the "Mark" is a Explanation Field and when you hover over it, it say -> the admin user is identical to the Name of the Container Registry. The Name of the Container Registry is ContReg1 therefore is the admin user ContReg1 and that means D