Create a cloud data fusion instance

Check my progress

/ 25

Add Cloud Data Fusion API Service Agent role to service account

Check my progress

/ 25

Deploy a sample pipeline

Check my progress

/ 25

View the result

Check my progress

/ 25

This lab may incorporate AI tools to support your learning.
This content is not yet optimized for mobile devices.
For the best experience, please visit us on a desktop computer using a link sent by email.

Google Cloud Self-Paced Labs logo

Overview

This lab teaches you how to create a Data Fusion instance and deploy a provided sample pipeline. The pipeline reads a JSON file containing NYT bestseller data from Cloud Storage, runs transformations on the file to parse and clean the data, and loads a subset of the records into BigQuery.

What you'll learn

In this lab, you learn how to perform the following tasks:

  • Create a Cloud Data Fusion instance.
  • Deploy a sample pipeline that transforms a JSON file and loads matching results into BigQuery.
  • Run the pipeline and query the output table in BigQuery.

Setup

For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.

  1. Sign in to Google Skills using an incognito window.

  2. Note the lab's access time (for example, 1:15:00), and make sure you can finish within that time.
    There is no pause feature. You can restart if needed, but you have to start at the beginning.

  3. When ready, click Start lab.

  4. Note your lab credentials (Username and Password). You will use them to sign in to the Google Cloud Console.

  5. Click Open Google Console.

  6. Click Use another account and copy/paste credentials for this lab into the prompts.
    If you use other credentials, you'll receive errors or incur charges.

  7. Accept the terms and skip the recovery resource page.

How to start your lab and sign in to the Google Cloud console

  1. Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the right is the Lab setup and access panel with the following:

    • The Open Google Cloud console button
    • The temporary credentials (username and password) that you must use for this lab
    • Other information, if needed, to step through this lab

    Note that the lab timer is located near the top of the page, showing the remaining time.

  2. Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).

    The lab spins up resources, and then opens another tab that shows the Sign in page.

    Tip: Arrange the tabs in separate windows, side-by-side.

    Note: If you see the Choose an account dialog, click Use Another Account.
  3. If necessary, copy the Username below and paste it into the Sign in dialog.

    {{{user_0.username | "Username"}}}

    You can also find the Username in the Lab setup and access panel.

  4. Click Next.

  5. Copy the Password below and paste it into the Welcome dialog.

    {{{user_0.password | "Password"}}}

    You can also find the Password in the Lab setup and access panel.

  6. Click Next.

    Important: You must use the credentials the lab provides you. Do not use your Google Cloud account credentials. Note: Using your own Google Cloud account for this lab may incur extra charges.
  7. Click through the subsequent pages:

    • Accept the terms and conditions.
    • Do not add recovery options or two-factor authentication (because this is a temporary account).
    • Do not sign up for free trials.

After a few moments, the Google Cloud console opens in this tab.

Note: To access Google Cloud products and services, click the Navigation menu or type the service or product name in the Search field. Navigation menu icon and Search field

Activate Cloud Shell

Cloud Shell is a virtual machine that contains development tools. It offers a persistent 5-GB home directory and runs on Google Cloud. Cloud Shell provides command-line access to your Google Cloud resources. gcloud is the command-line tool for Google Cloud. It comes pre-installed on Cloud Shell and supports tab completion.

  1. Click the Activate Cloud Shell button (Activate Cloud Shell icon) at the top right of the console.

  2. Click Continue.
    It takes a few moments to provision and connect to the environment. When you are connected, you are also authenticated, and the project is set to your PROJECT_ID.

Sample commands

  • List the active account name:
gcloud auth list

(Output)

Credentialed accounts: - <myaccount>@<mydomain>.com (active)

(Example output)

Credentialed accounts: - google1623327_student@qwiklabs.net
  • List the project ID:
gcloud config list project

(Output)

[core] project = <project_ID>

(Example output)

[core] project = qwiklabs-gcp-44776a13dea667a6 Note: Full documentation of gcloud is available in the gcloud CLI overview guide.

Check project permissions

Before you begin working on Google Cloud, you must ensure that your project has the correct permissions within Identity and Access Management (IAM).

  1. In the Google Cloud console, on the Navigation menu (Navigation menu icon), click IAM & Admin > IAM.

  2. Confirm that the default compute Service Account {project-number}-compute@developer.gserviceaccount.com is present and has the editor role assigned. The account prefix is the project number, which you can find on Navigation menu > Cloud overview.

Default compute service account

If the account is not present in IAM or does not have the editor role, follow the steps below to assign the required role.

  1. In the Google Cloud console, on the Navigation menu, click Cloud overview.

  2. From the Project info card, copy the Project number.

  3. On the Navigation menu, click IAM & Admin > IAM.

  4. On the IAM page, click + Grant Access.

  5. For New principals, type:

{project-number}-compute@developer.gserviceaccount.com

Replace {project-number} with your project number.

  1. For Select a role, select Basic (or Project) > Editor.

  2. Click Save.

Task 1. Enable Cloud Data Fusion API

  1. In the Google Cloud console, on the Navigation menu (Navigation menu), click APIs & Services > Library.

  2. In the search box, type Data fusion, and then click Cloud Data Fusion API in the results.

  3. If the API is already enabled, click Manage, and then click Disable API.

  4. Click Disable to confirm.

  5. After the API is disabled, click Enable to re-enable the API.

Task 2. Create a Cloud Data Fusion instance

  1. In the Google Cloud console, on the Navigation menu (Navigation menu), click View all products, and then under Analytics, click Data Fusion.

  2. Click Create an Instance to create a Cloud Data Fusion instance.

  3. On the Create Data Fusion instance page:

a. Enter a name for your instance (such as cdf-lab-instance).

b. For Region, select us-central1.

c. For Edition, select Basic.

d. In the Authorization section, click Grant Permission if prompted.

e. Expand Advanced Options, and under Advanced Monitoring and Logging, select Enable Dataproc Cloud logging.

f. Leave the remaining settings as their defaults, and then click Create.

Click Check my progress to verify the objective. Create a cloud data fusion instance

Note: Creation of the instance takes around 10 minutes. While you're waiting, please watch this presentation on Cloud Data Fusion from Next '19 starting at the 15:31 time stamp. Come back and check on your instance every now and then, you can finish watching the video after the lab is completed.

Note: Remember, this lab has a time limit, and you will lose your work when the time runs out.

Next, grant permissions to the service account associated with the instance:

  1. Click your instance name, and on the Instance details page, copy the Dataproc Service Account to your clipboard.

Service Account highlighted on the Instance details page

  1. In the Google Cloud console, on the Navigation menu (Navigation menu), click IAM & Admin > IAM.

  2. On the IAM page, click +Grant Access.

  3. In the New principals field, paste the Managed Service for Spark Service Account.

  4. In the Select a role field, type Cloud Data Fusion API Service Agent, and then select it.

  5. Click Save.

Note: Newly created lab projects and user credentials can take several minutes to propagate across Google Cloud IAM. If you encounter a 403 or IAM policy update failed error when clicking Save, wait several minutes and try saving again.

Click Check my progress to verify the objective. Add Cloud Data Fusion API Service Agent role to service account

Task 3. Navigate the Cloud Data Fusion UI

When using Cloud Data Fusion, you use both the Cloud console and the separate Cloud Data Fusion UI.

  • In the Cloud console, you can create and delete Cloud Data Fusion instances, and view Cloud Data Fusion instance details.

  • In the Cloud Data Fusion web UI, you can use the various pages, such as Pipeline Studio or Wrangler, to use Cloud Data Fusion functionality.

To navigate the Cloud Data Fusion UI, follow these steps:

  1. In the Google Cloud console, on the Navigation menu (Navigation menu), click View all products, and then under Analytics, click Data Fusion.

  2. Click View Instance next to your Data Fusion instance.

  3. Select your lab credentials to sign in, select Manage your Google Service Control data if prompted, and then click Continue.

Highlighted View Instance link

  1. If prompted to take a tour of the service, click Cancel to open the Cloud Data Fusion UI.

The Cloud Data Fusion web UI includes its own navigation menu to move between pages.

Task 4. Deploy a sample pipeline

Sample pipelines are available through the Cloud Data Fusion Hub, which allows you to share reusable Cloud Data Fusion pipelines, plugins, and solutions.

  1. In the Cloud Data Fusion web UI, click HUB.

Highlighted HUB link

  1. In the navigation menu, click Pipelines.

  2. Click Cloud Data Fusion Quickstart, and then click Create.

Highlighted Cloud Data Fusion Quickstart tile on the Pipelines page

  1. In the Cloud Data Fusion Quickstart configuration panel, click Finish.

  2. Click Customize Pipeline. A visual representation of your pipeline appears in the Pipeline Studio, which is a graphical interface for developing data integration pipelines. Available pipeline plugins are listed in the studio palette, and your pipeline is displayed on the main canvas area. You can explore your pipeline by holding the pointer over each pipeline node and clicking Properties to view the objects and operations associated with the node.

Note: A node in a pipeline is an object that is connected in a sequence to produce a Directed Acyclic Graph. E.g. Source, Sink, Transform, Action, etc.

Pipeline Studio displaying a visual representation of the pipeline

  1. Click Deploy to submit the pipeline to Cloud Data Fusion.

Deploy icon

Task 5. View your pipeline

The deployed pipeline appears in the pipeline details view, where you can do the following:

  • View the pipeline's structure and configuration.

  • Run the pipeline manually or set up a schedule or a trigger.

  • View a summary of the pipeline's historical runs, including execution times, logs, and metrics.

Pipeline details view

Task 6. Execute your pipeline

  1. In the pipeline details view, click Run to execute your pipeline.
Note: When executing a pipeline, Cloud Data Fusion provisions an ephemeral Managed Service for Spark cluster, executes the pipeline on the cluster using Apache Hadoop MapReduce or Apache Spark, and then deletes the cluster. When the pipeline transitions to the Running state, you can monitor the Managed Service for Spark cluster creation and deletion. This cluster only exists for the duration of the pipeline. Note: If the pipeline status fails, rerun the pipeline again.
  1. After a few minutes, the pipeline finishes. The pipeline Status changes to Succeeded and the number of records processed by each node is displayed.

Finished pipeline with success status and number of records processed by each node

Click Check my progress to verify the objective. Deploy and execute a sample pipeline

Task 7. View the results

The pipeline writes output into a BigQuery table. You can verify that using the following steps.

  1. In the Google Cloud console, on the Navigation menu (Navigation menu), click BigQuery.

  2. In the Classic Explorer pane, click your Project ID (it starts with qwiklabs).

  3. Under the GCPQuickstart dataset in your project, click the top_rated_inexpensive table.

  4. Click + SQL Query, paste the query below, and then click Run.

SELECT * FROM `{{{project_0.project_id | "PROJECT_ID"}}}.GCPQuickStart.top_rated_inexpensive` LIMIT 10
  1. Wait for the query to finish. The Results tab displays output similar to the following:

Query results

Click Check my progress to verify the objective. View the result

Congratulations!

In this lab, you learned how to create a Data Fusion instance and deploy a sample pipeline that reads an input file from Cloud Storage, transforms and filters the data to output a subset of the data into BigQuery.

End your lab

When you have completed your lab, click End Lab. Google Skills removes the resources you’ve used and cleans the account for you.

You will be given an opportunity to rate the lab experience. Select the applicable number of stars, type a comment, and then click Submit.

The number of stars indicates the following:

  • 1 star = Very dissatisfied
  • 2 stars = Dissatisfied
  • 3 stars = Neutral
  • 4 stars = Satisfied
  • 5 stars = Very satisfied

You can close the dialog box if you don't want to provide feedback.

For feedback, suggestions, or corrections, please use the Support tab.

Manual Last Updated on November 19, 2026

Lab Last Tested November 11, 2026

Copyright 2026 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.

Before you begin

  1. Labs create a Google Cloud project and resources for a fixed time
  2. Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
  3. On the top left of your screen, click Start lab to begin

Use private browsing

  1. Copy the provided Username and Password for the lab
  2. Click Open console in private mode

Sign in to the Console

  1. Sign in using your lab credentials. Using other credentials might cause errors or incur charges.
  2. Accept the terms, and skip the recovery resource page
  3. Don't click End lab unless you've finished the lab or want to restart it, as it will clear your work and remove the project

This content is not currently available

We can notify you via email when it becomes available

Great!

We can contact you via email if it becomes available

One lab at a time

Confirm to end all existing labs and start this one

Use private browsing to run the lab

Using an Incognito or private browser window is the best way to run this lab. This prevents any conflicts between your personal account and the Student account, which may cause extra charges incurred to your personal account.