An enterprise with member accounts managed under a single organization in AWS Organizations is setting up a centralized logging architecture. The solutions architect is configuring an organization-wide AWS CloudTrail trail to deliver log files to a single Amazon S3 bucket located in a dedicated Log Archive account. To satisfy security policies, all logs must be encrypted at rest using an AWS KMS Customer Managed Key (CMK) managed by the security team, and member account administrators must not be able to disable the trail or modify the logging configurations. Which TWO configurations are required to establish this architecture? (Select TWO.)
- In the Log Archive account, configure the S3 bucket policy to allow the cloudtrail.amazonaws.com service principal to perform s3:PutObject actions, using the aws:PrincipalOrgID condition key to restrict write access to the organization.Cevap
- Configure the KMS key policy for the Customer Managed Key to allow the cloudtrail.amazonaws.com service principal to perform kms:GenerateDataKey* and kms:DescribeKey operations, using the aws:SourceArn condition to restrict access to the organization's trails.Cevap
- CEnable encryption on the centralized S3 bucket using the default AWS-managed KMS key (aws/s3) and configure a cross-account IAM policy in the member accounts to grant the CloudTrail service principal permissions to use this key.
- DConfigure the S3 bucket policy in the Log Archive account to grant the administrator IAM roles of individual member accounts the s3:PutObject permission to allow them to deliver the CloudTrail logs.
- EAttach a Service Control Policy (SCP) to the organization's root that explicitly grants cloudtrail:StartLogging and kms:GenerateDataKey permissions to all member accounts to authorize the delivery of encrypted logs.
Cevap
In the Log Archive account, the S3 bucket policy must allow the CloudTrail service principal to perform s3:PutObject actions restricted by the organization ID, and the KMS Customer Managed Key policy must allow the CloudTrail service principal to generate data keys and describe the key restricted by the trail ARN.
The correct solution involves configuring the S3 bucket policy to allow the CloudTrail service principal to write logs using the aws:PrincipalOrgID condition to secure the bucket across the entire organization. Additionally, since the requirements specify using a Customer Managed Key, the key policy must explicitly allow the CloudTrail service principal to generate data keys and describe the key to encrypt the files upon delivery.
Adım Adım Çözüm
Anahtar Kavram
Centralized Monitoring, Logging, and Auditing Solutions