An enterprise manages its multi-account environment using AWS Organizations. The central DevOps team uses AWS CloudFormation StackSets to deploy and update a standard security baseline OU-wide, which includes configuration for an Amazon S3 logging bucket and approved EC2 instance types. A security audit reveals that several member accounts have manually disabled S3 Block Public Access and launched unauthorized EC2 instance types. The enterprise wants to implement a solution that detects and automatically remediates this configuration drift without affecting other resources, and prevents future unauthorized changes while allowing local administrators to manage approved services. Which two actions should the Solutions Architect take to meet these requirements? (Select TWO.)
- Deploy AWS Config managed rules for S3 public access and approved instance types across the organization using an AWS Config organizational conformance pack, and configure an AWS Systems Manager Automation runbook as the automatic remediation target.Answer
- Apply a Service Control Policy (SCP) to the Organizational Unit (OU) that denies s3:PutBucketPublicAccessBlock and s3:DeleteBucketPolicy actions unless the caller is the StackSets execution role, and denies ec2:RunInstances for unauthorized instance types.Answer
- CCreate an OU-level Service Control Policy (SCP) that grants the AWS CloudFormation StackSets execution role permissions to manage the S3 buckets and EC2 instances, thereby overriding any local IAM policies that restrict these administrative operations.
- DEnable AWS CloudFormation native drift detection on the StackSet, and configure an Amazon EventBridge rule that detects a DRIFTED status to trigger a Lambda function that executes UpdateStackInstances to automatically overwrite manual configuration changes.
- EEncrypt the S3 logging buckets in each member account using the default AWS-managed KMS key (aws/s3) and attach a custom key policy to grant the central DevOps role cross-account access to verify configuration compliance.