A SysOps administrator is configuring a monthly cost budget in AWS Budgets for a sandbox account. The administrator wants to configure an AWS Budgets Action that automatically attaches a restrictive IAM policy to prevent further resource creation when actual spending exceeds . Which of the following configurations are required to allow AWS Budgets to successfully execute this action? (Select TWO.)
- An IAM execution role with a trust policy that allows the budgets.amazonaws.com service principal to assume the roleCevap
- The iam:PassRole permission granted to the IAM identity that is creating the budgetCevap
- CAn IAM execution role with a trust policy that allows the billing.amazonaws.com service principal to assume the role
- DAn AWS Cost Anomaly Detection monitor configured to trigger the target IAM role when the budget threshold is crossed
- ECost allocation tags enabled in the billing console for the resources targeted by the IAM policy
Cevap
The configuration requires creating an IAM execution role that trusts the budgets.amazonaws.com service principal, and granting the iam:PassRole permission to the IAM user or role creating the budget.
The correct options require establishing a trust relationship with the budgets.amazonaws.com service principal on the execution role, and granting the iam:PassRole permission to the IAM identity configuring the budget. AWS Budgets assumes the execution role to perform the configured action, such as attaching a policy. The user setting up the budget must be authorized to pass this execution role to AWS Budgets.
Adım Adım Çözüm
Anahtar Kavram
AWS Budgets Actions permissions, including service trust relationships and the iam:PassRole permission.