ISTQB CT-AI Practice Test 2
Question 10
A fictional AI evaluation investigates the failure: A hospital prediction service calls recall the proportion of all positive alerts that are truly positive. For an independent test cohort, the confusion-matrix counts are TP=66, FP=13, FN=28, and TN=169. What is the precision score, rounded to ONE decimal place as a percentage? Select ONE best answer.
- 69.3%
- 83.5%
- 76.1%
- 91.8%
Explanation
Correct Answer
B:83.5% is correct: precision is true positive alerts divided by all positive alerts. Here precision = 66/(66+13) = 0.835443, so the percentage rounded to one decimal place is 83.5%. True negatives are not used in this particular formula unless the selected measure requires them.
Incorrect Answers
Question 11
A testing group is given this fictional case: A document summarizer is ranked only by response length with no factual consistency or coverage assessment. Which evidence set is MOST relevant before proposing a change? Select ONE best answer.
- Map abuse cases, trust boundaries, forbidden outputs, unauthorized data paths and defenses under representative attacks
- Sample repeated outputs under documented decoding settings and inspect factual support, permitted content and task usefulness
- Create a prompt corpus with task rubrics, factual sources, safety policies, and repeated output observations
- Inspect framework interfaces, dependency versions, training logs, data allocations and parameter-selection records
Explanation
Correct Answer
C:Create a prompt corpus with task rubrics, factual sources, safety policies, and repeated output observations. A document summarizer is ranked only by response length with no factual consistency or coverage assessment. Use a multi-dimensional evaluation of quality and safety over representative and stress prompts.
Incorrect Answers
A:Map abuse cases, trust boundaries, forbidden outputs, unauthorized data paths and defenses under representative attacks. Generative model testing evaluates task relevance, accuracy, harmful content, consistency and realistic user interactions.
B:Sample repeated outputs under documented decoding settings and inspect factual support, permitted content and task usefulness. Generative model testing evaluates task relevance, accuracy, harmful content, consistency and realistic user interactions.
D:Inspect framework interfaces, dependency versions, training logs, data allocations and parameter-selection records. Generative model testing evaluates task relevance, accuracy, harmful content, consistency and realistic user interactions.
Question 12
A private AI-testing exercise identifies: A speech model splits recordings by clip while the same speaker appears in every partition. What is the governing concept relevant to this finding? Select ONE best answer.
- ML development is iterative across objectives, data, algorithm selection, training, evaluation, deployment and monitoring
- AI laws, policies and standards can impose risk-dependent evidence, safety, fairness, transparency and oversight needs
- Hardware selection for ML must consider parallel computation, memory, latency, energy and deployment environment
- Data splitting must respect time, person or entity dependencies when random row splits leak correlated information
Explanation
Correct Answer
D:Data splitting must respect time, person or entity dependencies when random row splits leak correlated information. A speech model splits recordings by clip while the same speaker appears in every partition. Use chronological or group-disjoint splits where needed and test that no prohibited overlap remains.
Incorrect Answers
A:ML development is iterative across objectives, data, algorithm selection, training, evaluation, deployment and monitoring. Data splitting must respect time, person or entity dependencies when random row splits leak correlated information.
B:AI laws, policies and standards can impose risk-dependent evidence, safety, fairness, transparency and oversight needs. Data splitting must respect time, person or entity dependencies when random row splits leak correlated information.
C:Hardware selection for ML must consider parallel computation, memory, latency, energy and deployment environment. A speech model splits recordings by clip while the same speaker appears in every partition. Data splitting must respect time, person or entity dependencies when random row splits leak correlated information.
Question 13
Consider this original ML case: A hospital cites 100 percent test accuracy from 12 cases to justify near-perfect operational safety. Which failure outcome should be emphasized? Select ONE best answer.
- An unrepresentative or undersized sample makes published performance thresholds unreliable
- Unreliable oracle labels can falsely pass harmful outputs or reject valid alternate responses
- Ignoring group gaps may hide harmful treatment while overinterpreting raw ratios may produce unjustified conclusions
- Uncontrolled comparisons can favor a candidate because of easier data rather than better predictive ability
Explanation
Correct Answer
A:An unrepresentative or undersized sample makes published performance thresholds unreliable. A hospital cites 100 percent test accuracy from 12 cases to justify near-perfect operational safety. Stratify testing by important operating conditions and make uncertainty explicit in the release argument. Analyze trial counts, representative conditions, confidence intervals and measurement assumptions.
Incorrect Answers
B:Unreliable oracle labels can falsely pass harmful outputs or reject valid alternate responses. A hospital cites 100 percent test accuracy from 12 cases to justify near-perfect operational safety. Confidence in a performance estimate depends on sample size and whether the evaluation distribution matches real use.
C:Ignoring group gaps may hide harmful treatment while overinterpreting raw ratios may produce unjustified conclusions. Confidence in a performance estimate depends on sample size and whether the evaluation distribution matches real use.
D:Uncontrolled comparisons can favor a candidate because of easier data rather than better predictive ability. Confidence in a performance estimate depends on sample size and whether the evaluation distribution matches real use.
Question 14
In an original ML testing scenario, investigators find: A retailer's training pipeline imputes absent prices but its production feed rejects the same missing values. What should they examine FIRST to determine the control weakness? Select ONE best answer.
- Compare sample versus deployment distributions across relevant environmental and demographic dimensions
- Diff training and inference transforms, evaluate event lag, feature ages, rejected records and throughput under load
- Compare live versus baseline feature distributions using drift statistics and check downstream performance where labels exist
- Inspect the target variable type, available labeled examples, loss function and business error costs
Explanation
Correct Answer
B:Diff training and inference transforms, evaluate event lag, feature ages, rejected records and throughput under load. A retailer's training pipeline imputes absent prices but its production feed rejects the same missing values. Run parity and volume tests with matched raw inputs across batch and streaming implementations.
Incorrect Answers
A:Compare sample versus deployment distributions across relevant environmental and demographic dimensions. The production data pipeline must preserve training-time feature semantics, freshness and operational capacity.
C:Compare live versus baseline feature distributions using drift statistics and check downstream performance where labels exist. The production data pipeline must preserve training-time feature semantics, freshness and operational capacity.
D:Inspect the target variable type, available labeled examples, loss function and business error costs. The production data pipeline must preserve training-time feature semantics, freshness and operational capacity.
Question 15
During a fictional ML project, the owner learns: An assistant gives materially different compliance conclusions when a question is paraphrased without changing its meaning. Which corrective test activity is MOST appropriate? Select ONE best answer.
- Use a multi-dimensional evaluation of quality and safety over representative and stress prompts
- Identify coverage gaps and acquire representative data or restrict the stated deployment envelope
- Create evidence-grounded accuracy tests and controlled paraphrase tests with documented evaluation rubrics
- Choose an approach suitable for clustering or reward-driven control and validate whether its outputs match business needs
Explanation
Correct Answer
C:Create evidence-grounded accuracy tests and controlled paraphrase tests with documented evaluation rubrics. An assistant gives materially different compliance conclusions when a question is paraphrased without changing its meaning. Unsupported citations and inconsistent conclusions can make fluent output harmful in regulated processes.
Incorrect Answers
A:Use a multi-dimensional evaluation of quality and safety over representative and stress prompts. LLM testing must check whether material statements are actually supported and whether meaning-preserving prompts behave acceptably.
B:Identify coverage gaps and acquire representative data or restrict the stated deployment envelope. LLM testing must check whether material statements are actually supported and whether meaning-preserving prompts behave acceptably.
D:Choose an approach suitable for clustering or reward-driven control and validate whether its outputs match business needs. LLM testing must check whether material statements are actually supported and whether meaning-preserving prompts behave acceptably.
Question 16
Consider this original ML case: An insurer undersamples a majority class without checking whether important ordinary behaviors disappear. Which failure outcome should be emphasized? Select ONE best answer.
- A nominally strong benchmark score can optimize the wrong trade-off and harm the actual service
- An unrepresentative or undersized sample makes published performance thresholds unreliable
- Unrepresentative datasets can cause unpredictable field errors despite clean in-sample measurements
- Majority-class accuracy or leakage from copied examples can conceal failure on rare but important cases
Explanation
Correct Answer
D:Majority-class accuracy or leakage from copied examples can conceal failure on rare but important cases. An insurer undersamples a majority class without checking whether important ordinary behaviors disappear. Use suitable stratification or training-only resampling and report precision, recall and meaningful class prevalence. Compare real prevalence, per-class outcomes, sampling provenance, holdout purity and information loss.
Incorrect Answers
A:A nominally strong benchmark score can optimize the wrong trade-off and harm the actual service. Class imbalance requires careful metric selection and sampling confined to training data to preserve independent evaluation.
B:An unrepresentative or undersized sample makes published performance thresholds unreliable. Class imbalance requires careful metric selection and sampling confined to training data to preserve independent evaluation.
C:Unrepresentative datasets can cause unpredictable field errors despite clean in-sample measurements. Class imbalance requires careful metric selection and sampling confined to training data to preserve independent evaluation.
Question 17
A private test-design workshop records: A clinical model overfits training data yet the release plan covers only threat red teaming. Which action best addresses the central issue? Select ONE best answer.
- Build a model risk-to-test matrix and track residual risk after each targeted technique
- Run a suitably governed randomized comparison with predefined success and rollback thresholds
- Keep a genuinely untouched evaluation partition separate from training and development selection
- Use task-specific evaluation and regression tests before trusting a pretrained or fine-tuned model in a new domain
Explanation
Correct Answer
A:Build a model risk-to-test matrix and track residual risk after each targeted technique. A clinical model overfits training data yet the release plan covers only threat red teaming. Passing a technically valid but irrelevant test can leave the main predictive failure undetected.
Incorrect Answers
B:Run a suitably governed randomized comparison with predefined success and rollback thresholds. Model risks require risk-specific tests such as fairness analysis, robustness probes, generalization checks and interface tests.
C:Keep a genuinely untouched evaluation partition separate from training and development selection. Model risks require risk-specific tests such as fairness analysis, robustness probes, generalization checks and interface tests.
D:Use task-specific evaluation and regression tests before trusting a pretrained or fine-tuned model in a new domain. Model risks require risk-specific tests such as fairness analysis, robustness probes, generalization checks and interface tests.
Question 18
Consider this original ML case: A document classifier has ambiguous categories but annotators receive no definition or adjudication procedure. Which failure outcome should be emphasized? Select ONE best answer.
- Ignoring group gaps may hide harmful treatment while overinterpreting raw ratios may produce unjustified conclusions
- Noisy or inconsistent labels can train the wrong behavior and corrupt measured holdout quality
- Untested prompt injection or persuasion patterns may override intended guardrails and expose protected material
- An undetected prediction failure can escalate into physical or clinical harm without timely external control
Explanation
Correct Answer
B:Noisy or inconsistent labels can train the wrong behavior and corrupt measured holdout quality. A document classifier has ambiguous categories but annotators receive no definition or adjudication procedure. Compare independent annotations, disagreement rates, boundary examples, low-confidence predictions and label definitions.
Incorrect Answers
A:Ignoring group gaps may hide harmful treatment while overinterpreting raw ratios may produce unjustified conclusions. Label correctness testing examines annotation rules, ground-truth quality, agreement and targeted review of doubtful samples.
C:Untested prompt injection or persuasion patterns may override intended guardrails and expose protected material. Label correctness testing examines annotation rules, ground-truth quality, agreement and targeted review of doubtful samples.
D:An undetected prediction failure can escalate into physical or clinical harm without timely external control. Label correctness testing examines annotation rules, ground-truth quality, agreement and targeted review of doubtful samples.
Question 19
An original AI test program addresses: A small retailer fine-tunes a large pretrained classifier on a tiny labeled sample and claims broad generalization. What measurable result would show the intended control now works? Select ONE best answer.
- The same saved architecture and parameters reproduce reference predictions within the defined numerical tolerance
- Training and independent evaluation curves demonstrate acceptable generalization without uncontrolled holdout tuning
- Independent task and subgroup tests show the adapted model meets its agreed performance and safety thresholds
- Independent reviewers reproduce the task rubric and record groundedness and failure frequency across diverse prompts
Explanation
Correct Answer
C:Independent task and subgroup tests show the adapted model meets its agreed performance and safety thresholds. A small retailer fine-tunes a large pretrained classifier on a tiny labeled sample and claims broad generalization. Pretraining transfers learned representations, while fine-tuning adapts a model to a new task but does not erase inherited risks.
Incorrect Answers
A:The same saved architecture and parameters reproduce reference predictions within the defined numerical tolerance. A small retailer fine-tunes a large pretrained classifier on a tiny labeled sample and claims broad generalization. Pretraining transfers learned representations, while fine-tuning adapts a model to a new task but does not erase inherited risks.
B:Training and independent evaluation curves demonstrate acceptable generalization without uncontrolled holdout tuning. Pretraining transfers learned representations, while fine-tuning adapts a model to a new task but does not erase inherited risks.
D:Independent reviewers reproduce the task rubric and record groundedness and failure frequency across diverse prompts. Pretraining transfers learned representations, while fine-tuning adapts a model to a new task but does not erase inherited risks.
Question 20
After a fictional ML project resolves the following issue — A manufacturer deploys a memory-heavy model to edge devices that cannot hold its weights — which acceptance result is MOST convincing? Select ONE best answer.
- The chosen deployment meets privacy and availability rules while versioned tests pass at measured production-like latency
- The chosen threshold meets an approved cost-sensitive criterion on representative independent cases
- Independent qualified reviewers reach acceptable agreement on the reference cases and document uncertain judgments
- Representative training and inference runs meet agreed throughput, memory, latency and cost limits on target hardware
Explanation
Correct Answer
D:Representative training and inference runs meet agreed throughput, memory, latency and cost limits on target hardware. A manufacturer deploys a memory-heavy model to edge devices that cannot hold its weights. Hardware selection for ML must consider parallel computation, memory, latency, energy and deployment environment.
Incorrect Answers
A:The chosen deployment meets privacy and availability rules while versioned tests pass at measured production-like latency. Hardware selection for ML must consider parallel computation, memory, latency, energy and deployment environment.
B:The chosen threshold meets an approved cost-sensitive criterion on representative independent cases. Hardware selection for ML must consider parallel computation, memory, latency, energy and deployment environment.
C:Independent qualified reviewers reach acceptable agreement on the reference cases and document uncertain judgments. Hardware selection for ML must consider parallel computation, memory, latency, energy and deployment environment.