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 organization operates a multi-terabyte TensorFlow fraud detection system orchestrated with Agent Platform Pipelines. Recently, an upstream system silently changed transaction amounts from cents to dollars and introduced an unrecognized categorical value in payment_type, causing automated retraining runs to produce degraded models.
You need to redesign the automated pipeline to satisfy these requirements:
Which pipeline architecture should you implement?
jsonschema on container worker VMs to validate incoming CSV shards, use BigQuery ML's ML.VALIDATE_DATA_DRIFT to check for schema mismatches between training and serving tables, and trigger automatic retraining whenever any schema or statistical anomaly occurs.jsonschema, and ML.VALIDATE_DATA_DRIFT DoPandas is an in-memory Python library for single-node tabular data manipulation, jsonschema is a Python library used to validate configuration objects like YAML or JSON against structural rules, and ML.VALIDATE_DATA_DRIFT is a BigQuery ML SQL function designed to compare descriptive statistics between two consecutive serving datasets using metrics such as Jensen-Shannon divergence or L-infinity distance.
jsonschema is intended for validating pipeline configuration files and CLI parameters, not computing feature histograms, domain vocabularies, and statistical distributions across tabular ML datasets. Furthermore, ML.VALIDATE_DATA_DRIFT explicitly does not perform schema validation between input datasets; when using JENSEN_SHANNON_DIVERGENCE, features with data type mismatches are silently omitted from the anomaly report.ML.VALIDATE_DATA_DRIFT compares two serving tables rather than comparing serving data against training data (data skew). Additionally, automatically triggering retraining upon schema skews trains a new model on corrupted or unit-shifted data instead of halting the pipeline for investigation.ML.VALIDATE_DATA_DRIFT cannot enforce categorical domains or detect upstream unit conversions against a training baseline.The pipeline only needed to validate small JSON configuration payloads with jsonschema and monitor statistical shifts between two schema-verified BigQuery serving snapshots without automated pipeline gating.
MLTransform and the AnomalyDetection Z-Score PTransform to remove statistical outliers from incoming training batches, and schedule BigQuery ML's ML.VALIDATE_DATA_SKEW across consecutive days of serving logs to detect gradual data drift without maintaining a baseline training schema.MLTransform, AnomalyDetection, and ML.VALIDATE_DATA_SKEW DoApache Beam's MLTransform class simplifies machine learning preprocessing tasks—such as scaling numerical values, computing vocabularies, and generating text embeddings—within Cloud Dataflow pipelines. The AnomalyDetection PTransform applies a Z-Score algorithm to flag individual point outliers in batch or streaming data, while BigQuery ML's ML.VALIDATE_DATA_SKEW compares serving feature distributions against statistics saved during BigQuery ML model training.
MLTransform nor Z-Score AnomalyDetection enforces a fixed TFDV schema covering data types, feature completeness, or valid categorical vocabularies like payment_type. Furthermore, removing per-batch Z-Score outliers computes mean and standard deviation locally on the incoming batch, meaning a global cents-to-dollars shift simply rescales the batch's Z-scores without triggering a domain violation or halting training.ML.VALIDATE_DATA_SKEW is designed to compare serving data against a model's saved training statistics (data skew), not consecutive spans of serving data (data drift, which uses ML.VALIDATE_DATA_DRIFT). In addition, ML.VALIDATE_DATA_SKEW operates on trained BigQuery ML models rather than providing schema-enforced TFDV validation for an external TensorFlow pipeline.DatasetFeatureStatisticsList artifact prevents consistent training-serving parity checks across the end-to-end TFX lifecycle.MLTransform performs feature preprocessing rather than declarative schema validation and pipeline gating.You were preprocessing features and filtering isolated numerical outliers in an Apache Beam pipeline while validating a BigQuery ML model's serving table directly against its saved training statistics.
TensorFlow Data Validation (TFDV) is a core TensorFlow Extended (TFX) library that computes descriptive statistics, infers and enforces data schemas, and detects distribution anomalies. Running TFDV components (StatisticsGen and ExampleValidator) on Cloud Dataflow via the Apache Beam DataflowRunner provides serverless, horizontally scalable batch processing, while Agent Platform Pipelines orchestrates the end-to-end workflow and records artifact lineage in Vertex ML Metadata.
GroupByKey, Combine) out of worker VMs into a dedicated Google Cloud service, delivering fast, fault-tolerant statistical profiling across multi-terabyte ingestion datasets.payment_type), and expected numerical ranges. When ExampleValidator detects schema skews (such as a cents-to-dollars unit change or unrecognized categories), conditional control-flow gates in Agent Platform Pipelines immediately halt downstream training so engineers can investigate, while archiving anomaly protos in Cloud Storage and storing validation metrics in BigQuery.DatasetFeatureStatisticsList) and consecutive serving windows isolates data values skews and data drift. Automated alerts can then trigger continuous training (CT) strictly when legitimate distribution shifts occur without schema violations.Unlike single-VM validation scripts, dynamically overwritten schemas, or BigQuery drift queries lacking schema enforcement, combining TFDV on Cloud Dataflow with a frozen baseline schema and conditional pipeline orchestration guarantees scalable data quality and consistent training-serving parity.
SchemaGen to regenerate and overwrite the baseline schema on every daily ingestion run before executing ExampleValidator. Automatically filter out any remaining anomalous records so training proceeds uninterrupted, and use Cloud Run functions to validate file checksums.In a TFX workflow, SchemaGen infers a protobuf data schema from computed dataset statistics, while ExampleValidator compares new data statistics against that schema to flag anomalies. Cloud Run functions can also be triggered by Cloud Storage upload events to verify file sizes and checksums, ensuring files were not corrupted or truncated during network transfer.
SchemaGen to accept corrupted upstream changes—such as unrecognized payment_type tokens or a 100x unit conversion from cents to dollars—as the newly expected schema. In production MLOps, the data schema must be curated and fixed before deployment so ExampleValidator can detect structural regressions.You were performing initial exploratory schema discovery during early model development and only needed event-driven storage transfer integrity checks upon Cloud Storage object creation.
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