Soru

Zorluk: KolaySecurity Monitoring, Logging, and Compliance Auditing

A SysOps Administrator creates a new multi-region trail in AWS CloudTrail to log all API activity in the AWS account. The administrator configures a new Amazon S3 bucket as the storage target. After several hours, the administrator notices that no CloudTrail logs have been delivered to the S3 bucket. Which of the following is the most likely cause of this log delivery failure?

  1. A
    Detailed monitoring is not enabled on the Amazon S3 bucket, preventing CloudTrail from transmitting metric logs.
  2. B
    The CloudWatch log group associated with CloudTrail has its retention period set to zero days, which automatically deletes logs upon arrival.
  3. The Amazon S3 bucket policy does not grant the CloudTrail service principal permissions to write objects to the bucket.Cevap
  4. D
    The administrator's IAM policy lacks the iam:PassRole permission, which is required to delegate role permissions to the Amazon S3 bucket.

Cevap

The Amazon S3 bucket policy does not grant the CloudTrail service principal permissions to write objects to the bucket.
The correct answer is correct because AWS CloudTrail requires explicit resource-based permissions (via an S3 bucket policy) to write log objects into the designated S3 bucket. If the bucket policy does not authorize the CloudTrail service principal (cloudtrail.amazonaws.com) for the s3:PutObject action, log delivery will fail.

Adım Adım Çözüm

1
Analyze the relationship between AWS CloudTrail and the target Amazon S3 bucket.
Identify that CloudTrail must write log objects directly to the S3 bucket.
CloudTrail needs permission from the resource owner (S3 bucket policy) to write logs into a destination bucket in the AWS account.
2
Evaluate the bucket policy requirements for log delivery.
Determine that the bucket policy must contain a statement allowing the CloudTrail service principal (cloudtrail.amazonaws.com) to perform the s3:PutObject action.
Without this permission, S3 will deny the write requests from CloudTrail, causing log delivery to fail.

Anahtar Kavram

Configuring permissions for log delivery targets in security monitoring.
Bu soruyu puanla