A SysOps administrator is managing an AWS account for a project team that has a strict monthly spending limit of . The administrator must set up a mechanism that alerts the team via email when the forecasted monthly spend is projected to exceed the budget. Additionally, if the actual spend reaches of the limit, the mechanism must automatically restrict the team's ability to launch new resources by applying a restrictive IAM policy to their development group. Which AWS service and configuration should the administrator use to meet these requirements with the least operational overhead?
- Create a monthly cost budget of in AWS Budgets. Add an alert rule for when the forecasted spend exceeds of the budget to send an email notification. Add an AWS Budgets Action triggered when actual spend reaches that attaches the restrictive IAM policy to the target group, using a custom IAM execution role that allows the budgets.amazonaws.com service principal to assume it.Cevap
- BCreate an Amazon CloudWatch billing alarm with a threshold of based on the EstimatedCharges metric. Configure the alarm to send an email notification via Amazon SNS and use a built-in CloudWatch alarm action to automatically attach the restrictive IAM policy to the IAM group when the alarm enters the ALARM state.
- CCreate an AWS Cost Anomaly Detection monitor for the account. Set up an anomaly subscription with a threshold of to send email alerts, and configure the monitor to automatically apply the restrictive IAM policy to the IAM group when an anomaly is detected.
- DCreate a monthly cost budget of in AWS Budgets. Add an alert rule for forecasted spend to send an email. Add an AWS Budgets Action to attach the IAM policy to the group, but do not assign a custom IAM execution role, relying on the default AWS Budgets service-linked role to perform the policy attachment.
Cevap
Create a monthly cost budget of in AWS Budgets, configure a forecasted spend alert for email notification, and use AWS Budgets Actions to attach the restrictive IAM policy using a custom IAM execution role.
AWS Budgets is the correct tool because it allows tracking costs against a static monthly threshold () and supports alerts based on forecasted spend. It also natively supports AWS Budgets Actions, which can execute automated tasks such as attaching a restrictive IAM policy to an IAM group. This action requires a custom IAM execution role that grants the AWS Budgets service principal permission to assume it.
Adım Adım Çözüm
Anahtar Kavram
AWS Budgets and Cost Alerts
Tahmini Süre:1m 30s