Question 100

An application uses RetrieveAndGenerate for a continuing dialogue. What should it do with the session identifier returned by the service?

  1. Replace document metadata with the session identifier
  2. Treat it as an IAM credential
  3. Associate it with the correct user conversation and reuse it for that conversation as documented
  4. 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?

  1. Estimate the count from document embedding distances
  2. Retrieve one invoice and extrapolate the total
  3. Ask the model to remember the database from training
  4. 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?

  1. Always discard all superseded policies before search
  2. Return both revisions without identifying dates
  3. Use the current date as the only query timestamp
  4. 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?

  1. Use verified preferences as ranking signals while preserving required evidence rules
  2. Allow users to edit ownership metadata to improve ranking
  3. Filter out every document outside the preferred family, including mandatory notices
  4. 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?

  1. Raise the generator's context limit
  2. Associate returned vectors with documents using response arrival order
  3. Preserve explicit input identifiers through batching and validate vector-to-document mapping
  4. 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?

  1. Grant administrative tools because the query mentions instructions
  2. Refuse every search containing an imperative verb
  3. Execute the sentence as a new system instruction
  4. 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?

  1. The reciprocal of the first relevant passage's rank
  2. Recall at ten, calculated as three divided by eight
  3. Three divided by the total number of documents in the repository
  4. 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?

  1. Set it equal to the output temperature
  2. Recalibrate it on labeled queries for the new representation and similarity setup
  3. Keep it because all similarity scores are calibrated probabilities
  4. 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?

  1. Extend the cache lifetime indefinitely
  2. Include corpus revision or invalidation events in retrieval cache lifecycle
  3. Revalidate only the generated answer format on each retrieval cache hit
  4. Invalidate only the model's output cache
  5. 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?

  1. Perform bounded staged retrieval using the verified component identity from the first stage
  2. Repeat generation with a higher output limit
  3. Answer from product-name similarity alone
  4. 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?

  1. Return one unlabeled string mixing errors and source text
  2. Return only a floating-point relevance score
  3. Return a versioned schema for passage text, source ID, revision, and retrieval status
  4. 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.

AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests