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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 7 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 123 times
RVivek
1 month ago
It has to be in the same RG 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-virtual-machine-to-a-virtual-machine-scale-set
upvoted 1 times
...
maria_saprykina
2 years 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 13 times
...
tirajvid
1 year, 3 months 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 22 times
RVivek
1 month ago
Thank You
upvoted 1 times
...
hebbo777
1 year, 2 months ago
you are right!
upvoted 1 times
...
Batiste2023
1 year, 1 month 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
2 years ago
superb
upvoted 1 times
...
...
fedztedz
Highly Voted 3 years, 12 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, 10 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, 6 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
...
...
...
RVivek
Most Recent 1 month ago
RG1 (https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-attach-detach-vm?tabs=portal) West US only You can add the virtual machine to a scale set in the same region, zone, and resource group
upvoted 3 times
RVivek
1 month ago
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-virtual-machine-to-a-virtual-machine-scale-set
upvoted 2 times
...
...
SeMo0o0o0o
3 months ago
CORRECT
upvoted 2 times
...
pasangawa
3 months, 2 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 3 times
...
pet3r
4 months, 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 2 times
...
tashakori
9 months, 1 week ago
Given answer is correct
upvoted 1 times
...
gargaditya
12 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
12 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
12 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, 5 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, 4 months ago
same region = RG1 and West US
upvoted 2 times
...
...
pokrz26
1 year, 6 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, 6 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 3 times
...
xRiot007
1 year, 6 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
2 years, 1 month 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
2 years, 1 month ago
In exam today, go with highly voted
upvoted 1 times
...
qwerty100
2 years, 2 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 6 times
...
EmnCours
2 years, 3 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 2 times
...
61Reasons
2 years, 4 months 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
...
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