An enterprise is deploying a centralized audit solution where an IAM role in the Security Account (Account A) must analyze compliance reports stored in an Amazon S3 bucket within the Production Account (Account B). The S3 bucket is configured with default encryption, and the organization's compliance policy mandates that all data access must be audited and restricted to the minimum required cross-account permissions. Which combination of configuration steps will successfully and securely enable the S3 bucket and KMS key access for Account A?
- Configure the S3 bucket in Account B to be encrypted using a Customer Managed Key (CMK). Update the key policy of the CMK in Account B to grant kms:Decrypt permissions to the IAM role in Account A. Update the S3 bucket policy in Account B to grant s3:GetObject and s3:ListBucket permissions to the IAM role in Account A. Attach an IAM policy to the IAM role in Account A that allows s3:GetObject and s3:ListBucket on the S3 bucket, and kms:Decrypt on the CMK in Account B.Cevap
- BConfigure the S3 bucket in Account B to use the default AWS managed key (aws/s3) for encryption. Update the key policy of the AWS managed key in Account B to grant kms:Decrypt permissions to the IAM role in Account A. Configure the S3 bucket policy in Account B to grant s3:GetObject and s3:ListBucket permissions to the IAM role in Account A. Attach an IAM policy to the IAM role in Account A that allows s3:GetObject, s3:ListBucket, and kms:Decrypt operations.
- CConfigure the S3 bucket in Account B to be encrypted using a Customer Managed Key (CMK). Attach a Service Control Policy (SCP) to the Organizational Unit containing Account A and Account B that explicitly allows the IAM role in Account A to perform s3:GetObject and kms:Decrypt on resources in Account B, without configuring local IAM policies in Account A.
- DConfigure the S3 bucket in Account B to be encrypted using a Customer Managed Key (CMK). Update the key policy of the CMK in Account B to grant kms:Decrypt permissions to the IAM role in Account A. In Account B, configure the S3 bucket policy to grant read access but omit the explicit principal declaration for the IAM role in Account A, instead using a wildcard principal with no organizational condition.
Cevap
Configure the S3 bucket in the Production Account to use a Customer Managed Key (CMK), update its key policy to grant decryption permissions to the Security Account's IAM role, configure the S3 bucket policy to grant read access to the role, and configure the IAM policy in the Security Account to allow these S3 and KMS operations.
The correct solution uses a Customer Managed Key (CMK) which supports policy modification, allows cross-account access via the key policy, specifies the external principal in the S3 bucket policy, and configures the identity policy of the calling role to trust the external resources.
Adım Adım Çözüm
Anahtar Kavram
Cross-account resource access with KMS encryption
Tahmini Süre:2m 0s