Home » Microsoft » AZ-300 v.2 » What should you do
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 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 a webhook to log autoscale failures.
B. Use an autoscale setting to scale instances vertically.
C. Use only default diagnostics metrics to trigger autoscaling
D. Use Azure Monitor to create autoscale settings using custom metrics.
Correct Answer: D
Explanation/Reference:
Explanation:
By default, Resource Manager-based Virtual Machines and Virtual Machine Scale Sets emit basic (host-level) metrics. In addition, when you configure diagnostics data collection for an Azure VM and VMSS, the Azure diagnostic extension also emits guest-OS performance counters (commonly known as "guest-OS metrics"). You use all these metrics in autoscale rules.
Note: In-guest VM metrics with the Azure diagnostics extension
The Azure diagnostics extension is an agent that runs inside a VM instance. The agent monitors and saves performance metrics to Azure storage. These performance metrics contain more detailed information about the status of the VM, such as AverageReadTime for disks or PercentIdleTime for CPU. You can create autoscale rules based on a more detailed awareness of the VM performance, not just the percentage of CPU usage or memory consumption.
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-custom-metric
https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-common-metrics
correct is C why do you want custom metrics if you already know that the app is very stable?
D is correct
correct answer is C