Deployment and Orchestration of ML and AI Workflows
Which automated test in a CI pipeline checks that a single feature-encoding function returns the expected values for fixed inputs before training begins?
Show the answer
Correct answerC. A unit test
AWhy not this: A load test measures endpoint behavior under traffic, not feature transformation correctness.
BWhy not this: An integration test runs several pipeline steps together, so it does not isolate one function's outputs.
CWhy this is right: A unit test verifies an individual function against expected results using controlled inputs.
DWhy not this: Accuracy evaluation measures model predictions against labels rather than testing an encoding function in isolation.
A unit test runs one function on controlled inputs and compares its output with known expected values. An integration test exercises several steps together, and an accuracy evaluation judges the trained model rather than one encoding function.