AWS Data Engineer Associate (DEA-C01) · Free practice question 9 of 12
Metric filter alarms on log patterns
A batch loader at Ingram Freight writes the text LOAD_REJECTED to CloudWatch Logs whenever it skips a malformed file. The team wants an email when more than 20 such lines appear within 15 minutes. What should the data engineer configure?
- A.A CloudWatch Logs Insights query for LOAD_REJECTED saved to a dashboard that refreshes every 15 minutes
- B.A metric filter for LOAD_REJECTED plus a CloudWatch alarm on that metric with an SNS action
- C.AWS CloudTrail Insights on the account
- D.An S3 Lifecycle rule on the loader's output bucket
Show answer and explanation
Correct answer: B. A metric filter for LOAD_REJECTED plus a CloudWatch alarm on that metric with an SNS action
Why: A metric filter turns matching log lines into a CloudWatch metric; an alarm on that metric with a threshold of 20 over a 15-minute period can notify an SNS topic that emails subscribers. A saved Logs Insights query on a dashboard shows data only when someone looks. CloudTrail Insights detects unusual API activity, not application log text. Lifecycle rules manage storage.
More free AWS Data Engineer Associate (DEA-C01) questions
- Kinesis on-demand capacity mode
- MSK Connect sink connector to S3
- Glue resolveChoice for ambiguous types
- Graph data structures in Amazon Neptune
- S3 Intelligent-Tiering for unknown access
- Redshift concurrency scaling for bursts
- DynamoDB export to S3 for analytics
- Athena workgroup per-query scan limit
- Glue sensitive data detection and redaction
- Parameter Store for non-secret configuration
- Lake Formation cross-account sharing