QuestionQ20

Maintaining and automating data workloads

You run an IoT pipeline based on Apache Kafka that typically receives about 5000 messages per second. You want to use Google Cloud Platform to create an alert as soon as the 1-hour moving average falls below 4000 messages per second. What should you do?

Explanation

A 1-hour sliding (hopping) window evaluated every 5 minutes creates overlapping windows, each containing the most recent hour of messages, so it can calculate and alert on a current 1-hour moving average at five-minute intervals. Google Cloud documents that hopping windows overlap and are used for running averages; fixed windows are disjoint intervals.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!