Unlock the power of your data in the cloud! Get hands-on with Google Cloud's core data services like BigQuery and Looker to validate your practical skills in data ingestion, analysis, and management, and earn your Associate Data Practitioner certification!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A data analyst at an e-commerce company wants to build a machine learning model to predict customer lifetime spending using tabular transaction data stored in BigQuery. The analyst needs to follow the standard machine learning lifecycle directly within the data warehouse using SQL statements.
Which sequence of BigQuery ML SQL statements correctly follows the end-to-end lifecycle to train the model, assess its regression performance metrics (such as Mean Squared Error), and generate predictions on new customer records?
BigQuery ML (BQML) allows data professionals to build, operationalize, and manage machine learning models directly inside Google BigQuery using standard SQL queries. This avoids the latency and complexity of exporting large datasets to external machine learning frameworks.
CREATE MODEL): Defines the model type (such as linear_reg or boosted_tree_regressor), target label, and feature columns to train the model on data stored in BigQuery tables.ML.EVALUATE): Evaluates the trained model against test data to calculate statistical metrics such as Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and R-squared for regression tasks.ML.PREDICT): Applies the trained model to new or unseen feature data to generate predicted values directly in SQL query results.ML.EVALUATE) automatically compute appropriate metrics based on model type.Following the sequence of CREATE MODEL → ML.EVALUATE → ML.PREDICT represents the canonical, Google-recommended pattern for executing the standard ML project lifecycle inside BigQuery ML.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.