Azure Subscription and Resource Group Management for Department Spending Limits | AZ-304 Exam Question

How to Automatically Shut Down Azure Compute Resources When Department Reaches Spending Limit

Question

You have an Azure subscription that is linked to an Azure Active Directory (Azure AD) tenant. The subscription contains 10 resource groups, one for each department at your company.

Each department has a specific spending limit for its Azure resources.

You need to ensure that when a department reaches its spending limit, the compute resources of the department shut down automatically.

Which two features should you include in the solution? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

CD

C: The spending limit in Azure prevents spending over your credit amount. All new customers who sign up for an Azure free account or subscription types that include credits over multiple months have the spending limit turned on by default. The spending limit is equal to the amount of credit and it can't be changed.

D: Turn on the spending limit after removing

This feature is available only when the spending limit has been removed indefinitely for subscription types that include credits over multiple months. You can use this feature to turn on your spending limit automatically at the start of the next billing period.

1. Sign in to the Azure portal as the Account Administrator.

2. Search for Cost Management + Billing.

3. Etc.

https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/spending-limit

To ensure that compute resources for each department shut down automatically when they reach their spending limit, you need to use Azure Monitor alerts and Cost Management budgets as part of your solution.

Azure Monitor alerts enable you to create alerts on metrics and logs that are generated by Azure resources. You can use Azure Monitor alerts to monitor resource usage and create alerts when specific conditions are met. In this case, you can create an alert that triggers when a department's spending limit is reached. When the alert is triggered, you can use Azure Automation to shut down the compute resources associated with that department.

Cost Management budgets enable you to set spending limits for each department's Azure resources. You can create a budget for each department, and set the spending limit for that department. When the spending limit is reached, Cost Management sends an alert to the department's administrators. You can then use Azure Monitor alerts to trigger the shutdown of the compute resources associated with that department.

Azure Logic Apps and Azure Log Analytics alerts are not required for this solution. Azure Logic Apps is a workflow automation platform, while Azure Log Analytics alerts are used to monitor logs and events generated by Azure resources. While they may be useful in other scenarios, they are not required for this solution.