An enterprise manages its multi-account environment using AWS Organizations. The central DevOps team uses AWS CloudFormation StackSets to deploy baseline logging infrastructure, which consists of an Amazon S3 bucket and an AWS KMS Customer Managed Key (CMK) used to encrypt the bucket, to all member accounts in a specific Organizational Unit (OU). Recently, local administrators in member accounts have manually modified the S3 bucket policies and KMS key policies to grant permissions to local application roles, causing security configuration drift and audit failures. The Solutions Architect must design a solution that automatically detects this configuration drift, remediates the resources to match the approved CloudFormation baseline, and prevents local administrators from disabling the detection or remediation mechanisms. Which two of the following configuration and governance actions should the Solutions Architect implement to achieve this goal?
- Deploy an AWS Config Organization Conformance Pack from the management account containing rules that check S3 bucket and KMS key compliance, and configure auto-remediation using an AWS Systems Manager (SSM) Automation document that executes using a local IAM role with permissions to restore the policies.Answer
- Attach a Service Control Policy (SCP) to the member accounts' OU that denies any actions to delete or modify AWS Config recorders, delivery channels, conformance packs, and the local IAM role used for Systems Manager remediation, except when performed by a federated administrator role.Answer
- CAttach a Service Control Policy (SCP) to the member accounts' OU that explicitly allows the Systems Manager service to perform cross-account remediation of the S3 bucket and KMS key policies, granting the required permissions directly without local IAM role configurations.
- DModify the CloudFormation template to use an AWS managed key instead of a Customer Managed Key (CMK) for encrypting the S3 bucket, and use the central DevOps account to update the key policy to delegate permission management to the local applications.
- EEnable AWS CloudFormation automatic drift detection on the StackSet, and configure an Amazon EventBridge rule in each member account that triggers on stack status changes to run a Systems Manager (SSM) Automation document that executes a local stack update with a ForceUpdate parameter.