A SysOps Administrator is configuring VPC Flow Logs for a multi-tier application. The administrator creates a flow log to capture all traffic and selects an Amazon S3 bucket named 'app-traffic-logs-prod' in the same AWS account as the destination. The S3 bucket is configured with default Amazon S3 managed encryption keys (SSE-S3). Shortly after creation, the administrator checks the S3 bucket but finds that no flow log data has been delivered. Which of the following explains why the logs are failing to deliver?
- AThe IAM user who created the flow log does not have the iam:PassRole permission for the log delivery role.
- BThe S3 bucket has not been configured with an active object lifecycle policy, causing AWS to block delivery to prevent unlimited log storage accumulation.
- The bucket policy on the Amazon S3 bucket does not grant s3:PutObject permissions to the log delivery service principal (delivery.logs.amazonaws.com).Cevap
- DThe S3 bucket is encrypted using a Customer Managed Key (CMK) and the administrator attempted to grant access via an IAM user policy rather than modifying the KMS key policy.
Cevap
The bucket policy on the Amazon S3 bucket does not grant s3:PutObject permissions to the log delivery service principal (delivery.logs.amazonaws.com).
The correct answer is that the bucket policy on the destination S3 bucket must explicitly grant 's3:PutObject' and 's3:GetBucketAcl' permissions to the AWS Log Delivery service principal ('delivery.logs.amazonaws.com'). S3 bucket log delivery is cross-service and does not use an IAM role or role delegation.
Adım Adım Çözüm
Anahtar Kavram
VPC Flow Logs S3 delivery permissions
Tahmini Süre:1m 30s