Question 100
An application uses RetrieveAndGenerate for a continuing dialogue. What should it do with the session identifier returned by the service?
- Replace document metadata with the session identifier
- Treat it as an IAM credential
- Associate it with the correct user conversation and reuse it for that conversation as documented
- Use one returned identifier for all customers
Explanation
Correct Answer
C:Session continuity must stay within the intended interaction. Mixing identifiers can confuse context and compromise isolation.
Incorrect Answers
A:Conversation continuity does not define document ownership or source lineage.
B:A conversation identifier is not authority to access AWS resources. Authentication remains separate.
D:Shared session state can mix unrelated dialogue. It is incompatible with per-conversation continuity.
Question 101
An assistant needs an exact count of overdue invoices from an authorized database. Which augmentation path is most appropriate?
- Estimate the count from document embedding distances
- Retrieve one invoice and extrapolate the total
- Ask the model to remember the database from training
- Use a constrained read-only query tool with validated predicates and return the measured count
Explanation
Correct Answer
D:Database execution computes the current aggregate. Tool validation prevents the natural-language interface from acquiring unrestricted database powers.
Incorrect Answers
A:Similarity scores measure representation proximity, not row counts or payment status.
B:A single record is not a complete population. The resulting count would be unsupported.
C:Training does not provide live transactional state or the caller's authorized row scope.
Question 102
An audit asks what a policy required last March, although a newer policy is now active. Which retrieval behavior fits?
- Always discard all superseded policies before search
- Return both revisions without identifying dates
- Use the current date as the only query timestamp
- Filter or select revisions applicable to the requested historical date
Explanation
Correct Answer
D:Historical questions require temporal applicability rather than the newest document. Preserve the cited revision and effective interval.
Incorrect Answers
A:That may suit current support, but it prevents historical reconstruction needed by this audit.
B:Unlabeled conflicting sources obscure which rule applied and leave the audit unresolved.
C:This silently changes the question and can apply a rule that did not exist last March.
Question 103
Personalized search should favor a user's product family while retaining mandatory safety notices. What design is most appropriate?
- Use verified preferences as ranking signals while preserving required evidence rules
- Allow users to edit ownership metadata to improve ranking
- Filter out every document outside the preferred family, including mandatory notices
- Replace authorization checks with personalization scores
Explanation
Correct Answer
A:Preferences can refine relevance without excluding compulsory material. Evaluate whether personalization hides information the application must supply.
Incorrect Answers
B:Ownership labels enforce eligibility and should not become a personalization control.
C:A rigid preference filter can violate required coverage. Personalization cannot override the stated safety obligation.
D:Preference and permission serve different purposes. A relevant result can still be unauthorized.
Question 104
An embedding worker processes documents in parallel. Vectors are valid but attached to the wrong source IDs. Which correction addresses the defect?
- Raise the generator's context limit
- Associate returned vectors with documents using response arrival order
- Preserve explicit input identifiers through batching and validate vector-to-document mapping
- Increase vector dimensionality
Explanation
Correct Answer
C:Concurrency can reorder completions. Correlation must use stable identifiers rather than assuming response arrival order.
Incorrect Answers
A:The evidence mapping is already corrupt before generation. A larger prompt can include more incorrectly attributed text.
B:Parallel completion can differ from submission order. Stable input identifiers or a documented positional response contract are needed to preserve correct attribution.
D:More coordinates do not repair identity misassociation. Wrong vectors would remain attached to wrong documents.
Question 105
A user searches for the literal sentence "Ignore all instructions" in security training materials. Which retrieval interface supports that legitimate request safely?
- Grant administrative tools because the query mentions instructions
- Refuse every search containing an imperative verb
- Execute the sentence as a new system instruction
- Treat the phrase as query data within a fixed authorized retrieval operation
Explanation
Correct Answer
D:Text can be searched without being promoted to system authority. The tool's permission and operation boundaries remain controlled.
Incorrect Answers
A:Query wording does not justify additional privileges or tool access.
B:Such a blanket rule would block legitimate security and procedural documentation queries.
C:That changes the application's governing behavior instead of searching the requested phrase.
Question 106
A labeled query has eight relevant passages, but only three appear in the top ten. Which metric directly quantifies the fraction of relevant evidence found?
- The reciprocal of the first relevant passage's rank
- Recall at ten, calculated as three divided by eight
- Three divided by the total number of documents in the repository
- Precision at ten, calculated as three divided by ten
Explanation
Correct Answer
B:Recall uses all known relevant passages as its denominator. It measures evidence coverage within the selected result depth.
Incorrect Answers
A:Reciprocal rank emphasizes how early the first useful result appears. It does not calculate the fraction of all eight relevant passages recovered.
C:The recall denominator is the relevant set for this query, not every document. Including irrelevant documents measures a different and generally uninformative ratio.
D:Precision measures how much of the returned set is relevant. It answers a different question from coverage of all relevant evidence.
Question 107
A new embedding model shifts similarity scores upward, although ranked relevance is unchanged. What should happen to the old absolute acceptance threshold?
- Set it equal to the output temperature
- Recalibrate it on labeled queries for the new representation and similarity setup
- Keep it because all similarity scores are calibrated probabilities
- Remove evaluation because ranking looks unchanged
Explanation
Correct Answer
B:Score scales can change across models and metrics. The previous numerical cutoff may no longer represent the same error tradeoff.
Incorrect Answers
A:Generation sampling and retrieval scoring have unrelated meanings and ranges.
C:Similarity values are not universally comparable factual probabilities. That assumption can admit irrelevant results.
D:Threshold acceptance depends on absolute scores. Stable ordering does not prove the previous cutoff remains appropriate.
Question 108
A retrieval-result cache keeps returning deleted passages after the index updates. Which cache design addresses this issue?
- Extend the cache lifetime indefinitely
- Include corpus revision or invalidation events in retrieval cache lifecycle
- Revalidate only the generated answer format on each retrieval cache hit
- Invalidate only the model's output cache
- Increase the number of cached passages
Explanation
Correct Answer
B:Cached results must track the searchable evidence version. Deletions and permission changes require timely invalidation as well as index updates.
Incorrect Answers
A:This preserves the stale result longer and delays removal of deleted evidence.
C:Formatting checks do not establish that the cached evidence still exists or remains authorized in the current corpus.
D:A stale retrieval cache can repopulate generation with the same deleted passages even after output entries disappear.
E:More stored results do not make existing entries current or authorized.
Question 109
A question requires linking a product code to a component and then finding that component's recall notice. One search misses the notice. Which approach fits?
- Perform bounded staged retrieval using the verified component identity from the first stage
- Repeat generation with a higher output limit
- Answer from product-name similarity alone
- Retrieve all recall notices without identifying the component
Explanation
Correct Answer
A:The intermediate result provides a concrete key for the next lookup. Preserve evidence across steps and stop if the identity is ambiguous.
Incorrect Answers
B:Longer completion cannot create a source linkage absent from the supplied evidence.
C:A related product does not establish the actual installed component or applicable notice.
D:An unbounded collection increases noise and still leaves applicability unresolved.
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.