A multinational enterprise is designing a centralized logging architecture across its AWS Organizations structure, which consists of over 200 member accounts. A solutions architect is setting up an organization-wide AWS CloudTrail trail that delivers log files to a single Amazon S3 bucket located in a dedicated Security account. The log files must be encrypted using AWS Key Management Service (AWS KMS).
The solutions architect needs to configure the S3 bucket policy and the KMS key policy in the Security account to allow CloudTrail to write logs and encrypt them, ensuring that the configurations scale dynamically as new accounts are added or removed from the organization.
Which combination of configurations will meet these requirements? (Select TWO.)
- Configure the Amazon S3 bucket policy in the Security account to grant s3:PutObject permissions to the cloudtrail.amazonaws.com service principal, restricting the resource path to arn:aws:s3:::my-central-bucket/AWSLogs/o-organizationid/*, and requiring the s3:x-amz-acl condition to be set to bucket-owner-full-control.Cevap
- Create a Customer Managed Key (CMK) in the Security account and configure its key policy to grant the cloudtrail.amazonaws.com service principal kms:GenerateDataKey* and kms:Decrypt permissions, restricted by a condition that evaluates kms:EncryptionContext:aws:cloudtrail:arn against the organization trail ARN.Cevap
- CConfigure the Amazon S3 bucket policy in the Security account to grant s3:PutObject permissions to the principal arn:aws:iam::*:root for all accounts in the organization by using the aws:PrincipalOrgID condition.
- DConfigure the organization trail to use the default AWS-managed KMS key (aws/cloudtrail) in the management account, and update its key policy to allow cross-account access for all member accounts within the organization.
- EAttach a Service Control Policy (SCP) to the organization root that grants the cloudtrail.amazonaws.com service principal permission to assume the default OrganizationAccountAccessRole in the Security account to write logs.