A company uses AWS CloudFormation StackSets to deploy application infrastructure across multiple AWS accounts in an AWS Organization. The application requires secure, cross-account access to environment-specific credentials stored in a central operations account. The infrastructure team has also noticed that local administrators occasionally perform manual configuration changes directly on the resources within their individual accounts, leading to configuration drift. The Solutions Architect needs to implement a solution that automates drift detection and remediation while securing the cross-account dynamic parameters. Which of the following actions should the Solutions Architect take to meet these requirements? (Select TWO.)
- Encrypt the credentials in AWS Systems Manager Parameter Store using an AWS KMS Customer Managed Key (CMK), and update the key policy to grant decryption permissions to the application roles in the target accounts.Answer
- Deploy AWS Systems Manager State Manager associations to automatically enforce and remediate configuration consistency on the managed instances, and use AWS CloudFormation drift detection to identify stack-level resource changes.Answer
- CEncrypt the credentials in AWS Systems Manager Parameter Store using the default AWS-managed KMS key (aws/ssm), and configure its policy to delegate read and decrypt permissions to the target accounts.
- DApply a Service Control Policy (SCP) at the Organizational Unit (OU) level that explicitly permits access to the Parameter Store resources in the central operations account, assuming this inherits downstream permissions.
- EConfigure the CloudFormation StackSets to automatically delete and recreate the stacks daily to overwrite any manual modifications and reset resource configurations.
Answer
The correct solution involves utilizing a Customer Managed Key (CMK) in AWS KMS to allow cross-account key policy configurations, and using AWS Systems Manager State Manager associations in tandem with CloudFormation drift detection to enforce configuration and check for stack modifications.
The correct actions involve deploying Systems Manager State Manager associations to continuously enforce configurations and using CloudFormation drift detection to verify infrastructure compliance, while using a Customer Managed Key (CMK) in KMS to securely permit cross-account decryption of dynamic parameters.
Step-by-Step Solution
Key Concept
Cross-account AWS KMS resource policies and automatic configuration drift remediation
Estimated Time:2m 0s