An enterprise manages its multi-account AWS environment using AWS Organizations. The central DevOps team uses AWS CloudFormation StackSets to deploy and update application infrastructure, including security groups and Amazon S3 buckets, across multiple member accounts. The deployment artifacts are stored in a central S3 bucket and encrypted using a Customer Managed Key (CMK) in the central DevOps account.
Recently, several stack updates failed because local administrators in the member accounts had manually modified security group rules and S3 bucket policies, causing configuration drift. Additionally, the member accounts are unable to access the deployment artifacts due to KMS decryption failures.
Which two actions should the Solutions Architect take to automate drift remediation and resolve the cross-account decryption failures? (Select two.)
- Update the key policy of the Customer Managed Key in the central DevOps account to grant decrypt permissions (kms:Decrypt) to the IAM execution roles in the member accounts, and ensure these roles also have local IAM policies allowing the KMS decrypt action.Cevap
- Deploy AWS Config rules across the member accounts to monitor security groups and S3 bucket configurations, and configure AWS Systems Manager Automation as a remediation action to automatically restore drifted resources to their compliant configurations.Cevap
- CEnable the AWS-managed KMS key (aws/s3) in the central DevOps account to encrypt the artifacts, and modify its key policy to delegate cross-account decrypt permissions to the IAM execution roles in the member accounts.
- DEnable automatic drift remediation directly within the AWS CloudFormation StackSet configuration parameters to automatically detect configuration changes and perform a stack update to overwrite manual modifications in target accounts.
- EAttach a Service Control Policy (SCP) to the member account Organizational Units (OUs) that grants the kms:Decrypt permission for the central DevOps account's KMS key, eliminating the need for local IAM policy configurations in the member accounts.