Soru

Zorluk: OrtaAWS Budgets and Cost Alerts

A SysOps administrator is configuring a monthly AWS budget for a data processing account to prevent cost overruns. The administrator wants to configure a budget action to automatically stop a specific Amazon RDS DB instance if the actual monthly spend exceeds 5,0005,000. Which of the following configurations are required to implement this budget action? (Select TWO.)

  1. Create an IAM role with a trust policy that allows the AWS Budgets service principal (budgets.amazonaws.com) to assume the role, and attach an identity-based policy allowing rds:StopDBInstance permissions.Cevap
  2. Grant the iam:PassRole permission for the execution role to the SysOps administrator who creates the budget action.Cevap
  3. C
    Create an AWS Cost Anomaly Detection monitor with a threshold of 5,0005,000 and configure a subscription to trigger an AWS Lambda function to stop the RDS instance.
  4. D
    Configure an Amazon CloudWatch billing alarm for EstimatedCharges that directly stops the Amazon RDS instance when the threshold is reached.
  5. E
    Define a Service Control Policy (SCP) at the AWS Organizations root that denies rds:StartDBInstance when the budget limit is breached.

Cevap

Creating an IAM role with a trust policy that allows the AWS Budgets service principal to assume the role with the necessary RDS permissions, and granting the SysOps administrator the permission to pass that role.
To configure an AWS Budgets action that stops an RDS instance, you must create an IAM execution role that the AWS Budgets service principal (budgets.amazonaws.com) can assume. This role requires the rds:StopDBInstance permission. Additionally, the administrator who configures the budget action must have the iam:PassRole permission to pass this execution role to the AWS Budgets service.

Adım Adım Çözüm

1
Configure the IAM execution role for AWS Budgets.
An IAM role is created with a trust relationship allowing budgets.amazonaws.com to assume it, and it has rds:StopDBInstance permissions.
AWS Budgets requires delegated permissions to stop the database instance on the user's behalf.
2
Assign the PassRole permission to the administrator.
The administrator's IAM policy is updated to include the iam:PassRole action targeting the Budgets execution role.
This permission is necessary to authorize the administrator to pass the role to the AWS Budgets service principal.

Anahtar Kavram

AWS Budgets Actions configuration, specifically the IAM role trust policy and PassRole requirements for automated instance stop actions.
Tahmini Süre:2m 0s
Bu soruyu puanla