A company is reviewing the security configuration of an application running on Amazon EC2 instances in a production VPC in Account A. The application reads daily transaction files from an Amazon S3 bucket in a shared services VPC in Account B. Both accounts belong to the same AWS Organization. Currently, the S3 bucket is encrypted using the default AWS-managed KMS key (`aws/s3`). The application accesses the S3 bucket over the public internet using an IAM role in Account A. The security team requires that all network traffic between the application and the S3 bucket must remain within the AWS private network, S3 bucket access must be restricted to only traffic originating from the production VPC, and cross-account decryption capability must follow the principle of least privilege. Which combination of configuration changes will meet these security requirements?
- ACreate a Gateway VPC endpoint for S3 in Account A and associate it with the subnet route tables. In Account B, keep the S3 bucket encrypted with the AWS-managed KMS key (`aws/s3`) and grant decryption permissions to Account A's IAM role by modifying the default key policy. Configure the S3 bucket policy in Account B to allow read access to Account A's IAM role only when the request originates from Account A's VPC endpoint ID.
- Create a Gateway VPC endpoint for S3 in Account A and associate it with the subnet route tables. In Account B, configure a customer managed KMS key and grant decryption permissions to Account A's IAM role in the key policy. Configure the S3 bucket policy in Account B to allow read access to Account A's IAM role only when the request originates from Account A's VPC endpoint ID.Cevap
- CCreate a Gateway VPC endpoint for S3 in Account A and associate it with the subnet route tables. In Account B, configure a customer managed KMS key. Attach a Service Control Policy (SCP) to the Organizational Unit that grants the decryption permission on the KMS key directly to Account A's IAM role, and configure the S3 bucket policy in Account B to allow read access from Account A.
- DCreate a Gateway VPC endpoint for S3 in Account A and associate it with the subnet route tables. In Account B, configure a customer managed KMS key. Create a Route 53 Private Hosted Zone for S3 in Account B and associate it with Account A's VPC, relying on this association to authorize and route cross-account decryption requests to the key without modifying its policy.