A SysOps administrator is tasked with configuring automated remediation to delete unencrypted Amazon EBS volumes immediately after they are created. The administrator decides to use AWS Config to evaluate compliance and run the remediation. Which two steps must the administrator perform to configure this automated operational response? (Select TWO.)
- Configure a remediation action within the AWS Config rule that targets the AWS-DeleteVolume Systems Manager Automation document.Cevap
- Create an IAM service role for Systems Manager Automation that contains permissions for ec2:DeleteVolume and trusts ssm.amazonaws.com to assume the role.Cevap
- CCreate an Amazon EventBridge rule that detects non-compliant evaluation results from AWS Config and targets the Systems Manager Automation document directly.
- DAdd sts:AssumeRole permissions to the IAM user policy of the administrator setting up the remediation to grant access to the remediation execution role.
- EEnable Amazon CloudWatch detailed monitoring to decrease the detection latency of the AWS Config rule evaluations to one minute.
Cevap
Configure a remediation action within the AWS Config rule that targets the AWS-DeleteVolume Systems Manager Automation document, and create an IAM service role for Systems Manager Automation that contains permissions for ec2:DeleteVolume and trusts ssm.amazonaws.com to assume the role.
To automate the deletion of non-compliant EBS volumes, the administrator must configure a remediation action directly in the AWS Config rule using the AWS-DeleteVolume Systems Manager document. Additionally, the Systems Manager service needs permissions to delete the volume on the user's behalf. This is achieved by creating an IAM service role containing the ec2:DeleteVolume action and configuring the trust policy to allow ssm.amazonaws.com to assume the role.
Adım Adım Çözüm
Anahtar Kavram
AWS Config native remediation allows SysOps administrators to associate AWS-managed or custom Systems Manager Automation documents directly with AWS Config rules. This requires configuring a service execution role with appropriate permissions and trust relationships.