An application running on an Amazon EC2 instance in Account B (444455556666) needs to decrypt sensitive files stored in an Amazon S3 bucket in Account A (111122223333). The files in the S3 bucket are encrypted using Server-Side Encryption with AWS KMS (SSE-KMS) and a customer managed KMS key in Account A. The KMS key currently has the following key policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Enable IAM User Permissions",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::111122223333:root"
},
"Action": "kms:*",
"Resource": "*"
}
]
}
An IAM role named AppRole is attached as the instance profile for the EC2 instance in Account B. Which TWO configurations are required to allow AppRole in Account B to decrypt the objects in the S3 bucket? (Select TWO.)
- Update the KMS key policy in Account A to allow the IAM role AppRole in Account B to perform the kms:Decrypt action.Answer
- Attach an IAM policy to the IAM role AppRole in Account B that allows the kms:Decrypt action on the KMS key ARN in Account A.Answer
- CAdd the IAM role AppRole from Account B to the S3 bucket policy in Account A with an Allow effect for the kms:Decrypt action.
- DRely on the existing KMS key policy in Account A to delegate access, and only attach an IAM policy to the IAM role AppRole in Account B that allows kms:Decrypt on the KMS key.
- EEnable S3 Bucket Keys on the S3 bucket in Account A to automatically delegate KMS decryption authority to Account B's IAM role.