A SysOps Administrator is configuring an AWS Organization-level trail to collect management events from all member accounts. The CloudTrail logs are consolidated into an Amazon S3 bucket located in a dedicated Security Operations account. To meet compliance requirements, the trail must be encrypted using a customer managed AWS KMS key located in the same Security Operations account. After configuring the organizational trail and specifying the KMS key, the administrator notices that no logs are being delivered to the S3 bucket, and CloudTrail reports access denied errors. The S3 bucket policy is already correctly configured to allow the cloudtrail.amazonaws.com service principal to write logs. Which configuration change must the administrator make to resolve this delivery failure?
- Update the KMS key policy in the Security Operations account to grant the cloudtrail.amazonaws.com service principal permission to perform the kms:GenerateDataKey* and kms:DescribeKey actions, with a condition restricting the source ARN to the organizational trail.Answer
- BAdd a statement to the S3 bucket policy in the Security Operations account that grants the kms:GenerateDataKey* and kms:DescribeKey actions to the cloudtrail.amazonaws.com service principal.
- CModify the IAM role associated with the organizational trail in each member account to include permissions for the kms:Decrypt and kms:GenerateDataKey* actions, relying on the default KMS key policy that delegates key access to root IAM policies.
- DUpdate the IAM policies in the member accounts to grant the iam:PassRole permission to the CloudTrail service, allowing it to assume the execution role required to access the customer managed KMS key.