You are the lead data engineer at a media-streaming company. A real-time pipeline ingests Pub/Sub events, processes them through multiple Cloud Dataflow streaming jobs, and writes to BigQuery. Support engineers need a single dashboard that shows each stage's built-in system metrics together with Apache Beam user-defined counters, and they must receive alerts whenever end-to-end latency exceeds two minutes or worker-pool CPU utilization stays above 80 percent for five minutes. The business wants to minimize operational overhead and avoid operating any additional monitoring stack. Which monitoring strategy best meets these requirements?
Create log sinks for Pub/Sub, Dataflow, and BigQuery into Cloud Logging, derive log-based metrics for latency and CPU, and visualize them with Logging charts and alerts.
Enable Cloud Trace for each Dataflow job and configure trace-based alerts; correlate spans from Pub/Sub, Dataflow, and BigQuery in the Cloud Trace console.
Deploy a managed Prometheus server on GKE to scrape Dataflow worker logs, store the metrics, and visualize and alert on them using a self-hosted Grafana dashboard.
Leverage the default export of Dataflow job metrics to Cloud Monitoring, emit Beam counters as custom metrics, and build Cloud Monitoring dashboards and alerting policies for latency and CPU usage.
Cloud Dataflow automatically exports a rich set of built-in metrics (for example, elements-per-second, data freshness, CPU and memory usage) to Cloud Monitoring. Apache Beam user-defined counters can also be published as custom metrics that appear in the same Monitoring workspace. Using these metrics, engineers can build dashboards that combine Dataflow, Pub/Sub, and BigQuery data and can create alerting policies for latency and sustained CPU utilization. This provides a single pane of glass and proactive notifications without deploying or managing extra tooling.
The other options fall short:
Enabling Cloud Trace surfaces trace spans but not CPU, memory, or custom Beam counters.
Log-based metrics would require per-service extraction rules and still miss real-time Dataflow internals.
Running Prometheus and Grafana introduces additional infrastructure and contradicts the low-overhead requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Apache Beam user-defined counters?
Open an interactive chat with Bash
How does Cloud Monitoring integrate with Cloud Dataflow?
Open an interactive chat with Bash
What are the advantages of using Cloud Monitoring over Prometheus and Grafana in this scenario?
Open an interactive chat with Bash
What are Apache Beam user-defined counters?
Open an interactive chat with Bash
What built-in metrics does Cloud Dataflow export to Cloud Monitoring?
Open an interactive chat with Bash
Why is Cloud Monitoring preferred for dashboards and alerts in this scenario?
Open an interactive chat with Bash
GCP Professional Data Engineer
Designing data processing systems
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .