Detection

A team wants CloudTrail management events from an existing trail to reach CloudWatch Logs within minutes so a metric filter can alarm on console sign-ins by the root user. Which trail configuration is required?

Show the answer

Correct answerB. Add a CloudWatch Logs log group and a role CloudTrail can assume to the trail.

AWhy not this: Metric filters evaluate CloudWatch Logs log groups, not objects in S3.

BWhy this is right: CloudWatch Logs delivery needs a log group and a role CloudTrail can assume to write events.

CWhy not this: Console sign-in events are management events, so data event selectors are not needed.

DWhy not this: Insights flags unusual rates of API activity, not each root sign-in.

A trail sends events to CloudWatch Logs when it is configured with a log group and an IAM role that CloudTrail assumes to create log streams and put events. Metric filters work on log groups, not S3 objects; console sign-ins are management events, and Insights detects unusual API call volumes rather than individual events.