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.
You are designing a multimodal fraud-detection training pipeline using PyTorch on Google Cloud. Your pipeline must ingest and prepare data from three diverse sources:
Which architecture should you implement to optimize throughput, format compatibility, and training I/O performance?
BigQueryIO with DIRECT_READ and MLTransform to generate text embeddings and write parallelizable Avro or Parquet files to Cloud Storage, while governing audio/image files via BigQuery object tables and reading them during training with the PyTorch connector for Cloud Storage.This end-to-end architecture aligns each Google Cloud ingestion and processing service with the volume, velocity, and format characteristics of structured, streaming, and unstructured ML data sources.
BigQueryIO with DIRECT_READ uses the BigQuery Storage Read API over gRPC. This streams rows directly into Dataflow workers in parallel, eliminating temporary Cloud Storage export steps, reducing job startup latency, and bypassing BigQuery export quotas.MLTransform to compute vocabularies and generate text embeddings at scale (supporting CPU/GPU right-fitting) and serializes outputs to Avro or Parquet—self-describing formats that embed schema metadata and support parallelizable reads. Audio and image files remain in Cloud Storage, are governed alongside SQL metadata via BigQuery object tables, and are read at high throughput by training nodes using the PyTorch connector for Cloud Storage (or Cloud Storage FUSE with Local SSD caching).Unlike periodic JDBC polling, always-on Spark clusters, or passing binary blobs through message queues, every stage uses managed, autoscaling primitives purpose-built for its data velocity and format.
This design assigns heavy ETL to Cloud Run functions, uses BigQuery streaming inserts for historical bulk data, relies on HDFS on an ephemeral Dataproc cluster for unstructured media, and runs hourly Sqoop imports for MySQL.
MLTransform) or Spark.DIRECT_READ), not re-ingested via streaming inserts.The task involved a one-time migration of legacy on-premises relational tables into BigQuery using Sqoop and running lightweight file-upload validation checks with Cloud Run functions.
BigQueryIO in EXPORT mode. Preprocess text into embeddings using Dataflow and store the structured features as gzip-compressed CSV files in Cloud Storage, while copying all raw audio and image files to local Persistent Disks before starting PyTorch training.This design relies on frequent JDBC batch polling paired with BigQuery load jobs, reads BigQuery via temporary Cloud Storage exports, writes gzip-compressed CSV feature files, and stages unstructured media onto Persistent Disks attached to training VMs.
UPDATE/DELETE merge semantics compared to Datastream CDC with Dataflow streaming.BigQueryIO in EXPORT mode forces BigQuery to export table data to a temporary Cloud Storage bucket before Dataflow can begin processing, directly hitting BigQuery export quotas and increasing overall job runtime.BigQueryIO read path, which works for small tables but bottlenecks multi-terabyte pipelines.The operational database only required once-daily batch extracts, historical tables were small enough to avoid export quotas, and the dataset easily fit on local disk without distributed parallel read requirements.
This architecture routes both structured CDC events and raw binary media through Pub/Sub, processes them on an always-on Managed Service for Apache Spark (Dataproc) cluster, and uses the Spark-BigQuery connector's indirect write mechanism.
BigQueryIO DIRECT_READ. Additionally, an always-on Spark cluster incurs continuous idle infrastructure costs and lacks Dataflow ML's built-in MLTransform and per-step GPU right-fitting.The pipeline only processed periodic batch transformations of existing Parquet files in Cloud Storage using PySpark and loaded aggregated analytics tables into BigQuery on a scheduled cadence.
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