An enterprise is designing a new document archiving system. The application tier runs on Amazon EC2 instances in an Application account. The system must store documents in an Amazon S3 bucket located in a central Archive account within the same AWS Organization. The documents must be encrypted at rest using a KMS key. The security team requires that the KMS key be managed in the Archive account. Furthermore, an organization-wide guardrail must prevent any user or role in the Application account from deleting the S3 bucket or scheduling the deletion of the KMS key. Which two actions should the solutions architect recommend to satisfy these requirements? (Select TWO.)
- Create a KMS customer managed key in the Archive account and configure its key policy to allow the EC2 instance IAM role in the Application account to perform the kms:GenerateDataKey and kms:DescribeKey actions.Answer
- Create a Service Control Policy (SCP) that denies the s3:DeleteBucket and kms:ScheduleKeyDeletion actions, and apply this SCP to the Organizational Unit (OU) containing the Application account.Answer
- CConfigure the S3 bucket default encryption in the Archive account to use the AWS-managed KMS key for Amazon S3 (aws/s3), and modify its key policy to trust the Application account's IAM role.
- DCreate a Service Control Policy (SCP) that explicitly grants s3:PutObject and kms:GenerateDataKey permissions to the Application account, and attach it to the target Organizational Unit (OU).
- EModify the S3 bucket policy in the Archive account to allow the S3 service principal (s3.amazonaws.com) to write logs, omitting specific source account or organizational conditions.
Answer
Configure a customer managed key in the Archive account with cross-account access granted via its key policy to the Application account's IAM role, and implement a Service Control Policy (SCP) at the Organizational Unit (OU) level that denies bucket and key deletion.
To satisfy the requirements, the solutions architect must use a Customer Managed Key (CMK) in the Archive account and configure its key policy to explicitly trust the EC2 instance role in the Application account, enabling cross-account encryption. Additionally, the solutions architect must apply a Service Control Policy (SCP) to the OU containing the Application account to enforce compliance by denying bucket deletion and key deletion actions.
Step-by-Step Solution
Key Concept
Cross-account KMS key delegation and Service Control Policies (SCPs) acting as permission guardrails