Google Cloud Professional Data Engineer — Question 118
You are operating a Cloud Dataflow streaming pipeline. The pipeline aggregates events from a Cloud Pub/Sub subscription source, within a window, and sinks the resulting aggregation to a Cloud Storage bucket. The source has consistent throughput. You want to monitor an alert on behavior of the pipeline with Cloud
Stackdriver to ensure that it is processing data. Which Stackdriver alerts should you create?
Answer options
- A. An alert based on a decrease of subscription/num_undelivered_messages for the source and a rate of change increase of instance/storage/ used_bytes for the destination
- B. An alert based on an increase of subscription/num_undelivered_messages for the source and a rate of change decrease of instance/storage/ used_bytes for the destination
- C. An alert based on a decrease of instance/storage/used_bytes for the source and a rate of change increase of subscription/ num_undelivered_messages for the destination
- D. An alert based on an increase of instance/storage/used_bytes for the source and a rate of change decrease of subscription/ num_undelivered_messages for the destination
Correct answer: B
Explanation
The correct answer is B because an increase in subscription/num_undelivered_messages indicates that messages are not being processed, which is a problem, while a decrease in instance/storage/used_bytes suggests that fewer resources are being utilized, possibly due to a lack of activity. The other options either indicate normal processing or incorrect alert conditions that do not effectively monitor the pipeline's health.