exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 4 question 96 discussion

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

You have an Azure App Service app named App1 that contains two running instances.

You have an autoscale rule configured as shown in the following exhibit.



For the Instance limits scale condition setting, you set Maximum to 5.

During a 30-minute period, App1 uses 80 percent of the available memory.

What is the maximum number of instances for App1 during the 30-minute period?

  • A. 2
  • B. 3
  • C. 4
  • D. 5
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
athli
Highly Voted 1 year, 6 months ago
Selected Answer: D
Start at 2 instances, after 15 min, > 70%, then +1 instance Cooling 5 mins, still >70%, then +1 instance Cooling 5 mins, still > 70%, then +1 instance Cooling 5 mins, still >70%, since max 5 instances, keep 5 instances only
upvoted 111 times
Jacky_exam
1 year, 2 months ago
Minute 0-15: Memory usage exceeds 70%. Autoscale rule triggered. Instance count increased by 1 (from 2 to 3). Cooldown period starts. Minute 15-20 (Cooldown Period): No further scaling can occur during the cooldown period. Minute 20-30: Memory usage continues to exceed 70%, but the cooldown is still in effect. No further scaling during this time.
upvoted 21 times
Hispan
11 months ago
chatgpt: Let’s calculate the number of CPU cores based on the provided information: Initial CPU Cores: 2 Scale-Out Rule: When CPU usage exceeds 80% for 15 minutes, scale out by 1 core. Cooldown period after scaling: 5 minutes. Given that the CPU usage has been above 80% for 30 minutes, let’s break it down: First 15 minutes: CPU usage exceeds 80%, so we scale out by 1 core. Total cores after the first 15 minutes: 2 (initial) + 1 (scaled out) = 3 cores. Next 15 minutes (with cooldown): During this period, no further scaling occurs due to the cooldown. Total cores remain at 3 cores. Therefore, after 30 minutes of continuous high CPU usage, you will have 3 CPU cores.
upvoted 10 times
...
...
Dankho
4 months, 3 weeks ago
Completely correct, we have to remember that the original duration is used the first or if it resets because the number went below the threshold to trigger scale action. If it never goes below at any point, then we just wait for Cool Down and then reevaluate again or add another instance. I actually messed up again and used the duration but that is an error.
upvoted 2 times
...
217972f
9 months, 1 week ago
here a reference about "look back": https://learn.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-understanding-settings#autoscale-evaluation
upvoted 2 times
...
2a742bc
10 months ago
This is correct according to this article: https://cloudbuild.co.uk/azure-virtual-machine-scale-set-duration-and-cool-down-explained/
upvoted 4 times
6582fb2
6 months ago
According to the link above, the CPU status will be collected during cooling time (5mins) so if the instance starts with 2, after 15mins, it will add 1, which is total 3 Then since 5 mins cooling (only mean wont scale in or scale out, but still collecting status >70%), then wait another 10 mins on top of 5 mins cooling ( total 15 mins, still above 70%), it will add another instances. So total 4 instances after 30 mins.
upvoted 1 times
...
...
...
altairezio
Highly Voted 1 year, 6 months ago
Selected Answer: B
2 instances then after 15min : 3 instances. After 5min cooldown start counting. So correct answer : 3 instances
upvoted 59 times
ki01
1 year, 2 months ago
Answer D. for the scaler to kick in, it needs to be 15 minutes of average use above x % that is set. so once the load starts, it will wait 15 minutes until that rule is met, and a scale up will happen. once it scales up at the 15 minute mark, the 5 minute cooldown starts. at 20 minute mark, the scaler will LOOK BACK at the PAST 15 minutes to see if during that time the usage was still higher than x% and scale up again. then it will wait another 5 minutes, check the PAST 15 minutes again, scale up again, etc. etc. the previous performance data doesnt get thrown out after each scale, it keeps on sliding the dataset its checking forward. imagine if this was a real app and you get hit by huge traffic surge. like your company release a new product. what this would do in your method is scale up one instance every 20 minutes, so it might mean multiple hours of degraded performance while it catches up to demand, while the reality and my explanation, it would kick in after 15 minutes and then keep scaling every 5 minutes which is a much faster and reasonable solution.
upvoted 12 times
binhdortmund
1 year ago
correct! I wanna go with 3 at the beginning, but after reading the MS doc and also your text, 5 is my choice
upvoted 3 times
mamamamn
1 year ago
Would you please share the link? I still dont get it.
upvoted 1 times
...
...
FlaShhh
1 year ago
well explained
upvoted 1 times
...
...
Batiste2023
1 year, 4 months ago
No, if after the cool down period the threshold is stil met, then the next scale out operation will happpen immediately (followed by another cool down period, of course). "The cooldown period for each rule dictates how long after the previous scale action (whatever rule initiated was), the rule can be applied." Source: https://github.com/MicrosoftDocs/azure-docs/issues/17169
upvoted 2 times
...
...
Thor0007
Most Recent 1 month, 3 weeks ago
Selected Answer: D
The correct answer is D . Here you have to see the what is the definition of "Cool down" as per MS "The amount of time to wait before the rule is applied again so that the auto scale actions have time to take effect." So it will not wait for duration of 15 min again . That's logical . If anyone has any other ref official to MS share it in reply. Do upvote this for other help. Ref : https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-autoscale-portal
upvoted 1 times
...
RajeshwaranM
1 month, 3 weeks ago
Selected Answer: B
In Azure's autoscale feature, when a scale-out rule is triggered—such as when CPU usage exceeds a specified threshold—the number of instances added is determined by the "instance count" specified in the autoscale rule, not by the duration for which the condition is met. So we have set the instance count 1 during the cool down period It will not scale our or scale in
upvoted 1 times
...
Elsayed2030
2 months, 1 week ago
Selected Answer: B
Instances are NOT created during cool down period + 15 mins (as configured). Thus, after 15 mins you have +1 instance running and then nothing changes till another 20 mins
upvoted 2 times
...
monisshk
2 months, 2 weeks ago
Selected Answer: D
Correct Answer is D (5) Duration: - 15 minutes and Cooling Period: - 5 minutes 0-15 mins - 1+1 = 2 15 - 20 mins - 2+1 = 3 20 - 25 mins - 3+1 = 4 25 - 20 mins - 4+1 = 5
upvoted 2 times
...
sca88
3 months, 1 week ago
Selected Answer: B
Should be B. 15 minutes with CPU > 70%, will scale out of 1. 5 minutes of cooldown => anything happen. start count other 15 minutes before scale out again... but the question talk about 30 minutes, so only 1 instance will be added. Total instance after 30 minutes = 3
upvoted 2 times
...
Josh219
3 months, 2 weeks ago
Selected Answer: B
Scale Out Event 1 (Immediate Trigger): Autoscale detects high memory usage. Initiates scaling to 3 instances. Instance Increase Time: 15 minutes. Time 15 Minutes: 3rd instance is up and running. Cool Down Period: Begins (5 minutes). Time 20 Minutes: Cool Down Period ends. If memory usage still at 80%, triggers scaling to 4 instances. Instance Increase Time: 15 minutes. Time 35 Minutes: 4th instance would be up and running. However, this is beyond the 30-minute window we are considering only 3
upvoted 3 times
...
Karley7
4 months ago
People who think the answer to this question is D, what do you think the answer to the next question is? https://www.examtopics.com/discussions/microsoft/view/67544-exam-az-104-topic-4-question-65-discussion/
upvoted 1 times
Josh219
3 months, 2 weeks ago
its Box1: 3 Box2: 1
upvoted 1 times
...
...
0378d43
4 months ago
Selected Answer: B
15 mins 1 and then 5 mins cool and then remains 10 mins which does suffice the condition to scale out hence 2+1 =3
upvoted 2 times
...
Stunomatic
4 months, 1 week ago
After every 5 min cool down it check most recent 15 minutes status that is why answer is 5 Summary of Scaling Actions in 30 Minutes 15-Minute Mark: Scales up to 3 instances. 20-Minute Mark: Scales up to 4 instances. 25-Minute Mark: Scales up to 5 instances (maximum limit reached).
upvoted 2 times
...
magellan2050
4 months, 1 week ago
Selected Answer: C
Cooldown period only pauses the scaling operations but doesn't stop the metrics collection. Therefore we start with 2, after 15m +1. 3 consecutive cooldowns, no scaling but the metrics get collected, 15m +1 =4
upvoted 1 times
...
Dankho
4 months, 3 weeks ago
Selected Answer: D
Since it always stays above 70%, we increase after 15 minutes to 3, then after 20 to 4, then after 25 to 5, and then after 30 minutes 6, but since max is 5 instances, we stay at 5.
upvoted 1 times
...
itismadu
5 months ago
Selected Answer: D
Start at 2 instances, after 15 min, > 70%, then +1 instance = Total 3 Cooling 5 mins, (now 20mins) still >70%, then +1 instance = Total 4 Cooling 5 mins, (now 25 mins) still > 70%, then +1 instance = Total 5 Cooling 5 mins, (now 30 Min) still >70%, since max 5 instances, keep 5 instances only
upvoted 1 times
...
0378d43
5 months ago
Selected Answer: B
B since 15 mins+1 then 5 mins cooldown and then remaining 10 mins no scaling
upvoted 1 times
...
0378d43
5 months ago
B should be the correct ans
upvoted 1 times
...
Sholasleek
5 months, 1 week ago
answer is B 2 initial instances scales out after 15 mins +1 = 3 instances Cool down time of 5 mins, 10 min after cool down is still high but the scale up rule is for 15mins. the total instance count will be 3. https://learn.microsoft.com/en-us/training/modules/app-service-autoscale-rules/4-identify-factors
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