CertKeen

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?

  1. A.A CloudWatch Logs Insights query for LOAD_REJECTED saved to a dashboard that refreshes every 15 minutes
  2. B.A metric filter for LOAD_REJECTED plus a CloudWatch alarm on that metric with an SNS action
  3. C.AWS CloudTrail Insights on the account
  4. 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