A SysOps administrator is configuring automated remediation in AWS Config for the managed rule `iam-user-mfa-enabled`. When an IAM user without Multi-Factor Authentication (MFA) is detected, the administrator wants to automatically deactivate the user's console access using the `AWS-DisableIAMUserAccess` Systems Manager (SSM) Automation document.
Which two configurations are required to successfully set up this event-driven remediation? (Select TWO.)
- Configure the remediation action in AWS Config to use the `AWS-DisableIAMUserAccess` document, and map the `AutomationAssumeRole` parameter to an IAM role that permits Systems Manager to execute the remediation.Cevap
- Attach an IAM policy to the administrator's IAM identity that grants the `iam:PassRole` permission for the IAM role used by the Systems Manager Automation execution.Cevap
- CConfigure the IAM role used by the Systems Manager Automation document with a trust policy that includes the administrator's IAM identity as a trusted entity, which replaces the need for `iam:PassRole` permissions.
- DCreate an Amazon EventBridge rule that triggers on AWS Config compliance changes, and configure a CloudWatch metric filter to execute the `AWS-DisableIAMUserAccess` document directly.
- EEnable detailed monitoring on AWS Config with a 1-minute interval to ensure the `iam-user-mfa-enabled` compliance status changes are evaluated and sent to Systems Manager without the standard 5-minute delay.
Cevap
To configure the event-driven remediation, the administrator must configure the remediation action in AWS Config to use the `AWS-DisableIAMUserAccess` document with the `AutomationAssumeRole` parameter set to a service role, and grant the administrator's IAM identity the `iam:PassRole` permission for that execution role.
The correct configurations involve using AWS Config's remediation action to target the `AWS-DisableIAMUserAccess` Systems Manager Automation document, mapping the execution role parameter to an IAM role with the correct permissions. Additionally, the administrator's IAM identity must have `iam:PassRole` permissions to pass the execution role to Systems Manager.
Adım Adım Çözüm
Anahtar Kavram
Configuring automated remediation in AWS Config using Systems Manager Automation documents and IAM execution permissions.