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.
Your team is scaling a prototype fraud-detection model into an automated training pipeline on Google Cloud. Each pipeline run ingests structured transaction tables from BigQuery (numeric amounts, timestamps, and categorical merchant codes) alongside unstructured customer support notes stored as text files in Cloud Storage.
To prepare the data for model training, your ingestion and preprocessing architecture must meet the following requirements:
Which pipeline design should you implement?
RunInference transform to compute feature scaling statistics, validate input schemas, and export TFRecords to Cloud Storage.Agent Platform Workbench provides managed Jupyter environments for interactive experimentation, while Dataflow's RunInference API executes predictions inside Apache Beam pipelines using trained models from frameworks like PyTorch, TensorFlow, or scikit-learn.
RunInference: The RunInference transform is designed for running model inference inside a pipeline—not for computing feature scaling statistics, fitting token vocabularies, or validating dataset schemas. Those preprocessing and validation responsibilities belong to MLTransform and TensorFlow Data Validation (TFDV).RunInference wraps a ModelHandler to batch tensors and score records; passing mismatched tensor shapes without prior normalization or padding causes runtime errors.RunInference strictly to score an already-trained model in a Dataflow pipeline.MLTransform in Dataflow to fit scaling statistics and token vocabularies solely on the training split—applying those artifacts to transform validation and test splits and generate text embeddings—and store structured features in Feature Store.This architecture combines Agent Platform Pipelines for serverless workflow orchestration, TensorFlow Data Validation (TFDV) on Dataflow for distributed schema and statistical profiling, Apache Beam MLTransform for unified preprocessing of structured and unstructured inputs, and Feature Store for centralized feature management.
MLTransform scales numeric features, computes unique token vocabularies mapped to integer indices, and invokes embedding models (such as Vertex AI text-embeddings or Hugging Face SentenceTransformers) to convert unstructured support notes into dense vectors across both batch and streaming pipelines.MLTransform ensures normalization and vocabulary statistics are derived exclusively from the training split, preventing data leakage. Centralizing structured features in Feature Store guarantees identical feature definitions across training and online serving, eliminating training-serving skew.Unlike ad-hoc scripts or database migration utilities, pairing TFDV with MLTransform on Dataflow and Feature Store enforces strict ML data quality gates, prevents leakage by construction, and scales seamlessly from structured tables to unstructured text.
This design relies on BigQuery SQL for tabular transformations, the Data Validation Tool (DVT) for aggregate checks, and event-driven Cloud Run functions to process unstructured text files uploaded to Cloud Storage.
COUNT, SUM, and AVG) between source warehouses and target BigQuery tables. It does not validate ML feature domains, vocabulary drift, or regular-expression formats against a training schema.MLTransform graph creates divergent logic between batch training and streaming inference, and lacks managed scaling for generating dense text embeddings.MLTransform to scale numeric features, compute token vocabularies, and generate text embeddings across the entire combined dataset before splitting it into training, validation, and test sets. Validate the transformed output with BigQuery Migration Service validation (--schema and --aggregate), and trigger automatic model retraining whenever schema skews are detected.This approach uses Dataflow and Apache Beam's MLTransform to execute distributed feature scaling, vocabulary indexing, and embedding generation, while attempting to validate outputs with BigQuery Migration Service validation.
--schema and --aggregate) compares source data warehouse tables against migrated BigQuery target tables. It does not perform ML-specific anomaly detection against a training baseline schema.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