An enterprise manages a multi-account environment on AWS. Account A hosts an application running on Amazon EC2 instances within a private subnet. This application must write sensitive logs and data to an Amazon S3 bucket located in Account B. The S3 bucket is encrypted using a Customer Managed Key (CMK) stored in Account B. To strengthen identity, access, and network security for this data transfer path, a solutions architect must enforce strict network isolation ensuring that data only traverses AWS private networks, and verify that only authorized IAM roles in Account A can write to the bucket and decrypt the objects. Service Control Policies (SCPs) must be utilized to maintain these guardrails. Which combination of actions will securely achieve this objective? (Select TWO.)
- Update the key policy of the Customer Managed Key in Account B to grant the IAM role in Account A permission to perform the kms:Decrypt and kms:GenerateDataKey actions, and attach an IAM policy to the role in Account A allowing these same actions on the key ARN.Cevap
- Configure a Gateway VPC endpoint for Amazon S3 in Account A's VPC. Modify the S3 bucket policy in Account B to deny access to all principals unless the request originates from this specific VPC endpoint ID using the aws:sourceVpce condition.Cevap
- CUpdate the default AWS-managed KMS key (aws/s3) policy in Account B to add a cross-account grant for Account A's IAM role, and configure the IAM policy in Account A to allow kms:Decrypt on Account B's AWS-managed key.
- DDeploy a Service Control Policy (SCP) at the Organization root level that explicitly allows s3:PutObject and kms:Decrypt actions on Account B's resources, thus granting permissions to the IAM role in Account A without modifying local policies.
- EEstablish a Transit Gateway route table entry that redirects all traffic directed to the public S3 CIDR blocks through a Transit Gateway peering attachment directly to Account B, without creating any VPC endpoints.