AZ-104 Exam Prep Exam Questions and
Correct Answers
Question 1
Your team has implemented an application that returns detailed error pages in case of
an HTTP error (400 or higher). Which diagnostics tool should you enable to store
copies of these error pages for further analysis?
A) Application logging
B) Web server logging
C) Detailed error messages
D) Deployment logging
Correct Answer
C
Question 2
Contoso Ltd. needs to segment their VNet into multiple subnets for better
organization and security of their resources. What is the first step they should take?
A) Create a Network Security Group (NSG).
Explanation: An NSG is used to filter network traffic but does not create subnets.
B) Define subnet address ranges within the existing VNet address space.
Explanation: Subnets are created by defining address ranges within the VNet's
address space.
C) Set up a VPN Gateway.
Explanation: A VPN Gateway is used for secure connectivity between networks, not for
creating subnets.
D) Assign a public IP address to each subnet.
Explanation: Public IP addresses are not typically assigned to subnets, but to
individual VMs or services.
Correct Answer
B
Page 1 of 199
,Question 3
Yoyodyne Propulsion Systems has configured an Azure Virtual Machine Scale Set
named YPScaleSet1 with the following settings:
Initial instance count: 4
Minimum number of VMs: 3
Maximum number of VMs: 12
Scaling Policies:
Scale Out:
CPU threshold (%): 75
Duration in minutes: 10
Number of VMs to increase by: 3
Scale In:
CPU threshold (%): 30
Number of VMs to decrease by: 2
Scenario:
After deployment, YPScaleSet1 experiences 80% CPU utilization for 12 minutes, and
then the utilization drops to 25% for 6 minutes. How many virtual machines will
YPScaleSet1 be running at the end of this scenario?
A) 5
B) 6
C) 7
D) 8
Correct Answer
C
Page 2 of 199
,Question 4
Contoso Ltd. wants to ensure their spending does not exceed their budget on a
monthly basis. Which feature should they configure in Azure to achieve this?
A) Set up cost alerts in Azure Cost Management.
B) Create a budget in Azure Cost Management and configure alerts.
C) Implement Azure Policy to limit spending.
D) Use Azure Advisor to get recommendations on reducing spend.
Correct Answer
B
Question 5
Stark Industries needs to grant a user named Bob the ability to manage virtual
machines but not other resources in a resource group named "Production". Which
role should they assign Bob?
A) Owner role at the subscription level
B) Contributor role at the resource group level
C) Virtual Machine Contributor role at the resource group level
D) User Access Administrator role at the resource group level
Correct Answer
C
Question 6
Adventure Works Cycles wants to ensure their critical applications are highly available.
How should they deploy their VMs?
A) Place them in a single availability set.
B) Deploy them across multiple availability zones.
C) Use only premium storage disks.
D) Configure each VM in a different subscription.
Correct Answer
B
Page 3 of 199
, Question 7
You need to get the value of a parameter named 'location' in your ARM template.
Which function should you use?
A) variables('location')
B) getParam('location')
C) parameters('location')
D) param('location')
Correct Answer
C
Question 8
Scenario:
LexCorp is deploying a new application in Azure that requires frequent read and write
operations to a storage account from Azure virtual machines within the same region.
They want to optimize the network path and minimize latency.
Proposed Solution:
Create an Azure Blob Storage account and enable the "minimum latency"
performance tier.
Question:
Does that meet the goal?
A)Yes
B)No
Correct Answer
B
Page 4 of 199
Correct Answers
Question 1
Your team has implemented an application that returns detailed error pages in case of
an HTTP error (400 or higher). Which diagnostics tool should you enable to store
copies of these error pages for further analysis?
A) Application logging
B) Web server logging
C) Detailed error messages
D) Deployment logging
Correct Answer
C
Question 2
Contoso Ltd. needs to segment their VNet into multiple subnets for better
organization and security of their resources. What is the first step they should take?
A) Create a Network Security Group (NSG).
Explanation: An NSG is used to filter network traffic but does not create subnets.
B) Define subnet address ranges within the existing VNet address space.
Explanation: Subnets are created by defining address ranges within the VNet's
address space.
C) Set up a VPN Gateway.
Explanation: A VPN Gateway is used for secure connectivity between networks, not for
creating subnets.
D) Assign a public IP address to each subnet.
Explanation: Public IP addresses are not typically assigned to subnets, but to
individual VMs or services.
Correct Answer
B
Page 1 of 199
,Question 3
Yoyodyne Propulsion Systems has configured an Azure Virtual Machine Scale Set
named YPScaleSet1 with the following settings:
Initial instance count: 4
Minimum number of VMs: 3
Maximum number of VMs: 12
Scaling Policies:
Scale Out:
CPU threshold (%): 75
Duration in minutes: 10
Number of VMs to increase by: 3
Scale In:
CPU threshold (%): 30
Number of VMs to decrease by: 2
Scenario:
After deployment, YPScaleSet1 experiences 80% CPU utilization for 12 minutes, and
then the utilization drops to 25% for 6 minutes. How many virtual machines will
YPScaleSet1 be running at the end of this scenario?
A) 5
B) 6
C) 7
D) 8
Correct Answer
C
Page 2 of 199
,Question 4
Contoso Ltd. wants to ensure their spending does not exceed their budget on a
monthly basis. Which feature should they configure in Azure to achieve this?
A) Set up cost alerts in Azure Cost Management.
B) Create a budget in Azure Cost Management and configure alerts.
C) Implement Azure Policy to limit spending.
D) Use Azure Advisor to get recommendations on reducing spend.
Correct Answer
B
Question 5
Stark Industries needs to grant a user named Bob the ability to manage virtual
machines but not other resources in a resource group named "Production". Which
role should they assign Bob?
A) Owner role at the subscription level
B) Contributor role at the resource group level
C) Virtual Machine Contributor role at the resource group level
D) User Access Administrator role at the resource group level
Correct Answer
C
Question 6
Adventure Works Cycles wants to ensure their critical applications are highly available.
How should they deploy their VMs?
A) Place them in a single availability set.
B) Deploy them across multiple availability zones.
C) Use only premium storage disks.
D) Configure each VM in a different subscription.
Correct Answer
B
Page 3 of 199
, Question 7
You need to get the value of a parameter named 'location' in your ARM template.
Which function should you use?
A) variables('location')
B) getParam('location')
C) parameters('location')
D) param('location')
Correct Answer
C
Question 8
Scenario:
LexCorp is deploying a new application in Azure that requires frequent read and write
operations to a storage account from Azure virtual machines within the same region.
They want to optimize the network path and minimize latency.
Proposed Solution:
Create an Azure Blob Storage account and enable the "minimum latency"
performance tier.
Question:
Does that meet the goal?
A)Yes
B)No
Correct Answer
B
Page 4 of 199