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 global enterprise stores hundreds of thousands of multi-page PDF supplier invoices in Cloud Storage, featuring regional layouts and specialized procurement terminology. The team wants a governed, SQL-based analytics and retrieval-augmented generation (RAG) pipeline in BigQuery without external ETL orchestration.
The solution must satisfy these requirements:
total_amount, invoice_date) into BigQuery columns using a document schema.Which Google Cloud API and integration architecture should the team implement?
The Cloud Vision API is a pre-trained computer vision service designed to extract insights from image files, supporting tasks such as image labeling, object localization, content moderation, and general optical character recognition (OCR). When registered as a BigQuery remote model, it is invoked via the ML.ANNOTATE_IMAGE SQL function to return raw JSON annotation responses for image objects.
ML.ANNOTATE_IMAGE outputs unstructured text blocks and bounding polygons rather than strongly typed relational columns mapped to a document schema. Writing SQL regular expressions to locate total_amount and invoice_date across diverse regional invoice templates is brittle and fails when layouts shift.layout_config or chunking_config parameters, so it cannot automatically segment multi-page PDFs into 250-token chunks enriched with pageSpan and pageFooters metadata.The workload consisted of raster image assets (such as product photos or scanned signs) stored in Cloud Storage where the goal was image labeling, content moderation, or basic OCR rather than structured multi-page PDF parsing and RAG chunking.
Document AI is Google Cloud's specialized document understanding platform that provides pre-trained processors (for invoices, receipts, expenses, and tax forms) as well as foundation-model-powered custom extractors defined by a document schema. By creating a BigQuery remote model (remote_service_type = 'CLOUD_AI_DOCUMENT_V1') over a BigQuery object table, teams can invoke Document AI directly in SQL using ML.PROCESS_DOCUMENT.
application/pdf) and enforce row-level access policies before ML.PROCESS_DOCUMENT runs inference.total_amount and invoice_date to a document schema, returning a structured BigQuery table where each extracted field is a dedicated column ready for SQL joins.PROCESS_OPTIONS => (JSON '{"layout_config": {"chunking_config": {"chunk_size": 250}}}') produces chunkedDocument.chunks JSON containing chunkId, content, pageFooters, and pageSpan metadata, which can be unnested and passed straight to ML.GENERATE_EMBEDDING.WHERE content_type = 'application/pdf').Unlike image-centric Vision services or text-only translation models, Document AI natively understands multi-page PDF structures, extracts strongly typed schemas, and outputs semantic layout chunks directly inside BigQuery.
This architecture describes Store Vision AI's Tag Recognizer, which pairs AutoML Vision Object Detection (tag_detection_model) with customized Google OCR (tag_parsing_model) deployed to a Vision AI retail endpoint (retailEndpoints). Training data is supplied as a CSV containing image file paths, bounding-box coordinates (x0, y0, x1, y1), and regular expression constraints (such as \$\d+\.\d{2}) to detect and parse fields like price and unit_price.
(x0, y0, x1, y1) and field-level regex constraints in CSV files rather than leveraging a zero-annotation pre-trained invoice processor or foundation-model document schema.BatchAnalyze endpoints are specialized for retail shelf price-tag images, not multi-page PDF supplier invoices.visionai.googleapis.com bypasses BigQuery object table row-level access policies and requires custom ETL scripts to load outputs into BigQuery.pageSpan or pageFooters metadata.application/pdf parsing.The team were analyzing photographs of physical retail store shelves to localize price tags and parse standardized price formats using custom object detection and regex constraints.
The Cloud Translation - Advanced API allows teams to customize Google's Neural Machine Translation (NMT) model without writing code by importing matching source-and-target text segment pairs in UTF-8 TSV or TMX files, evaluated with BLEU scores. In BigQuery, ML.TRANSLATE invokes translation models on text columns, while managed AI functions like AI.CLASSIFY and AI.SCORE use Gemini to categorize or rate rows.
ML.TRANSLATE process plain text strings or segment pairs (under 10 MB per segment pair), not binary multi-page PDF files in a BigQuery object table. Translation cannot extract text from PDFs or interpret visual invoice layouts.AI.CLASSIFY and AI.SCORE: Managed AI functions return single scalar values (such as a STRING category for GROUP BY or a FLOAT64 rating for ORDER BY). They do not extract multi-column invoice schemas (total_amount, invoice_date) or produce chunkedDocument JSON with pageSpan and pageFooters metadata.The team already had extracted plain-text procurement reports in BigQuery tables that needed real-time multilingual translation preserving specialized domain terminology, followed by simple row-level text categorization or ranking.
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