A financial technology company is designing a secure compliance monitoring solution for credit card transaction logs. The logs are generated by applications running on Amazon ECS tasks in a Production account (Account 111122223333). These logs must be stored in an Amazon S3 bucket located in a dedicated Compliance account (Account 444455556666). The compliance team requires that:
1. All logs must be encrypted at rest using a customer managed key (CMK) in AWS KMS that the compliance team controls and rotates.
2. Production application tasks must have permission to write logs directly to the S3 bucket and use the KMS key, but must not be able to read or delete any logs once written.
3. The S3 bucket policy must enforce that only encrypted logs are accepted, and all uploaded log objects must be owned by the Compliance account.
Which combination of actions should the solutions architect take to meet these security and compliance requirements? (Select TWO.)
- Create a customer managed KMS key in the Compliance account. Configure the KMS key policy to grant the ECS task role in the Production account permissions to perform kms:GenerateDataKey and kms:Decrypt actions.Answer
- In the Compliance account, configure the S3 bucket policy to allow s3:PutObject from the ECS task role in the Production account, and enable S3 Object Ownership with the Bucket Owner Enforced setting on the bucket.Answer
- CIn the Compliance account, enable default bucket encryption using the AWS managed KMS key for Amazon S3 (aws/s3), and configure the Production account's ECS tasks to encrypt uploaded logs using this key.
- DApply a Service Control Policy (SCP) to the Organizational Unit containing the Production account that grants the ECS task role s3:PutObject permissions on the Compliance S3 bucket, bypassing the need for a local IAM policy.
- EIn the Compliance account, configure the S3 bucket policy to grant the Production account root principal write access, and rely on the S3 bucket's default ACLs to grant the Compliance account access to the uploaded log objects.