A solutions architect is designing a centralized logging architecture for a company's AWS Organization. The company wants to enable an organization-wide AWS CloudTrail trail in the management account and deliver all log files to a centralized Amazon S3 bucket located in a dedicated Security account. The security team requires all log files to be encrypted at rest using a Customer Managed Key (CMK) in AWS KMS. Which of the following configurations are required to implement this architecture? (Select TWO.)
- Configure the S3 bucket policy in the Security account to allow s3:PutObject and s3:GetBucketAcl actions for the cloudtrail.amazonaws.com service principal, with a condition checking that the aws:PrincipalOrgID matches the company's organization ID.Cevap
- Create a customer managed KMS key in the Security account, and configure its key policy to grant the cloudtrail.amazonaws.com service principal permissions to perform kms:GenerateDataKey* and kms:DescribeKey actions.Cevap
- CConfigure the organization trail to encrypt the log files using the default AWS managed key for Amazon S3 (aws/s3) in the Security account.
- DAttach a Service Control Policy (SCP) at the organization root that explicitly grants the s3:PutObject permission to the cloudtrail.amazonaws.com service principal for the destination S3 bucket.
- EConfigure the S3 bucket policy in the Security account to grant write permissions to the IAM root user principal of the management account, assuming other member accounts will inherit this access.
Cevap
Configure the S3 bucket policy in the Security account to allow CloudTrail to write objects, restricted by the organization ID, and create a customer managed KMS key in the Security account with a key policy allowing CloudTrail to generate data keys and describe the key.
The correct solution involves configuring the S3 bucket policy in the destination Security account to allow access to the CloudTrail service principal (cloudtrail.amazonaws.com), restricted by the organization ID (aws:PrincipalOrgID) to ensure only logs from the company's organization are accepted. Furthermore, since AWS managed keys cannot be configured with custom policies to grant cross-account permissions, a customer managed KMS key must be created, and its key policy must allow the CloudTrail service principal to perform generate data key and describe key actions.
Adım Adım Çözüm
Anahtar Kavram
Cross-account centralized logging using AWS CloudTrail requires configuring both resource-based permissions (S3 bucket policy) and encryption keys (KMS key policy) to trust the CloudTrail service principal, restricting access appropriately via organization-scoped condition keys.
Tahmini Süre:2m 0s