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 has trained a classification model named customer_churn_model using BigQuery ML to predict customer attrition. The analyst now needs to generate batch predictions on a new dataset of current subscribers stored in a table named active_customers and output the predicted labels alongside customer identifiers for a marketing campaign.
Which BigQuery ML function should the analyst use to execute these predictions?
ML.PREDICT is the standard BigQuery ML function used to generate predictions, classifications, or cluster assignments using a previously trained machine learning model. It allows data practitioners to run batch inference directly inside BigQuery using standard SQL syntax without exporting data or managing external prediction microservices.
ML.PREDICT takes the trained model name (customer_churn_model) and an input table or subquery (active_customers) to generate predicted labels for each record in parallel.ML.PREDICT includes all original input columns alongside new prediction columns (such as predicted_ and predicted__probs), making it easy to filter, aggregate, or join directly with downstream marketing and reporting tables.customer_id) from the input data alongside prediction outputs.ML.PREDICT is specifically designed for supervised and unsupervised batch inference on tabular datasets. It minimizes operational complexity and latency by executing predictive scoring directly where the data resides.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.