exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 1 question 6 discussion

Actual exam question from Microsoft's AZ-303
Question #: 6
Topic #: 1
[All AZ-303 Questions]

HOTSPOT -
You have an Azure subscription that contains the resource groups shown in the following table.

You create an Azure Resource Manager template named Template1 as shown in the following exhibit.

From the Azure portal, you deploy Template1 four times by using the settings shown in the following table.

What is the result of the deployment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

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
azurecert2021
Highly Voted 4 years, 5 months ago
I found this justification more useful out of others The key here is, when creating public IP Address which location will be used. 1. If template in question has below then location from the variables will be used. "resource":[ "location":"[variables('location')] ] 2. If template in question has below then location from the parameters will be used. "resource":[ "location": "[parameters('location')]" ] The question has 1 in the template. And the variables section in turn gets the location from resource group. So location of IP address will be same as location of resource group. The first 2 IP addresses will be created in resource Group RG1 in location West US The second 2 IP addresses will be created in resource Group RG2 in location East US hence provided answer is correct
upvoted 101 times
Shailen
4 years, 4 months ago
Yup, agree with the justification
upvoted 2 times
...
Yashjain3127
4 years, 1 month ago
I agree with your point but I have a doubt, can we have 2 resources with the same name? How could we have 2 Public IPs named IP1 in the same subscription.
upvoted 4 times
Showkat
3 years, 10 months ago
Same name is not allowed in the same region, however can be with a different region in the same subscription. have 3 in the west US as one of them will fail and 3 in total as well, RG doesn't matter.
upvoted 5 times
...
...
...
SnakePlissken
Highly Voted 4 years, 1 month ago
The answer is correct. I was happy with this easy question, but I see there's much confusion, therefore some explanation. You can ignore the location parameter, it's not used. The location of the resource group is copied. You create 2 IPs in RG1 (IP1 and IP2 in West US) and 2 IPs in RG2 (IP1 and IP3 in East US). That makes a total of 4. Names just have to be be unique in the same resource group. The MS Learn collections for all exams lack ARM templates. My tip: study this learning path. https://docs.microsoft.com/en-us/learn/paths/deploy-manage-resource-manager-templates/
upvoted 11 times
johniedoe2
3 years, 5 months ago
Where do you see East US? Did they change the pictures? Because I see no reference to East US at all in this question.
upvoted 2 times
johniedoe2
3 years, 5 months ago
Please ignore I didn't scroll up high enough sorry!
upvoted 1 times
...
...
...
rxlicon
Most Recent 1 year, 10 months ago
location of IP address will be same as location of resource group. The first 2 IP addresses will be created in resource Group RG1 in location West US The second 2 IP addresses will be created in resource Group RG2 in location East US
upvoted 1 times
...
sachinp2305
3 years, 3 months ago
Correct Answer - Appeared in today's exam 29 March 2022
upvoted 1 times
...
itvinoth83
3 years, 3 months ago
On Exam today, 28-03-2022; Most of the questions from this site, very useful !!
upvoted 1 times
...
nupagazi
3 years, 4 months ago
agreed with answer 2-4 because west-us does not have RG2 so for the last 2 row you can not deploy successfully
upvoted 1 times
...
shree178
3 years, 4 months ago
Appeared today 19-2-2022.. Passed with 871.
upvoted 1 times
...
Azuremaster2
3 years, 4 months ago
Appeared today 13.2.2022
upvoted 1 times
...
pompes
3 years, 5 months ago
The answer is correct. Don't get confused by the location parameter. It not used anywhere in the arm template. Keys things: - location are automatically deducted from the resource group - name of the IP address MUST be unique per resource group So we have 2 IPs addresses created in WEST-US and 2 in EAST-US.
upvoted 2 times
...
rjcverar
3 years, 8 months ago
Appeared on 29.10.2021
upvoted 2 times
...
plmmsg
3 years, 9 months ago
Answer is 2 and 4
upvoted 1 times
...
Showkat
3 years, 10 months ago
As per the question 3 IPs will be created in West US as same name cant be allowed in the same region, and total will be 3 as well.
upvoted 1 times
Ajdlfasudfo0
3 years, 9 months ago
I thought the same, tried it out, it acutally works. My learning: not all resource names need to be unique. I guess just the ones that are used in an url (e.g. storage accounts)
upvoted 1 times
...
...
syu31svc
3 years, 10 months ago
This template uses variable location while creating Public IP address. The value of location variable is set to resource group's location. The location variable is used while creating the public IP address. Basically, it uses resource group's location. Therefore, there will be two public IP addresses in West US. The template gets executed four times, so there will be total of four public IP addresses. Answer is correct
upvoted 1 times
...
alanew
3 years, 11 months ago
I think the picture is wrong. Answers in comment section make sense if RG2 is in eastus
upvoted 6 times
...
DGladiator
4 years ago
fully agree
upvoted 1 times
...
janclintv
4 years ago
on exam 6/14 . Passed with 800+ score. Answered 2-4
upvoted 2 times
JamesHo
4 years ago
was there any simulation questions in the exam?
upvoted 1 times
...
...
Globetrotter
4 years, 1 month ago
the "Location" in the table make the question difficult - it is 2 per region and total 4
upvoted 1 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 ...