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

LLM-Powered Test Infrastructure for Software Testing practice questions

LLM-Powered Test Infrastructure for Software Testing is worth 13% of the CT-GenAI exam — the lightest of the 5 domains. Architecture of LLM-powered test tools, Retrieval-Augmented Generation, LLM-powered agents that automate test processes, fine-tuning for test tasks, and LLMOps. Official share: 5 of 40 exam questions. 6 fully worked examples are further down this page, answers included.

Exam weight
13%
the lightest of the 5 domains
Questions
54
across 2 topics
Free, no account
5/day
a free account allows 10 a day
Explanations
Every option
right and wrong

Build a practice session

5 free questions left today.

Domains

How many?

Mode

Ready when you are

10 fresh questions drawn across 1 of 5 domains, in Learn mode.

Review what you missed

Every question you answer incorrectly, and every question you flag while practising, is saved here automatically. Finish a session and you can come back to re-drill just those.

6 sample LLM-Powered Test Infrastructure for Software Testing questions, fully explained

Questions from the CT-GenAI bank mapped to domain 4, with the answer key and the reasoning behind every option. None of them repeat the examples on the main CT-GenAI practice page.

Question 1LLM-Powered Test Infrastructure for Software Testing

In the typical architecture of an LLM-powered test infrastructure, which component handles authentication, data retrieval and prompt preparation?

Choose one.

  • a
    The back end, which processes user input and manages the interaction with the LLM Correct

    The syllabus assigns authentication, data retrieval, prompt preparation and interaction with the LLM to the back end.

  • b
    The front end, which is the interface where testers enter their queries and commands

    The front end is the user interface for entering queries or commands; it does not prepare prompts or authenticate against data sources.

  • c
    The vector database, which stores embeddings of document chunks for similarity search

    A vector database is one of the data sources the back end integrates. It serves semantic retrieval but does not authenticate users or build prompts.

  • d
    The LLM, which interprets testware and generates responses from structured prompts

    The LLM generates responses from the structured prompts it receives; the prompts are prepared for it by the back end.

The concept

The architecture has a front end (user interface), a back end (authentication, data retrieval, prompt preparation, LLM interaction, post-processing), external data sources and the LLM.

Why that’s the answer

The back end processes user input and manages the critical functions: authentication, data retrieval, prompt preparation and interaction with the LLM. The front end only collects queries and shows results, the vector database is a data source the back end draws on, and the LLM generates responses from the prompts the back end prepares.

How to reason it out
  1. List the four parts: front end, back end, data sources, LLM.
  2. Match each function to the part that owns it.
  3. Authentication, retrieval and prompt preparation all sit in the back end.

Exam tip: Front end = interface; back end = authentication, retrieval, prompt preparation, LLM calls.

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

Question 2LLM-Powered Test Infrastructure for Software Testing

A team is building an in-house LLM-powered test tool. Testers may see only the projects they are authorized for, and every request must include the project's test conventions. Where should these two functions MOST appropriately be implemented?

Choose one.

  • a
    In front-end logic that checks the tester's role and then appends the conventions to the typed query

    The front end is the user interface for entering queries; authentication and prompt preparation belong to the back end, where they cannot be bypassed from the client.

  • b
    In back-end logic that authenticates the tester and prepares each prompt before calling the LLM Correct

    Authentication and prompt preparation are both back-end functions, so access control is enforced and the conventions are added to every prompt regardless of what the tester types.

  • c
    In post-processing that filters the LLM's raw output before the results reach the front end

    Post-processing aligns the LLM's output with the test process, but it runs after the call: it cannot add the conventions to the request, and filtering output is not authentication.

  • d
    In the hosted LLM, by passing it the tester's identity and project name along with each query

    The LLM generates responses from prompts; it is not the component that authenticates users or decides what project data a tester may access.

The concept

In LLM-powered test infrastructure, the back end handles authentication, data retrieval, prompt preparation and interaction with the LLM.

Why that’s the answer

Both requirements map to back-end functions: restricting testers to their authorized projects is authentication and data retrieval, and adding the project's conventions to every request is prompt preparation. Doing either in the front end leaves it in the interface layer, post-processing runs too late to shape the request, and the LLM is a generation component rather than an access-control point.

How to reason it out
  1. Classify each requirement: access control, and content that must be in every prompt.
  2. Recall which component owns authentication and prompt preparation: the back end.
  3. Check that post-processing only acts on output after the LLM call.

Exam tip: Who may see what, and what goes into every prompt, are back-end jobs.

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

Question 3LLM-Powered Test Infrastructure for Software Testing

Testers paste confidential requirements into a public AI chatbot and copy its test cases into the test management tool by hand. Policy now forbids sending requirements outside the company, and generated test cases must flow into the tool in its import format. Which architecture BEST meets both requirements?

Choose one.

  • a
    A back end that builds prompts for an in-house LLM and post-processes its output into the import format Correct

    An in-house model keeps requirements inside the company, and back-end post-processing converts the raw output into the import format before it reaches the tool.

  • b
    A back end that builds prompts for a third-party LLM API and post-processes its output into the import format

    This meets the format need, but calling a third-party LLM service through its API sends the requirements outside the company, which the policy forbids.

  • c
    A front end that sends each requirement to an in-house LLM and displays the LLM's raw output to testers

    The in-house model meets the policy, but with no back end there is no prompt preparation or post-processing, so the raw output is not aligned with the import format.

  • d
    An in-house AI chatbot where testers paste requirements and ask for the output in the import format

    This keeps data inside, but it remains a conversational tool: testers still paste and copy by hand, and nothing post-processes the output into the import format.

The concept

The LLM in a test infrastructure may be a third-party service accessed via an API or a custom in-house model; the back end prepares prompts and post-processes output.

Why that’s the answer

Two facts combine. First, the LLM may be hosted as a third-party service accessed via an API or as a custom in-house model, and only the in-house option keeps confidential requirements inside the company. Second, the back end post-processes the LLM's raw output so it aligns with the test process before results move on, which is what produces a consistent import format. The third-party option fails the policy, the front-end-only design skips post-processing, and the in-house chatbot keeps the manual copy step.

How to reason it out
  1. Check the data constraint: where may the requirements be sent?
  2. Choose the hosting model that satisfies it: in-house rather than a third-party API.
  3. Check the format constraint: which component turns raw output into the required format?
  4. Pick the option that has both an in-house LLM and back-end post-processing.

Exam tip: Data that must stay inside points to an in-house LLM; consistent output formats point to back-end post-processing.

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

Question 4LLM-Powered Test Infrastructure for Software Testing

What is the role of a vector database in the back end of an LLM-powered test infrastructure?

Choose one.

  • a
    Storing structured test data, such as test cases, in tables with predefined fields

    Structured test data such as test cases belongs in a relational database, the other back-end data source the syllabus names.

  • b
    Recording which tester submitted each prompt, for authentication and for audit purposes

    Authentication is a back-end function, but it is not what a vector database is for.

  • c
    Holding the model's trained parameters so that the LLM can be hosted in-house

    An in-house LLM is a hosting choice for the model itself; a vector database stores embeddings of content, not the model's parameters.

  • d
    Retrieving content that is semantically related to a query by comparing stored embeddings Correct

    The syllabus lists vector databases as the back-end source for semantic retrieval of related content using embeddings.

The concept

The back end integrates multiple data sources: relational databases for structured test data and vector databases for semantic retrieval using embeddings.

Why that’s the answer

A vector database stores embeddings, numerical vectors that encode meaning, so the back end can retrieve content that is semantically related to a query even when the wording differs. Structured records such as test cases sit in relational databases; authentication and model hosting are separate concerns.

How to reason it out
  1. Recall the two data sources the back end integrates.
  2. Relational = structured data such as test cases.
  3. Vector = semantic retrieval by comparing embeddings.

Exam tip: Vector database = find content by meaning, via embeddings.

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

Question 5LLM-Powered Test Infrastructure for Software Testing

An LLM-powered test tool must list every test case marked 'failed' for release 4.2, and find earlier defect reports that describe a new failure in different words. Which data sources BEST serve these two needs?

Choose one.

  • a
    A vector database for the failed test cases, and a relational database for the similar defect reports

    This swaps the roles: similarity search is not suited to exact status and release filters, and a relational table cannot match reports by meaning.

  • b
    A relational database for both, using keyword matching on the text of the defect reports

    Keyword matching misses reports that describe the same failure in different words, which is exactly the second need.

  • c
    A vector database for both, using similarity search on the status and release fields

    Status and release are structured fields that need an exact filter; similarity search returns related content, not a precise list.

  • d
    A relational database for the failed test cases and a vector database for the similar defect reports Correct

    Filtering test cases by status and release is a structured query, and finding reports with a similar meaning but different wording is semantic retrieval using embeddings.

The concept

Relational databases serve structured test data; vector databases serve semantic retrieval of related content using embeddings.

Why that’s the answer

The syllabus gives the back end both kinds of source for a reason. A list of test cases with a given status in a given release is structured data, which a relational database returns exactly. Earlier defect reports that describe the same problem in other words are found by comparing embeddings in a vector database. Using one source for both, or swapping them, fails one of the two needs.

How to reason it out
  1. Classify the first need: exact filter on structured fields.
  2. Classify the second need: match by meaning despite different wording.
  3. Map structured to relational and meaning to vector.

Exam tip: Exact fields: relational. Similar meaning: vector.

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

Question 6LLM-Powered Test Infrastructure for Software Testing

The prompts of an LLM-powered test tool already include the team's test case template, yet some responses still add fields the template does not have. Which back-end change addresses this MOST directly?

Choose one.

  • a
    Prompt preparation that repeats the template at both the start and the end of each prompt sent to the LLM

    The template is already in the prompt and responses still deviate; more prompt wording may reduce deviations but does not handle the responses that still arrive.

  • b
    Data retrieval that fetches more example test cases from the vector database for each prompt

    More retrieved examples change the input, not the deviating output that still arrives from the LLM.

  • c
    Authentication that limits which testers can request generated test cases from the LLM

    Authentication controls who may use the tool; it has no effect on the content or format of the responses.

  • d
    Post-processing that checks the LLM's raw output against the template and corrects deviations Correct

    The back end enhances the LLM's raw output through post-processing so that responses align with the test process before they are presented in the front end.

The concept

Back-end post-processing enhances the LLM's raw output so that it aligns with the test process before reaching the front end.

Why that’s the answer

Prompt preparation shapes what goes into the LLM, but LLM output can still deviate. The syllabus gives the back end a post-processing role: it enhances the raw output so that responses align with the test process before they are presented in the front end. Here that means checking each response against the template and correcting or rejecting the extra fields.

How to reason it out
  1. Note that the input side (the prompt) is already correct.
  2. The remaining problem is in the output, so look for an output-side function.
  3. Post-processing is the back-end step between the LLM and the front end.

Exam tip: Fix the prompt for the input; use post-processing for output that still deviates.

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

What CT-GenAI domain 4 tests, topic by topic

The official exam guide breaks LLM-Powered Test Infrastructure for Software Testing into 2 topics. The question bank follows the same split, so a weak topic shows up as a cluster of misses you can go back and read.

Published CT-GenAI practice questions per topic in LLM-Powered Test Infrastructure for Software Testing
TopicWhat it coversQuestions
Architectural Approaches for LLM-Powered Test InfrastructureOfficial CT-GenAI v1.1 syllabus section 4.1. Learning objectives: GenAI-4.1.1 (K2) Explain key architectural components and concepts of LLM-powered test infrastructure; GenAI-4.1.2 (K2) Summarize Retrieval-Augmented Generation; GenAI-4.1.3 (K2) Explain the role and application of LLM-powered agents in automating test processes.30
Fine-Tuning and LLMOps: Operationalizing Generative AI for Software TestingOfficial CT-GenAI v1.1 syllabus section 4.2. Learning objectives: GenAI-4.2.1 (K2) Explain the fine-tuning of language models for specific test tasks; GenAI-4.2.2 (K2) Explain LLMOps and its role in deploying and managing LLMs for test tasks.24
Total54

Revise LLM-Powered Test Infrastructure for Software Testing before you drill it

Other CT-GenAI domains

LLM-Powered Test Infrastructure for Software Testing: your questions

LLM-Powered Test Infrastructure for Software Testing is domain 4 of the CT-GenAI exam guide and carries 13% of the scored content — the lightest of the 5 domains. On a 40-question paper that works out to roughly 5 questions, though ISTQB does not publish an exact per-domain count and individual exam forms vary.

Source

The domain weight and topic list on this page come from the official CT-GenAI exam guide.