An enterprise is designing a centralized compliance logging solution across its AWS Organization, which consists of a Management Account (), a Security Account (), and multiple production member accounts. The security team is setting up an organization trail from the Management Account to deliver logs to a centralized Amazon S3 bucket named `central-audit-logs` located in the Security Account. The company's compliance policy dictates that all logs must be encrypted at rest using a customer managed key (CMK) and that access to read these logs must be restricted to an auditor role in the Security Account, who federates via an external SAML Identity Provider (IdP). Which combination of configuration steps will successfully meet these requirements?
- Create a Customer Managed Key (CMK) in the Security Account. Update the CMK key policy to allow the CloudTrail service principal (`cloudtrail.amazonaws.com`) to perform `kms:GenerateDataKey*` and `kms:DescribeKey` actions, with a condition matching the organization trail ARN. Configure the S3 bucket policy in the Security Account to grant `s3:GetBucketAcl` and `s3:PutObject` permissions to the CloudTrail service principal, with a condition matching the AWS Organization ID. Configure the auditor role's trust policy with `sts:AssumeRoleWithSAML` pointing to the SAML IdP provider.Answer
- BConfigure the organization trail to encrypt logs using the default AWS-managed KMS key `aws/s3` in the Security Account. Configure the S3 bucket policy in the Security Account to grant `s3:GetBucketAcl` and `s3:PutObject` permissions to the CloudTrail service principal, with a condition matching the AWS Organization ID. Grant the auditor role in the Security Account policy permissions for `s3:GetObject` on the bucket and `kms:Decrypt` on the `aws/s3` key, and configure its trust policy with `sts:AssumeRoleWithSAML` pointing to the SAML IdP.
- CCreate a Customer Managed Key (CMK) in the Security Account. Update the CMK key policy and the S3 bucket policy in the Security Account to grant the member accounts' root ARNs (`arn:aws:iam::*:root`) permissions to perform `kms:GenerateDataKey*`, `kms:DescribeKey`, `s3:GetBucketAcl`, and `s3:PutObject`. Configure the auditor role's trust policy in the Security Account with `sts:AssumeRoleWithSAML` pointing to the SAML IdP.
- DCreate a Customer Managed Key (CMK) in the Security Account. Update the CMK key policy to allow the CloudTrail service principal (`cloudtrail.amazonaws.com`) to perform `kms:GenerateDataKey*` and `kms:DescribeKey` actions, with a condition matching the organization trail ARN. Configure the S3 bucket policy in the Security Account to grant `s3:GetBucketAcl` and `s3:PutObject` permissions to the CloudTrail service principal, with a condition matching the AWS Organization ID. Configure the auditor role's trust policy in the Security Account with the `sts:AssumeRole` action and the principal pointing to the SAML IdP provider.