A government organization is launching a public service portal to process sensitive citizen applications. The architecture uses AWS Organizations and separates workloads into different accounts. A processing application runs on Amazon ECS tasks using AWS Fargate within a processing account (). The application must stream and archive finalized application data to an Amazon S3 bucket named `citizen-applications-archive` located in a centralized compliance account (). The security architecture must enforce the following security controls: (1) All archived data must be encrypted at rest using a Customer Managed Key (CMK) owned by the compliance account (). (2) The ECS tasks in the processing account must be write-only; they must be able to upload archives but must be strictly prevented from decrypting or deleting any archived objects once written. (3) IAM administrators within the processing account () must not be able to bypass the encryption requirements or upload unencrypted data. Which combination of actions must a Solutions Architect perform to design a compliant solution? (Select TWO.)
- In the compliance account (), configure the key policy of the Customer Managed Key (CMK) to grant the ECS task role in the processing account () permissions to perform `kms:GenerateDataKey` and `kms:DescribeKey` actions. In the processing account, attach an IAM policy to the ECS task role that allows these same actions on the CMK.Cevap
- Attach a Service Control Policy (SCP) to the Organizational Unit (OU) containing the processing account () that denies `s3:PutObject` actions on the target bucket unless the request headers enforce server-side encryption with AWS KMS (`x-amz-server-side-encryption` is set to `aws:kms`) and specify the CMK ARN in the compliance account as the key ID.Cevap
- CIn the compliance account (), configure the S3 bucket to use the AWS-managed S3 key (`aws/s3`) for default encryption, and configure the S3 bucket policy to allow the ECS task role in the processing account () to perform `s3:PutObject` actions.
- DAttach a Service Control Policy (SCP) to the Organizational Unit (OU) containing the processing account () that explicitly grants the ECS task role permissions to write objects to the S3 bucket in the compliance account, preventing local IAM administrators from revoking the access.
- EIn the compliance account (), configure the S3 bucket policy to allow the ECS task role to write objects, and include a Deny statement in the S3 bucket policy that prevents the processing account's ECS task role from calling the `kms:Decrypt` and `s3:DeleteObject` actions.