Soru

Zorluk: OrtaSecurity and Compliance Control Design

CareSync Technologies is deploying a new telemedicine application. The application's core processing engine runs on Amazon ECS in the Application account (Account 111111111111111111111111). The engine must write and read patient record files in an Amazon S3 bucket located in the Data account (Account 222222222222222222222222). To comply with regulatory requirements, all stored data must be encrypted at rest. The security team has established the following constraints:
- All S3 objects must be encrypted using a Customer Managed Key (CMK) stored in Account 222222222222222222222222.
- The ECS tasks in Account 111111111111111111111111 must be able to upload and download objects to and from the S3 bucket.
- Access control lists (ACLs) must be completely disabled on the bucket, and the Data account must automatically own all uploaded objects.

Which combination of configurations will meet these requirements? (Select TWO.)

  1. Configure the KMS key policy in Account 222222222222222222222222 to grant the ECS task role in Account 111111111111111111111111 permissions for the kms:Decrypt and kms:GenerateDataKey actions.Cevap
  2. Configure the S3 bucket policy in Account 222222222222222222222222 to allow the ECS task role in Account 111111111111111111111111 to perform s3:PutObject and s3:GetObject actions, and set the S3 Object Ownership setting on the bucket to Bucket owner enforced.Cevap
  3. C
    Enable default S3 encryption using the AWS-managed S3 key (aws/s3) in Account 222222222222222222222222, and update the key policy to delegate access to the ECS task role in Account 111111111111111111111111.
  4. D
    Configure the S3 bucket policy in Account 222222222222222222222222 to allow the ECS task role in Account 111111111111111111111111 to perform s3:PutObject actions, set the S3 Object Ownership to Object writer, and require the ECS tasks to specify the bucket-owner-full-control ACL when uploading objects.
  5. E
    Attach a Service Control Policy (SCP) at the organization root level that grants the ECS task role in Account 111111111111111111111111 permission to write to the S3 bucket and access the KMS key in Account 222222222222222222222222.

Cevap

Configure the KMS key policy in the Data account to grant the ECS task role in the Application account permissions for key actions, and configure the S3 bucket policy to allow S3 access while enforcing the Bucket owner enforced Object Ownership setting.
To satisfy all requirements, two conditions must be met: S3 access delegation and KMS key delegation. First, configuring the KMS key policy in the Data account to trust the ECS task role in the Application account for key generation and decryption allows the ECS task to perform server-side encryption with AWS KMS (SSE-KMS) on upload and decryption on download. Second, setting S3 Object Ownership to 'Bucket owner enforced' disables ACLs and makes all uploaded objects owned by the bucket owner, while the S3 bucket policy explicitly allows the application role to upload and download objects.

Adım Adım Çözüm

1
Disable ACLs and enforce bucket owner ownership.
Setting S3 Object Ownership to Bucket owner enforced disables S3 ACLs completely and makes the bucket owner the owner of all uploaded objects.
This satisfies the security requirement to disable ACLs and ensure the Data account owns the data.
2
Enable cross-account S3 permissions.
The S3 bucket policy in the Data account is configured to trust the application's ECS task role for read/write operations.
Because ACLs are disabled, all access control is managed via policies. A cross-account bucket policy is required to allow the Application account to access the bucket.
3
Enable cross-account KMS permissions.
The Customer Managed Key policy in the Data account is updated to grant kms:GenerateDataKey and kms:Decrypt permissions to the ECS task role in the Application account.
Cross-account access to S3 objects encrypted with KMS requires that the external identity has direct permissions on the KMS CMK.

Anahtar Kavram

Cross-account S3 access combined with S3 Object Ownership controls and Customer Managed KMS key delegation.
Bu soruyu puanla