Question 1

A support assistant must answer from product policies that change daily and show the policy passages supporting each answer. The team already has a suitable text model and wants to avoid repeatedly customizing its weights. Which design best meets these requirements?

  1. Create a new fine-tuned model after every policy change and answer from its weights.
  2. Synchronize approved policies into a knowledge base and provide retrieved passages to the model at query time.
  3. Put several historical policy examples in a fixed system prompt and lower temperature.
  4. Choose the model with the largest context window and send only the customer question.

Explanation

Correct Answer

B:

An external retrieval layer separates changing business facts from model parameters. Synchronization makes revised policies searchable, and the application can present source references alongside grounded responses. Retrieval quality and answer support still need evaluation; using RAG does not itself guarantee factual correctness.

Incorrect Answers

A:

Customization can influence task behavior, but a newly trained artifact does not expose an auditable retrieval path to the current policy passage. Repeated model updates also add lifecycle work for every content change.

C:

Examples can demonstrate the desired answer format, and lower temperature can reduce sampling variability. Neither makes a static prompt aware of a policy revision that was never added to it.

D:

A larger input capacity permits more supplied context, but it does not obtain missing documents. With only the question in the request, the model has no authoritative record of the latest policy.

Question 2

A custom Amazon Bedrock knowledge base stores documents for several customers with a tenantId metadata attribute. Its chosen vector store supports equality filters. Users authenticate through a backend, and direct client access to retrieval is prohibited. Which change most directly prevents another customer's passages from entering a user's model context?

  1. Add a system instruction asking the model to ignore passages belonging to other customers.
  2. Increase the similarity threshold until cross-customer matches disappear in testing.
  3. Let the browser supply a tenantId filter without checking it against the authenticated user.
  4. Have the backend derive the authorized tenantId and enforce an equality filter on each retrieval request.

Explanation

Correct Answer

D:

The backend binds document selection to a verified identity rather than user-controlled query text. A supported metadata filter restricts eligible retrieval results before they are supplied as context. Secure ingestion must also protect tenant labels, and this design still requires controls against bypassing the backend.

Incorrect Answers

A:

A prompt operates after the information has reached the model. It cannot serve as the authorization boundary for deciding which tenant documents may be retrieved.

B:

Similarity measures semantic closeness, not ownership. Two customers can discuss the same product, so their documents can remain close in vector space even with a strict threshold.

C:

Filtering is useful only when its scope is trustworthy. An attacker who can choose another tenant identifier could request that customer's content through an otherwise valid filter.

Question 3

An equipment support search uses a custom Bedrock knowledge base backed by an OpenSearch Serverless vector index with a filterable text field. Semantic search finds related descriptions but often misses exact error identifiers such as ZXQ-417. Users also ask paraphrased questions. Which retrieval change should the developer evaluate first?

  1. Use HYBRID search to combine vector matching with raw-text matching.
  2. Use only keyword search and discard all semantic matches.
  3. Raise the generation temperature while leaving retrieval unchanged.
  4. Increase the output token limit so the model can list more possible identifiers.

Explanation

Correct Answer

A:

The vector signal helps with paraphrases, while lexical matching preserves the value of distinctive identifiers. This store configuration supports the hybrid override. Evaluate identifier recall and overall relevance on representative queries instead of assuming the combined strategy always wins.

Incorrect Answers

B:

Pure lexical retrieval can improve identifier matching but abandons the semantic behavior explicitly needed for paraphrased requests. The scenario calls for retaining both kinds of evidence.

C:

Sampling settings influence generated text after retrieval. They cannot make a missing identifier-bearing passage appear in the retrieval results.

D:

A longer completion permits more output but supplies no additional source evidence. Encouraging extra guesses could produce plausible identifiers unrelated to the actual incident.

Question 4

A retrieval diagnostic shows that the correct passage is usually present among 30 candidates but is ranked near the bottom. The application sends only five passages to its generator because of its context budget. Which intervention best targets this observed failure?

  1. Regenerate every source embedding using the same unchanged settings.
  2. Increase the model completion budget without changing the context selection.
  3. Rerank the candidate passages against the query before selecting the five to supply.
  4. Remove the final selection step and send the entire document repository.

Explanation

Correct Answer

C:

A reranker scores query-document relevance over the existing candidate set and can promote the answer-bearing passage into the final context. It cannot recover a passage absent from that set, so candidate recall and final ranking should be measured separately.

Incorrect Answers

A:

Rebuilding identical representations does not specifically address ordering when the right candidate is already retrieved. Re-embedding is warranted for representation or indexing problems, which the diagnostic has not established.

B:

The output allowance does not change which input passages are selected. The generator would still receive the same five poorly ordered candidates.

D:

An unrestricted repository exceeds the explicit context constraint and increases noise. It also avoids rather than solves the ranking defect identified by the diagnostic.

Question 5

After a support manual in an S3 data source is corrected, a custom Bedrock knowledge base still returns the old procedure. The query points to the intended knowledge base, and no ingestion job has run since the edit. What is the most appropriate next step?

  1. Change the generation model because source changes are reflected only through model replacement.
  2. Start data source synchronization, wait for successful ingestion, and verify retrieval of the revised passage.
  3. Change the prompt template version while preserving the existing indexed content.
  4. Delete the conversation history and assume this rebuilds the knowledge base.

Explanation

Correct Answer

B:

Updating an object is not the same as updating its searchable representation. Synchronization processes source changes through ingestion and indexing. Check the job outcome and inspect retrieval afterward to distinguish an ingestion failure from a later generation problem.

Incorrect Answers

A:

The stale material resides in the retrieval index, which is separate from the generator. Replacing the generator does not import changes from the S3 source.

C:

A prompt version can alter instructions or formatting but cannot substitute corrected text for an outdated indexed passage. Source freshness must be repaired in the data path.

D:

Conversation state can preserve earlier dialogue, but clearing it does not trigger an ingestion job. A new session can therefore retrieve the same obsolete passage.

Question 6

A revised prompt improves average summary scores but begins omitting cancellation conditions from a small, important class of contracts. The previous prompt remains available. Which release process best addresses this risk?

  1. Publish the revised prompt whenever its overall mean score increases.
  2. Remove contracts containing cancellation language from the evaluation set.
  3. Raise the maximum output length and release without rerunning evaluation.
  4. Version the prompt and require regression gates for critical contract categories before promoting it.

Explanation

Correct Answer

D:

A versioned artifact makes the tested prompt identifiable and supports rollback. Category-specific checks protect requirements that averages can conceal. Promotion should use a representative held-out set with explicit acceptance rules, including the affected cancellation conditions.

Incorrect Answers

A:

An aggregate mean can hide a severe regression on a rare requirement. A release rule based only on the mean does not protect the affected contract class.

B:

Excluding the failing category improves the reported number by removing evidence. It makes the evaluation less representative of the production obligation.

C:

Additional space could help if truncation caused the omission, but the scenario provides no such diagnosis. Any parameter change must be tested against the cancellation cases.

Question 7

A Bedrock agent can prepare a shipment cancellation, but the existing application must execute it using the signed-in user's enterprise session. The developer does not want the agent service to invoke a fulfillment Lambda function. Which action-group configuration fits?

  1. Configure RETURN_CONTROL and execute the returned action inputs in the application.
  2. Assign a Lambda executor and instruct the agent never to invoke that executor.
  3. Add the cancellation API description as a knowledge-base document only.
  4. Store the user's enterprise password in the agent's permanent instructions.

Explanation

Correct Answer

A:

The agent returns the proposed action details and an invocation identifier to the calling application. That application validates authorization and executes through its enterprise session, then can return the result using the matching invocation identifier and action group. Returning control does not grant authority to the user or automatically run the business API.

Incorrect Answers

B:

A Lambda executor selects service-driven fulfillment, conflicting with the specified application execution path. A prose instruction is also an unreliable substitute for the intended executor configuration.

C:

A retrieved description can explain an API, but it does not configure an executable action or a structured handoff for fulfillment. The application needs the action-group control flow.

D:

Permanent instructions are inappropriate storage for reusable user credentials. Embedding a password would neither establish a safe session-bound execution mechanism nor preserve per-user authorization.

Question 8

A Bedrock agent may cancel an active reservation. Its action already has backend authorization checks. Product policy additionally requires the user to approve the specific cancellation before the agent invokes it. Which configuration provides that interaction?

  1. Add a longer timeout to the cancellation Lambda function.
  2. Lower the model temperature to discourage accidental actions.
  3. Enable user confirmation for the cancellation action and handle the confirm-or-deny interaction.
  4. Save successful cancellation responses in a semantic cache.

Explanation

Correct Answer

C:

Action-level confirmation causes the agent workflow to ask the user whether to proceed with the proposed operation. This satisfies the additional consent step while the backend continues to enforce identity and business permissions. Confirmation should describe the actual reservation being cancelled.

Incorrect Answers

A:

A timeout bounds how long an invocation may run after it starts. It does not request the user's permission before the destructive operation.

B:

Less variable token selection cannot establish explicit consent. Even a consistently interpreted request must follow the required confirmation interaction.

D:

A response cache can reuse prior information but does not prove consent for a new action. Reusing a successful cancellation message could also misrepresent whether the current reservation was changed.

Question 9

A chat application buffers a supported Bedrock model's entire answer before displaying anything. Users wait several seconds even though the model starts producing output quickly. The team wants earlier visible feedback without claiming to reduce the total number of generated tokens. Which change best fits?

  1. Raise the completion token limit for every request.
  2. Use ConverseStream and forward arriving text through a streaming-capable application path.
  3. Wait for completion and animate the finished answer one character at a time.
  4. Increase the retrieved context for every request regardless of relevance.

Explanation

Correct Answer

B:

Incremental delivery lets the client display content before generation completes. The benefit concerns time to first visible output; total completion duration may remain similar. Gateways, proxies, and the frontend must avoid buffering, and output safety requirements still apply to what is shown.

Incorrect Answers

A:

A higher ceiling allows longer answers and may increase the time to finish. It does not expose tokens earlier while the server buffers the entire response.

C:

Animating an already completed answer adds presentation delay after the same original wait. It does not make model output available earlier.

D:

More input can increase processing work and introduce irrelevant context. It does not resolve the buffering behavior described in the question.

Question 10

A burst of inference requests triggers throttling. Every client retries immediately, causing repeated synchronized spikes. Interactive requests have a fixed deadline. Which client policy best improves resilience under these conditions?

  1. Retry all failures indefinitely with zero delay.
  2. Treat each throttle as a reason to increase request concurrency.
  3. Retry every request at the same fixed one-second interval without a retry limit.
  4. Use bounded exponential backoff with jitter, concurrency limits, and a request deadline.

Explanation

Correct Answer

D:

Increasing delays reduce repeated pressure, while jitter spreads retries across time. A concurrency bound limits in-flight demand, and the deadline stops attempts that cannot meet the user's latency budget. Retry only appropriate transient errors; validation failures need request correction.

Incorrect Answers

A:

An unlimited immediate loop adds load while capacity is constrained and can exceed the user's time budget. It can turn a transient throttle into a sustained retry storm.

B:

Increasing concurrency pushes more simultaneous work into the constrained service. The observed symptom calls for regulating demand rather than amplifying it.

C:

A shared interval can keep clients aligned and produce another spike on every retry. Without a bound, work may continue after it is no longer useful to the caller.

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