
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Use BigQuery to import data
/ 40
Compose a simple query
/ 30
Analyze a large billing dataset with SQL
/ 30
In this lab, you learn how to use BigQuery to analyze billing data.
In this lab, you learn how to perform the following tasks:
For each lab, you get a new Google Cloud project and set of resources for a fixed time at no cost.
Click the Start Lab button. If you need to pay for the lab, a pop-up opens for you to select your payment method. On the left is the Lab Details panel with the following:
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.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab Details panel.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab Details panel.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
In this task, you create a use BigQuery to create a dataset. You then create a table, before finally importing billing data from Cloud Storage.
Property | Value (type value or select option as specified) |
---|---|
Dataset ID: | billing_dataset |
Data location: | US |
Default maximum table age (check Enable table expiration): | 1 days (Default maximum table age) |
Property | Value (type value or select option as specified) |
---|---|
Create table from: | Google Cloud Storage |
Select file from GCS bucket | cloud-training/archinfra/BillingExport-2020-09-18.avro |
File format | Avro |
Property | Value (type value or select option as specified) |
---|---|
Table name | sampleinfotable |
Table type | Native table |
Click Check my progress to verify the objective.
In this task, you examine the data which you imported.
In this task, you compose and run a simple query to filter billing data.
When you reference a table in a query, both the dataset ID and table ID must be specified; the project ID is optional.
All the information you need is available in the BigQuery interface. In the column on the left, you see the dataset ID (billing_dataset) and table ID (sampleinfotable).
Recall that clicking on the table name brings up the Schema with all of the field names.
Now construct a simple query based on the Cost field.
Click Check my progress to verify the objective.
In this task, you use BigQuery to analyze a sample dataset with 415,602 lines of billing data.
Click Run. Verify that the resulting table has 415602 lines of billing data.
To find the latest 100 records where there were charges (cost > 0), for New Query, paste the following in Query Editor:
Click Run.
To find the product with the most records in the billing data, for New Query, paste the following in Query Editor:
Click Check my progress to verify the objective.
In this lab, you imported billing data into BigQuery that had been generated as a avro file. You ran a simple query on the file. Then you accessed a shared dataset containing more than 22,000 records of billing information. You ran a variety of queries on that data to explore how you can use BigQuery to ask and answer questions by running queries.
When you have completed your lab, click End Lab. Google Cloud Skills Boost 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:
You can close the dialog box if you don't want to provide feedback.
For feedback, suggestions, or corrections, please use the Support tab.
Copyright 2024 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.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one