MLOps Quiz
Operationalizing machine learning: pipelines, versioning, and keeping ML reliable in production.
This category currently has 100 questions in the SERVBG quiz bank. Below are a few sample questions: the full interactive quiz shuffles through the whole set with instant scoring.
Sample questions
In an ML pipeline, what is the primary architectural reason for separating the training and serving environments rather than using a single unified codebase?
- Training code must be written in Python while serving code must be compiled to a lower-level language for performance.
- A unified codebase makes it impossible to use GPUs for training while using CPUs for inference, so the split is purely hardware-driven.
- Regulatory compliance mandates separate environments in all jurisdictions that govern machine learning systems.
- Model weights cannot be serialized across different runtime environments without data corruption.
- Training and serving have different latency, throughput, and resource requirements; unified codebases create hidden coupling that causes silent skew between offline metrics and online behavior.
A feature store serving both online (low-latency) and offline (batch training) use cases must guarantee point-in-time correctness. Which consistency challenge is unique to the offline retrieval path?
- Offline retrieval must handle network partitions that do not affect the online path because batch jobs run on separate infrastructure.
- Offline retrieval must reconstruct the exact feature values available at the label timestamp to avoid future leakage, requiring time-travel queries against a versioned historical store.
- Offline retrieval requires stronger encryption than online paths because training data is more sensitive than inference inputs.
- Offline retrieval is only consistent if features are recomputed from raw events on every training run rather than cached.
- Offline retrieval must account for time-zone offsets introduced by distributed data warehouses spanning multiple regions.
Which data versioning strategy is most suitable for large binary datasets (>100 GB of parquet files) in a DVC-managed pipeline where multiple team members commit daily?
- Compress all parquet files to tar.gz before committing so that git handles binary diffs more efficiently than DVC.
- Use DVC only for model artifacts; version raw datasets with a dedicated SQL schema version table in the training database.
- Store binary files directly in the git repository using Git LFS pointer files without any external remote to simplify the toolchain.
- Use DVC with a remote storage backend (S3, GCS) and content-addressed caching; commit only the small .dvc pointer files to git while binary blobs are stored remotely.
- Rely on S3 object versioning alone without DVC so that the git history stays clean of any data-related commits.
Your training pipeline uses Great Expectations for schema validation. After a upstream data team changes a nullable integer column to a required float, your suite passes silently. What is the most likely root cause?
- The expectation for that column was defined with mostly=1.0 tolerance or the column type check used expect_column_values_to_be_of_type with a type alias that Python coerces implicitly.
- The expectation suite was configured with store_backend_defaults which bypasses type-level validation for columnar formats.
- The schema change was applied after the checkpoint ran, so the validation executed against the old snapshot before the migration committed.
- Great Expectations does not validate numeric type changes between int and float because it treats all numeric types as equivalent by default.
- Great Expectations silently passes when the column name matches but logs a deprecation warning visible only in the verbose run log.
In training data curation for a classification model, which practice most directly reduces the risk of systematic label noise without collecting new labels?
- Apply confident learning (e.g., via cleanlab) to identify likely mislabeled examples by estimating the joint distribution between noisy observed labels and latent true labels.
- Use stratified k-fold cross-validation to detect label noise, as inconsistent fold performance always indicates mislabeled samples.
- Upsample minority-class examples using SMOTE to balance the dataset before training, which corrects label noise through synthetic interpolation.
- Replace all labels with soft pseudo-labels generated by an ensemble of pre-trained models available on Hugging Face.
- Remove all examples where model confidence is below 0.5 during a pilot training run to eliminate low-quality training points.
Related categories
Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
Security
General information security concepts: common threats and standard defenses.
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.