🔥 40% Off Crucial Exams Memberships — This Week Only

3 days, 6 hours remaining!

AWS Certified Data Engineer Associate DEA-C01 Practice Question

An Apache Spark application running on Amazon EMR produces execution logs in the CloudWatch Logs group /emr/spark. The on-call engineer must receive an Amazon SNS notification whenever more than 100 lines that contain the text "ERROR" are written during any 5-minute interval. The solution must suppress alarms while the cluster is idle and should require the least ongoing maintenance. Which approach meets these requirements?

  • Stream the log group to Amazon Kinesis Data Streams with a subscription filter; use a Lambda function to parse each record, increment a custom CloudWatch metric, and create an alarm on that metric with a 5-minute period and an SNS action.

  • Create a CloudWatch Logs metric filter on /emr/spark that matches the pattern "ERROR" and assigns a value of 1 for each match. Then create a CloudWatch alarm on the filter's custom metric using a 5-minute period, the Sum statistic, a threshold of 100, TreatMissingData set to NotBreaching, and an SNS notification action.

  • Schedule a CloudWatch Logs Insights query every 5 minutes with EventBridge, have the query count ERROR occurrences, and invoke an AWS Lambda function that publishes an SNS message when the count exceeds 100.

  • Enable CloudWatch anomaly detection on the IncomingBytes metric for the log group and configure an alarm that triggers an SNS notification when the metric's value exceeds the anomaly threshold for two consecutive 5-minute periods.

AWS Certified Data Engineer Associate DEA-C01
Data Operations and Support
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot