Soru

Zorluk: OrtaCentralized Monitoring, Logging, and Auditing Solutions

An enterprise is designing a centralized auditing solution for its AWS Organization, which contains 8585 member accounts. The security team wants to enable AWS CloudTrail for all accounts to log all read and write API activity across all AWS Regions. The log files must be consolidated in a single Amazon S3 bucket located in a dedicated Security account. The logs must be encrypted using a KMS key, and the security team must prevent any member account administrators from disabling or modifying the trail. Which combination of actions should the Solutions Architect take to implement this solution? (Select TWO.)

  1. Create an AWS CloudTrail organization trail in the Organization management account that sends logs to the central Amazon S3 bucket in the Security account, and apply a Service Control Policy (SCP) to the root of the organization that denies member accounts the ability to delete or modify CloudTrail configurations.Cevap
  2. Create a KMS customer managed key in the Security account, configure its key policy to allow the CloudTrail service principal to perform key generation and description operations, and update the Amazon S3 bucket policy in the Security account to allow the CloudTrail service principal to write logs.Cevap
  3. C
    Enable encryption on the organization trail using the default AWS-managed KMS key (aws/s3) to ensure all log files deposited into the Security account S3 bucket are encrypted at rest without administrative overhead.
  4. D
    Create a Service Control Policy (SCP) that grants the s3:PutObject permission to the CloudTrail service principal and apply it to the member accounts' Organizational Units (OUs) to authorize log delivery to the Security account's S3 bucket.
  5. E
    Configure the S3 bucket policy on the Security account's log bucket to allow the root IAM users of each individual member account permission to perform s3:PutObject actions, specifying each account ID explicitly in the Principal element.

Cevap

Create an AWS CloudTrail organization trail in the Organization management account combined with a Service Control Policy (SCP) to prevent modification, and use a KMS customer managed key in the Security account with policies configured to allow the CloudTrail service principal access.
Centralizing CloudTrail logs requires creating an organization trail, which automatically logs events for all AWS accounts in the organization. To protect the logging configuration, a Service Control Policy (SCP) is applied at the organization root to deny deletion or modification of CloudTrail resources by member accounts. For encryption, a customer managed key is required because AWS-managed keys cannot be shared cross-account or support policy changes. Both the S3 bucket policy and the KMS key policy must explicitly allow the CloudTrail service principal to perform write and key generation operations.

Adım Adım Çözüm

1
Deploy an AWS CloudTrail organization trail from the management account.
Configures API logging across all current and future member accounts in the organization, sending logs to the central Security account's S3 bucket.
This avoids manual setup in individual member accounts and ensures organizational compliance.
2
Apply an SCP to block CloudTrail modification API calls for member accounts.
Prevents member account administrators from stopping logging or deleting the centralized trail.
This guarantees the integrity of the audit trails.
3
Use a Customer Managed KMS Key (CMK) in the Security account for log encryption, and configure both the KMS key policy and S3 bucket policy to trust the CloudTrail service principal.
CloudTrail is authorized to write encrypted log files directly to the target S3 bucket in the Security account.
AWS-managed KMS keys do not support policy modification and cannot be shared cross-account, making a customer managed key necessary.

Anahtar Kavram

Centralized auditing using AWS CloudTrail Organization Trails, S3 bucket policies, and cross-account Customer Managed KMS Keys.
Bu soruyu puanla