Data Security and Governance

Application logs already reside in CloudWatch Logs. An engineer needs an immediate, one-time count of errors by application during the last hour without copying logs or provisioning infrastructure. Which approach is BEST?

Show the answer

Correct answerD. Run a CloudWatch Logs Insights query with aggregation.

AWhy not this: Redshift requires loading the logs into a warehouse rather than querying them in place.

BWhy not this: Athena is suitable for S3 logs, but exporting adds data movement and delay.

CWhy not this: OpenSearch supports log analysis, but indexing copies the logs into another system.

DWhy this is right: Logs Insights filters and aggregates existing CloudWatch Logs events without a separate data pipeline.

CloudWatch Logs Insights queries existing log groups directly and supports filtering and aggregation over a selected time range. Athena can analyze logs in S3, but exporting these logs adds an unnecessary data movement step.