ISTQB CT-AI
Testing ML Development and Deployment
ML development risks
- What does ML development testing focus on? Easy
- Which mitigation helps against incorrect or unintended use of library or framework APIs such as TensorFlow or PyTorch? Easy
- Which mitigation helps against a defective framework installation or build? Easy
- Which mitigation helps against poor usability of the framework? Easy
- Which mitigation helps against security vulnerabilities in the framework? Easy
- Which mitigation helps against sub-optimal framework selection? Easy
- Which mitigation helps against poor user documentation of the framework? Easy
- Which mitigation helps against defective allocation of data to the training, validation and test datasets? Easy
- Which test shows before full deployment whether a new model is an improvement over the current one? Easy
- Which mitigation helps against poor performance efficiency, for example a framework that is slow to respond? Easy
Deployment testing
- What does installability testing check? Easy
- What does rollback testing check? Easy
- When must rollback testing be performed? Easy
- What is canary testing? Easy
- What is shadow testing? Easy
- What does model conversion testing check? Easy
- What does cross-device testing check? Easy
- What does API testing check when deploying an ML system? Easy
- In which target environments must an ML system function correctly and reliably when deployed? Easy
- Which real-time metrics are monitored in canary testing? Easy
ML development risks
- Which mitigations help against a defective implementation of the evaluation by the framework? Medium
- Which mitigations help against a defect in a library used by the framework or a defective algorithm implementation? Medium
- Which mitigations help against sub-optimal algorithm selection? Medium
- Which mitigations help against sub-optimal hyperparameter selection, for example network structure or learning rate? Medium
- Which mitigation helps against poor selection of the evaluation approach, for example k-fold cross-validation? Medium
- Which mitigations help against a deployment defect, for example when generating a modified version for a target platform? Medium
- Which mitigations help if a deployed model is incompatible with the operational environment? Medium
- Which mitigation helps against problems in the algorithm, model or framework that introduce systemic unfairness? Medium
- Why does ML functional performance testing help against incorrect interpretation of test results? Medium
- Against which risks does smoke testing help? Medium
- Which test types serve to verify robustness and efficiency in ML development testing? Medium
Deployment testing
- What is checked during installability testing of an ML system, among other things? Medium
- What can rollback testing cover? Medium
- Which defects can shadow testing uncover before full deployment? Medium
- What does model conversion testing check besides predictive accuracy? Medium
- With which external systems are integration workflows checked during API testing of an ML system? Medium
- What distinguishes canary testing from shadow testing? Medium
- What is the goal of canary testing? Medium
- A model was converted from the training format into a compact runtime format for a smartphone. Which deployment test is intended for this? Medium
- An ML system is to run on Android smartphones, on edge devices in factories and on cloud servers. Which deployment test is particularly relevant? Medium
ML development risks
- A team suspects that a framework's metric calculation delivers wrong F1 values. Which mitigations fit this risk? Hard
- After a PyTorch update, the same model with the same data delivers different results. Which risk is present, and which mitigations fit? Hard
- A team finds that some records appear in both the training and the test dataset. Which risk is present, and which mitigation fits? Hard
- Two training runs with identical configuration yield slightly different accuracy values, and a developer draws far-reaching conclusions about a hyperparameter change from this. Which risk and which mitigation fit? Hard
- Which mappings of risk and mitigation in ML development are correct? Hard
- A team chose k-fold cross-validation with an unsuitable split and considers the results reliable. Which mitigation helps against this development risk? Hard
- An error occurred when generating an adapted model version for a target platform. Which mitigations fit? Hard
- A team chose a framework that is unsuitable for the planned use on edge devices, and its responses are also too slow. Which mitigations fit? Hard
- A developer calls a function of an ML library with swapped parameters without an error being reported. Which risk is present, and which mitigation fits? Hard
Deployment testing
- A bank wants to compare a new fraud detection model with live transactions without customers being affected by possible wrong decisions of the new model. Which deployment test fits? Hard
- An online retailer wants to introduce a new recommendation model gradually and detect regressions early, before all users receive it. Which deployment test fits, and how does it work? Hard
- A team only wants to check the rollback once a deployment has actually failed. What is there to say about this? Hard
- After a failed model update, the data pipeline is also to be reset to its previous state. Which statements about rollback testing are correct? Hard
- A model was compressed for an edge device and converted into another format. On the device it is faster, but some predictions deviate. Which test covers this, and what does it check? Hard
- An ML system cannot be started on a new server because a suitable GPU driver is missing. Which deployment test should have detected this? Hard
- A model works correctly in the cloud but produces errors on older smartphones. Which deployment test addresses this risk? Hard
- A customer reports that the interface of an ML service returns no understandable error message for faulty inputs and is not standards-compliant. Which test is responsible, and what does it cover? Hard
- A team wants to compare a new model with the existing one using live data and also detect data drift and performance regressions without affecting users. Which statements are correct? Hard
- Which mappings of deployment risk and deployment test are correct? Hard
- A company plans to introduce a new model in three steps: first in parallel without affecting users, then for a small subset of users, then for everyone. Which tests fit the first two steps? Hard