exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 1 question 7 discussion

Actual exam question from Microsoft's AZ-304
Question #: 7
Topic #: 1
[All AZ-304 Questions]

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.

  • A. Azure Logic Apps
  • B. Azure Monitor alerts
  • C. the spending limit of an Azure account
  • D. Cost Management budgets
  • E. Azure Log Analytics alerts
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

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
arseyam
Highly Voted 4 years, 4 months ago
Answer should be B and D Spending limit on Azure account affects all the subscription not just a specific resource group and it is a feature provided for specific subscription types like the free one. The way to achieve the requirements is by doing the following: 1. Azure Monitor > Alerts > Manage Actions > create action groups with action type "Automation Runbook" > stop VM 2. Create budgets scoped by the resource groups > in the alert section choose the previously created action groups.
upvoted 140 times
agimenez
3 years, 9 months ago
Some resource is needed to shut down the VMS. The spending limit of an Azure account does not have this behavior. I am not sure whether a Logic App or Automation Runbook.
upvoted 2 times
GetulioJr
3 years, 8 months ago
answer is correct and can be checked in this link: REF: https://abundantcode.com/azure-qa-6-spending-limit-and-resources-shutdown/
upvoted 2 times
cfsxtuv33
3 years, 6 months ago
You are correct, at least the link gives the correct information. Thank you for this link, I agree, the provided answer is correct!
upvoted 2 times
...
itenginerd
3 years, 1 month ago
The problem with spending limits is they don't exist on "real" subscription types. Nobody with production running in Azure should have spending limits available to them. PayGo, EA, CSP, Azure Plan--none of these subscription types support spending limits. https://azure.microsoft.com/en-us/support/legal/offer-details/
upvoted 1 times
...
...
...
cards
3 years, 4 months ago
When the budget thresholds you've created are exceeded, only notifications are triggered. None of your resources are affected and your consumption isn't stopped.
upvoted 3 times
...
NickGR
4 years, 4 months ago
Thats correct arseyam. You need to create a budget for the resource group scope and set an alert with an action group to shutdown the VM.
upvoted 4 times
...
sanketshah
4 years, 3 months ago
B and D are correct answer.
upvoted 2 times
...
...
Elecktrus
Highly Voted 4 years, 4 months ago
Answer is B & D According to the MS-Article: https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario You need to have: 1) Azure Budget 2) Azure Monitor to create an alert and actions for this alert (Action Groups) 3) the action group run the App Logic Workflow The answer can include only 2 actions, so step 1) -> D and step 2) -> B
upvoted 39 times
jallaix
4 years ago
Wrong because the provided MS article associates an action group directly to a budget => No Azure Monitor alert is involded. But the document talks about Logic App => answer is: A + D.
upvoted 24 times
sjai
3 years, 7 months ago
A & D. Here is the snippet from the docs You're done with all the supporting components needed to effectively orchestrate your budget. Now all you need to do is create the budget and configure it to use the action group you created.
upvoted 1 times
...
FinMessner
3 years, 3 months ago
Wrong. https://andreas-wilm.github.io/2020-06-01-enforce-budgets/
upvoted 1 times
...
...
soi
4 years, 4 months ago
true & final answer
upvoted 5 times
...
Lexa
4 years, 3 months ago
Totally agree
upvoted 1 times
...
...
walexkino
Most Recent 2 years, 4 months ago
Selected Answer: AD
Thats the right answer B and D
upvoted 1 times
...
Mozammelhosain
2 years, 4 months ago
ms word is very important software, because its a soft with any foundation exm: www.gefaridf.com
upvoted 1 times
...
A_GEE
2 years, 4 months ago
Selected Answer: BD
Agree with arseyam
upvoted 2 times
...
AubinBakana
2 years, 8 months ago
Selected Answer: AD
Create an Azure Automation Runbook to stop VMs by using webhooks. Create an Azure Logic App to be triggered based on the budget threshold value and call the runbook with the right parameters. Create an Azure Monitor Action Group that will be configured to trigger the Azure Logic App when the budget threshold is met. Create the Azure budget with the wanted thresholds and wire it to the action group.
upvoted 2 times
AubinBakana
2 years, 8 months ago
Update: Here the budget would have to be set against the resource group. While my choice is still A & D, I have the wrong explanation here.Please ignore it. I wish there were a delete, undo or update uption.
upvoted 1 times
...
...
VijayRaja2000
2 years, 10 months ago
What I dont understand is that everyone here talks about the VM which is not at all part of the question. What happens if a particular department uses some other resources?
upvoted 2 times
...
VijayRaja2000
2 years, 11 months ago
As explained in the following link, once you set the "Spending limit", on reaching this limit of consumption, the resources that you are using is automatically shut down. So you dont need any monitoring or action group. This configuration of spending limit is part of Azure Cost management. So, for me the given answers of C and D looks fine. I dont understand why everyone is talking about the VM as nothing about VM is mentioned in the given question. https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/spending-limit
upvoted 1 times
AubinBakana
2 years, 8 months ago
They are talking about Azure Spending limit here, which the limit for the subscription, not just a particular resource
upvoted 1 times
...
...
Alezz
3 years ago
Refer to this link https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario#create-an-azure-logic-app-for-orchestration
upvoted 1 times
...
kanweng
3 years, 1 month ago
the example https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario Budget alert --> (Monitor alerts --Action group, Actions) ---> logic app (end email and http)--> http request runbook by webhook url you don't need to have the logic app anyway. Budget alert --> (Monitor alerts --Action group, Actions) ---> Azure automation runbook
upvoted 1 times
...
kanweng
3 years, 1 month ago
i will only select A (Logic app) if you need send Email , then shutdown (call azure monitor alert, then action group (runbook). we dont need send email, therefore ,the answer is B & D
upvoted 1 times
...
itenginerd
3 years, 1 month ago
This one's not straightforward. The real catch here is that the best doc I've seen in this discussion describes using 3 of the 4 technologies--A, B, and D. https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario
upvoted 1 times
...
LukaG
3 years, 1 month ago
Selected Answer: AD
The answer is A & D. Microsoft wrote a nice piece about it: https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario
upvoted 2 times
...
Jcbrow27
3 years, 1 month ago
Selected Answer: AD
AD you need a logic app.
upvoted 2 times
...
arun
3 years, 1 month ago
Selected Answer: AD
A, D please refer https://docs.microsoft.com/en-us/azure/cost-management-billing/manage/cost-management-budget-scenario#create-an-azure-logic-app-for-orchestration.... it explains exact same scenario.. Budgets can be set up to trigger a notification when a specified threshold is met. You can provide multiple thresholds to be notified at and the Logic App.. The logic app will be used to shut down all VMs in the resource group when threshold met.
upvoted 2 times
...
Dawn7
3 years, 1 month ago
Selected Answer: BD
I think B&D are correct.
upvoted 2 times
...
plmmsg
3 years, 1 month ago
A. Azure Logic App - to shut down the server D. Cost Management budgets - check against the budget
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