AZ-303 Exam QuestionsBrowse all questions from this exam

AZ-303 Exam - Question 263


You monitor Azure virtual machines by using Azure Monitor.

You plan to restart the virtual machines when CPU usage exceeds 95 percent for more than 30 minutes.

You need to create an alert in Azure Monitor to restart the virtual machines. The solution must minimize administrative effort.

Which type of action should you use in the alert?

Show Answer
Correct Answer: C

To minimize administrative effort while enabling automatic action based on CPU usage, an Automation Runbook is the most suitable choice. Automation Runbooks allow you to create scripts to perform routine tasks such as restarting a virtual machine. These scripts can be integrated directly into Azure Monitor alert rules, allowing them to be triggered automatically when the specified condition (CPU usage exceeds 95 percent for more than 30 minutes) is met. This approach simplifies administration as it leverages pre-configured workflows that can be reused without the need to develop new logic from scratch.

Discussion

9 comments
Sign in to comment
jank
Feb 28, 2021

C is correct. Check yourself in Azure Portal -> Monitor -> Create alert rule -> create action -> automation runbook -> select "restart VM" from dropdown. Every easy, no admin effort. If you choose Logic App instead of automation runbook, you actually need to develop/design your logic app to restart the VM, which is more effort.

syu31svc
Aug 28, 2021

ITSM - IT Service Management Connector (ITSMC) allows you to connect Azure to a supported IT Service Management (ITSM) product or service. Webhook - Webhook actions allow you to invoke a single HTTP POST request. Logic App - This action is used to invoke a logic app. Answer is C

Kraviecc
Jan 16, 2021

Correct

Said_kram
Jan 19, 2021

"The solution must minimize administrative effort" eq. Logic App

pentium75
Aug 3, 2021

A Logic App can reboot a VM?

AberdeenAngus
Feb 13, 2022

Difficult choice I think, runbook and logic app can both do it and are both options in an action group. The whole point of a logic app is that it's simpler because you haven't got to write code. Personally I think I'll go runbook, more orthodox, but I may change my mind!

Stephan99
Jan 30, 2021

Correct Use a runbook (to restart a VM, or scale a VM up or down) https://docs.microsoft.com/en-us/learn/modules/incident-response-with-alerting-on-azure/6-activity-log-alerts

prashantjoge
Feb 9, 2021

"You need to create an alert in Azure Monitor to restart the virtual machines." - Runbooks can be triggered if an alert is generated. But the question relates to triggering the alert. I would go with logic app

awsazurelearner
Feb 26, 2021

C is correct: https://docs.microsoft.com/en-us/azure/automation/automation-alert-metric If you want a simple Alert, use a runbook. If you have a complicated set of rules and logic you need to apply, then use Logic Apps.

Yiannisthe7th
Jun 30, 2021

Answer is correct. We need Automation Runbook which can be triggered from the Alerts directly and which gets Events or Logs.

quantumray
Dec 8, 2021

Question appeared On AZ-303 exam on 08/12/2021 - 49 questions, 4Q - Fabrikan case study

moon2351Option: C
Feb 8, 2022

C is correct