exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 5 question 111 discussion

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

HOTSPOT
-

You plan to deploy the following Azure Resource Manager (ARM) template.



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
Alandt
Highly Voted 1 year, 1 month ago
I get so tired of these "yes or no" questions. It's basically 3 questions in 1. Disgusting material.
upvoted 40 times
...
FabrityDev
Highly Voted 2 years, 1 month ago
I would say that the correct answer is NO NO NO. Box 1: instead of "netname" there should be the value of netname variable Box 2: I don't see Resource Group mentioned anywhere in the template Box 3: I don't see parameters being referred anywhere in the template, only variables are referred, e.g. "sku" variable.
upvoted 37 times
pino1
2 years, 1 month ago
Box 1: No - "netname" is the name of the variable Box 2: No - the LB must be in the same region as the virtual network, but the Resource group can be anywhere Box 3: No - There are no parameter defined in the template
upvoted 18 times
...
VinayV
1 year, 11 months ago
You have posted the question with wrong answer?
upvoted 1 times
...
Indy429
1 year, 2 months ago
You're wrong Box 2 = YES There's only one resource group specified: East US. So from the template it will be automatically assumed that it needs to find the resource in the one you're deploying to. reference: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#remarks-3
upvoted 4 times
...
...
[Removed]
Most Recent 5 months ago
WRONG No No No
upvoted 3 times
...
Teerawee
6 months ago
•     Yes for the first statement.       •     No for the second statement.       •     No for the third statement.
upvoted 1 times
...
ValB
1 year, 2 months ago
For question 2: This link (the error described in it and the cause for it described in the answer) suggest that the load balancer and the VNET must be in the same RG: https://learn.microsoft.com/en-us/answers/questions/203973/problem-creating-an-azure-internal-load-balancer-w So the answer to Q2 would be YES.
upvoted 1 times
lebeyic620
11 months ago
The link literally says "There is no restriction while creating ILB in a VNET across RG's"
upvoted 3 times
...
...
MEG_Florida
1 year, 6 months ago
1: No 2: Yes -- I know its worded poorly, but for it to work the answer is yes it must be deployed there. I believe the intent is to demonstrate that it has to be in the same RG as VNET1, even though I know it wasn't called out what RG. 3: No
upvoted 4 times
...
WimTS
1 year, 6 months ago
N,Y,N Since VNET1 is supplied as a variable, it will search it in the RG you are deploying it to. If it would need to be in another RG, you would need to specify the complete path no? So it needs to be in the same RG as where you deploy the LB
upvoted 5 times
...
Josete1106
1 year, 7 months ago
All No! Thanks!
upvoted 2 times
...
Azure_2023
1 year, 7 months ago
Q2: NO https://learn.microsoft.com/en-us/azure/load-balancer/move-across-regions-internal-load-balancer-portal 'Resource group to choose the resource group where the target load balancer will be deployed. You can select Create new to create a new resource group for the target internal load balancer or choose the existing resource group that was created above for the virtual network. Ensure the name isn't the same as the source resource group of the existing source internal load balancer.'
upvoted 1 times
...
RandomNickname
1 year, 8 months ago
N,Y,N Box1: As others have said. No, netname is the variable so App1 Box2: Yes. On creation you'll need to specify the vnet RG. See below URL for reference. https://learn.microsoft.com/en-us/azure/load-balancer/quickstart-load-balancer-standard-public-portal Box 3: No, can't have a variable as a parameter.
upvoted 1 times
ValB
1 year, 2 months ago
I went through the linked page you provided, and while it chooses the same RG for vnet and load balancer, it might do that only for convenience. It does not state anywhere in that page that the RG must be the same.
upvoted 2 times
...
...
Doman01
1 year, 11 months ago
NO-YES-NO Yes, Azure Load Balancer must be in the same resource group as the virtual network (vnet) it is being used with. This is because Load Balancer is a resource that is used to distribute incoming network traffic across multiple virtual machines (VMs) in a backend pool. The VMs in the backend pool must also be in the same resource group as the Load Balancer and vnet. When you create a Load Balancer, you must specify the vnet it will be used with, and the resource group that both the Load Balancer and vnet belong to. If you try to create a Load Balancer in a different resource group than the vnet, you will receive an error message. It's important to note that while the Load Balancer and vnet must be in the same resource group, they can be in different regions. However, for optimal performance, it's recommended to keep them in the same region to minimize latency.
upvoted 6 times
jodtzz
3 months, 4 weeks ago
This is correct. Look at the third example here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#remarks-3 "To get the resource ID for a resource in the same subscription but different resource group, provide the resource group name." So if you want to specify a resource which is in a different resource group than the one you are deploying to, you must specify the target resource group in the template as that example shows in the link. That was not done in the template for this question.
upvoted 1 times
...
sardonique
1 year, 5 months ago
you don't really know what you're talking about. RSG are logical containers only
upvoted 1 times
...
...
werdy92
2 years ago
N - netname will be resolved to App1 Y - the answer uses incorrectly "the resource group" when "a resource group" was meant. It is obvious that a VNET with name VNET1 is needed here since it is the value of the variable. So this VNET must be present in whatever RG this will be deployed to. It does not matter that there is no mention of resource groups. N - sku is not a parameter
upvoted 8 times
...
CyberKelev
2 years ago
Yes, no, yes
upvoted 1 times
...
ChakaZilly
2 years ago
Second box, Yes: if question is read as: "LB1 can be deployed only to a resource group that contains a VNET named VNET1" because ARM-templates requires a VNET named VNET1.
upvoted 3 times
...
zellck
2 years ago
NNN is the answer. https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/variables https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/parameters
upvoted 4 times
zellck
2 years ago
1. subnet name is "APP1". 2. no RG defined. 3. sku is a variable and fixed as "Standard" already.
upvoted 1 times
...
...
DeBoer
2 years ago
It's NO - YES - NO Box 1: NO - the value of 'netname' is 'App1', so it's created in the App1 subnet (not netname) Box 2: YES - There's no OTHER resource groups specified so it assumes it needs to find the resource in the one you're deploying to. reference: https://learn.microsoft.com/en-us/azure/azure-resource-manager/templates/template-functions-resource#remarks-3 Box 3: NO - 'sku' is a variable, not a parameter - so you can't use it as a parameter.
upvoted 31 times
Batiste2023
1 year, 3 months ago
The resourceId property that the source that you reference is talking about is not mentioned in the template in the question. So I don't see how it applies here.
upvoted 2 times
Batiste2023
1 year, 3 months ago
Ok, I didn't look properly at first, resourceId is mentioned in the variables section. I still don't see the added value of the source you quote - but I do agree that the correct answer would be NYN.
upvoted 2 times
...
...
...
Mo22
2 years, 1 month ago
No;No;Yes
upvoted 2 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