D1: CloudWatch Logs, Metric Filters & Insights
AWS Associate AWS Certified CloudOps Engineer – Associate exam practice questions · 11 flashcards
Question
What is a log group vs log stream?
1 / 11
Tip: Space flips the card, ← / → navigate.
Show all 11 CloudWatch Logs, Metric Filters & Insights practice questions and answers
- What is a log group vs log stream?Log group: collection of streams sharing retention/permissions. Log stream: sequence of events from one source.
- Default log retention?Never expire. Set retention per log group to control cost.
- What is a metric filter?Extracts metric data from log events matching a pattern, e.g. count 'ERROR' lines.
- What is CloudWatch Logs Insights?Interactive query language to search and analyze log data.
- What is a subscription filter?Streams log events in real time to Lambda, Kinesis Data Streams, Firehose or OpenSearch.
- How do you export logs to S3?CreateExportTask (batch) or a subscription filter to Firehose (near real time).
- How do you centralize logs from many accounts?Cross-account subscription filters to a central destination, or CloudWatch cross-account observability.
- What is Live Tail?Real-time streaming view of log events in the console for troubleshooting.
- What is log anomaly detection?ML-based detection of unusual patterns in log groups.
- How do you encrypt a log group?Associate a KMS key with the log group.
- Scenario: alarm when application logs contain more than 10 '500' errors in 5 minutes. Approach?Metric filter on the log group + CloudWatch alarm on the resulting metric.