DEA-C01 practice question: Monitoring and logging pipelines (3 of 3)
Data Operations and Support A free question from our original DEA-C01 practice exam. Try it, then open the answer to see why each option is right or wrong.
A retail bank has a Kinesis Data Streams stream that feeds a Lambda function, which writes transactions to an analytics store. The team has seen several incidents in which the function fell behind during busy hours, and records sat in the stream for many minutes before anyone noticed.
The team wants an alarm that fires as soon as the consumer falls behind, using metrics that AWS already publishes, with no change to the function's code.
Which TWO actions meet these requirements? (Choose two.)
Choose two answers.
AA. Enable AWS CloudTrail data events for the stream, and query the events in CloudTrail Lake for each slow record.
BB. Increase the Lambda function's memory setting and its timeout, so that the function processes each batch faster and never falls behind.
CC. Create a CloudWatch alarm on the stream's GetRecords.IteratorAgeMilliseconds metric, which shows how long records waited.
DD. Create a CloudWatch alarm on the Lambda function's IteratorAge metric, which Lambda publishes for stream sources.
EE. Add a CloudWatch Logs subscription filter that sends the function's logs to a Lambda function that counts the log lines each minute.
Show the answer and explanation
Answers: C, D
A. Wrong: CloudTrail data events record API calls, not how far behind a consumer is. Querying them per record is slow and does not alarm when the lag grows.
B. Wrong: More memory can speed up processing, but the team wants an alarm that reports lag, not a faster function. The option does not add monitoring and cannot promise no lag under peak load.
E. Wrong: Counting log lines measures output volume, not how old the records are. The option does not describe the lag and would not alarm on it.
Explanation
Iterator age is the measure of consumer lag. Kinesis publishes an iterator age metric for the stream, and Lambda publishes one for functions that read from a stream, so an alarm on either shows when records wait too long. CloudTrail, memory tuning and log counts do not report how far behind the consumer is.
Want more on Monitoring and logging pipelines? The 5 full-length practice sets have 12 more Monitoring and logging pipelines questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →