A company requires all Amazon S3 buckets to have default encryption enabled. A SysOps administrator has configured an AWS Config rule named s3-bucket-default-encryption-enabled to detect non-compliant buckets. The administrator wants to use Amazon EventBridge and AWS Systems Manager Automation to automatically enable server-side encryption on non-compliant buckets. Which of the following actions must the administrator perform to configure this remediation pipeline? (Select TWO.)
- Create an Amazon EventBridge rule that triggers on AWS Config compliance status changes, and configure the target as the Systems Manager Automation document AWS-EnableS3BucketEncryption.Cevap
- Configure the EventBridge rule target with an IAM execution role that has permissions to execute ssm:StartAutomationExecution on the target document and iam:PassRole for the Systems Manager Automation assume role.Cevap
- CCreate an AWS Config remediation action that routes events directly to an Amazon EventBridge API destination, using an Input Transformer to map the AWS Config event payload into an SSM Automation API call.
- DConfigure the Systems Manager Automation service role to assume the EventBridge service role, and add events.amazonaws.com as a trusted principal in the S3 bucket policy.
- EConfigure an Amazon EventBridge rule to detect S3 PutBucketEncryption API calls in AWS CloudTrail, and select a Systems Manager Run Command target to execute a script that enables encryption.
Cevap
To configure this automated remediation pipeline, the administrator must create an Amazon EventBridge rule that triggers on AWS Config compliance status changes and targets the AWS-EnableS3BucketEncryption Systems Manager Automation document. Additionally, the administrator must configure the EventBridge rule target with an IAM execution role that has permissions to execute ssm:StartAutomationExecution on the target document and iam:PassRole for the Systems Manager Automation assume role.
The correct response involves creating an EventBridge rule that triggers when AWS Config detects a non-compliant resource and targets the Systems Manager Automation document for enabling S3 encryption. It also requires granting the EventBridge execution role the necessary ssm:StartAutomationExecution and iam:PassRole permissions to initiate the remediation.
Adım Adım Çözüm
Anahtar Kavram
Configuring automated remediation of non-compliant resources using AWS Config compliance status events, Amazon EventBridge rules, and AWS Systems Manager Automation targets.