Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Associate Data Practitioner

Scheduling and orchestration

Associate Data Practitioner · Lesson 11 of 16 · 1:16:00

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.

In this lesson

Prepare for the Google Cloud Associate Data Practitioner exam, on the official exam guide. In this lesson: scheduled queries, Cloud Scheduler, orchestrating many steps (Managed Airflow, formerly Cloud Composer, Workflows, and workflow templates), and choosing an orchestration tool. Includes three original practice questions, with Cymbal Energy, a fictional electricity and gas supplier, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Every night, in order

Every night, Cymbal Energy loads the meter files, transforms them, refreshes the billing tables, scores customers for churn, and sends the dashboards. Each step depends on the one before, and when one fails, the next must not run on stale data. So which tool should start what, and when?

Scheduled queries

The simplest automation is a scheduled query in BigQuery: a SQL statement that runs on a schedule, like every day at two, and writes its result to a table, by appending or overwriting. It runs through BigQuery Data Transfer Service, and can send an email or a Pub/Sub message when a run fails. Choose it for one SQL step on a schedule, like a nightly summary table. And for a whole set of dependent SQL tables, Dataform runs its workflows on a schedule, through workflow configurations.

Cloud Scheduler

Cloud Scheduler is a fully managed service for cron jobs: it triggers a target on a schedule, written in the familiar cron format. Its targets are an HTTP endpoint, a Pub/Sub topic, or an App Engine app, so it can start a Cloud Run function, a Dataflow template, or a workflow. It retries a failed job, following the retry settings that you choose. But it only starts things: it does not know how the steps of a pipeline depend on each other.

Orchestrating many steps

When a pipeline has many steps across services, with dependencies, retries, and alerts, you need an orchestrator. Managed Service for Apache Airflow, formerly Cloud Composer, runs Apache Airflow for you: each pipeline is a DAG, a graph of tasks written in Python, with operators for BigQuery, Dataflow, Spark, and many other services, even outside Google Cloud. Workflows is a lighter, serverless orchestrator: it calls services and APIs in order, from a definition written in YAML or JSON, with no charge while it is idle. Managed Service for Apache Spark workflow templates run a series of Spark jobs, on a cluster that the template can create for the run, then delete. And for pipelines made only of SQL in BigQuery, Dataform schedules are enough.

Choosing an orchestration tool

So which one? One SQL step on a schedule calls for a scheduled query, and a set of dependent SQL tables, for Dataform. To start a function, a job, or an API call at a set time, use Cloud Scheduler. A few service calls in order, serverless and light, suit Workflows, and a series of Spark jobs suits workflow templates. And complex pipelines, with many dependencies across services, written in Python, belong in Managed Airflow.

Recap

Let's recap. A scheduled query runs one SQL statement on a schedule, and writes a table, with alerts when a run fails. Cloud Scheduler triggers HTTP endpoints, Pub/Sub topics, or App Engine on a cron schedule, with retries. Managed Airflow orchestrates complex pipelines as DAGs in Python, across many services. Workflows chains service calls, serverless, and workflow templates chain Spark jobs. And Dataform schedules run pipelines made only of SQL in BigQuery.

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.

  1. One SQL statement must rebuild a summary table of consumption per town, every night at two, and nothing else. What is the simplest choice?

    • A Managed Airflow environment with a DAG
    • A streaming Dataflow pipeline
    • A virtual machine with a cron job
    • A scheduled query in BigQuery
    Show the answer

    A scheduled query in BigQuery

    A scheduled query runs one SQL statement on a schedule, and writes the table, with nothing to manage. “A Managed Airflow environment with a DAG” would add a whole Airflow environment for a single step. “A streaming Dataflow pipeline” would process a stream, not a nightly rebuild. And “A virtual machine with a cron job” would add a server to maintain.

  2. The nightly chain runs a Dataflow template, then a Spark job, then BigQuery transformations, then calls a partner’s API, with dependencies, retries, and alerts. The team writes Python. What fits?

    • Managed Service for Apache Airflow
    • One scheduled query for each step
    • Cloud Scheduler jobs at fixed times
    • A Spark workflow template
    Show the answer

    Managed Service for Apache Airflow

    Managed Airflow runs the whole chain as a DAG in Python, with dependencies, retries, and alerts across services. “One scheduled query for each step” only runs SQL in BigQuery, with no dependencies between the steps. “Cloud Scheduler jobs at fixed times” would start each step at a fixed time, even after a failure. And “A Spark workflow template” only chains Spark jobs.

  3. A small team must call a weather API, start a Dataflow template, then post a message, in that order, a few times a day. It wants something serverless, with nothing running between calls. What fits?

    • A Managed Airflow environment
    • Workflows
    • A scheduled query
    • A Spark workflow template
    Show the answer

    Workflows

    Workflows calls services in order, serverless, with no charge while it is idle. “A Managed Airflow environment” would keep a whole Airflow environment running for three calls. “A scheduled query” only runs SQL in BigQuery. And “A Spark workflow template” only runs Spark jobs.