Question
A company's CloudOps engineer is troubleshooting communication between the components of an application. The company configured VPC flow logs to be published to Amazon CloudWatch Logs However, there are no logs in CloudWatch Logs.
What could be blocking the VPC flow logs from being published to CloudWatch Logs?
- A. The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateLogGroup permission. Correct
- B. The IAM policy that is attached to the IAM role for the flow log is missing the logs:CreateExportTask permission.
- C. The VPC is configured for IPv6 addresses.
- D. The VPC is peered with another VPC in the AWS account
Explanation
The correct answer is A because, according to AWS documentation, the IAM role used by VPC flow logs requires the 'logs:CreateLogGroup' permission to create a log group in CloudWatch Logs. Without this permission, VPC flow logs cannot be published to CloudWatch Logs.