A company uses AWS Organizations to manage a dedicated sandbox account for trainee training. To control costs, a SysOps administrator must configure a system that automatically applies a restrictive Service Control Policy (SCP) to block new resource creation if the monthly spend on the sandbox account exceeds $1,000. Which of the following solutions will meet these requirements with the least administrative effort?
- Configure a monthly cost budget of $1,000 in AWS Budgets. Add a budget action targeting the sandbox account to attach the restrictive SCP when the threshold is exceeded, utilizing an IAM role that allows the budgets.amazonaws.com service principal to assume it.Cevap
- BConfigure an AWS Cost Anomaly Detection monitor with a threshold of $1,000. Add an anomaly subscription to automatically apply the restrictive SCP to the sandbox account using native anomaly action policies.
- CConfigure a monthly cost budget of $1,000 in AWS Budgets with an SCP attachment action. Assign an IAM role to the action, and grant the administrator the iam:AssumeRole permission on the role instead of the required iam:PassRole permission.
- DCreate an Amazon CloudWatch billing alarm for $1,000. Configure the alarm to directly trigger an AWS Systems Manager Automation document using a CloudWatch alarm action to attach the SCP to the sandbox account.
Cevap
Configure a monthly cost budget of $1,000 in AWS Budgets. Add a budget action targeting the sandbox account to attach the restrictive SCP when the threshold is exceeded, utilizing an IAM role that allows the budgets.amazonaws.com service principal to assume it.
AWS Budgets natively supports Budgets Actions, which allows you to define automated actions to execute when a budget threshold is exceeded. These actions include applying Service Control Policies (SCPs) to AWS Organizations accounts. To enable this, an IAM role with appropriate policies must be created that trusts the 'budgets.amazonaws.com' service principal. This enables automatic and low-effort cost control compliance.
Adım Adım Çözüm
Anahtar Kavram
AWS Budgets Actions with AWS Organizations Integration