A financial services company is designing a centralized logging architecture for its AWS environment. The environment consists of member accounts organized under AWS Organizations. The company has designated a dedicated Security Operations account for managing security tools and a separate Log Archive account for long-term log storage. The Solutions Architect must configure AWS CloudTrail to capture all management events across all accounts. The logs must be consolidated in a single Amazon S3 bucket in the Log Archive account, encrypted with a Customer Managed Key (CMK) in AWS KMS, and managed from the Security Operations account.
Which TWO actions must the Solutions Architect take to configure this solution?
- From the organization's management account, register the Security Operations account as a delegated administrator for CloudTrail. In the Security Operations account, create an organization trail configured to send logs to the S3 bucket in the Log Archive account.Cevap
- Configure the key policy of the Customer Managed Key (CMK) in the Log Archive account to allow the `cloudtrail.amazonaws.com` service principal to perform `kms:GenerateDataKey*` and `kms:Decrypt` operations, restricting access using the `aws:PrincipalOrgID` condition.Cevap
- CConfigure the S3 bucket policy in the Log Archive account to grant `s3:PutObject` permissions directly to the IAM roles of the member accounts to enable cross-account log delivery.
- DConfigure the organization trail to use the default AWS-managed KMS key (`aws/s3`) in the Log Archive account to encrypt the logs.
- EAttach a Service Control Policy (SCP) to the root of the organization that grants the `s3:PutObject` permission on the destination bucket to all member accounts.
Cevap
Register the Security Operations account as a delegated administrator from the management account to create the organization trail, and configure the key policy of the Customer Managed Key (CMK) in the Log Archive account to grant necessary permissions to the CloudTrail service principal with an organization condition.
To centralize log management under the Security Operations account, it must be registered as a delegated administrator for AWS CloudTrail from the management account. This allows the security team to define the organization trail. When encrypting consolidated logs across multiple accounts with a Customer Managed Key (CMK), the key policy must explicitly allow the CloudTrail service principal (`cloudtrail.amazonaws.com`) to generate data keys and decrypt logs, which can be secured using the `aws:PrincipalOrgID` condition to ensure only trails within the organization can utilize the key.
Adım Adım Çözüm
Anahtar Kavram
Delegated administration for AWS CloudTrail and cross-account KMS encryption key policies in a multi-account organization.