A healthcare provider is designing a new medical imaging analysis solution. The ingestion tier runs on Amazon ECS tasks in an Ingestion account (Account A). The processed high-resolution images must be securely stored in an Amazon S3 bucket within a centralized Archiving account (Account B) under HIPAA compliance. The images must be encrypted at rest using a customer managed key (CMK) in AWS Key Management Service (AWS KMS). The solution must ensure that only ECS tasks in Account A can upload files and perform cryptographic operations using the CMK. Which two actions should the Solutions Architect perform to implement this secure cross-account storage and encryption architecture? (Select TWO.)
- AIn the Archiving account (Account B), configure the S3 bucket default encryption to use the AWS managed key (aws/s3) and modify its policy to delegate usage permissions to the ECS task IAM role in the Ingestion account (Account A).
- In the Archiving account (Account B), create a customer managed KMS key and configure its key policy to grant the ECS task IAM role in the Ingestion account (Account A) permissions to perform the kms:GenerateDataKey and kms:Decrypt actions.Cevap
- CCreate a Service Control Policy (SCP) in the AWS Organizations management account that grants s3:PutObject and kms:GenerateDataKey permissions to the Ingestion account (Account A) OU, eliminating the need for local IAM policies.
- In the Archiving account (Account B), configure the S3 bucket policy to allow the IAM role of the ECS tasks in the Ingestion account (Account A) to perform s3:PutObject and s3:GetObject actions.Cevap
- EIn the Archiving account (Account B), configure the S3 bucket policy to allow public access (Principal: "*") while using a bucket condition to restrict access based on the source VPC ID from the Ingestion account (Account A).
Cevap
Create a customer managed KMS key in the archiving account and configure its key policy to allow the external ECS task IAM role to perform cryptographic operations. Additionally, configure the S3 bucket policy in the archiving account to allow the external ECS task IAM role to perform the required S3 actions.
To secure cross-account workloads that use S3 buckets encrypted with KMS keys, you must create a customer managed KMS key in the destination account because AWS-managed keys cannot be shared cross-account. You must then configure both the KMS key policy and the S3 bucket policy in the destination account to explicitly authorize the IAM role of the client task in the source account.
Adım Adım Çözüm
Anahtar Kavram
Cross-account access delegation for encrypted S3 buckets requires using Customer Managed Keys (CMKs) rather than AWS Managed Keys, combined with both S3 bucket policy and KMS key policy authorization targeting the external IAM identity.
Tahmini Süre:2m 0s