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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
A data analytics team wants to analyze customer feedback stored in BigQuery by using a pretrained Google large language model (LLM) hosted in Vertex AI. To securely query the model from BigQuery SQL without embedding API keys or user passwords in scripts, the team must establish a remote connection.
How should the team configure authentication and access for this remote connection?
Create a BigQuery Cloud resource connection, obtain the system-generated service account ID for the connection, and grant that service account the Vertex AI User role in IAM.
Generate an API key in the Google Cloud console, store it in Secret Manager, and reference the secret name inside the SQL query options.
Generate a client JSON Web Token (JWT) on a local machine and attach it to each batch SQL statement submitted to BigQuery.
Configure an SSH tunnel in BigQuery and supply user-level database credentials in the connection parameters.
Create a BigQuery Cloud resource connection, obtain the system-generated service account ID for the connection, and grant that service account the Vertex AI User role in IAM.
A BigQuery Cloud resource connection (also referred to as a remote connection) is a managed Google Cloud resource that allows BigQuery to securely interact with external Google Cloud services, such as Vertex AI foundational large language models (LLMs) and Cloud Functions, directly within SQL queries.
ML.GENERATE_TEXT or ML.PREDICT functions.roles/aiplatform.user) role specifically to the connection's service account in Identity and Access Management (IAM), BigQuery obtains delegated permissions to invoke the remote model without exposing user credentials or static API keys.CREATE OR REPLACE MODEL ... REMOTE WITH CONNECTION directly in standard BigQuery SQL syntax.Using a native Cloud resource connection with IAM service account delegation is the Google-recommended, zero-trust architecture pattern for extending BigQuery capabilities to Vertex AI foundational models.
Generate an API key in the Google Cloud console, store it in Secret Manager, and reference the secret name inside the SQL query options.
Generate a client JSON Web Token (JWT) on a local machine and attach it to each batch SQL statement submitted to BigQuery.
Configure an SSH tunnel in BigQuery and supply user-level database credentials in the connection parameters.