A financial services company manages member accounts within an AWS Organization. The security team is setting up an organization-wide AWS CloudTrail trail to log all API activity to a centralized Amazon S3 bucket located in a dedicated Security account. The S3 bucket must be encrypted using a Customer Managed Key (CMK) in AWS Key Management Service (AWS KMS) to comply with regulatory standards. Which combination of configuration steps will ensure that CloudTrail can successfully write logs from all member accounts to the central S3 bucket?
- Configure the S3 bucket policy in the Security account to permit the CloudTrail service principal to write objects, restricted by the AWS Organization ID. Attach a key policy to the Customer Managed Key in the Security account that allows the CloudTrail service principal to generate data keys, restricted by the AWS Organization ID.Cevap
- BConfigure the S3 bucket policy in the Security account to permit the CloudTrail service principal to write objects, restricted by the AWS Organization ID. Configure S3 default encryption using the AWS managed key 'aws/s3' to automatically encrypt all delivered log files.
- CConfigure IAM roles in the member accounts that grant the CloudTrail service principal permission to write directly to the S3 bucket in the Security account, without modifying the destination S3 bucket policy.
- DAttach a Service Control Policy (SCP) to the organization root that grants CloudTrail the necessary 's3:PutObject' and 'kms:GenerateDataKey' permissions to write to the central S3 bucket and use the Customer Managed Key.
Cevap
Configure the S3 bucket policy in the Security account to permit the CloudTrail service principal to write objects, restricted by the AWS Organization ID. Attach a key policy to the Customer Managed Key in the Security account that allows the CloudTrail service principal to generate data keys, restricted by the AWS Organization ID.
The correct answer correctly addresses both S3 bucket access and KMS encryption. The S3 bucket policy in the target Security account must allow the CloudTrail service principal to write logs, and the KMS key policy for the Customer Managed Key must allow the same principal to generate data keys to encrypt those logs. Using the AWS Organization ID as a condition scope maintains security control across all member accounts.
Adım Adım Çözüm
Anahtar Kavram
Centralized cross-account logging requires configuring both resource policies (S3 bucket policy) and KMS key policies to trust the AWS service principal, restricted by organizational boundaries.