A company manages a multi-account AWS environment using AWS Organizations. The DevOps team uses AWS CloudFormation StackSets to deploy and manage application infrastructure, including EC2 instances and security groups, across multiple target accounts. The CloudFormation templates are stored in an Amazon S3 bucket within the administrator account. Recently, manual changes made to the security groups in a target account caused subsequent StackSet updates to fail due to configuration drift. Additionally, the DevOps team is planning to encrypt the S3 bucket containing the templates and needs to ensure that StackSets can still deploy resources cross-account. Which of the following actions should the DevOps engineer take to address these requirements? (Select TWO.)
- Encrypt the Amazon S3 bucket containing the templates using a Customer Managed Key (CMK) in the administrator account, and configure the key policy to grant the StackSet execution role (AWSCloudFormationStackSetExecutionRole) in the target accounts permissions for the kms:Decrypt and kms:GenerateDataKey actions.Answer
- Configure the AWS Config rule cloudformation-stack-drift-detection-check in the target accounts, and set up an Amazon EventBridge rule that detects non-compliant drift events and triggers an AWS Systems Manager Automation runbook to remediate the drifted resources.Answer
- CEncrypt the Amazon S3 bucket using the default AWS-managed KMS key for Amazon S3 (aws/s3) in the administrator account, and configure the S3 bucket policy to grant cross-account read access to the StackSet execution roles in the target accounts.
- DAttach a Service Control Policy (SCP) to the target Organizational Unit (OU) that explicitly grants kms:Decrypt and cloudformation:* permissions to automatically allow the target account roles to access templates and deploy resources.
- EInstruct administrators to manually modify the drifted resources back to their original state in the target accounts, and then use the AWS CLI to manually update the CloudFormation stack drift status to IN_SYNC.