A technology company implements compliance monitoring using AWS Config. The security team deploys a conformance pack containing a custom Config rule that monitors security group configurations. The conformance pack template specifies an automatic remediation configuration that calls a custom Systems Manager (SSM) Automation document to modify non-compliant security groups. The Config remediation execution configuration uses a dedicated IAM role (ConfigRemediationRole) to initiate the remediation. The custom SSM Automation document contains a parameter AutomationAssumeRole, which requires passing a separate IAM role (SSMExecutionRole) to perform the actual resource modifications. Although AWS Config marks the security groups as non-compliant, the automated remediation consistently fails to execute. The execution logs show that the Config remediation role is unable to trigger the SSM Automation. Which action must the administrator take to resolve this issue?
- AUpdate the trust policy of the SSMExecutionRole to allow the config.amazonaws.com service principal to assume it.
- BCreate an Amazon EventBridge rule that triggers on AWS Config compliance change events and targets the SSMExecutionRole to run the automation.
- Attach an IAM policy to the ConfigRemediationRole that grants the iam:PassRole permission for the SSMExecutionRole.Cevap
- DAttach a policy to the AWS Config service-linked role that grants the sts:AssumeRole permission on the SSMExecutionRole.