exam questions

Exam AZ-300 All Questions

View all questions & answers for the AZ-300 exam

Exam AZ-300 topic 5 question 18 discussion

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

A company is migrating an existing on-premises third-party website to Azure. The website is stateless.
The company does not have access to the source code for the website. They do not have the original installer.
The number of visitors at the website varies throughout the year. The on-premises infrastructure was resized to accommodate peaks but the extra capacity was not used.
You need to implement a virtual machine scale set instance.
What should you do?

  • A. Use an autoscale setting to scale instances vertically
  • B. Create 100 autoscale settings per resource
  • C. Scale out by one instance when the average CPU usage of one of the instances is over 80 percent
  • D. Use Azure Monitor to create autoscale settings using custom metrics
  • E. Use an autoscale setting with unlimited maximum number of instances
  • F. Use a webhook to log autoscale failures
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
References:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-custom-metric

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
Avanade2023
Highly Voted 5 years, 1 month ago
The D is correct, because Scale In is also needed.
upvoted 17 times
...
azureexaminer
Highly Voted 4 years, 10 months ago
Since the company no longer have the installer or the source code, they can only lift and shift the onprem vm or physical server into Azure. The question also mentions that the infra was right sized which also means that there are at least 2 or more VMs/Physical Machines involved with the application. We also do not know if there was 2 or 5 or 10 or 20 machines handling the load. When creating the VMSS, we can specify our own VM images. (https://azure.microsoft.com/en-us/services/virtual-machine-scale-sets/#overview) When creating a VMSS, we can also specify a custom scale policy to scale up and down when necessary. Answer C mentions scaling up by 1. While this answer is suitable to a certain extent and there is no mention about saving costs, it doesn’t mention scaling down which means that resources are not optimised when load goes down. From an architect perspective, it would in the interest of the company to save on cost instead of leaving unnecessary VMs running. My answer preference is therefore ‘D’.
upvoted 7 times
admins
4 years, 8 months ago
Correct, although it doesnt explicitly state that they want to optimize cost, that is what a scale set is designed for. This answer is the only answer which explains how the scale set would scale back in as well as scale out.
upvoted 1 times
uzairahm007
4 years, 5 months ago
But the link https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-overview#:~:text=Azure%20Monitor%20autoscale%20applies%20only,Virtual%20Machines%20(availability%20sets). says: "You can also leverage your own custom metrics that your application(s) may be emitting." it has no mention that application is emitting any metrics and you would need to modify the code to emit any new custom metric hence D is not correct the only option that make sense in C which might not be 100% correct but by rule of elimination it makes most sense
upvoted 1 times
...
...
...
AhmedAL
Most Recent 4 years, 7 months ago
I think you need the source code to add AppInsight for D.... should be C
upvoted 1 times
...
Sizar
4 years, 10 months ago
It can't be C because the scale out will be done on the average CPU usage of one instance not all instances. It means that as long the first VM is busy after the cooldown period it will increase one more and so on.
upvoted 1 times
...
fnovales
4 years, 11 months ago
In order to use Azure monitor to autoscale you need to install Application Insights into the web app but you don't have de code then should be C?
upvoted 4 times
...
AnshMan
4 years, 11 months ago
Azure Monitor autoscale applies only to Virtual Machine Scale Sets, Cloud Services, App Service - Web Apps, Azure Data Explorer Cluster , Integration Service Environment and API Management services? Since we cannot create a VM scale set to an exisitng VM. Are we assuming the VM/Website is hosted to a WebAPP and going to use the Azure Monitor to enable Autoscaling? as per the link. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-custom-metric
upvoted 2 times
...
jivom
4 years, 11 months ago
People stating scale out is not needed, are too black or white. You don' t know which Size they chose for the VMSS, maybe it's a very weak VM which means scaling in and out is relevant... After all they moved from onprem so it's not like they are forced to use the same settings in Azure. C and D both work for me
upvoted 1 times
...
cacasodo
4 years, 11 months ago
For further knowledge: https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-custom-metric
upvoted 3 times
...
AnujD
5 years ago
The ques is simple but demands well thoughts. Only scale out is not required. Since the usage is unknown Scale in also needs to be considered. Hence Option D as based on Metrics VMs will be set.
upvoted 5 times
...
Amrinder101
5 years, 4 months ago
it could be C as well
upvoted 4 times
SIDNEY1
4 years, 12 months ago
No it couldn't, they said the extra capacity wasn't used, so it doesn't *look* like the actual utilization was 80% or higher. Cryptic question, but I reckon the only answer can be D.
upvoted 2 times
tartar
4 years, 8 months ago
D is ok
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