Security and Compliance

Application logs in CloudWatch Logs contain structured fields named outcome and sourceIp. An analyst must identify the source addresses with the most failed sign-ins during the previous hour. What should the analyst do?

Show the answer

Correct answerB. Use Logs Insights to filter failures, count by sourceIp, and sort by count descending.

AWhy not this: CloudTrail console sign-in events do not represent this application's authentication records.

BWhy this is right: Filtering, grouping, and sorting stored records produces the required ranking for the previous hour.

CWhy not this: Live Tail observes incoming records rather than aggregating the complete previous hour.

DWhy not this: A single failure-count metric loses the source-address breakdown needed for ranking.

CloudWatch Logs Insights can filter stored application records and aggregate failures by source address over a selected time range. A single aggregate metric counts failures but does not rank their source addresses.