Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 5 question 31 discussion

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

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

VMSS1 is set to VM (virtual machines) orchestration mode.
You need to deploy a new Azure virtual machine named VM1, and then add VM1 to VMSS1.
Which resource group and location should you use to deploy VM1? 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:
Box 1: RG1, RG2, or RG3 -
The resource group stores metadata about the resources. When you specify a location for the resource group, you're specifying where that metadata is stored.

Box 2: West US only -
Note: Virtual machine scale sets will support 2 distinct orchestration modes:
ScaleSetVM ג€" Virtual machine instances added to the scale set are based on the scale set configuration model. The virtual machine instance lifecycle - creation, update, deletion - is managed by the scale set.
VM (virtual machines) ג€" Virtual machines created outside of the scale set can be explicitly added to the scaleset.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 4 months ago
Correct Answer: Box 1: RG1, RG2, or RG3 The resource group stores metadata about the resources. When you specify a location for the resource group, you're specifying where that metadata is stored. The location of the RG doesn't influence the choice of the location of VM. best practice would be to create the VM1 in the RG1 because the scale set is in RG1. And Microsoft recommends that resources contained in a Resource Group share the same resource lifecycle. Box 2: West US only You can add the virtual machine to a scale set in the same region, zone, and resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes
upvoted 119 times
tirajvid
1 year ago
Box 1: RG1 only. The VM must be in the same resource group as the scale set. Reference : https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal
upvoted 20 times
hebbo777
11 months, 1 week ago
you are right!
upvoted 1 times
...
Batiste2023
10 months, 2 weeks ago
Yes, RG1 only. "The VM must be in the same resource group as the scale set. If the scale set is regional (no availability zones specified), the virtual machine must also be regional." https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal#exceptions-to-attaching-a-vm-to-a-virtual-machine-scale-set
upvoted 9 times
...
...
SumanSaurabh
1 year, 9 months ago
superb
upvoted 1 times
...
maria_saprykina
1 year, 10 months ago
Yes you can use any RG, but here it asks what RG you SHOULD use? That sounds like by this question Microsoft encourages us to follow their recommendations, and the answer should be RG1 only.
upvoted 11 times
...
DrMiyu
2 years, 3 months ago
Completely agree even if it say "Should" you use. TO be honest, I wanted to asnwer different because I think I should use "RG1 only" except if there is a good reason behind (cost / department / etc) and so to have all my VM in the same RG for easier management.
upvoted 8 times
...
...
fedztedz
Highly Voted 3 years, 9 months ago
Answer is correct. The location of the RG doesn't influence the choice of the location of VM. The location of the VM should be the same like the VM Scale set (single zone or zone redundant )
upvoted 63 times
itgg11
2 years, 7 months ago
Answer is not correct. I just tested it in the lab and a new VM needed to be in the SAME resource group and region. Otherwise, a given VMSS was not available.
upvoted 18 times
Lazylinux
2 years, 3 months ago
Not sure how you tested it...Did you consult Bill Gates!! Anyway the VMSS set should and would be available as long as you are in the right subscription, it will give you option to chose the resource group then you can chose the VMSS. Just remember this RG and Subscriptions ONLY hold the meta data of the resources, what matters is the region
upvoted 3 times
...
...
...
SeMo0o0o0o
Most Recent 2 days, 2 hours ago
CORRECT
upvoted 1 times
...
pasangawa
3 weeks ago
Just tried this on the portal. vmss that had been created can't even be seen as a choice if i change the RG to RG1 &2. the same goes for location. answers are : -RG1 only -West US only
upvoted 1 times
...
pet3r
1 month, 1 week ago
Limitations for attaching an existing Virtual Machine to a scale set The scale set must use Flexible orchestration mode. The scale set must have a platformFaultDomainCount of 1. The VM and scale set must be in the same resource group. The VM and target scale set must both be zonal, or they must both be regional. You can't attach a zonal VM to a regional scale set. The VM can't be in a self-defined availability set. The VM can't be in a ProximityPlacementGroup. The VM can't be in an Azure Dedicated Host. The VM must have a managed disk. The scale set must have singlePlacementGroup set to False. Scale sets created without a scaling profile default to singlePlacementGroup set to null. To attach VMs to a scale set without a scaling profile, singlePlacementGroup needs to be set to False at the time of the scale set's creation. The VM can't be a Remote Direct Memory Access (RDMA) capable HB-series or N-series VM.
upvoted 1 times
...
tashakori
6 months, 1 week ago
Given answer is correct
upvoted 1 times
...
gargaditya
9 months ago
ANSWER= RG1 only (same RG as VMSS), West US only (same Region as VMSS) You can only attach new VMs (non identical) to a Virtual Machine Scale Set in Flexible orchestration mode. NOTES: -The VM must be in the same resource group as the scale set. -If the scale set is regional (no availability zones specified), the virtual machine must also be regional. <and both VM and VMSS must be in same region> -If the scale set is zonal or spans multiple zones (one or more availability zones specified), the virtual machine must be created in one of the zones spanned by the scale set. For example, you can't create a virtual machine in Zone 1, and place it in a scale set that spans Zones 2 and 3. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal-1%2Cportal-2%2Cportal-3#exceptions-to-attaching-a-new-vm-to-a-virtual-machine-scale-set
upvoted 5 times
gargaditya
9 months ago
More details/additional info: • Virtual Machines Scale Sets provide a logical grouping of platform-managed virtual machines. • With scale sets, you create a virtual machine configuration model, automatically add or remove additional instances based on CPU or memory load, and automatically upgrade to the latest OS version. • Traditionally, scale sets allow you to create virtual machines using a VM configuration model provided at the time of scale set creation, and the scale set can only manage virtual machines that are implicitly created based on the configuration model. • Scale set orchestration modes allow you to have greater control over how virtual machine instances are managed by the scale set. There are 2 modes- Uniform & Flexible
upvoted 1 times
gargaditya
9 months ago
• Virtual Machine Scale Sets with Uniform orchestration use a virtual machine profile or template to scale up to desired capacity. While there is some ability to manage or customize individual virtual machine instances, Uniform uses identical VM instances. • Flexible orchestration : o Allows to mix DIFFERENT virtual machine types or Spot and on-demand VMs together o offers high availability guarantees by spreading VMs across fault domains in a region or within an Availability Zone (Uniform works within same AZ) o You can only attach new VMs (non identical) to a Virtual Machine Scale Set in Flexible orchestration mode.
upvoted 1 times
...
...
...
Siraf
1 year, 2 months ago
Answer is: - Resource group: RG1 only - Location: West US You can only attach VMs to a Virtual Machine Scale Set in Flexible orchestration mode. The VM must be in the same resource group as the scale set. If the scale set is regional (no availability zones specified), the virtual machine must also be regional. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal
upvoted 13 times
ikidreamz
1 year, 1 month ago
same region = RG1 and West US
upvoted 2 times
...
...
pokrz26
1 year, 3 months ago
The VM must be in the same resource group as the scale set. --> https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal#exceptions-to-attaching-a-vm-to-a-virtual-machine-scale-set So the answer is Box 1: RG1 only Box 2: West US only
upvoted 11 times
...
RandomNickname
1 year, 3 months ago
Focus on the "should" like others have. Following MS url below; https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview So for Box 1; It can be R1, RG2, RG3, but should be RG1. For Box 2; Should be in West US.
upvoted 2 times
...
xRiot007
1 year, 3 months ago
The question is poorly written. "Should" is a very ambiguous term. The VM can be created in any RG, but best practices tell us that it should be done in RG1 to have similar lifecycle. So, in theory, both RG1 only and R1,2,3 should be correct answers.
upvoted 2 times
...
manthlan
1 year, 10 months ago
Question asks,"Which resource group and location should you use to deploy VM1? " not "can". So it should be RG1.Isn't it?
upvoted 5 times
...
Liriano
1 year, 11 months ago
In exam today, go with highly voted
upvoted 1 times
...
qwerty100
1 year, 11 months ago
Tested in lab with this result: Resource group: RG1 only Location: West US Only When you are going to create de vm1 you can read this: You can add your virtual machine to a virtual machine scale set to design highly available and scalable application architecture. Virtual machines inside a scale set can be deployed into fault domains or Availability zones. The scale set must be set to flexible orchestration mode, and in the same region and resource group.
upvoted 5 times
...
EmnCours
2 years ago
Correct Answer: Box 1: RG1, RG2, or RG3 The resource group stores metadata about the resources. When you specify a location for the resource group, you're specifying where that metadata is stored. The location of the RG doesn't influence the choice of the location of VM. best practice would be to create the VM1 in the RG1 because the scale set is in RG1. And Microsoft recommends that resources contained in a Resource Group share the same resource lifecycle. Box 2: West US only You can add the virtual machine to a scale set in the same region, zone, and resource group. Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-orchestration-modes
upvoted 1 times
...
61Reasons
2 years, 1 month ago
I can see it both ways. But they gave us all three RGs as a choice together. Tough call, and for MSFT's part not "fair". They need more context or a better word.
upvoted 1 times
...
pingpongset
2 years, 2 months ago
If the location is "West US", should not it also determine the resource group, which is RG2, and not RG1, RG2, or RG3? Because a resource group uses a location too.
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 ...