QuestionQ129
Validation TestingA Machine Learning Engineer is developing integration tests for an ML pipeline in Databricks. The existing integration test executes the entire workflow but requires four hours because it processes large datasets and performs extensive model training. They must choose the most effective approach to optimize integration-test execution while preserving test reliability. The approach must also follow MLOps best practices.
Which approach accomplishes this?
- A Run integration tests only in the production environment using full datasets to ensure complete accuracy of the testing process.
- B Use small subsets of production-like data and reduce training iterations while maintaining the same pipeline structure and validation checkpoints in a staging environment that closely matches production.
- C Skip the model training phase entirely and only test data transformations and API endpoints using mock model predictions.
- D Replace integration tests with unit tests for each pipeline component to reduce execution time and focus on individual component validation in a staging environment that closely matches production.
Community Discussion