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 team is expanding their data warehouse capabilities by integrating external machine learning capabilities into BigQuery. They have set up a BigQuery Cloud resource connection named my_connection in the us multi-region and granted the associated service account the required Vertex AI permissions.
Which Data Definition Language (DDL) statement should the team run in BigQuery to register a remote model that connects through this external connection?
A remote model in BigQuery ML acts as a reference to a machine learning model or service hosted outside BigQuery's native execution engine, such as a foundation model deployed on Vertex AI or a Cloud AI service. Defining a remote model allows SQL developers and data analysts to run inference directly against powerful external models using standard BigQuery SQL statements without extracting data or writing bespoke Python client code.
CREATE OR REPLACE MODEL followed by the dataset and model resource name.REMOTE WITH CONNECTION paired with the fully qualified connection path (my_project.us.my_connection), allowing BigQuery to use the connection's delegated service account credentials.OPTIONS clause specifies the ENDPOINT (or model name) pointing to the corresponding Vertex AI service endpoint in the designated location.ML.GENERATE_TEXT or ML.PREDICT.This statement uses the exact GoogleSQL DDL syntax designed for registering external and remote models. It encapsulates the connection identifier and target endpoint parameters cleanly within the standard REMOTE WITH CONNECTION definition.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.