ISTQB Certified Tester - Generative AI (CT-GenAI) Exam-style mock test
ISTQB Certified Tester Generative AI (CT-GenAI) Practice Exams|Practice test
Full explanations
Exam format
Pass line 65%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · Generative AI Fundamentals for Testing
A tester at a B2B SaaS invoicing company is comparing two AI capabilities being added to the product. One model flags whether an uploaded invoice is fraudulent, while another drafts a natural-language summary of each invoice. The tester must describe the distinction to the QA team. Which statement best captures how the generative model differs from the discriminative model?
✓The generative model produces new content such as summaries, while the discriminative model assigns inputs to predefined categories such as fraudulent or legitimate
Correct. Generative models synthesize new content (summaries), whereas discriminative models map inputs to predefined classes (fraudulent/legitimate), which is exactly the distinction here.
・The generative model classifies invoices into fixed labels, while the discriminative model creates brand-new invoice text from the learned data distribution
Incorrect. This reverses the two concepts: it is the discriminative model that classifies and the generative model that creates new text.
・Both models only categorize invoices, differing solely in how large their respective training datasets happen to be before deployment
Incorrect. The two model types differ fundamentally in task (generation versus classification), not merely in training dataset size.
・The generative model never requires any training data, while the discriminative model must be retrained manually before every single inference run
Incorrect. Both approaches rely on training data, and discriminative models do not require manual retraining before every inference.
Explanation
Generative AI learns a data distribution to produce novel outputs (e.g., invoice summaries), while discriminative AI learns boundaries to assign inputs to predefined categories (e.g., fraud detection). Testers must recognize this to design appropriate oracles.
Example2 · LLMs, Prompts & Testing Applications
At a B2B SaaS company, a tester reviews how the LLM behind the support chatbot produces replies. A colleague claims the model looks up a stored answer that exactly matches each customer question. Which statement best explains how the LLM actually generates each reply?
・The model retrieves the most frequently stored customer reply from its training corpus and returns that saved record word for word as the final answer.
Incorrect. LLMs do not store and return exact training records; they generate text and may reproduce phrasing only incidentally, not by retrieval of a saved reply.
✓The model predicts each next token from a probability distribution conditioned on the preceding context, so outputs are generated sequentially rather than looked up.
Correct. An LLM computes a probability distribution over the next token given prior context and samples or selects from it, generating the reply one token at a time.
・The model compares the question against a fixed decision tree of support rules and selects the single branch whose keywords match the input text.
Incorrect. LLMs are not rule-based decision trees; their behaviour emerges from learned weights over token probabilities, not hand-written keyword branches.
・The model parses the question into a formal query, runs it against a relational database of answers, and returns the matching row as the response.
Incorrect. LLMs do not translate input into database queries; they produce text through probabilistic token prediction rather than structured record lookup.
Explanation
A core property of LLMs is autoregressive, probabilistic next-token prediction conditioned on context, which is why outputs can vary and are generated rather than retrieved.
Example3 · Testing Generative AI-Based Systems
A B2B SaaS company integrates an LLM into its customer-support portal to draft reply suggestions. QA notices that submitting the identical support ticket twice produces two differently worded, yet both acceptable, draft replies. The test lead asks why the team cannot simply assert that the output exactly equals a stored expected string. What is the BEST explanation of this testing challenge?
✓The LLM is non-deterministic, so multiple valid outputs can satisfy the same prompt and exact-match assertions are inappropriate
Correct. Generative AI output is inherently non-deterministic, so the same input can yield several equally valid responses, making strict exact-match comparison the wrong oracle strategy.
・The LLM has an unresolved defect in its decoding routine that randomly corrupts tokens and must be patched before any further testing continues
Incorrect. Variation between acceptable responses is expected behavior of generative models, not a token-corruption defect requiring a patch.
・The portal cache was misconfigured and is returning stale responses, which can be corrected by disabling caching on the support endpoint
Incorrect. Caching misconfiguration would tend to return the same stale answer, which is the opposite of the varied-but-valid outputs observed here.
・The test data was duplicated, so the two tickets were never actually identical and the comparison was invalid from the start
Incorrect. The tickets were genuinely identical; the variation comes from the model's probabilistic generation, not from duplicated or differing test data.
Explanation
Non-determinism means multiple outputs can be correct for one input, so testers need tolerant oracles (semantic similarity, rubric checks) rather than exact-string assertions.
Example4 · Using Generative AI to Support Testing
A tester at a healthcare services firm feeds a patient-admission user story into an LLM and asks it to generate test cases. The firm requires clinically safe coverage of boundary ages and insurance edge cases. Which action should the tester take to apply the generated test cases responsibly?
✓Review and refine the generated test cases against the requirement, adding missing boundary and edge conditions before execution
Correct. Generative AI output is a draft that the tester must validate against the requirement and supplement with missing boundary and edge conditions before it is trusted for execution.
・Execute every generated test case immediately because the LLM was prompted directly from the approved user story text
Incorrect. LLM-generated cases can be incomplete or include hallucinated conditions, so executing them unreviewed risks missing clinically relevant coverage.
・Keep only the test cases whose wording most closely matches the original phrasing used in the admission user story document
Incorrect. Matching the original wording is not a measure of coverage quality and would discard valid cases phrased differently.
・Replace the team's existing manual test design activity entirely with the model's generated output for this release
Incorrect. The model supports, rather than replaces, human test design; critical healthcare coverage still requires tester judgment.
Explanation
Generative AI accelerates test case generation, but the tester must review, refine, and complete the output against the actual requirement rather than trusting or discarding it blindly.
Example5 · Risks, Ethics & Quality of GenAI in Testing
A tester at a healthcare services firm asks a GenAI assistant to generate test cases for a patient-eligibility module. The tool produces a confident test case that references an input validation rule the system does not actually implement. Why is this a characteristic quality risk of using GenAI for test generation?
✓The model has hallucinated a non-existent rule, so its output can look plausible yet be factually wrong and must be validated against the real system
Correct. Hallucination means the model produces fluent, confident content that is not grounded in the actual system, so human validation against the real artifact is required.
・The model lacks sufficient compute resources to process the eligibility module and therefore skipped the actual validation rules in the requirements
Incorrect. Hallucination is not caused by a lack of compute; the model generates plausible-sounding but ungrounded content regardless of resources.
・The model deliberately withholds correct rules to protect proprietary healthcare logic contained within its original training data set
Incorrect. The model does not deliberately withhold information; hallucination is an unintended generation of ungrounded content, not intentional concealment.
・The model can only generate boundary-value cases and is structurally unable to reason about conditional validation rules in any scenario
Incorrect. GenAI tools are not limited to boundary-value cases, and the real issue here is ungrounded content, not a structural inability to reason about conditions.
Explanation
Hallucination is a core GenAI quality risk: outputs can be confident and well-formed yet reference things that do not exist, so all generated test artifacts must be reviewed against the real system.
Example6 · Generative AI Fundamentals for Testing
A test team at a healthcare services firm is comparing a rule-based symptom-checker with a generative AI assistant that drafts patient appointment summaries. The test manager asks what fundamentally distinguishes the generative system from the firm's older AI tools. Which statement best captures that distinction?
・The generative system classifies each input into one of a fixed set of predefined labels rather than producing variable text
Incorrect. Fixed-label classification describes traditional discriminative AI, not the generative system under discussion.
✓The generative system produces novel content such as text from learned patterns, instead of only selecting from predefined outputs
Correct. Generative AI creates new content from patterns it learned during training rather than choosing among predefined outputs.
・The generative system always returns the same deterministic answer for a given input, which simplifies result verification
Incorrect. Generative systems are typically non-deterministic, so identical inputs can yield varying outputs, which complicates verification.
・The generative system relies only on hard-coded clinical rules written by domain experts without any training data
Incorrect. Hard-coded clinical rules without training describe a rule-based expert system, not a generative model.
Explanation
Generative AI is characterized by producing new, variable content learned from data, distinguishing it from rule-based or purely classification-oriented traditional AI.
Example7 · Generative AI Fundamentals for Testing
At the retail brand NordMart, a test analyst evaluates a generative AI assistant that writes product descriptions for the online catalog. The analyst notices that the same prompt produces different outputs on repeated runs. Which characteristic of generative AI best explains this behavior and its relevance for testing?
✓The model is non-deterministic, so identical prompts can yield varying outputs, which complicates designing repeatable test oracles.
Correct. Generative AI is typically non-deterministic because sampling introduces variability, so identical prompts can produce different outputs, which makes defining a single expected result for a test oracle difficult.
・The model has been trained on biased catalog data and therefore favors certain product categories over others during generation.
Incorrect. Training bias would skew which categories are favored, but it does not by itself explain why the very same prompt varies across repeated runs.
・The model is deterministic but the catalog input data keeps changing between runs, so the differing outputs reflect changing inputs.
Incorrect. The scenario fixes the prompt and repeats it, so unchanged input cannot be the cause; the variation originates in the model's sampling, not the data.
・The model exceeds its context window on long prompts, truncating earlier text and producing shorter descriptions each successive run.
Incorrect. Context-window truncation affects very long inputs, but it does not cause the same short prompt to give different results on each run.
・The assistant caches outputs.
Incorrect. Caching would make repeated identical prompts return the same stored output, which is the opposite of the observed varying behavior.
Explanation
Non-determinism from sampling is a defining characteristic of generative AI and directly challenges the construction of stable test oracles, requiring tolerance-based or property-based checks.
Example8 · Generative AI Fundamentals for Testing
NordMart's data team uses two models: Model A classifies incoming customer emails as complaint or inquiry, while Model B drafts reply messages to those customers. A tester must describe how these two differ. Which statement correctly characterizes Model B as generative rather than discriminative?
・Model B assigns each email a probability of belonging to one of several fixed predefined label categories.
Incorrect. Assigning probabilities over fixed label categories describes a discriminative classifier such as Model A, not a generative model.
✓Model B produces new content by modeling how to generate plausible text, whereas Model A only chooses among existing predefined labels.
Correct. A generative model learns to produce new, plausible content such as a drafted reply, while a discriminative model like Model A only distinguishes among predefined classes.
・Model B compares each reply against a stored template library and returns the closest matching template without alteration.
Incorrect. Returning the closest stored template unchanged is retrieval or matching, not the generation of novel text that characterizes a generative model.
・Model B ranks the emails by urgency so agents can handle the most time-critical customer messages first.
Incorrect. Ranking emails by urgency is a scoring or ordering task typical of discriminative approaches, not content generation.
・Model B routes.
Incorrect. Simple routing assigns each item to a destination category and is a discriminative-style decision, not generative text creation.
Explanation
Generative models create new outputs by modeling the data distribution, while discriminative models separate inputs into predefined categories; recognizing this distinction guides what kind of testing each model needs.
Example9 · Generative AI Fundamentals for Testing
A generative AI tool at NordMart writes store opening-hours notices, and testers find it frequently states that stores open at a time matching an old schedule that was retired a year ago. Which explanation involving training data best accounts for this recurring error?
・The model was fine-tuned too aggressively on recent chat logs, so it overfit to very fresh conversational phrasing patterns.
Incorrect. Overfitting to fresh chat phrasing would affect style and wording, but it would not systematically reproduce a specific retired schedule value.
✓The training data was outdated, so the model learned the retired schedule and reproduces that stale information in its outputs.
Correct. Generative models reflect the content of their training data, so stale data about the old schedule leads the model to confidently reproduce the outdated opening time.
・The inference temperature was set too high, which randomly injected incorrect opening times unrelated to any training content.
Incorrect. A high temperature increases randomness but would scatter times unpredictably rather than consistently returning one specific old schedule.
・The prompt lacked a system message, so the model fell back to refusing to answer any schedule-related requests entirely.
Incorrect. A missing system message might change behavior, but it would not cause the model to assert a particular retired opening time.
・The tokenizer failed.
Incorrect. A tokenizer failure would corrupt or garble text generally, not produce a coherent but outdated schedule value.
Explanation
Training data quality and recency directly shape output quality; stale data produces confidently stated but outdated information, so data provenance and freshness are key testing concerns.
Example10 · Generative AI Fundamentals for Testing
A tester at a retail bank is assigned to a new generative AI assistant that drafts customer loan-rejection letters. The tester has previously only tested deterministic rule engines. Which characteristic of the generative AI system most fundamentally changes how the tester must design test cases compared to the rule engine?
✓The generative model can return different, non-identical outputs for the same prompt, so expected results cannot be a single fixed string
Correct. Generative AI is probabilistic, so identical inputs can yield varying outputs, meaning the oracle must accept a range of acceptable answers rather than one exact expected string.
・The generative model requires more compute resources, so each individual test case will take longer to execute and report
Incorrect. Higher compute cost affects execution time and infrastructure planning but does not change the fundamental test-design challenge of non-deterministic outputs.
・The generative model is written in Python, so the tester must learn a new programming language to read the code
Incorrect. The implementation language is irrelevant to the core testing difference; a tester treats the model as a black box regardless of its coding language.
・The generative model stores its training data in a database, so the tester must query that database before each run
Incorrect. Training data is used to build the model, not queried at inference time, so this does not describe a real test-design change for the tester.
Explanation
The defining difference for testing generative AI is non-determinism: the same input may produce different valid outputs, so expected results must be defined as acceptable ranges or properties rather than exact matches.
Example11 · Generative AI Fundamentals for Testing
An insurance company's chatbot answers policyholder questions. A tester notices that when the same question about deductibles is asked twice, the second answer is better because the chatbot was told earlier in the conversation that the customer holds an auto policy. Which concept best explains why the earlier information improved the later answer?
✓The prior conversation turns formed context that the model incorporated, shaping its later response to the specific policy type
Correct. Context provided in earlier conversation turns is fed into the model with the prompt, so it conditions and improves later responses within that same session.
・The model permanently retrained itself on the auto-policy fact during the conversation and saved the new weights
Incorrect. Models do not retrain or update their weights during a conversation; the information lives in the context window, not in permanent parameters.
・The model's temperature parameter was automatically lowered, which removed all randomness from the second response
Incorrect. Temperature controls randomness but is not automatically changed by prior answers, and lowering it would not add policy-specific knowledge.
・The model fetched the customer's full policy record from the insurer's core database before answering again
Incorrect. Unless retrieval is explicitly configured, the model does not query core databases; the improvement came from in-conversation context, not a database fetch.
Explanation
Generative AI conditions its output on the prompt plus accumulated conversational context within the context window, so earlier relevant turns shape later answers without any retraining.
Example12 · Generative AI Fundamentals for Testing
A test team at a manufacturing distributor is choosing an AI capability for two separate tasks: (a) labeling each incoming support ticket as 'warranty' or 'non-warranty', and (b) drafting new natural-language test cases for the warranty workflow. Which statement correctly characterizes the generative AI role in this situation?
・Generative AI is the better fit for task (a) because sorting tickets into warranty and non-warranty requires producing a label from fixed categories.
Incorrect. Assigning a ticket to one of two fixed categories is a discriminative classification task, not a generative one.
✓Generative AI is suited to task (b) because it produces new test-case content, while task (a) is a discriminative classification problem.
Correct. Drafting new test-case text is generative (it synthesizes novel content), whereas labeling tickets into fixed categories is discriminative.
・Both tasks are generative because any AI that reads the ticket text and emits an output is by definition generating a result.
Incorrect. Emitting a category label is discriminative; only synthesizing new content such as test cases is generative.
・Neither task uses generative AI, since classifying and drafting are both discriminative operations over existing data.
Incorrect. Drafting new test cases is generative, so it is wrong to claim neither task uses generative AI.
Explanation
Generative AI creates new artifacts (text, test cases), while discriminative AI assigns inputs to predefined classes. Ticket labeling is discriminative; drafting test cases is generative.
Example13 · Generative AI Fundamentals for Testing
During a tooling review, a tester at a manufacturing distributor describes the LLM behind their test-generation assistant as a 'foundation model'. A colleague asks what that term implies for the team's usage. Which explanation is the most accurate?
・A foundation model is trained from scratch by the test team on their own warranty dataset so it only knows the distributor's domain.
Incorrect. Foundation models are pre-trained on broad data by the provider, not built from scratch on one team's narrow dataset.
✓A foundation model is broadly pre-trained and can be adapted through prompting or fine-tuning to the distributor's testing tasks.
Correct. A foundation model is broadly pre-trained and then adapted to specific tasks through prompting or fine-tuning.
・A foundation model only works after the vendor rebuilds it specifically for manufacturing-distribution testing scenarios.
Incorrect. Adaptation is done via prompting or fine-tuning by the user, not by the vendor rebuilding the model per domain.
・A foundation model guarantees factually correct test outputs because its broad training removes the possibility of errors.
Incorrect. Broad pre-training does not eliminate errors; foundation models can still produce incorrect or hallucinated outputs.
Explanation
Foundation models are large, broadly pre-trained models that teams adapt to specific uses via prompting or fine-tuning; they do not guarantee correctness.
Example14 · Generative AI Fundamentals for Testing
A telecom operator's QA team debates adopting generative AI to help create test artifacts. A tester asks how generative AI fundamentally differs from the rule-based classifier the team already uses to triage incoming network alarms. Which description best captures the distinction?
✓Generative AI produces novel content such as test cases or data by sampling from learned distributions, whereas the alarm classifier assigns predefined labels
Correct. Generative AI creates new content by sampling from a learned probability distribution, while a classifier maps inputs to a fixed set of predefined labels.
・Generative AI runs only on dedicated hardware in the cloud, whereas the alarm classifier executes entirely on local servers in the data center
Incorrect. Deployment location is an implementation choice, not a defining difference; generative models can run locally and classifiers can run in the cloud.
・Generative AI requires no training data at all, whereas the alarm classifier must be retrained on labelled alarm records every single week before use
Incorrect. Generative models are trained on large corpora and do not operate without training data; this mischaracterizes both approaches.
・Generative AI always guarantees deterministic, fully reproducible output, whereas the alarm classifier returns slightly different labels on each run
Incorrect. Generative AI output is typically non-deterministic due to sampling, whereas a rule-based classifier is usually deterministic, so this reverses reality.
Explanation
The defining difference is that generative AI synthesizes novel content from learned distributions, while discriminative/classification models assign predefined labels; the other options describe deployment, data, or determinism incorrectly.
Example15 · Generative AI Fundamentals for Testing
At a telecom operator, a tester uses a large language model (LLM) to draft test cases for a new prepaid top-up feature. A colleague unfamiliar with LLMs asks what the model is actually doing when it generates each test step. Which explanation is most accurate?
・It queries the operator's live production database in real time and copies the exact stored test records that match the top-up feature description
Incorrect. An LLM does not query live databases; it generates text from learned parameters, not by retrieving stored production records.
✓It predicts the next most probable token given the preceding context, assembling text one token at a time from patterns learned during training
Correct. An LLM generates text autoregressively, predicting the next token from context based on patterns learned in training.
・It compiles the requirement into formal logic and then exhaustively proves every reachable state of the top-up workflow before emitting steps
Incorrect. LLMs do not perform formal logical proofs or exhaustive state exploration; they generate probable text, not verified proofs.
・It executes the feature against a sandbox and records the observed outputs, returning those captured traces verbatim as finished test steps
Incorrect. A standard LLM does not execute the system under test; it produces text, and any execution would require separate tooling.
Explanation
LLMs work by autoregressive next-token prediction over learned patterns; they do not retrieve from live databases, run formal proofs, or execute the system under test by themselves.
▶ Try 10 free questions (graded)