exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 102 discussion

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

HOTSPOT
-

Your company purchases a new Azure subscription.

You create a file named Deploy.json as shown in the following exhibit.



You connect to the subscription and run the following cmdlet.

New-AzDeployment -Location westus -TemplateFile “deploy.json”

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
Asryi
Highly Voted 1 year, 4 months ago
YNY 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.
upvoted 36 times
pasangawa
6 months ago
totally agree. The "name": "[concat('RG-', copyIndex())]", will start with 0 then increment to 3 counts.. RG0. RG1, RG2 which Asryi mentioned. Since RG3 is not exising therefore can create RG3 manually
upvoted 4 times
...
Alandt
1 year, 1 month ago
Correct explanation!
upvoted 1 times
...
...
[Removed]
Most Recent 5 months ago
CORRECT ..
upvoted 2 times
...
[Removed]
5 months, 1 week ago
CORRECT
upvoted 1 times
...
un4exa
6 months ago
These are the questions that give breathing space
upvoted 2 times
...
op22233
10 months, 2 weeks ago
YNY IS CORRECT
upvoted 2 times
...
gswar
1 year, 3 months ago
YNY is correct
upvoted 3 times
...
[Removed]
1 year, 3 months ago
A read-only lock on a resource group prevents users from moving any new resource into that resource group. https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/lock-resources?tabs=json
upvoted 2 times
...
Batiste2023
1 year, 4 months ago
Yes, answer provided is correct, YNY. Pay attention to the different resource locks for RG1 (delete) and RG2 (read-only). Also, as Ahkhan has stated, three resource groups are created by the template, RG0, RG1 and RG2. RG3 can be created manually afterwards.
upvoted 4 times
...
Ahkhan
1 year, 4 months ago
Index value starts with 0. So the ARM template is creating RG01, RG1, and RG2. Hence, the answer to the third one is YES. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/copy-resources
upvoted 3 times
...
ducklaorange
1 year, 4 months ago
This took some digging: https://github.com/uglide/azure-content/blob/master/articles/resource-group-create-multiple.md Use Index value for name section So I believe the answer for third one is NO since resource group names must be unique within an subscription.
upvoted 2 times
Batiste2023
1 year, 3 months ago
Thanks for the link! It says, though, that the count for the index value starts at 0 - so the resource groups created here are RG0, RG1 and RG2. RG3 can be created manually afterwards.
upvoted 3 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