Monitoring and troubleshooting
Professional Data Engineer · Lesson 22 of 23 · 2:42:32
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Google Cloud Professional Data Engineer exam, on the official exam guide. In this lesson: alerting policies and log-based metrics with Cloud Monitoring and Cloud Logging, audit logs, Dataflow and Pub/Sub health signals, BigQuery operational health, resource charts, and jobs explorer, INFORMATION_SCHEMA.JOBS, and troubleshooting quota, rate limit, resources, and billing errors. Includes three original practice questions, with Cymbal Mobility, a fictional ride-hailing and scooter company, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Nobody noticed
One morning, Cymbal Mobility's dashboards are empty: the nightly load failed at two, and nobody noticed before nine. Another day, queries fail with a quota error, and slot usage jumps with no clear cause. The data engineer needs to see problems first, and to find their cause quickly.
Monitoring and Logging
Cloud Monitoring collects metrics from every service, shows them in dashboards, and its alerting policies notify people or groups when a condition is met. Cloud Logging stores the logs, and log-based metrics turn matching log entries into counts or distributions, for alerts on errors. A log sink can route logs to a BigQuery dataset, for long-term analysis with SQL. Cloud Audit Logs show who did what, and when, for security and compliance. For pipelines, watch data freshness and backlog in Dataflow, the age of the oldest unacknowledged message in Pub/Sub, and failed DAG runs and tasks in Managed Airflow.
BigQuery administration tools
The BigQuery administration tools cover the whole organization. Operational health charts show usage across locations in real time, and resource utilization charts use history for root-cause analysis and capacity planning. The jobs explorer filters jobs by project, user, or reservation, compares their performance, and shows their slot usage. And the information schema jobs views keep the metadata of the last hundred and eighty days, like data processed, slot time, and errors, for analysis with SQL.
Monitoring planned usage
Compare actual usage with the plan. Slot usage for each reservation shows whether baseline and autoscaling fit the demand, and how often jobs wait. Quota usage shows how close each project is to its limits, before a job fails. Budgets alert at thresholds of the planned amount, and the billing export shows the project, service, or label that drives the costs. And when a workload outgrows its capacity, cancel runaway jobs, or move its project to another reservation, with a new assignment.
Errors, billing, and quotas
Read the reason of each error first. A quota exceeded error means that a project went past a BigQuery quota or a custom quota, and the message names the quota: reduce usage, wait, or request a change to the custom quota. A rate limit exceeded error means too many requests too quickly, so retry with exponential backoff, and group small requests. A resources exceeded error means that a job used too many resources, so simplify the query, or split the work. And billing not enabled stops jobs until billing is enabled for the project, while the jobs views find the jobs behind an unexpected cost.
Recap
Let's recap. Cloud Monitoring alerts on metrics, and Cloud Logging adds log-based metrics, sinks to BigQuery, and audit logs. Watch freshness and backlog in pipelines, and failed runs in Airflow. Operational health and resource utilization charts, the jobs explorer, and the jobs views show BigQuery across the organization. Compare slots, quotas, and budgets with the plan, and move or cancel work when needed. And read the error reason: quota, rate limit with backoff, resources, or billing.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
The nightly load DAG failed at two in the morning, and nobody noticed before nine, when users complained. What should the data engineer set up?
- A dashboard that the team checks every morning
- A log sink that routes the logs to BigQuery
- An alerting policy on failed tasks, to on-call
- Cloud Audit Logs on the Airflow environment
Show the answer
An alerting policy on failed tasks, to on-call
An alerting policy notifies the on-call team as soon as a task fails, at any hour. “A dashboard that the team checks every morning” would still wait for someone to look, in the morning. “A log sink that routes the logs to BigQuery” stores logs for analysis, but notifies nobody. And “Cloud Audit Logs on the Airflow environment” shows who changed what, not whether a run failed.
Dashboard queries in the BI reservation run slowly every morning, between eight and nine. The data engineer wants to see whether the reservation runs out of slots at that time, across all its projects. What should they use?
- Resource utilization charts
- A dry run of each dashboard query
- Cloud Audit Logs of each project
- Budget alerts on the BI project
Show the answer
Resource utilization charts
Resource utilization charts show slot usage over time, for each reservation, across its projects. “A dry run of each dashboard query” gives an estimate of the data a query would process, not the slots in use. “Cloud Audit Logs of each project” shows who did what, not the use of slots. And “Budget alerts on the BI project” warns about spending, not about capacity at a given hour.
A pipeline sends many small load requests in a burst, and gets rate limit exceeded errors, while the same jobs succeed when started a little later. What should the data engineer do?
- Request a higher custom quota for the project
- Enable billing on the project again
- Move the project to a larger reservation
- Retry with backoff, and group the requests
Show the answer
Retry with backoff, and group the requests
Exponential backoff spaces out the retries, and grouping small requests sends fewer of them. “Request a higher custom quota for the project” concerns the data processed each day, not short-term request rates. “Enable billing on the project again” is not the cause, since the same jobs succeed later. And “Move the project to a larger reservation” adds slots, but the limit applies to requests, not compute.