A pharmaceutical company is launching a new research platform using AWS Organizations. The architecture requires a compliance auditing application hosted on an Amazon Elastic Container Service (ECS) cluster running on AWS Fargate in the Compliance account () to regularly analyze raw clinical research data stored in an Amazon S3 bucket within the Research account (). The clinical research data is encrypted at rest using AWS KMS. The security policy mandates that all access to the S3 bucket must be restricted to authorized roles, and the ECS task role in the Compliance account must have read-only access to the S3 bucket and be able to decrypt the objects. An SCP is attached to the Research OU that allows KMS decryption actions. Which of the following configurations will securely enable the ECS task role to access and decrypt the S3 objects?
- In the Research account, create a Customer Managed Key (CMK) and configure its key policy to grant the Compliance account's ECS task role (arn:aws:iam::444444444444:role/EcsTaskRole) permission for kms:Decrypt. In the Research account, update the S3 bucket policy to grant s3:GetObject to the ECS task role. In the Compliance account, attach an IAM policy to the ECS task role that allows s3:GetObject on the Research S3 bucket and kms:Decrypt on the Research CMK.Answer
- BIn the Research account, enable default encryption on the S3 bucket using the AWS-managed KMS key for S3 (aws/s3). Update the S3 bucket policy in the Research account to allow the Compliance account's ECS task role (arn:aws:iam::444444444444:role/EcsTaskRole) to perform s3:GetObject. In the Compliance account, attach an IAM policy to the ECS task role allowing s3:GetObject and kms:Decrypt on the S3 bucket and the aws/s3 key.
- CIn the Research account, create a Customer Managed Key (CMK). Attach a Service Control Policy (SCP) to the Research OU that explicitly allows the Compliance account's ECS task role (arn:aws:iam::444444444444:role/EcsTaskRole) to perform s3:GetObject and kms:Decrypt actions on the Research S3 bucket and CMK. Configure an IAM policy on the Compliance ECS task role with these permissions.
- DIn the Research account, create a Customer Managed Key (CMK). Configure the CMK key policy to trust the Research account root principal (arn:aws:iam::555555555555:root) to delegate permissions. Update the S3 bucket policy to allow the Compliance account root principal (arn:aws:iam::444444444444:root) to perform s3:GetObject. In the Compliance account, attach an IAM policy to the ECS task role allowing s3:GetObject on the bucket and kms:Decrypt on the CMK.