SaveMyCert
Log in
5 of 5 free questions left today·for 10 a day
CT-GenAI practice

CT-GenAI sample questions — 25 answered and explained

25 CT-GenAI sample questions written to the official ISTQB Certified Tester Testing with Generative AI (CT-GenAI) exam guide, grouped by exam domain and weighted like the real exam. Each shows the correct answer, why every other option is wrong, and the lesson that teaches it. None of them repeat the examples on the other CT-GenAI practice pages.

On this page
25
answers included
Full bank
416
on the practice page
Domains
5
weighted like the exam
Free, no account
5/day
a free account allows 10 a day

Domain 1: Introduction to Generative AI for Software Testing

17% of the CT-GenAI exam, so 5 of the 25 questions on this page.

Question 1Introduction to Generative AI for Software Testing

A tester pastes a very long test log into an LLM chat and asks for a list of all failed tests. The answer lists only failures from the end of the log; failures near the start are missing. Which action is MOST appropriate?

Choose one.

  • a
    Raise the temperature setting so that the model samples more widely across the whole of the log

    Temperature affects how the next token is sampled, not how much of the input the model can consider.

  • b
    Rerun the same prompt several times and merge the failed tests that each of the responses reports

    Each rerun faces the same context window limit, so the early part of the log stays out of view every time.

  • c
    Check the input's token count and split or filter the log so each part fits the context window Correct

    The symptom fits an input larger than the context window. Measuring tokens and sending the log in parts, or only the relevant lines, keeps all of it within view.

  • d
    Switch to a reasoning LLM so that the model works step by step through the complete test log

    Reasoning models are better at multi-step problems, but step-by-step reasoning does not make an over-long input fit the context window.

The concept

The context window is the amount of preceding text, measured in tokens, that the model can consider when generating a response.

Why that’s the answer

Missing content from the start of a long input is the typical sign that the input exceeded the context window. The fix is to work with token counts: measure the input, then filter the log to the relevant lines or process it in chunks that each fit. Sampling settings, reruns and a different reasoning style do not change how much input the model can consider.

How to reason it out
  1. Recognise the symptom: only the later part of a long input was used.
  2. Link it to the context window limit, measured in tokens.
  3. Reject options that change sampling or reasoning but not input size.
  4. Reduce or split the input so it fits.

Exam tip: If an LLM ignores part of a long input, count the tokens: the context window is the limit.

CT-GenAI: Generative AI and LLM Fundamentals for Software Testing — the lesson that teaches this.

Question 2Introduction to Generative AI for Software Testing

Which statement BEST describes embeddings in a large language model?

Choose one.

  • a
    Units of text, from single characters to whole words, into which the model splits its input prompt

    Splitting text into units describes tokens and tokenization, the step before embeddings.

  • b
    Settings such as temperature that control how widely the model samples when choosing the next token

    Sampling settings are hyperparameters; they influence non-determinism, not how meaning is represented.

  • c
    Vectors that encode the meaning and usage of tokens, placing tokens with similar roles close together Correct

    Embeddings turn each token into a high-dimensional vector; tokens with similar meanings or contextual roles end up close together.

  • d
    The span of preceding tokens that the model can take into account when it generates its response

    The span of tokens the model can consider is the context window.

The concept

Embeddings are numerical vector representations of tokens that encode semantic, syntactic and contextual relationships.

Why that’s the answer

Tokenization and embeddings together turn language into numbers the model can process. Tokenization splits text into tokens; embeddings then map each token to a vector in a high-dimensional space. Because similar meanings sit close together, the model can relate words, keep context and produce coherent answers.

How to reason it out
  1. Recall the two steps that turn text into numbers.
  2. Tokenization splits; embeddings represent meaning as vectors.
  3. Match the remaining options to hyperparameters and the context window.

Exam tip: Embeddings = meaning as vectors; close vectors = similar meaning.

CT-GenAI: Generative AI and LLM Fundamentals for Software Testing — the lesson that teaches this.

Question 3Introduction to Generative AI for Software Testing

A team wants an LLM-based tool to find existing test cases related to a new defect report, even when the wording differs, such as "sign-in" in one and "login" in the other. Which LLM concept MOST directly makes this possible?

Choose one.

  • a
    Tokenization, because related terms are split into shared sub-word units that match

    Tokenization only splits text. Words such as "sign-in" and "login" share no useful sub-words; their link is in meaning.

  • b
    Embeddings, because related terms are represented by vectors that are close together Correct

    Embeddings place tokens with similar meanings near each other in vector space, so different words for the same idea can still be matched.

  • c
    Context windows, because related terms in a long prompt stay visible to the model

    A context window decides how much text is considered, not whether two different words mean the same thing.

  • d
    Instruction tuning, because the model was trained to follow requests to compare terms

    Instruction tuning improves how well a model follows requests; it is not what represents meaning numerically.

The concept

Embeddings capture semantic relationships, so tokens with similar meanings have nearby vectors.

Why that’s the answer

Matching different words with the same meaning depends on a numerical representation of meaning. That is what embeddings provide: vectors positioned so that similar meanings sit close together. Tokenization is the tempting near-twin, but it splits text without capturing meaning, and "sign-in" and "login" share no useful pieces.

How to reason it out
  1. Identify the need: match different wording with the same meaning.
  2. Ask which concept represents meaning, not text form.
  3. Choose embeddings; tokenization only splits text.

Exam tip: Same meaning, different words: embeddings make the match.

CT-GenAI: Generative AI and LLM Fundamentals for Software Testing — the lesson that teaches this.

Question 4Introduction to Generative AI for Software Testing

An LLM generates expected results for a set of test cases. The output is fluent and well formatted, but one expected value contradicts the short specification included in the prompt. Rerunning the prompt gives the same wrong value. Which explanation is MOST likely?

Choose one.

  • a
    Random sampling during inference produced a different value from the specification in this run

    Sampling randomness would vary between runs, but the same wrong value appears every time the prompt is rerun.

  • b
    The specification fell outside the context window, so the model could not take it into account

    The specification is short and included in the prompt, so it fits easily within the context window.

  • c
    The model predicts statistically plausible tokens, and plausible text is not necessarily correct Correct

    Transformers generate the statistically likely next token. Output can look right and be wrong, and it can be wrong consistently.

  • d
    The tokenizer split the specified value into sub-word tokens, so the model could not read it as written

    Splitting a value into sub-word tokens is normal and keeps its meaning available through the surrounding context; it does not stop the model using a value given in the prompt.

The concept

LLMs predict the next token based on learned relationships; their output is statistically plausible, but plausible is not necessarily correct.

Why that’s the answer

Two clues rule out the near-twins. The wrong value repeats on every rerun, so random sampling (non-determinism) is not the cause. The specification is short and inside the prompt, so the context window is not the cause. What remains is the basic nature of transformer generation: it produces likely-looking text, which is why every generated expected result must be checked against the test basis. Sub-word tokenization is not the cause either: values are routinely split into several tokens and the model still uses them.

How to reason it out
  1. Use the repeat-on-rerun clue to rule out sampling randomness.
  2. Use the short, included specification to rule out the context window.
  3. Recall that generation favours plausibility, not correctness.
  4. Conclude that fluent output still needs verification.

Exam tip: Fluent and consistent is not the same as correct: LLMs generate plausible text.

CT-GenAI: Generative AI and LLM Fundamentals for Software Testing — the lesson that teaches this.

Question 5Introduction to Generative AI for Software Testing

Which statement BEST describes how an LLM produces a response during inference?

Choose one.

  • a
    It retrieves the stored training document that most closely matches the prompt and returns it

    LLMs generate new text token by token; they do not store and return whole training documents as answers.

  • b
    It repeatedly predicts the next token using relationships between tokens learned in training Correct

    During inference, the transformer predicts one token after another, using the relationships it learned between tokens.

  • c
    It applies logical rules written by domain experts to the symbols that appear in the prompt

    Applying expert-written rules to symbols is how symbolic AI works, not LLMs.

  • d
    It updates its parameters on the prompt and then generates text with the newly tuned model

    A model's parameters are not retrained by each prompt; inference uses the parameters already learned.

The concept

LLMs are based on the transformer architecture and generate text by predicting the next token.

Why that’s the answer

LLMs are generative pre-trained transformers. Training teaches them how tokens relate to each other; at inference they use those relationships to predict the next token, again and again, until the response is complete. They do not retrieve documents, apply expert rules or retrain on each prompt.

How to reason it out
  1. Separate training (learning relationships) from inference (using them).
  2. Recall that inference predicts the next token repeatedly.
  3. Reject retrieval, rules and per-prompt retraining.

Exam tip: Inference = next-token prediction, one token at a time.

CT-GenAI: Generative AI and LLM Fundamentals for Software Testing — the lesson that teaches this.

Domain 2: Prompt Engineering for Effective Software Testing

28% of the CT-GenAI exam, so 7 of the 25 questions on this page.

Question 6Prompt Engineering for Effective Software Testing

Which description BEST matches prompt chaining?

Choose one.

  • a
    Putting several worked input-and-output examples into one prompt so that the model follows their pattern

    Including examples in the prompt is few-shot prompting.

  • b
    Splitting a test task into successive prompts and checking each intermediate output before the next one Correct

    Prompt chaining breaks a task into steps (multiple prompts); each result is checked and refined before it feeds the next prompt.

  • c
    Asking the model to draft and improve the prompt that will afterwards be used for the test task itself

    Having the LLM generate or refine prompts is meta prompting.

  • d
    Sending one prompt several times to the model and then keeping the answer that occurs most frequently

    Repeating a prompt and voting on answers is a separate sampling technique, not one of the syllabus's core techniques and not chaining.

The concept

Prompt chaining decomposes a task into intermediate steps; the output of each step is checked (manually or automatically) and refined before the next prompt.

Why that’s the answer

The defining features of prompt chaining are decomposition into several prompts and checking intermediate outputs. Examples in one prompt are few-shot prompting; having the LLM write prompts is meta prompting; repeating the same prompt and voting involves no decomposition at all.

How to reason it out
  1. Look for the option that splits one task into several prompts.
  2. Confirm that intermediate outputs are checked between steps.
  3. Map the other descriptions to few-shot and meta prompting.

Exam tip: Chaining = many prompts in sequence, each output checked before the next.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Question 7Prompt Engineering for Effective Software Testing

A tester asks an LLM to list ambiguities in a user story, corrects that list, asks for test conditions from the corrected story, reviews them, then asks for test cases. Which technique is the tester MAINLY using?

Choose one.

  • a
    Few-shot prompting

    No examples of the expected output are given to the model, so this is not few-shot prompting.

  • b
    Prompt chaining Correct

    The task is split into successive prompts (ambiguities, conditions, test cases) and each intermediate output is reviewed before the next step, which is prompt chaining.

  • c
    Meta prompting

    The model is never asked to write or refine a prompt; it performs the test tasks directly.

  • d
    Zero-shot prompting

    Each individual prompt may contain no examples, but the defining pattern here is the sequence of checked steps, which is chaining.

The concept

Prompt chaining breaks a complex test task into intermediate steps and checks each output before the next prompt.

Why that’s the answer

The tester decomposes test analysis and design into three prompts and checks the result of each before moving on. That is the definition of prompt chaining. Zero-shot is tempting because no examples appear, but it describes a single prompt without examples, not the stepwise, reviewed workflow. Meta prompting would require the LLM to produce prompts, and few-shot would require examples.

How to reason it out
  1. Notice the work is split into several prompts in a fixed order.
  2. Notice each output is checked before it feeds the next prompt.
  3. Decomposition plus intermediate checks identifies prompt chaining.

Exam tip: A sequence of prompts with a review between each = prompt chaining.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Question 8Prompt Engineering for Effective Software Testing

In which situation is prompt chaining the MOST suitable technique?

Choose one.

  • a
    Deriving test cases for a complex feature whose test conditions need review before design Correct

    Prompt chaining suits complicated tasks that need decomposition and systematic checking of intermediate outputs, such as reviewing conditions before test design.

  • b
    Producing test cases in the house template when several completed examples are available

    Matching a template from available examples is where few-shot prompting is most effective.

  • c
    Creating a reusable prompt for a recurring task when the tester is unsure how to word it

    Co-creating a prompt with the LLM when unsure how to write it is the classic use of meta prompting.

  • d
    Asking a single factual question, such as how two named test techniques differ from each other

    A single direct question needs no decomposition; a plain prompt without chaining is enough.

The concept

Prompt chaining is particularly useful where tasks are complicated, need decomposition into subtasks, and benefit from systematic checking of intermediate LLM outputs.

Why that’s the answer

Each option describes the natural home of a different technique. Chaining fits the complex feature because the work naturally splits into steps (conditions, then test cases) and the conditions should be checked before they drive design. Template matching from examples is few-shot, co-creating a prompt is meta prompting, and a single factual question needs no chain.

How to reason it out
  1. Recall what chaining offers: decomposition and checked intermediate results.
  2. Find the situation that is complex and has an intermediate artefact worth reviewing.
  3. Match the other situations to few-shot and meta prompting.

Exam tip: Complex, multi-step test tasks with reviewable intermediate results call for chaining.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Question 9Prompt Engineering for Effective Software Testing

A prompt contains one example of a user story with the test conditions derived from it, followed by a new user story to analyse. Which technique does this prompt use?

Choose one.

  • a
    One-shot prompting Correct

    Providing exactly one example to demonstrate the expected result for an input is one-shot prompting.

  • b
    Few-shot prompting

    Few-shot prompting uses more than one example. With a single example the prompt is one-shot.

  • c
    Zero-shot prompting

    Zero-shot prompting gives no example and relies only on the model's existing knowledge.

  • d
    Prompt chaining

    The prompt is a single request with an example, not a sequence of checked prompts.

The concept

Zero-shot gives no example, one-shot gives one, and few-shot gives more than one example of the expected result.

Why that’s the answer

The syllabus distinguishes prompts by how many examples they include. One worked example followed by a new input is one-shot prompting. Few-shot is the near-twin but requires several examples to consolidate the desired behaviour. Zero-shot has none, and chaining is about a sequence of prompts.

How to reason it out
  1. Count the examples in the prompt: one.
  2. Zero examples = zero-shot, one = one-shot, more than one = few-shot.
  3. Rule out chaining because there is only one prompt.

Exam tip: Count the examples: 0 = zero-shot, 1 = one-shot, 2+ = few-shot.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Question 10Prompt Engineering for Effective Software Testing

Which statement BEST describes the difference between zero-shot and few-shot prompting?

Choose one.

  • a
    Zero-shot gives the whole task in one prompt; few-shot splits it into several prompts with checks between

    Splitting a task into several checked prompts is prompt chaining, not few-shot prompting.

  • b
    Zero-shot relies on the model's own knowledge; few-shot adds several examples of the expected result Correct

    Zero-shot gives no example and relies on pre-existing knowledge; few-shot includes more than one example to consolidate the desired response.

  • c
    Zero-shot sends no system prompt to the model; few-shot adds a system prompt that contains a few fixed rules

    The shot count refers to examples in the prompt, not to whether a system prompt is present.

  • d
    Zero-shot asks the model to answer directly; few-shot first asks it to draft a few candidate prompts

    Having the model draft prompts is meta prompting.

The concept

The "shot" count is the number of examples given in the prompt: none for zero-shot, more than one for few-shot.

Why that’s the answer

Few-shot prompting guides the model with several examples of input and expected output, so it can generalise the pattern; zero-shot provides no example and depends entirely on what the model already knows. The distractors redefine "few" as prompts in a chain, rules in a system prompt, or candidate prompts in meta prompting.

How to reason it out
  1. Recall that "shot" means an example in the prompt.
  2. Zero-shot: no examples; few-shot: several examples.
  3. Reject options that describe chaining, system prompts or meta prompting.

Exam tip: Shots are examples, not prompts or rules.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Question 11Prompt Engineering for Effective Software Testing

A team's test cases follow a house style for naming and step wording. Zero-shot prompts describing the style in words keep producing cases that drift from it. Which change is MOST likely to make the output consistent with the house style?

Choose one.

  • a
    Split the task into chained prompts with a review after each test case

    Chaining adds checkpoints, so drift would be caught, but it gives the model nothing new that teaches the style; the tester would keep correcting the same errors.

  • b
    Add several completed test cases written in the house style as examples Correct

    Few-shot prompting gives the model concrete references for the expected result, which is particularly effective when examples can show behaviour that is hard to describe.

  • c
    Ask the LLM to rewrite the prompt so the house style is described more clearly

    Meta prompting may improve the wording, but the problem is that a verbal description already fails; examples show the style directly.

  • d
    Change the role to a test analyst who knows the team's house style for test cases

    A persona cannot give the model knowledge of a style it has never seen.

The concept

Few-shot prompting is particularly effective where examples can illustrate the required behaviour, helping the model generalise and produce consistent results.

Why that’s the answer

The symptom is that a described format is not followed. Few-shot prompting addresses exactly this: several examples give a clear reference and keep results consistent with expectations. Chaining is workable but only detects drift after the fact; meta prompting improves the wording of a description that has already proven insufficient; a role cannot supply unseen conventions. Examples show the model the pattern instead of telling it.

How to reason it out
  1. Identify the failure: output does not match an existing, well-defined style.
  2. Note that verbal description has already been tried and failed.
  3. Ask which technique shows the pattern rather than describing it: few-shot.
  4. Compare with chaining, which catches errors but does not prevent them.

Exam tip: When describing a format is not enough, show it: few-shot examples.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Question 12Prompt Engineering for Effective Software Testing

Unsure how to word a prompt for analysing flaky test reports, a tester asks an LLM to suggest a suitable prompt and to ask about missing details, then evaluates and refines the suggestion. Which technique is this?

Choose one.

  • a
    Meta prompting Correct

    The LLM is used to generate and refine the prompt itself, with the tester evaluating it, which is meta prompting.

  • b
    Prompt chaining

    Chaining splits the test task into checked steps. Here the LLM's output is a prompt, not an intermediate test result.

  • c
    Few-shot prompting

    No examples of the expected output are supplied to the model.

  • d
    Zero-shot prompting

    The request contains no examples, but its defining purpose is to produce a prompt, which makes it meta prompting.

The concept

Meta prompting uses the LLM's ability to generate or refine prompts, which the tester then evaluates and refines in an iterative cycle.

Why that’s the answer

The tester does not ask the model to analyse the reports yet; they ask it to produce the prompt for that analysis, and they co-create it. That is meta prompting, and the syllabus notes it is especially useful when the tester is unsure how to craft an effective prompt. The interaction is iterative, which can look like chaining, but chaining decomposes the test task itself.

How to reason it out
  1. Ask what the LLM is producing: a prompt, not test output.
  2. LLM-generated or LLM-refined prompts define meta prompting.
  3. Distinguish this from chaining, which decomposes the test task.

Exam tip: If the LLM's output is a prompt, the technique is meta prompting.

CT-GenAI: Prompt Structure, Prompting Techniques and System vs User Prompts — the lesson that teaches this.

Domain 3: Managing Risks of Generative AI in Software Testing

25% of the CT-GenAI exam, so 6 of the 25 questions on this page.

Question 13Managing Risks of Generative AI in Software Testing

A booking app's test strategy calls for functional, performance, security and accessibility testing. An LLM returns 40 test cases: 37 functional, 3 security and none of the other types. Each traces to a requirement and passes a dry run. Which diagnosis and detection approach is BEST?

Choose one.

  • a
    Hallucination; cross-verify the test cases against the strategy and requirements

    Every test case already traces to a requirement, so cross-verification would find nothing wrong. The problem is what is missing, not what is invented.

  • b
    Reasoning error; run the generated test cases against the test object

    Output testing reveals faulty test logic, but these tests already run correctly. Running them cannot reveal test types that were never generated.

  • c
    Bias; review the output against the strategy's test types and coverage needs Correct

    Underrepresented test types such as non-functional tests are a bias the syllabus names, and it is detected by reviewing the testware against the test strategy and coverage requirements.

  • d
    Bias; ask a domain expert to check the expected results of each test type

    The diagnosis is right, but checking individual expected results does not address coverage. The gap is whole test types, found by comparing with the strategy.

The concept

Bias detection reviews whether generated testware fairly represents the test strategy and coverage requirements, including underrepresented test types such as non-functional tests.

Why that’s the answer

Two facts decide this item. First, a heavy skew toward functional tests with performance and accessibility missing is the syllabus example of bias related to test types. Second, the matching detection approach is a review of the output against the defined test strategy and coverage requirements. Cross-verification and output testing check each item that exists; they cannot reveal categories that were never produced. A domain expert checking expected results has the right label but the wrong check.

How to reason it out
  1. Note that every generated item is correct and traceable.
  2. The defect is the distribution: non-functional test types are missing — bias.
  3. Pick the detection approach that compares coverage with the test strategy.

Exam tip: Missing test types are a bias problem — compare the output with the test strategy, not item by item.

CT-GenAI: Hallucinations, Reasoning Errors and Bias in LLM Testing — the lesson that teaches this.

Question 14Managing Risks of Generative AI in Software Testing

A team wants an automated step that flags generated test cases mentioning fields or error codes that are absent from the API specification. Which detection approach does this step implement?

Choose one.

  • a
    Logical validation

    Logical validation reviews the flow and coherence of the reasoning in the output. It does not compare the output with a reference document.

  • b
    Output testing

    Output testing runs the generated tests or scripts against the test object. This step only compares text with the specification.

  • c
    Cross-verification Correct

    Comparing generated output with existing documentation, requirements and known system behaviour — here the API specification — is cross-verification, and the syllabus notes automated tools can flag the discrepancies.

  • d
    Coverage review

    Reviewing coverage against the test strategy detects bias such as missing test types. It does not check whether named fields actually exist.

The concept

Cross-verification compares AI-generated output with existing documentation, requirements and known system behaviour, and can be automated to flag discrepancies.

Why that’s the answer

Fields or error codes that do not exist in the specification are hallucinations. The syllabus lists cross-verification as a hallucination detection approach: compare the output with documentation, requirements and known system behaviour, with automated tools cross-referencing established sources. Logical validation and output testing target reasoning errors, and coverage review targets bias.

How to reason it out
  1. Recognise the defect: references to things not in the specification (hallucination).
  2. The check compares output with a reference source.
  3. Comparison with documentation = cross-verification.

Exam tip: Check the output against the spec = cross-verification.

CT-GenAI: Hallucinations, Reasoning Errors and Bias in LLM Testing — the lesson that teaches this.

Question 15Managing Risks of Generative AI in Software Testing

A tester sends the same request for test cases to an LLM in three separate conversations, then compares the three sets and flags expected results that contradict each other. Which hallucination detection approach is this?

Choose one.

  • a
    Cross-verification

    Cross-verification compares output with external documentation, requirements and known system behaviour. Here the outputs are compared with each other.

  • b
    Consistency checks Correct

    Verifying that generated outputs are consistent with each other and with known information is the consistency-check approach to detecting hallucinations.

  • c
    Logical validation

    Logical validation evaluates the coherence of the reasoning within an output. It does not compare several outputs for contradictions.

  • d
    Output testing

    Output testing runs generated tests against the test object. No test is executed in this scenario.

The concept

Consistency checks verify that generated outputs are consistent with each other and with known information.

Why that’s the answer

The syllabus lists three hallucination detection approaches: cross-verification (against documentation and requirements), domain expertise consultation, and consistency checks. Comparing several generated sets and flagging contradictions between them is a consistency check; a contradiction suggests at least one version contains invented content. Logical validation and output testing are the reasoning-error approaches.

How to reason it out
  1. Note what is compared: outputs with each other, not with a document.
  2. Contradictions between outputs point to possible hallucinations.
  3. Output-to-output comparison = consistency check.

Exam tip: Outputs compared with each other = consistency check; with the spec = cross-verification.

CT-GenAI: Hallucinations, Reasoning Errors and Bias in LLM Testing — the lesson that teaches this.

Question 16Managing Risks of Generative AI in Software Testing

An LLM generates expected results for tests of a drug-dosage calculator used in hospitals. The correct doses depend on patient weight, renal function and drug interactions that the specification does not describe. Which detection approach is MOST appropriate?

Choose one.

  • a
    Lower the temperature and regenerate the expected results

    Lowering temperature makes output more consistent, not more correct. A consistently wrong expected result is still wrong.

  • b
    Consult a domain expert to validate the expected results Correct

    Domain expertise consultation brings in subject matter experts to validate generated content, capturing nuanced errors that the tester and automated checks would miss.

  • c
    Compare the expected results from three separate conversations

    Consistency checks can expose contradictions between outputs, but outputs that agree can still be wrong, and the specification cannot settle which dosing values are right.

  • d
    Review the logical flow of the expected results step by step

    Logical validation checks the coherence of the reasoning, but whether a dose is clinically right depends on pharmacology knowledge that is not in the specification.

The concept

Domain expertise consultation: subject matter experts validate the accuracy of generated content, especially where nuance matters.

Why that’s the answer

The deciding fact is that correctness depends on clinical knowledge the specification does not contain, so neither the tester nor a check against the documents can confirm the values. The syllabus lists domain expertise consultation as a hallucination detection approach because subject matter experts capture nuanced errors that automated checks and non-experts miss. Consistency checks and logical validation can expose some problems but cannot confirm that plausible-looking values are right, and temperature affects variability rather than accuracy.

How to reason it out
  1. Identify the risk: plausible-looking but possibly wrong content (hallucination).
  2. Identify the constraint: correctness depends on knowledge that is not in the specification.
  3. Choose the approach that adds the missing knowledge: a subject matter expert.

Exam tip: When correctness depends on knowledge outside the test basis, bring in a domain expert.

CT-GenAI: Hallucinations, Reasoning Errors and Bias in LLM Testing — the lesson that teaches this.

Question 17Managing Risks of Generative AI in Software Testing

A tester wants to confirm that LLM-generated test scripts handle their conditional branches correctly, with as much of the checking automated as possible. Which detection approach BEST fits?

Choose one.

  • a
    Run the scripts against the test object and check the test results Correct

    Output testing executes the generated test scripts against the test object to verify the results, and the syllabus notes it can be partially or fully automated.

  • b
    Review the logical flow of each script in structured review cycles

    Logical validation also targets reasoning errors, but it works through review cycles and complex cases need human judgment, so it does not meet the automation goal.

  • c
    Compare each script with the requirements and known system behaviour

    Cross-verification is a hallucination detection approach. It checks that content matches the documentation, not that the branch logic works.

  • d
    Check that the scripts cover the test types named in the test strategy

    Reviewing coverage against the strategy detects bias. It does not show whether the conditional logic in each script is correct.

The concept

Output testing — running generated test cases or scripts against the test object — detects reasoning errors and can be partially or fully automated.

Why that’s the answer

Faulty conditional logic is a reasoning error. The syllabus gives two reasoning-error detection approaches: logical validation (review of the reasoning flow; tools can help but complex cases need human judgment) and output testing (executing the generated testware against the test object). The stated constraint, maximum automation, favours output testing. Cross-verification targets hallucinations and coverage review targets bias.

How to reason it out
  1. Classify the risk: wrong branch logic = reasoning error.
  2. List the reasoning-error approaches: logical validation and output testing.
  3. Apply the constraint: executing scripts is the one that automates well.

Exam tip: To catch faulty logic in executable testware, execute it.

CT-GenAI: Hallucinations, Reasoning Errors and Bias in LLM Testing — the lesson that teaches this.

Question 18Managing Risks of Generative AI in Software Testing

An LLM gives a test effort estimate with its working shown step by step. The total looks reasonable, but one intermediate step counts regression effort twice. No executable testware is involved. Which approach BEST locates this kind of error?

Choose one.

  • a
    Output testing against the test object to verify the estimate

    Output testing executes generated test cases or scripts. An effort estimate cannot be run against the test object.

  • b
    Comparison of the estimate with estimates from two other LLMs

    Comparing models can show that results differ, but it does not point to the faulty step, and the other models may make similar mistakes.

  • c
    Logical validation of the reasoning chain in a review Correct

    Logical validation evaluates the consistency, coherence and structured reasoning within the generated text. Reviewing each step is what finds a double-counted item.

  • d
    Consistency check of the estimate against the test strategy

    Reviewing against the strategy is how bias in coverage is found. It does not check the arithmetic inside the estimate.

The concept

Reasoning errors are detected by logical validation of the reasoning flow and by output testing; only the first applies when nothing can be executed.

Why that’s the answer

A double-counted step is a reasoning error in a test planning task, which the syllabus singles out as error-prone (its hands-on exercise uses effort estimation). The two reasoning-error detection approaches are logical validation and output testing. With no executable testware, output testing is not possible, so a review of the reasoning chain is what locates the faulty step. Comparing models is a mitigation that can expose a disagreement, but it does not locate the error.

How to reason it out
  1. Classify: a wrong intermediate calculation is a reasoning error.
  2. Rule out output testing: there is nothing to execute.
  3. Rule out model comparison for locating the error: it shows differences, not causes.
  4. Logical validation reviews each step of the reasoning.

Exam tip: No executable output? Validate the reasoning step by step.

CT-GenAI: Hallucinations, Reasoning Errors and Bias in LLM Testing — the lesson that teaches this.

Domain 4: LLM-Powered Test Infrastructure for Software Testing

13% of the CT-GenAI exam, so 3 of the 25 questions on this page.

Question 19LLM-Powered Test Infrastructure for Software Testing

Why is an LLM-powered test infrastructure described as going beyond a traditional client-server model?

Choose one.

  • a
    The LLM acts as a processing component that interprets and reasons over testware such as requirements Correct

    The syllabus says the LLM is not just a server but a smart processing component that interprets and reasons based on testware, generating insights dynamically from context.

  • b
    The front end gives non-technical stakeholders a natural-language interface alongside testers

    A natural-language interface is a feature of chatbots and user interfaces; it does not change the client-server pattern.

  • c
    The back end stores test cases in a relational database that the front end reads through an API

    A front end reading a relational database through an API is the traditional client-server model itself.

  • d
    The server picks scripted responses using predefined matching rules, which keeps the test outputs consistent

    Scripted rule-based responses are what the LLM-powered approach is contrasted with; it generates insights dynamically instead.

The concept

LLM-powered test infrastructure adds intelligent processing: the LLM reasons over testware, and the back end integrates multiple sources and post-processes output.

Why that’s the answer

The syllabus lists what goes beyond client-server: the LLM is a smart processing component that interprets and reasons based on testware, insights are generated dynamically from context such as requirements, code or test results (unlike scripted rule-based bots), the back end integrates multiple sources such as relational and vector databases, and it post-processes output. A front end reading a relational database is plain client-server, and scripted rules are the opposite of dynamic reasoning.

How to reason it out
  1. Recall what a plain client-server system does: a server returns stored or computed data.
  2. Find the option where the server-side component reasons over testware.
  3. Reject options that describe ordinary interfaces, databases or rule-based bots.

Exam tip: The LLM is a reasoning component, not just a server.

CT-GenAI: LLM-Powered Test Infrastructure, RAG and LLM Agents — the lesson that teaches this.

Question 20LLM-Powered Test Infrastructure for Software Testing

Testers ask a RAG-based test assistant about 'sign-in lockout', and it retrieves a specification chunk that uses only the words 'authentication' and 'account suspension'. Which mechanism MOST likely explains this retrieval?

Choose one.

  • a
    The query and the stored chunks are compared as embeddings, so text with a similar meaning is matched Correct

    RAG encodes the user query and retrieves chunks by semantic similarity between embeddings, so matching does not depend on shared words.

  • b
    The LLM rewrites the query using its training data, so synonyms are added before keyword search

    In the RAG process described, retrieval compares the encoded query with chunk embeddings; it is not a keyword search over an LLM-expanded query.

  • c
    The chunk was ranked first because it was the most recently added to the vector database

    Retrieval is based on semantic similarity to the query, not on when a chunk was stored.

  • d
    The back end matched the query to the chunk through a relational table of approved synonyms

    A synonym table in a relational database would be a keyword approach; RAG retrieval works on embeddings in a vector database.

The concept

In RAG, the user query is encoded and the most relevant chunks are retrieved by semantic similarity between the query embedding and the chunk embeddings.

Why that’s the answer

Embeddings place text with similar meaning close together in a high-dimensional space. When the assistant encodes 'sign-in lockout' and compares it with the stored chunk embeddings, a chunk about authentication and account suspension is close in meaning even though it shares no words with the query. Keyword search, synonym tables and recency would not explain the match.

How to reason it out
  1. Notice that the query and chunk share no words.
  2. Recall how RAG retrieves: encode the query, compare embeddings, rank by similarity.
  3. Similar meaning, not shared words, drives the match.

Exam tip: RAG retrieval matches meaning through embeddings, not words.

CT-GenAI: LLM-Powered Test Infrastructure, RAG and LLM Agents — the lesson that teaches this.

Question 21LLM-Powered Test Infrastructure for Software Testing

What is the MAIN benefit of Retrieval-Augmented Generation (RAG) for an LLM-powered test tool?

Choose one.

  • a
    It retrains the model's parameters on project documents, so it learns the domain's vocabulary

    Further training a model on targeted data is fine-tuning. RAG leaves the model unchanged and supplies retrieved content as context.

  • b
    It adds relevant content from extra data sources to the prompt, making outputs more accurate Correct

    RAG enhances an LLM by bringing additional data sources into response generation, which increases the relevance and accuracy of its outputs.

  • c
    It lowers the sampling temperature of each request, so the same prompt gives repeatable output

    Temperature is a setting for reducing non-deterministic output; it has nothing to do with retrieving extra content.

  • d
    It splits a complex test task into linked prompts, each one building on the previous output

    Linking prompts that build on each other is prompt chaining, a prompt engineering technique, not retrieval.

The concept

RAG enhances LLMs by incorporating additional data sources into response generation, increasing the relevance and accuracy of outputs.

Why that’s the answer

RAG combines a retrieval system with the language model: relevant content is retrieved from additional data sources and given to the LLM as context, so its response is grounded in that information rather than its training data alone. Retraining the model is fine-tuning, temperature controls variability, and prompt chaining structures a task.

How to reason it out
  1. Expand the acronym: retrieval, then augmented generation.
  2. Retrieval supplies extra content; the model itself is unchanged.
  3. Separate RAG from fine-tuning, temperature and prompt chaining.

Exam tip: RAG = retrieve relevant content, then generate with it as context.

CT-GenAI: LLM-Powered Test Infrastructure, RAG and LLM Agents — the lesson that teaches this.

Domain 5: Deploying and Integrating Generative AI in Test Organizations

17% of the CT-GenAI exam, so 4 of the 25 questions on this page.

Question 22Deploying and Integrating Generative AI in Test Organizations

A team picks the LLM that produced the best test cases in a pilot. After roll-out it cannot connect to the existing test management and CI tools, and slows sharply when 200 testers use it. Which strategy aspects were MOST clearly overlooked?

Choose one.

  • a
    Quality of the test input data and the security procedures protecting it

    Data quality affects the correctness of results; the symptoms here are integration failures and slowdown under load.

  • b
    Training for the existing testers and metrics for the effectiveness of results

    Training and metrics matter, but neither explains a tool that cannot connect to the CI tools or slows under load.

  • c
    Fine-tuning with domain-specific data and an active community for support

    These are model selection criteria, but the pilot output was good; the failures are integration and scale, not accuracy.

  • d
    Compatibility with existing test infrastructure and system scalability Correct

    The syllabus says LLM selection must ensure compatibility with existing test infrastructure and meet scalability requirements. The two symptoms map to exactly these.

The concept

The LLM chosen for a GenAI strategy must align with the test objectives, be compatible with existing test infrastructure, and meet scalability requirements.

Why that’s the answer

Two facts combine here. The pilot showed the model performs well, so output quality is not the gap. The failures are integration (cannot connect to existing test management and CI tools) and load (slows with 200 users), which the syllabus covers as compatibility with existing test infrastructure and system scalability. The other pairs are real strategy or selection aspects that do not explain these symptoms.

How to reason it out
  1. Discard quality causes: the pilot output was good.
  2. Map "cannot connect to existing tools" to infrastructure compatibility.
  3. Map "slows with many users" to scalability.

Exam tip: A good pilot model can still fail on infrastructure fit and scale.

CT-GenAI: GenAI Adoption Roadmap, Shadow AI and LLM Selection — the lesson that teaches this.

Question 23Deploying and Integrating Generative AI in Test Organizations

An LLM keeps generating test cases for business rules that changed last year. The prompts follow a clear structure, and the model scored well on the team's own benchmark. Which action should the team take FIRST?

Choose one.

  • a
    Bring the requirements and data supplied to the LLM up to date and keep them current Correct

    The syllabus stresses that GenAI results depend on accurate, relevant input data. Out-of-date business rules in the output point to stale input, the root cause.

  • b
    Replace the model with a larger LLM that has a wider context window for long input documents

    A larger model given the same stale input still produces stale rules; the benchmark already shows the model is capable.

  • c
    Add few-shot examples of correct test cases to the prompt for each business rule

    Examples guide format and style; they do not correct outdated rules that come from the input data.

  • d
    Add a quality gate where testers review generated test cases against current rules

    Review catches the wrong cases after generation and is worth having, but it does not fix the cause and should not come first.

The concept

The effectiveness of LLM-powered testing depends on accurate, relevant input data; high-quality input data is key to results that can be trusted.

Why that’s the answer

The stem rules out weak prompts and a weak model, leaving the input data. The syllabus says the effectiveness of LLM-powered testing depends on accurate, relevant input data, and that maintaining its quality is key to trustworthy results. A larger model and few-shot examples work on the wrong layer; a review gate is a valid control but treats the symptom rather than the cause.

How to reason it out
  1. Note what the stem rules out: prompt structure and model capability.
  2. Trace outdated rules in the output back to the input.
  3. Fix the root cause first; keep review as a later control.

Exam tip: Stale input in, stale testware out: fix data quality first.

CT-GenAI: GenAI Adoption Roadmap, Shadow AI and LLM Selection — the lesson that teaches this.

Question 24Deploying and Integrating Generative AI in Test Organizations

Which statement about input data BEST reflects the syllabus guidance for a GenAI strategy in testing?

Choose one.

  • a
    Results can be trusted when the model is large enough to correct flaws in the input

    Model size does not repair inaccurate input; the syllabus puts data quality first for trustworthy results.

  • b
    Results can be trusted when input data is accurate, relevant and protected by robust security Correct

    The syllabus says effectiveness depends on accurate, relevant input data protected by robust security procedures.

  • c
    Results can be trusted when input data is anonymized, as accuracy is then checked during review

    Anonymization protects privacy, but accuracy and relevance still have to be maintained in the data itself.

  • d
    Results can be trusted when input data is reduced to the minimum, since less data means fewer errors

    Minimizing data helps privacy, but too little or inaccurate data lowers relevance; the guidance is about quality.

The concept

Data quality plays a critical role in a GenAI test strategy: accurate, relevant input data protected by robust security procedures.

Why that’s the answer

The syllabus states that LLM-powered testing is only as effective as its input data, which must be accurate and relevant and protected by robust security procedures. A larger model, anonymization or data minimization each address something else (capability, privacy) and do not make inaccurate data trustworthy.

How to reason it out
  1. Recall the two data properties: accurate and relevant.
  2. Recall the protection: robust security procedures.
  3. Reject options that substitute model size or privacy measures for quality.

Exam tip: Trustworthy GenAI results need accurate, relevant, secured input data.

CT-GenAI: GenAI Adoption Roadmap, Shadow AI and LLM Selection — the lesson that teaches this.

Question 25Deploying and Integrating Generative AI in Test Organizations

Which training approach BEST matches what the syllabus recommends for test teams as part of a GenAI strategy?

Choose one.

  • a
    Comprehensive programs that build both the technical and the ethical skills of the test team Correct

    The syllabus calls for comprehensive training so test teams have the technical and ethical skills to use GenAI tools effectively.

  • b
    Technical programs for tool specialists, while the rest of the team learns while doing the work

    The strategy aims at the test teams as a whole and includes ethical skills, not training for a few specialists.

  • c
    Vendor-led demonstrations of the chosen LLM's features for the test leads and managers

    Feature demonstrations for leads reach neither the whole test team nor its ethical skills; the syllabus calls for comprehensive training in technical and ethical skills.

  • d
    Administration courses for the group that hosts and maintains the LLM infrastructure

    Hosting skills matter to an infrastructure team, but the strategy point is about test teams using GenAI tools.

The concept

A GenAI strategy for testing includes comprehensive training programs so test teams have the technical and ethical skills to use GenAI tools effectively.

Why that’s the answer

The syllabus pairs two skill types in its strategy guidance, technical and ethical, and aims the training at the test teams that will use the tools. Training only specialists, showing leads the product's features, or training only the infrastructure administrators either leaves out the ethical skills or misses the test team as the audience.

How to reason it out
  1. Identify the audience: the test teams that use GenAI.
  2. Identify the two skill types: technical and ethical.
  3. Choose the option covering both for that audience.

Exam tip: Strategy training = technical + ethical skills for the test team.

CT-GenAI: GenAI Adoption Roadmap, Shadow AI and LLM Selection — the lesson that teaches this.

Keep going with CT-GenAI

CT-GenAI practice by domain

CT-GenAI sample questions: your questions

No. Real exam questions are confidential. These are original questions written to the skills in the official CT-GenAI exam guide, so they test the same knowledge in the same style without being copies of the exam.

Source

The domains and weights on this page come from the official CT-GenAI exam guide.