Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Machine Learning Engineer practice bank has an additional 974 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
A retail company stores product images, demo videos, and PDF specification sheets in a Cloud Storage bucket in europe-west2, alongside product descriptions in a BigQuery dataset in europe-west2. You must build an automated BigQuery ML SQL pipeline that meets the following requirements:
VECTOR_SEARCH.Which implementation should you choose?
europe-west2 with appropriate IAM roles granted to the connection's service account; register remote models in europe-west2 using ENDPOINT = 'gemini-embedding-2' (which automatically selects the global endpoint) and a Gemini model; run ML.GENERATE_EMBEDDING (flatten_json_output = TRUE, 512 AS output_dimensionality) over a STRUCT of the text STRING and OBJ.MAKE_REF ObjectRef values; and run AI.GENERATE_TABLE with a custom SQL schema over the object table while using BigQuery remote inference retry scripts to handle RESOURCE_EXHAUSTED row statuses.This architecture orchestrates multimodal embedding generation and schema-enforced structured extraction entirely within BigQuery SQL by pairing BigQuery object tables, ObjectRef values, and Cloud Resource connections with Gemini Enterprise Agent Platform remote models.
'gemini-embedding-2' and passing a STRUCT containing both the text STRING and OBJ.MAKE_REF(...) ObjectRef values to ML.GENERATE_EMBEDDING (or AI.GENERATE_EMBEDDING) with 512 AS output_dimensionality and flatten_json_output = TRUE generates a unified 512-dimensional ARRAY<FLOAT64> vector space directly compatible with VECTOR_SEARCH.gemini-2.5-pro) and invoking AI.GENERATE_TABLE against the object table allows the LLM to read raw PDFs in Cloud Storage and output material, dimensions, and warranty period into strongly typed BigQuery columns defined by a custom SQL schema.europe-west2 satisfies regional alignment rules, and specifying the short 'gemini-embedding-2' endpoint name automatically routes inference from europe-west2 to the global endpoint. Granting the connection's service account Storage and Agent Platform permissions (via roles/bigquery.connectionsAdmin, roles/resourcemanager.projectIamAdmin, and bucket storage roles if cross-project) secures access without exporting data.RESOURCE_EXHAUSTED row-level errors, orchestrating calls with the BigQuery remote inference SQL scripts (or Dataform dataform-bqml package) iteratively retries failed rows until complete.ObjectRef references.AI.GENERATE_EMBEDDING offers identical embedding functionality with simplified output column names (embedding, statistics, status) alongside AI.GENERATE_TABLE.Unlike open models (which lack multimodal support), AI.CLASSIFY (which only emits single categorical scalars), or cross-region deployments (which fail SQL validation), this pattern satisfies every multimodal, schema, regional, security, and reliability constraint natively in BigQuery ML.
us multi-region dataset to maximize model availability while keeping the object table in europe-west2, pass the product demo videos with 512 AS output_dimensionality to ML.GENERATE_EMBEDDING, and rely on BigQuery query job completion to confirm all rows were processed before running AI.GENERATE_TABLE.This design places remote models in the us multi-region while leaving input data in europe-west2, passes output_dimensionality when generating video embeddings, and treats BigQuery job success as confirmation that every row completed inference.
ML.GENERATE_EMBEDDING and AI.GENERATE_EMBEDDING require the remote model and input table to reside in the same region or multi-region as the executing query. Referencing a us remote model against a europe-west2 object table fails at query execution.output_dimensionality error on video inputs: The output_dimensionality parameter is supported only for text and image embeddings. Passing output_dimensionality when generating video embeddings causes ML.GENERATE_EMBEDDING to return an error.RESOURCE_EXHAUSTED quota errors. Relying solely on job completion leaves failed rows with NULL embeddings or outputs unless row statuses are checked and retried.output_dimensionality is omitted, multimodal embedding functions process only the first two minutes of any video file.RESOURCE EXHAUSTED messages in the output status column while letting the parent SQL job finish.us multi-region, output_dimensionality were applied exclusively to text or image inputs rather than video, and you incorporated iterative retry workflows to handle partial quota failures.europe-west2, configure the remote embedding model using the explicit https://aiplatform.eu.rep.googleapis.com/v1/projects/PROJECT_ID/locations/eu/publishers/google/models/gemini-embedding-2 endpoint, call ML.GENERATE_EMBEDDING with STRUCT(FALSE AS flatten_json_output, 512 AS output_dimensionality), and use AI.CLASSIFY over a BigQuery object table to populate the structured PDF attribute columns.This configuration explicitly pins the gemini-embedding-2 remote model to the eu multi-regional endpoint, disables JSON output flattening in ML.GENERATE_EMBEDDING, and applies the managed AI.CLASSIFY function to extract attributes from PDF files.
VECTOR_SEARCH: Setting flatten_json_output = FALSE instructs ML.GENERATE_EMBEDDING to return the raw JSON response payload from the Vertex AI predict endpoint rather than a flattened ARRAY<FLOAT64> column. VECTOR_SEARCH requires an array of floating-point numbers and cannot directly index or search unparsed JSON strings.europe-west2: For gemini-embedding-2, queries executed in europe-west2 or europe-west6 are routed to the global endpoint, not the eu multi-regional endpoint. Hardcoding the eu endpoint URL violates regional routing rules and can cause region-alignment failures.AI.CLASSIFY: AI.CLASSIFY is a scalar managed AI function built to assign inputs to predefined categorical labels (for example, in a GROUP BY clause). It cannot parse unstructured PDFs into multiple distinct typed attributes conforming to a custom multi-column SQL schema.flatten_json_output defaults to TRUE in ML.GENERATE_EMBEDDING specifically so that ml_generate_embedding_result outputs an ARRAY<FLOAT64> ready for VECTOR_SEARCH.AI.IF, AI.CLASSIFY, AI.SCORE, AI.AGG) return single scalar values without detailed model metadata, whereas AI.GENERATE_TABLE and AI.GENERATE support custom SQL output schemas.europe-west2 or europe-west6 (such as europe-west4), you wanted raw JSON prediction metadata for custom downstream parsing, and your only goal was assigning rows into fixed categories.europe-west2 using REMOTE WITH CONNECTION DEFAULT, deploy an open model (such as Gemma from Agent Platform Model Garden) to extract the PDF attributes via AI.GENERATE_TEXT, and create a multimodalembedding@001 remote model to embed the combined text-and-image STRUCT with 512 AS output_dimensionality.This approach attempts to combine a BigQuery-managed open model deployed from Model Garden with AI.GENERATE_TEXT for PDF extraction, while using multimodalembedding@001 for cross-modal vector embeddings.
ObjectRef values to an open model for multimodal inference fails because multimodal inputs are unsupported.AI.GENERATE_TEXT produces free-form text responses rather than enforcing a typed SQL schema across separate columns (such as STRING or INT64 fields for material, dimensions, and warranty period).RESOURCE_EXHAUSTED errors can leave rows silently unprocessed with NULL results even when the BigQuery query job reports success.CREATE MODEL options like model_garden_model_name or hugging_face_model_id require dedicated machine replicas and are restricted strictly to text-only prompts or text embeddings.multimodalembedding@001 supports text, images, and video (up to 1408 dimensions), whereas gemini-embedding-2 provides up to 3072 dimensions, an 8192-token context window, and native support for combining STRING and ObjectRef values across text, images, audio, video, and PDFs.endpoint_idle_ttl expires or deploy_model = FALSE is set.Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated