AZ-104 Test Questions with Correct Answers
Your company's Azure subscription includes Azure virtual machines (VMs) that run
Windows Server 2016.One of the VMs is backed up every day using Azure Backup
Instant Restore.When the VM becomes infected with data encrypting ransomware, you
decide to recover the VM's files.Which of the following is TRUE in this scenario?
A. You can only recover the files to the infected VM.
B. You can recover the files to any VM within the company's subscription.
C. You can only recover the files to a new VM.
D. You will not be able to recover the files.
Correct Answer: A
Your company has an Azure Active Directory (Azure AD) subscription.You need to
deploy five virtual machines (VMs) to your company's virtual network subnet.The VMs
will each have both a public and private IP address. Inbound and outbound security
rules for all of these virtual machines must be identical.Which of the following is the
least amount of security groups needed for this configuration?
A. 4
B. 3
C. 2
D. 1
Correct Answer: D
Your company has an Azure Active Directory (Azure AD) tenant that is configured for
hybrid coexistence with the on-premises Active Directory domain.You plan to deploy
,several new virtual machines (VMs) in Azure. The VMs will have the same operating
system and custom software requirements.You configure a reference VM in the on-
premise virtual environment. You then generalize the VM to create an image.You need
to upload the image to Azure to ensure that it is available for selection when you create
the new Azure VMs.Which PowerShell cmdlets should you use?
A. Add-AzVM
B. Add-AzVhd
C. Add-AzImage
D. Add-AzImageDataDisk
Correct Answer: B
Your company has an Azure Active Directory (Azure AD) tenant that is configured for
hybrid coexistence with the on-premises Active Directory domain.The on-premise
virtual environment consists of virtual machines (VMs) running on Windows Server
2012 R2 Hyper-V host servers.You have created some PowerShell scripts to automate
the configuration of newly created VMs. You plan to create several new VMs.You need
a solution that ensures the scripts are run on the new VMs.Which of the following is the
best solution?
A. Configure a SetupComplete.cmd batch file in the %windir%setupscripts directory.
B. Configure a Group Policy Object (GPO) to run the scripts as logon scripts.
C. Configure a Group Policy Object (GPO) to run the scripts as startup scripts.
D. Place the scripts in a new virtual hard disk (VHD).
Correct Answer: A
,Your company has an Azure subscription.You need to deploy a number of Azure
virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have
been informed that the VMs will be included in a single availability set.You are
required to make sure that the ARM template you configure allows for as many VMs as
possible to remain accessible in the event of fabric failure or maintenance.Which of the
following is the value that you should configure for the platformUpdateDomainCount
property?
A. 10
B. 20
C. 30
D. 40
Correct Answer: B
Your company has an Azure subscription.You need to deploy a number of Azure
virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have
been informed that the VMs will be included in a single availability set.You are
required to make sure that the ARM template you configure allows for as many VMs as
possible to remain accessible in the event of fabric failure or maintenance.Which of the
following is the value that you should configure for the platformFaultDomainCount
property?
A. 10
B. 30
C. Min Value
D. Max Value
, Correct Answer: D
You have an Azure virtual machine (VM) that has a single data disk. You have been
tasked with attaching this data disk to another Azure VM.You need to make sure that
your strategy allows for the virtual machines to be offline for the least amount of time
possible.Which of the following is the action you should take FIRST?
A. Stop the VM that includes the data disk.
B. Stop the VM that the data disk must be attached to.
C. Detach the data disk.
D. Delete the VM that includes the data disk.
Correct Answer: C
Your company has three virtual machines (VMs) that are included in an availability
set.You try to resize one of the VMs, which returns an allocation failure message.It is
imperative that the VM is resized.Which of the following actions should you take?
A. You should only stop one of the VMs.
B. You should stop two of the VMs.
C. You should stop all three VMs.
D. You should remove the necessary VM from the availability set.
Correct Answer: C
A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM)
template to deploy a virtual machine and an additional Azure Storage account.You
want to review the ARM template that was used by Jon Ross.Solution: You access the
Container blade.Does the solution meet the goal?
Your company's Azure subscription includes Azure virtual machines (VMs) that run
Windows Server 2016.One of the VMs is backed up every day using Azure Backup
Instant Restore.When the VM becomes infected with data encrypting ransomware, you
decide to recover the VM's files.Which of the following is TRUE in this scenario?
A. You can only recover the files to the infected VM.
B. You can recover the files to any VM within the company's subscription.
C. You can only recover the files to a new VM.
D. You will not be able to recover the files.
Correct Answer: A
Your company has an Azure Active Directory (Azure AD) subscription.You need to
deploy five virtual machines (VMs) to your company's virtual network subnet.The VMs
will each have both a public and private IP address. Inbound and outbound security
rules for all of these virtual machines must be identical.Which of the following is the
least amount of security groups needed for this configuration?
A. 4
B. 3
C. 2
D. 1
Correct Answer: D
Your company has an Azure Active Directory (Azure AD) tenant that is configured for
hybrid coexistence with the on-premises Active Directory domain.You plan to deploy
,several new virtual machines (VMs) in Azure. The VMs will have the same operating
system and custom software requirements.You configure a reference VM in the on-
premise virtual environment. You then generalize the VM to create an image.You need
to upload the image to Azure to ensure that it is available for selection when you create
the new Azure VMs.Which PowerShell cmdlets should you use?
A. Add-AzVM
B. Add-AzVhd
C. Add-AzImage
D. Add-AzImageDataDisk
Correct Answer: B
Your company has an Azure Active Directory (Azure AD) tenant that is configured for
hybrid coexistence with the on-premises Active Directory domain.The on-premise
virtual environment consists of virtual machines (VMs) running on Windows Server
2012 R2 Hyper-V host servers.You have created some PowerShell scripts to automate
the configuration of newly created VMs. You plan to create several new VMs.You need
a solution that ensures the scripts are run on the new VMs.Which of the following is the
best solution?
A. Configure a SetupComplete.cmd batch file in the %windir%setupscripts directory.
B. Configure a Group Policy Object (GPO) to run the scripts as logon scripts.
C. Configure a Group Policy Object (GPO) to run the scripts as startup scripts.
D. Place the scripts in a new virtual hard disk (VHD).
Correct Answer: A
,Your company has an Azure subscription.You need to deploy a number of Azure
virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have
been informed that the VMs will be included in a single availability set.You are
required to make sure that the ARM template you configure allows for as many VMs as
possible to remain accessible in the event of fabric failure or maintenance.Which of the
following is the value that you should configure for the platformUpdateDomainCount
property?
A. 10
B. 20
C. 30
D. 40
Correct Answer: B
Your company has an Azure subscription.You need to deploy a number of Azure
virtual machines (VMs) using Azure Resource Manager (ARM) templates. You have
been informed that the VMs will be included in a single availability set.You are
required to make sure that the ARM template you configure allows for as many VMs as
possible to remain accessible in the event of fabric failure or maintenance.Which of the
following is the value that you should configure for the platformFaultDomainCount
property?
A. 10
B. 30
C. Min Value
D. Max Value
, Correct Answer: D
You have an Azure virtual machine (VM) that has a single data disk. You have been
tasked with attaching this data disk to another Azure VM.You need to make sure that
your strategy allows for the virtual machines to be offline for the least amount of time
possible.Which of the following is the action you should take FIRST?
A. Stop the VM that includes the data disk.
B. Stop the VM that the data disk must be attached to.
C. Detach the data disk.
D. Delete the VM that includes the data disk.
Correct Answer: C
Your company has three virtual machines (VMs) that are included in an availability
set.You try to resize one of the VMs, which returns an allocation failure message.It is
imperative that the VM is resized.Which of the following actions should you take?
A. You should only stop one of the VMs.
B. You should stop two of the VMs.
C. You should stop all three VMs.
D. You should remove the necessary VM from the availability set.
Correct Answer: C
A colleague named Jon Ross makes use of a solitary Azure Resource Manager (ARM)
template to deploy a virtual machine and an additional Azure Storage account.You
want to review the ARM template that was used by Jon Ross.Solution: You access the
Container blade.Does the solution meet the goal?