wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Engineering y BigQuery V1

Total questions: 10

Worksheet time: 50mins

Name
Class
Date
1.

What should you do?

a)

Use Prophet on Vertex AI Training to build a custom model.

b)

Use Vertex AI Forecast to build a NN-based model.

c)

Use BigQuery ML to build a statistical ARIMA_PLUS model.

d)

Use TensorFlow on Vertex AI Training to build a custom model.

2.

a)

b)

c)

d)

3.

How should you implement the preprocessing workflow?

a)

Implement a preprocessing pipeline by using Apache Spark, and run the pipeline on Dataproc. Save the preprocessed data as CSV files in a Cloud Storage bucket

b)

Load the data into a pandas DataFrame. Implement the preprocessing steps using pandas transformations, and train the model directly on the DataFrame.

c)

Perform preprocessing in BigQuery by using SQL. Use the BigQueryClient in TensorFlow to read the data directly from BigQuery.

d)

Implement a preprocessing pipeline by using Apache Beam, and run the pipeline on Dataflow. Save the preprocessed data as CSV files in a Cloud Storage bucket.

4.

What should you do?

a)

b)

c)

d)

5.

You are developing a model to help your company create more targeted online advertising campaigns. You need to create a dataset that you will use to train the model. You want to avoid creating or reinforcing unfair bias in the model. What should you do? (Choose two.)

a)

Include a comprehensive set of demographic features.

b)

Include only the demographic groups that most frequently interact with advertisements.

c)

Collect a random sample of production traffic to build the training dataset.

d)

Collect a stratified sample of production traffic to build the training dataset.

e)

Conduct fairness tests across sensitive categories and demographics on the trained model.

6.

You work at a gaming startup that has several terabytes of structured data in Cloud Storage. This data includes gameplay time data, user metadata, and game metadata. You want to build a model that recommends new games to users that requires the least amount of coding. What should you do?

a)

Load the data in BigQuery. Use BigQuery ML to train an Autoencoder model.

b)

Load the data in BigQuery. Use BigQuery ML to train a matrix factorization model.

c)

Read data to a Vertex AI Workbench notebook. Use TensorFlow to train a two-tower model.

d)

Read data to a Vertex AI Workbench notebook. Use TensorFlow to train a matrix factorization model.

7.

How should you configure this workflow?

a)

Write the transformations into Spark that uses the spark-bigquery-connector, and use Dataproc to preprocess the data.

b)

Write SQL queries to transform the data in-place in BigQuery.

c)

Add the transformations as a preprocessing layer in the TensorFlow models.

d)

Create a Dataflow pipeline that uses the BigQuerylO connector to ingest the data, process it, and write it back to BigQuery.

8.

What should you do?

a)

Use the TRANSFORM clause with the ML.ONE_HOT_ENCODER function on the categorical features at model creation and select the categorical and non-categorical features.

b)

Use the ML.ONE_HOT_ENCODER function on the categorical features and select the encoded categorical features and non-categorical features as inputs to create your model.

c)

Use the CREATE MODEL statement and select the categorical and non-categorical features.

d)

Use the ML.MULTI_HOT_ENCODER function on the categorical features, and select the encoded categorical features and non-categorical features as inputs to create your model.

9.

You want to train an AutoML model to predict house prices by using a small public dataset stored in BigQuery. You need to prepare the data and want to use the simplest, most efficient approach. What should you do?

a)

Write a query that preprocesses the data by using BigQuery and creates a new table. Create a Vertex AI managed dataset with the new table as the data source.

b)

Use Dataflow to preprocess the data. Write the output in TFRecord format to a Cloud Storage bucket.

c)

Write a query that preprocesses the data by using BigQuery. Export the query results as CSV files, and use those files to create a Vertex AI managed dataset.

d)

Use a Vertex AI Workbench notebook instance to preprocess the data by using the pandas library. Export the data as CSV files, and use those files to create a Vertex AI managed dataset.

10.

How should you speed up your model's predictions?

a)

Attach an NVIDIA P100 GPU to your deployed model’s instance.

b)

Use a low latency database for the customers’ historic purchase behavior.

c)

Deploy your model to more instances behind a load balancer to distribute traffic.

d)

Create a materialized view in BigQuery with the necessary data for predictions.