exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 84 discussion

Actual exam question from Microsoft's AZ-104
Question #: 84
Topic #: 4
[All AZ-104 Questions]

HOTSPOT
-

You have an Azure subscription.

You create the following file named Deploy.json.



You connect to the subscription and run the following commands.



For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Alex2022_31
Highly Voted 2 years, 1 month ago
Answers: Yes / No / Yes Y: The 4 resources created are the RG1 resource group + the 3 storage accounts N: the location of the storage accounts is defined by the parameter "location" in the "resources" item that has the value of the Resource Group (stated by the "resourceGroup().location" function that returns the location of the resource group RG1 which is in Central US) Y: the names of the storages account have the prefix given by the copyIndex() function in "name": "[concat(copyIndex(),'storage',uniqueString(resourceGroup().id))]", which starts at the position 0
upvoted 70 times
bobothewiseman
11 months, 2 weeks ago
Y N Y Q2. The provided commands will not create any storage accounts. They are specifically used to create an Azure resource group and initiate a deployment of Azure resources using an ARM template.
upvoted 1 times
...
garmatey
1 year, 9 months ago
how do you know central US?
upvoted 3 times
garmatey
1 year, 9 months ago
nvm my b
upvoted 3 times
...
...
pramodk78
2 years, 1 month ago
resource - A manageable item that is available through Azure. Virtual machines, storage accounts, web apps, databases, and virtual networks are examples of resources. Resource groups, subscriptions, management groups, and tags are also examples of resources. -- https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview
upvoted 15 times
...
Bayer2517
2 years ago
A resource group is a container that holds related resources for an Azure solution. The resource group can include all the resources for the solution, or only those resources that you want to manage as a group.
upvoted 1 times
...
...
sharkzor
Highly Voted 2 years, 1 month ago
N - RG != resource Y - Westus is in the template. no parameter override given Y
upvoted 11 times
sandorh
2 years, 1 month ago
This is wrong, a resource group is a resource. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview "Virtual machines, storage accounts, web apps, databases, and virtual networks are examples of resources. Resource groups, subscriptions, management groups, and tags are also examples of resources."
upvoted 6 times
LZNJ
1 year ago
I visited the link above, and confirm that a resource group is considered a resouce in Azure.
upvoted 3 times
...
...
Muffay
2 years, 1 month ago
For your second Y - in the template the location is calculated using the Resource Group location. So, it actually is N - it will be the location of the RG, which is Central US. Combining your answer with Alexs answer will give you the correct responses then :D
upvoted 1 times
...
buzzerboy
2 years, 1 month ago
the location is set to read from the resource groups location, and the resource group location is specified to central in the New-AzResourceGroup command
upvoted 1 times
...
djgodzilla
2 years, 1 month ago
can't speak about the override . but for 1. you already have RG1 created and it was specified in the command New-AzResourceGroupDeployment hence it adds a deployment to an existing resource group. and 1. = is NO ( 3 resources only)
upvoted 2 times
djgodzilla
2 years, 1 month ago
EDIT: the override is "location": "[resourceGroup().location]" so : N- 3 storage accounts N- central us Y- count iteration always starts with 0 Y
upvoted 10 times
...
...
...
[Removed]
Most Recent 5 months, 1 week ago
CORRECT
upvoted 2 times
...
[Removed]
5 months, 2 weeks ago
CORRECT
upvoted 1 times
...
RaphaelG
6 months, 3 weeks ago
New-AzResourceGroupDeployment deploys resources to an existing resource group; New-AzDeployment deploys resources at a subscription level; with that being said: Box. No. 1: N (RG is already there and the template only creates 3 storage accounts) Box. No. 2: N (storage accounts will inherit location of the RG) Box. No. 3: Y (ARM uses zero-based numbering)
upvoted 3 times
...
Amir1909
11 months, 2 weeks ago
Given answer is correct
upvoted 1 times
...
1828b9d
1 year ago
This question was in exam 01/03/2024
upvoted 5 times
...
BE1234
1 year, 3 months ago
resource - A manageable item that is available through Azure. Virtual machines, storage accounts, web apps, databases, and virtual networks are examples of resources. Resource groups, subscriptions, management groups, and tags are also examples of resources. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview
upvoted 1 times
...
Jainulabadeen
1 year, 4 months ago
Where its mentioned about 3 storage account?
upvoted 1 times
...
RandomNickname
1 year, 9 months ago
The links in the comments helped understand this. Y,N,Y
upvoted 2 times
...
zellck
2 years ago
YNY is the answer. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/copy-resources#resource-iteration Notice that the name of each resource includes the copyIndex() function, which returns the current iteration in the loop. copyIndex() is zero-based.
upvoted 3 times
...
Muffay
2 years, 1 month ago
The commands will create four new resources - NO. A Resource Group is not a resource, so it will only create 3 storage accounts as resources. The commands will create storage accounts in the West US Azure region - NO. Note the "location": "[resourceGroup().location]". This will set the location to the location of the resource group, which is Central US. "The first storage account that is create will have a prefix of 0": YES. As the name is concated starting with the copyIndex(), that is true.
upvoted 7 times
Muffay
2 years, 1 month ago
I was incorrect. A Resource Group *is* a resource, so the first answer is YES. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview#terminology resource - A manageable item that is available through Azure. Virtual machines, storage accounts, web apps, databases, and virtual networks are examples of resources. Resource groups, subscriptions, management groups, and tags are also examples of resources.
upvoted 11 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago