Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

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

Formats, extraction, and loading

Associate Data Practitioner · Lesson 3 of 16 · 14:44

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: text formats (CSV, newline delimited JSON), binary formats (Avro, Parquet), extraction tools (BigQuery Data Transfer Service, Database Migration Service, Cloud Data Fusion, Dataflow), and loading tools (gcloud storage, bq load, client libraries, external tables). 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.

Data in every shape

Cymbal Energy's data comes in every shape. Old meters send CSV files, new meters send Avro files, a partner exports Parquet, the customer app logs JSON events, and customer accounts live in a PostgreSQL database. Each format, and each source, calls for its own way to extract and load the data.

Text formats

Start with the format. CSV is plain text, with one row per line: simple and universal, but with no data types, and no nested data. JSON can describe nested and repeated fields, and BigQuery loads it as newline delimited JSON, with one object per line. Both are easy to read, but they are larger and slower to load than binary formats.

Binary formats

Avro is a binary format, organized by rows, with its schema stored in the file. Google calls it the preferred format for loading data into BigQuery, because its compressed blocks can be read in parallel. Parquet is a binary format organized by columns, also self-describing and well compressed, which suits analytics that read only a few columns. And structured database tables, like those in Cloud SQL, already have a fixed schema, so they are extracted with database tools, rather than as files.

Extraction tools

Next, the extraction tools. BigQuery Data Transfer Service schedules loads into BigQuery from supported sources, like Cloud Storage, Amazon S3, Amazon Redshift, some databases, and marketing applications, with no code. Database Migration Service moves a whole database, like PostgreSQL or MySQL, into Cloud SQL or AlloyDB, with a continuous migration that keeps downtime short. With Cloud Data Fusion, you extract data visually, through ready-made connectors to databases and business applications. And with Dataflow, you extract and transform data in code, from almost any source, in batch or in streaming.

Loading tools

Finally, loading. The gcloud storage command copies files into Cloud Storage, and the bq command line tool loads files into BigQuery tables, with bq load. Storage Transfer Service and BigQuery Data Transfer Service do the same on a schedule, with no code. Client libraries, for Python, Java, Go, and other languages, let an application load data itself, for example right after it processes a file. And for files that you only query now and then, BigQuery can read them where they are, through external tables, without loading them.

Recap

Let's recap. CSV and JSON are text formats: CSV has no types and no nesting, and JSON loads as one object per line. Avro and Parquet are binary and self-describing: Avro is organized by rows and loads fastest, and Parquet is organized by columns. BigQuery Data Transfer Service schedules loads into BigQuery, and Database Migration Service moves whole databases into Cloud SQL or AlloyDB. Cloud Data Fusion uses connectors, and Dataflow uses code. And gcloud storage, bq load, and client libraries load data by command or from an application.

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. A partner sends large daily files, and Cymbal Energy wants them to load into BigQuery as fast as possible, with the schema read from the files themselves. Which format should it ask for?

    • CSV with a header row
    • Newline delimited JSON
    • Spreadsheet workbooks
    • Avro
    Show the answer

    Avro

    Avro carries its own schema, and its compressed blocks load in parallel, which makes it the preferred format for BigQuery. “CSV with a header row” only names the columns, without any data types. “Newline delimited JSON” is text, larger and slower to load than a binary format. And “Spreadsheet workbooks” is not a format that a BigQuery load job reads.

  2. Cymbal Energy is moving its customer database, PostgreSQL in its own data center, to a managed service on Google Cloud, with as little downtime as possible. Which tool fits?

    • BigQuery Data Transfer Service
    • Database Migration Service
    • Transfer Appliance
    • Storage Transfer Service
    Show the answer

    Database Migration Service

    Database Migration Service moves PostgreSQL into Cloud SQL or AlloyDB, with a continuous migration that keeps downtime short. “BigQuery Data Transfer Service” only loads data into BigQuery, it does not move a database. “Transfer Appliance” only ships files on a device. And “Storage Transfer Service” only copies files and objects into Cloud Storage.

  3. A Python application already processes each new meter file. It must then add the cleaned rows to a BigQuery table, inside the same program. What should it use?

    • The BigQuery client library for Python
    • Transfer Appliance
    • A Storage Transfer Service job
    • Database Migration Service
    Show the answer

    The BigQuery client library for Python

    The BigQuery client library for Python lets the application load the rows itself, in the same program. “Transfer Appliance” is a shipped device, for one large transfer. “A Storage Transfer Service job” only copies files between storage systems, without loading rows into a table. And “Database Migration Service” only migrates databases into Cloud SQL or AlloyDB.