exam questions

Exam AZ-140 All Questions

View all questions & answers for the AZ-140 exam

Exam AZ-140 topic 5 question 1 discussion

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

You have an Azure Virtual Desktop host pool that runs Windows 10 Enterprise multi-session.
You need to configure automatic scaling of the host pool to meet the following requirements:
✑ Distribute new user sessions across all running session hosts.
✑ Automatically start a new session host when concurrent user sessions exceed 30 users per host.
What should you include in the solution?

  • A. an Azure Automation account and the depth-first load balancing algorithm
  • B. an Azure Automation account and the breadth-first load balancing algorithm
  • C. an Azure load balancer and the breadth-first load balancing algorithm
  • D. an Azure load balancer and the depth-first load balancing algorithm
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Nail
Highly Voted 3 years, 11 months ago
B, this would be breadth first if you are distributing user sessions across all available hosts.
upvoted 43 times
...
tkoutanis
Highly Voted 3 years, 11 months ago
Distribute new user sessions across all running session hosts = Correct Answer is B.
upvoted 15 times
...
jeff1988
Most Recent 5 months, 3 weeks ago
Selected Answer: B
To meet the requirements of distributing new user sessions across all running session hosts and automatically starting a new session host when concurrent user sessions exceed 30 users per host, you should use the breadth-first load balancing algorithm. This algorithm distributes user sessions evenly across all available session hosts, ensuring that no single host is overloaded. Additionally, using an Azure Automation account allows you to create runbooks that can automate the scaling process based on your specified criteria. Therefore, the correct solution is: B. an Azure Automation account and the breadth-first load balancing algorithm.
upvoted 1 times
...
MarioGaming110
7 months ago
It's B because Azure Automation Account: This allows you to create and manage runbooks that can automate the scaling of your host pool. You can set up scripts to monitor the number of active sessions and start new session hosts as needed. Breadth-First Load Balancing Algorithm: This algorithm distributes new user sessions across all running session hosts evenly. It ensures that no single host is overloaded by spreading the user sessions as evenly as possible. Option C and D: Azure Load Balancer is typically used for distributing network traffic and does not directly manage user sessions in Azure Virtual Desktop.
upvoted 1 times
...
[Removed]
1 year, 8 months ago
Selected Answer: B
Breadth First ensures all Hosts are used before stacking sessions on single hosts. This is a Host Pool configuration. Azure Automation achieves the auto-scaling requirements. https://learn.microsoft.com/en-us/azure/virtual-desktop/scaling-automation-logic-apps Using A Scale plan would be a better solution for AVD going forward. https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan?tabs=pooled-autoscale
upvoted 2 times
...
Szaier
1 year, 9 months ago
Selected Answer: B
B is correct
upvoted 2 times
...
MJFT
2 years, 4 months ago
Selected Answer: C
You can't use autoscale and scale session hosts using Azure Automation and Azure Logic Apps on the same host pool. You must use one or the other. https://learn.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan
upvoted 1 times
Bonesurfer
6 months ago
An Azure Load Balancer is generally not used for session management in AVD. AVD’s built-in load balancing features (breadth-first and depth-first) handle user session distribution, and scaling is more efficiently managed with Azure Automation and AVD’s scaling script.
upvoted 1 times
...
...
Beitran
2 years, 7 months ago
Selected Answer: C
C since the Automation Account is not required anymore: https://docs.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan
upvoted 1 times
Beitran
2 years, 7 months ago
Nvm, it's not an Azure Load Balancer that does that, it's an Autoscale Plan, so B is correct.
upvoted 3 times
...
...
lfbustamante
2 years, 11 months ago
Selected Answer: B
B is correct answer. https://docs.microsoft.com/en-us/azure/virtual-desktop/configure-host-pool-load-balancing#configure-breadth-first-load-balancing. https://docs.microsoft.com/en-us/azure/virtual-desktop/set-up-scaling-script#how-the-scaling-tool-works
upvoted 2 times
...
Eltooth
3 years ago
Selected Answer: B
B is correct answer. https://docs.microsoft.com/en-us/azure/virtual-desktop/autoscale-scaling-plan#configure-a-schedule
upvoted 1 times
...
Startkabels
3 years, 1 month ago
Selected Answer: B
Distributing sessions across all running hosts is of course breath-first.
upvoted 1 times
...
Domza
3 years, 5 months ago
All, please read the question. ~Automatically "start a new session host" - "NOT connect" - when concurrent user sessions exceed 30 users per host. `VM is off to save money!! Automation "will start" new session, you see :) ~We all agreed on B right?
upvoted 3 times
...
Flacky_Penguin32
3 years, 6 months ago
Depth-first = loads up a host with all users to is session host max limit before going to the next host Breath-first = adds users across all hosts evenly With that being stated, going with B.
upvoted 2 times
17Master
3 years, 3 months ago
B is correct....
upvoted 1 times
...
...
alokdubey28
3 years, 8 months ago
Option A is correct... 1. Lets say you have 5 Session Hosts, only one is active and rest are turned off. (this is the only way you can meet requirement 2). 2. Now to automatically power on the VM you need Azure Automation account, so last two options are gone, now you have option A and Option B. 3. When you start with only one session host, then obviously when it reaches to the maximum session limit of 30, automation account will automatically power on the next VM. 4. Now all the new sessions will use this new powered on VM because first VM is having 30 sessions already. Well this kind of load balancing itself is Depth-first load balancing, hence the correct answer is A.
upvoted 5 times
jharris1981
2 years, 9 months ago
I had this question in a WhizzLabs test exam too and their answer was A
upvoted 1 times
jharris1981
2 years, 9 months ago
also, not sure if this is allowed here, but I include a link to a screenshot from the Whizlabs content: https://dirtdonthurt-my.sharepoint.com/:i:/g/personal/james_dirtdonthurt_co_uk/EZC7M_dAzgxHlRqDiLSbp34B6NToq29vav8dbpKDX6Ddng?e=d3N9Ow
upvoted 2 times
...
...
17Master
3 years, 3 months ago
Depth-first = carga un host con todos los usuarios hasta el límite máximo de host de sesión antes de pasar al siguiente host Breath-first = agrega usuarios en todos los hosts de manera uniforme.
upvoted 1 times
...
Azreal_75
3 years, 6 months ago
I disagree, I get your logic... but if you were using auto-scaling why would you have 4 VM's powered off and not in use? You would just have one provisioned until you hit 30 users - but in that scenario as you say it's depth first. What would make more sense to me is that you would have sufficient hosts powered on to satisfy your expected/normal user load so logins are not delayed by provisioning or powering on - so lets say 3 hosts for 90 sessions - you then want the session load balanced across all hosts, so breadth-first is the way to go. What you are saying is possible, but in my experience it would result in unhappy users if you get 85 people logging on in the morning; anyone beyond user 30 will have session host unavailable whilst their host(s) boot. When you get abnormal user load thats where the auto-scaling kicks in and stands up a new host. So the given answer is correct imho.
upvoted 1 times
...
newark123
1 year, 5 months ago
You start with one session host . Its on breadth first but because there is only one host on . It fills that host to 30 and starts a new host. Now it fills them both upto 30 using whichever is most empty (people can log off as well as on ) . Its dumb though because there is no automation to turn the system off again. So once it triggers once the new device will come on and stay on. It should have a depth first requirement but that's not what the question asks for it says they must distribute across the available hosts . Note also it doesn't say by default 1 runs . They might run 3 as a minimum at all times . Or only turn a host off if it has no connections etc. Which would mean the running system would need a consistent downtime to reset itself.
upvoted 1 times
...
...
Moartn82
3 years, 9 months ago
It's B. I think the main reason it is B and A is: Distribute new user sessions >>> across all <<< running session hosts. Both do the same, accept Depth will load a host session to the max and then will use another host. Breadth is spread equally. (across all)
upvoted 4 times
...
Steve_247
3 years, 9 months ago
D. Surely it is Depth first as you are filling up the "running" hosts first not all hosts to the max limit of 30 user before the next host is "started"
upvoted 1 times
...
onrpkdg
3 years, 10 months ago
My guess correct answer should be D. there is no related automation account. this is a load balancer mechanism. right?
upvoted 1 times
jc1993
3 years, 9 months ago
No. Load balancing is handled by Azure by selecting Breadth/Depth options.
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