A pharmaceutical company is launching a clinical trials data repository in AWS Account A, which is part of an AWS Organizations organization. An external research organization runs a data ingestion application on Amazon EC2 instances in AWS Account B, which is outside the company's AWS Organizations organization. The application uses the IAM role 'arn:aws:iam::222222222222:role/ResearchAppRole' to write raw patient telemetry files to an Amazon S3 bucket in Account A and read consolidated trial results. All data in the S3 bucket must be encrypted at rest using a customer managed key in AWS Key Management Service (AWS KMS). The company requires that the external role can upload and retrieve files but is strictly prohibited from deleting any files or modifying the bucket configuration. Which two configuration steps must the solutions architect implement in Account A to meet these security and encryption requirements? (Select TWO.)
- In Account A, configure the S3 bucket policy to allow the principal 'arn:aws:iam::222222222222:role/ResearchAppRole' to perform 's3:PutObject' and 's3:GetObject' actions.Answer
- In Account A, configure the key policy of the KMS customer managed key to allow the principal 'arn:aws:iam::222222222222:role/ResearchAppRole' to perform 'kms:GenerateDataKey' and 'kms:Decrypt' actions.Answer
- CIn Account A, encrypt the S3 bucket using the AWS-managed KMS key for Amazon S3 ('aws/s3'), and configure the bucket policy to allow access to the external role.
- DIn Account A, attach a Service Control Policy (SCP) to the member account that explicitly grants the external role 'arn:aws:iam::222222222222:role/ResearchAppRole' permissions to perform 's3:PutObject' and 's3:GetObject'.
- EIn Account A, configure the S3 bucket policy to trust the root account principal 'arn:aws:iam::222222222222:root' for all S3 actions, and configure the KMS key policy to allow access from all principals within the organization.