Which technique is used to reduce variability and promote more consistent outputs from Large Language Models, particularly for long generated texts?
-
A
Increasing the LLM's context window to process more information.
-
B
Lowering the temperature parameter during response generation.
-
C
Maximizing the creativity and diversity in responses.
-
D
Using multiple prompts in sequence.
Reveal answer details
Close answer details
Correct answerB
ExplanationLowering the temperature parameter reduces randomness during generation and usually makes outputs more consistent. Temperature affects how broadly the model samples from possible next tokens. A lower setting favors higher-probability continuations, which can make long generated texts more stable in wording, structure, and conclusions across repeated runs. That is useful when testers need repeatable summaries, standardized reports, or controlled test case drafts. Increasing the context window allows more input to be considered, but it does not directly reduce variability in how the model samples its response. Maximizing creativity and diversity has the opposite effect because it encourages broader variation. Using multiple prompts in sequence is prompt chaining, which helps decompose complex work but does not by itself make each response less variable. Temperature is not a guarantee of truth or quality, so output must still be reviewed. Its main role is controlling generation behavior: lower values support consistency, while higher values support exploration and variety when that is the intended goal.
In a Retrieval-Augmented Generation (RAG) system, what is the primary purpose of storing document chunks as high-dimensional vectors (embeddings) in a vector database?
-
A
To enable the LLM to learn new linguistic patterns during inference.
-
B
To directly generate human-like text responses without additional context.
-
C
To facilitate efficient similarity-based retrieval of relevant information at runtime.
-
D
To convert textual input into smaller units called tokens.
Reveal answer details
Close answer details
Correct answerC
ExplanationIn a retrieval-augmented generation system, document chunks are converted into embeddings and stored in a vector database so that relevant information can be retrieved by semantic similarity. At runtime, the user's query or task can also be embedded, and the system can find chunks that are close in vector space. Those retrieved chunks are then supplied as context to the model so it can produce a more grounded response. The vector database does not train the language model to learn new linguistic patterns during inference. It also does not directly generate human-like text; generation remains the role of the language model. Tokenization is the earlier step of splitting text into units, not the purpose of vector storage. For testing assistants, this architecture can help retrieve approved requirements, test standards, defect histories, or domain rules before drafting test ideas or explanations. The benefit is controlled access to relevant evidence, which can reduce unsupported assumptions and make AI-assisted outputs more traceable.
A tester asks an LLM to review a long set of acceptance criteria, but several constraints near the beginning are ignored in the response. Which limitation is the MOST likely cause?
-
A
The model can only process numerical input values.
-
B
The model may lose or underweight information when relevant context exceeds what it can effectively use.
-
C
The model is unable to generate test-related content without being fine-tuned first.
-
D
The model always converts acceptance criteria into executable automation code.
Reveal answer details
Close answer details
Correct answerB
ExplanationThe described failure is a context limitation. A model may have a formal context window, but it can still underweight, lose, or inconsistently use details when the input is long or dense. If constraints near the beginning of a long acceptance-criteria set are ignored, the relevant information may have exceeded what the model could effectively use, or it may have been displaced by later content during generation. The problem is not that the model can process only numbers; language models are built for text. Fine- tuning is not always required for test-related content, especially when the prompt is clear and context is manageable. The model also does not always convert acceptance criteria into automation code unless asked. Testers can mitigate context problems by chunking long artifacts, summarizing with traceable checks, repeating critical constraints near the task instruction, using retrieval support, or asking the model to produce intermediate analyses before final output. The key is to manage information load instead of assuming all supplied text is treated equally.
You are a test analyst using Generative AI to support early test analysis activities for newly written user stories. Your objective is to ensure the stories are clear, testable, and ready for test case design. Which of the following sequences BEST demonstrates how Generative AI can be applied to enhance test analysis through iterative review and refinement? i. Initial Review: Ask the LLM to analyze the user stories and identify any ambiguities, gaps, or testability issues. ii. Refinement Suggestions: Based on the identified issues, prompt the LLM to propose clearer or more testable rewordings. iii. Testability Check: Submit the revised user stories to the LLM for a final assessment of their clarity, completeness, and readiness for test case generation. iv. Risk-Based Prioritization: Use the LLM to assign risk levels to the conditions in the user stories and suggest testing priorities. v. Direct Test Case Generation: Ask the LLM to produce full test cases based on the original user stories
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerA
ExplanationThe most suitable sequence supports early test analysis by improving the quality of user stories before full test design begins. First, the model reviews the stories to find ambiguities, missing information, conflicts, or testability problems. Next, it proposes clearer wording or more testable formulations for the identified issues. Finally, the revised stories are checked again for clarity, completeness, and readiness to support test case generation. This sequence creates a feedback loop around the quality of the input artifact. Risk prioritization and direct test case generation can be useful later, but they do not best represent the stated objective. Assigning risk levels before the stories are clear may build prioritization on unstable information. Generating full test cases from original stories skips the refinement step and can reproduce ambiguity in the testware. Effective use of generative AI in test analysis is not just producing more artifacts faster; it is using the model to expose gaps, improve source material, and support human review before downstream test design decisions are made.
An organization is considering developing an in-house test tool based on Generative AI. What is the primary consideration for LLMOps in this specific approach?
-
A
Relying solely on the test tool provider for data privacy and performance assurances.
-
B
Prioritizing the optimization of external API call costs to commercial LLM providers.
-
C
Establishing structured processes for validating and maintaining the organization's specific Generative AI developments.
-
D
Limiting LLM usage to only conversational chatbot interactions to reduce complexity.
Reveal answer details
Close answer details
Correct answerC
ExplanationWhen an organization develops an in-house generative AI test system, the primary LLMOps concern is establishing processes to validate, deploy, monitor, and maintain that specific development. The organization owns more of the lifecycle, including model or prompt changes, retrieval data, evaluation sets, safety controls, performance monitoring, rollback, and operational support. LLMOps provides the discipline for keeping the system reliable and governed after initial creation. Relying solely on an external provider does not fit an in-house approach, because the organization must manage its own implementation responsibilities. Optimizing external API call costs may matter when commercial services are used, but it is not the primary consideration for internal development. Restricting use to chatbot interactions would ignore broader testing applications and does not solve operational management. In-house GenAI systems can create value, but they also create ownership: teams must define validation criteria, data update processes, monitoring signals, access controls, human review points, and maintenance practices so the system remains trustworthy over time.
A test analyst wants an LLM to derive test conditions from a complex user story. Which prompt is MOST likely to produce a useful first response?
-
A
-
B
"Act as a test analyst. Using the user story below, list distinct test conditions, assumptions, and missing information. Keep each item traceable to a sentence in the story."
-
C
"Think creatively and provide anything that may be relevant to quality."
-
D
"Generate a complete automated test suite and do not ask questions."
Reveal answer details
Close answer details
Correct answerB
ExplanationThe strongest prompt gives the model a relevant role, a specific task, and clear output expectations. Asking it to act as a test analyst and list distinct test conditions, assumptions, and missing information from the supplied user story creates a focused first response. Requiring traceability to the story also encourages the model to stay grounded in the input rather than inventing unrelated tests. A vague prompt such as asking for tests gives too little direction and can produce shallow or inconsistent output. Asking the model to think creatively about anything relevant is broad and may drift away from test analysis. Asking for a complete automated suite too early is unrealistic because complex user stories often need clarification before automation design. A useful first response in test analysis should expose conditions, gaps, and assumptions so a human can review the requirement and decide what needs refinement. Good prompt engineering does not merely ask for more output; it frames the task so the model produces reviewable, traceable information.
A Generative AI model is being used to generate automated test scripts. The test manager wants to assess whether the generated test scripts are usable. Which of the following metrics is MOST appropriate for evaluating this output?
-
A
-
B
-
C
-
D
Reveal answer details
Close answer details
Correct answerC
ExplanationWhen generated automation scripts are being evaluated for usability, execution success rate is the most direct metric among the choices. A script that cannot run successfully in the intended environment is not practically usable, even if it appears well written. Execution success rate captures whether generated scripts compile or interpret correctly, connect to the expected framework, interact with the application as intended, and complete without avoidable runtime failures. Diversity can be useful for evaluating variation in generated tests, but varied scripts may still be unusable. Accuracy matters when assessing whether the content matches requirements, yet the scenario specifically asks whether generated scripts are usable, which includes operational behavior. Precision is usually associated with the proportion of returned items that are relevant in an information retrieval or classification context, not the practical execution of automation. A mature evaluation program may combine several metrics, including maintainability, assertion quality, flakiness, and requirement coverage. For this question's focus, the ability of scripts to execute successfully is the clearest usability indicator.
An organization wants a semi-autonomous AI agent to help maintain regression tests. Which design choice BEST matches a responsible semi-autonomous approach?
-
A
Let the agent change and merge test scripts without review whenever a locator fails.
-
B
Allow the agent to propose script updates and require a tester to approve changes before they are committed.
-
C
Disable logs so the agent can work without creating maintenance overhead.
-
D
Give the agent unrestricted access to all production data so it has full context.
Reveal answer details
Close answer details
Correct answerB
ExplanationA responsible semi-autonomous approach allows the agent to propose regression script updates while requiring a tester to approve changes before they are committed. This design uses AI assistance for analysis and drafting, but preserves human control over changes that affect the automation suite. It is especially appropriate when locator updates or script repairs could introduce false passes, skip important checks, or change test intent. This preserves accountability while still reducing maintenance effort. Letting the agent change and merge scripts without review is closer to full autonomy and creates unacceptable maintenance and quality risks. Disabling logs reduces auditability and makes failures harder to investigate. Giving unrestricted production data access violates data minimization and privacy principles. Semi-autonomous systems should include clear permissions, traceable proposals, review checkpoints, test execution evidence, and rollback options. In regression maintenance, the agent can accelerate diagnosis and suggest edits, but the tester remains responsible for confirming that the modified script still validates the intended behavior safely and accurately.
Question 9
Multiple choice
Which TWO skills are especially important for testers working with generative AI tools? Choose two.
-
A
Evaluating AI-generated testware for correctness, coverage, and risk.
-
B
Refining prompts based on observed gaps in the generated output.
-
C
Avoiding all domain knowledge so the model can make independent decisions.
-
D
Assuming generated explanations are accurate when they are written confidently.
-
E
Replacing defect triage discussions with unreviewed AI summaries.
Reveal answer details
Close answer details
Correct answersA, B
ExplanationTwo especially important skills are evaluating AI-generated testware and refining prompts based on observed gaps. Testers must judge whether generated cases, summaries, scripts, or explanations are technically correct, sufficiently covered, traceable, and aligned with risk. They also need to improve prompts when output misses constraints, lacks negative tests, invents assumptions, or uses an unsuitable format. These skills combine testing expertise with practical control of GenAI behavior. Avoiding domain knowledge is the opposite of what is needed; domain understanding helps testers identify wrong or incomplete outputs. Confident writing does not make a generated explanation accurate, so testers should not assume correctness from style. Replacing defect triage discussions with unreviewed AI summaries would remove important human judgment and accountability. In a mature process, AI can draft, organize, and suggest, while testers review, refine, and decide. The human skill set therefore shifts toward critical evaluation, prompt iteration, data awareness, risk thinking, and governance rather than passive acceptance of generated artifacts.
|