A company uses AWS Organizations to manage multiple accounts. A SysOps administrator is configuring a monthly cost budget of 1,200) of the budgeted amount. Which of the following configuration steps are required to ensure the budget action executes successfully? (Select TWO.)
- Create an IAM role with a trust policy that allows the budgets.amazonaws.com service principal to assume the role, and attach an IAM policy to the role that allows the ec2:StopInstances and ec2:DescribeInstances actions.Cevap
- Attach an IAM policy to the SysOps administrator's identity that grants the iam:PassRole permission for the specific execution IAM role used by the budget action.Cevap
- CCreate an AWS Cost Anomaly Detection monitor with a threshold of $1,200, and configure an anomaly subscription to run an automated action to stop the EC2 instances.
- DCreate an Amazon CloudWatch billing alarm for estimated charges with a static threshold of $1,200, and add an EC2 action directly to the alarm to stop the running instances.
Cevap
To configure the AWS Budgets action successfully, the administrator must create an IAM execution role with a trust policy allowing the budgets.amazonaws.com service principal to assume the role and permissions to stop EC2 instances, and also attach an IAM policy to the administrator's identity granting the iam:PassRole permission for the execution role.
The correct configuration requires creating an IAM role that the AWS Budgets service principal can assume to stop the EC2 instances, and granting the administrator the iam:PassRole permission to pass that role to the Budgets service. This ensures the service has the authority to execute the stop action when the forecasted threshold is exceeded.
Adım Adım Çözüm
Anahtar Kavram
AWS Budgets Actions configuration requirements, specifically the target execution role trust relationships and user PassRole permissions.
Tahmini Süre:2m 0s