Question 110
Several agents call the same search service but interpret its output differently. Which contract improves reliable augmentation?
- Return one unlabeled string mixing errors and source text
- Return only a floating-point relevance score
- Return a versioned schema for passage text, source ID, revision, and retrieval status
- Let each agent guess the response format
Explanation
Correct Answer
C:Explicit fields separate evidence from metadata and errors. Clients can validate the contract before constructing model context.
Incorrect Answers
A:Clients cannot reliably distinguish evidence from operational messages. The model may quote an error as source content.
B:A score alone provides neither the evidence nor the source needed for grounded answers.
D:Independent guesses create inconsistent parsing and attribution failures.
Question 111
A support query finds no recall notice in an incomplete repository. What conclusion is defensible?
- Generate a notice number to avoid an empty answer
- Use the lowest-scoring unrelated notice as a match
- Guarantee the product has never been recalled
- Report that no matching notice was found in the searched sources and identify coverage limits
Explanation
Correct Answer
D:Absence from an incomplete search is not proof that no recall exists. Scope-qualified reporting preserves that distinction.
Incorrect Answers
A:Fabrication turns a coverage limitation into false evidence.
B:Weak similarity does not establish applicability to this product.
C:The corpus is incomplete, so retrieval cannot establish a universal negative.
Question 112
A custom RAG selector has already removed exact and overlapping duplicates. Its top results still come from one interpretation of an ambiguous query, while labeled answers require two distinct aspects. Which selection experiment fits?
- Evaluate diversity-aware selection that balances relevance with coverage of distinct query aspects
- Deduplicate exact text again and otherwise keep the same ranked set
- Select results only from the single highest-scoring document
- Select the least similar passages to maximize diversity without a relevance constraint
Explanation
Correct Answer
A:Novelty among otherwise relevant passages can expose missing aspects that similarity-only ranking overlooks. Evaluate aspect coverage and answer quality because excessive diversity can promote weak matches.
Incorrect Answers
B:Exact redundancy has already been removed. Distinct paragraphs can still repeat one aspect while omitting another.
C:Restricting the evidence to one document can reinforce the observed concentration. The requirement concerns coverage across aspects rather than source consistency alone.
D:Difference alone is not useful evidence. A diversity-aware policy must preserve query relevance rather than rewarding arbitrary unrelated content.
Question 113
Two passages answer the same technical question, but one is an approved specification and the other an unreviewed forum note. What ranking design fits?
- Combine relevance with verified source-authority metadata and test the tradeoff
- Remove source metadata to make ranking unbiased
- Prefer whichever source uses more assertive language
- Prefer the newest upload regardless of source approval
Explanation
Correct Answer
A:Authority helps distinguish evidence quality when semantic matches are similar. It should supplement rather than replace relevance.
Incorrect Answers
B:Removing provenance prevents the required authority distinction rather than improving evidence quality.
C:Confidence in wording does not demonstrate correctness or approval.
D:Upload time does not establish technical authority. A recent informal note can contradict the governing specification.
Question 114
An expensive multi-query search launches dozens of expansions even for simple identifier lookups. What optimization retains useful retrieval behavior?
- Use one randomly selected expansion for every question
- Disable retrieval for all questions
- Expand every exact identifier into unrelated synonyms
- Route simple exact lookups directly and reserve expansion for queries that need it
Explanation
Correct Answer
D:Complexity-aware retrieval avoids unnecessary work. Evaluate both paths so savings do not reduce coverage on ambiguous questions.
Incorrect Answers
A:Random selection provides no dependable coverage or cost-quality decision.
B:This eliminates the evidence path even where authoritative facts are required.
C:Identifiers generally need exact preservation. Unbounded paraphrasing can reduce precision and increase cost.
Question 115
A UI highlights cited text using stored character offsets, but preprocessing changed whitespace after offsets were generated. What should the pipeline do?
- Use vector coordinates as character offsets
- Suppress revision identifiers and reuse old offsets
- Generate offsets against the displayed canonical text or retain an explicit transformation map
- Regenerate source embeddings but retain the existing character offsets
Explanation
Correct Answer
C:Offsets refer to a particular representation. Stable alignment is required to highlight the passage actually supporting the claim.
Incorrect Answers
A:Embedding coordinates are semantic features, not text positions.
B:Untracked transformations make incorrect highlights harder to diagnose and cannot restore alignment.
D:Embedding changes affect search representation rather than text-position mapping. The displayed canonical text and its offsets must be reconciled.
Question 116
Long passages lose their final paragraphs before embedding, although storage retains the full text. Questions about the endings retrieve poorly. What should be investigated?
- Only the stored passage's character count after embedding has already completed
- The generator's maximum output length only
- The embedding input limit and segmentation before vectorization
- The generator's citation formatting settings only
Explanation
Correct Answer
C:A stored passage can contain text that its vector never represented. Segment within supported limits and evaluate retrieval of the affected facts.
Incorrect Answers
A:The stored text can be longer than the actual embedder input. Inspect the submitted tokenized segment and any truncation rather than inferring representation coverage from storage alone.
B:The failure occurs while representing documents, before any answer is generated.
D:Citation formatting occurs after retrieval. It cannot represent the final paragraphs that were omitted during embedding input preparation.
Question 117
A custom RAG application must pass source URLs to its renderer but avoid treating URLs as factual evidence. Which context construction fits?
- Replace all passage text with source URLs
- Ask the model to invent readable URLs after answering
- Discard source identifiers once retrieval completes
- Keep source metadata separate from passage content and bind citations through stable IDs
Explanation
Correct Answer
D:The renderer can resolve IDs without making metadata prose part of the evidence. The model still receives the substantive passages needed for answering.
Incorrect Answers
A:Locations alone do not contain the facts requested by the user.
B:Generated locations can be nonexistent or point to unrelated material.
C:Without identifiers, reliable claim-to-source rendering and audit become difficult.
Question 118
A model understands a classification task but inconsistently formats the result. Which prompt change should be tested first?
- Add many unrelated examples
- Increase the completion allowance but leave output instructions and examples ambiguous
- Add representative examples paired with the required output format
- Use a longer role title without examples or constraints
Explanation
Correct Answer
C:Examples demonstrate the desired mapping and structure. Validate against held-out inputs because imitation is not a schema guarantee.
Incorrect Answers
A:Irrelevant demonstrations consume context and can confuse the intended task mapping.
B:More output space can prevent truncation, but the stated problem is inconsistent structure. It does not demonstrate the required format to the model.
D:A role description gives less concrete formatting guidance than demonstrated outputs.
Question 119
Customer text sometimes contains phrases that resemble template instructions. Which prompt construction helps distinguish the two?
- Grant the model permission to rewrite application policy
- Use explicit data boundaries and fixed instructions, with backend enforcement for sensitive actions
- Concatenate customer text into the system role as trusted policy
- Delete all punctuation from user text
Explanation
Correct Answer
B:Delimiting untrusted content clarifies its intended role. It reduces confusion but is not a substitute for external permission checks.
Incorrect Answers
A:Policy authority should remain outside customer-controlled content.
C:This promotes untrusted input into the governing instruction channel.
D:This can destroy meaning without reliably removing malicious instructions.
Question 120
A template inserts a customer name into JSON. A name containing quotes breaks the request. What is the correct repair?
- HTML-escape the name and insert it directly into JSON
- Escape values for a URL query string and insert the result into JSON without serialization
- Retry the same malformed JSON indefinitely
- Remove every customer with punctuation in their name
- Serialize structured values with a JSON encoder rather than raw string interpolation
Explanation
Correct Answer
E:Encoding handles quote and escape rules while preserving the value. Validate the final payload against the API schema.
Incorrect Answers
A:HTML escaping targets markup syntax. JSON needs its own correct serialization to handle quotes, control characters, and types.
B:Encoding rules depend on the target context. URL encoding does not construct a correctly typed JSON message and can alter the customer value unnecessarily.
C:A deterministic serialization defect persists on every identical retry.
D:Valid user data should not be rejected to compensate for unsafe serialization.