Question 390

Production evidence: The assistant adds a made-up warranty exception absent from retrieved policies. The original design context was: A generated answer may mix retrieved facts with speculation. Which change prevents recurrence?

  1. Run a controlled Bedrock model evaluation with task-specific metrics.
  2. Enforce output moderation with Bedrock Guardrails and an application release gate.
  3. Apply groundedness evaluation with an evidence-threshold fallback.
  4. Separate retrieved content from trusted instructions and deny tool authority to source text.

Explanation

Correct Answer

C:

A groundedness check assesses whether context supports the proposed claim, allowing refusal or review; that explains the reported failure: the assistant adds a made-up warranty exception absent from retrieved policies. A high semantic similarity score alone does not establish entailment of each statement; a symptom-only workaround would not restore the requirement to compare claims against the retrieved context and abstain when unsupported.

Incorrect Answers

A:

For work that needs to compare models on the same representative inputs and cost/latency measurements, matched evaluation sets support meaningful quality and operational comparisons; the specific the reported failure and its causal repair instead requires compare claims against the retrieved context and abstain when unsupported in light of the assistant adds a made-up warranty exception absent from retrieved policies. Comparing unrelated examples confounds model differences with question difficulty; this is insufficient for the reported failure and its causal repair, given the evidence that the assistant adds a made-up warranty exception absent from retrieved policies.

B:

Response-side checks can intercept material produced despite safe-looking user input; this explains its relevance to screen the response after generation before delivering it, not the the reported failure and its causal repair requirement to compare claims against the retrieved context and abstain when unsupported after the assistant adds a made-up warranty exception absent from retrieved policies. Input-only filtering cannot inspect harmful text newly created by the model; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the assistant adds a made-up warranty exception absent from retrieved policies.

D:

The scope of this alternative is different: trust boundaries prevent source passages from redefining policies or initiating privileged calls; it supports treat retrieved document text as untrusted evidence, not executable authority, while the reported failure and its causal repair needs compare claims against the retrieved context and abstain when unsupported after the assistant adds a made-up warranty exception absent from retrieved policies. RAG improves facts but does not make arbitrary retrieved text safe instructions; for the reported failure and its causal repair, the unresolved requirement remains to compare claims against the retrieved context and abstain when unsupported, as shown when the assistant adds a made-up warranty exception absent from retrieved policies.

Question 391

A technical manual contains tables that are split by fixed token windows. A vector-search cluster is slow after one index grows dramatically. The deployment has these independent requirements: (1) segment structured tables as coherent retrieval units; (2) distribute index capacity and measure query fan-out before scaling. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.

  1. Configure a supported ANN vector index and tune search parameters.
  2. Tune OpenSearch shard and index layout based on workload benchmarks.
  3. Use custom preprocessing for table rows, headers, and nearby explanatory text.
  4. Attach trusted department metadata and filter the vector query by caller authorization.
  5. Benchmark approximate nearest neighbor parameters and staged index maintenance.

Explanation

Correct Answers

B:

Shard sizing and placement influence concurrency, memory pressure, and search fan-out; this fulfills distribute index capacity and measure query fan-out before scaling within a combined design that must also segment structured tables as coherent retrieval units. Adding shards without testing can increase coordination overhead instead of helping; the other required action(s) must additionally segment structured tables as coherent retrieval units.

C:

Structure-preserving chunking prevents a row from being detached from its column meaning; this fulfills segment structured tables as coherent retrieval units within a combined design that must also distribute index capacity and measure query fan-out before scaling. Blind fixed-size splitting may create numeric snippets with no labels; the other required action(s) must additionally distribute index capacity and measure query fan-out before scaling.

Incorrect Answers

A:

Nearest-neighbor indexing avoids exhaustive comparison for every request, with measurable speed-versus-recall tradeoffs; its proper focus is to index embeddings and benchmark recall and query time, rather than the combined requirements to segment structured tables as coherent retrieval units and distribute index capacity and measure query fan-out before scaling. Storing vectors without a search index can cause costly full scans; in this combined design needing segment structured tables as coherent retrieval units and distribute index capacity and measure query fan-out before scaling, it does not directly meet the specified requirement to segment structured tables as coherent retrieval units.

D:

Source metadata constrains which chunks are eligible, preventing unrelated sensitive context from entering inference; its proper focus is to enforce department-level retrieval boundaries before passages reach the FM, rather than the combined requirements to segment structured tables as coherent retrieval units and distribute index capacity and measure query fan-out before scaling. A text instruction to the model is not an access-control boundary; in this combined design needing segment structured tables as coherent retrieval units and distribute index capacity and measure query fan-out before scaling, it does not directly meet the specified requirement to distribute index capacity and measure query fan-out before scaling.

E:

ANN configurations trade memory, build work, recall, and query speed; production tuning needs measurement; its proper focus is to control vector index rebuilds and measure recall versus latency, rather than the combined requirements to segment structured tables as coherent retrieval units and distribute index capacity and measure query fan-out before scaling. Higher search effort can raise recall while violating the latency objective; in this combined design needing segment structured tables as coherent retrieval units and distribute index capacity and measure query fan-out before scaling, it does not directly meet the specified requirement to segment structured tables as coherent retrieval units.

Question 392

A complex report requires three independent retrieval summaries. A successful solution needs to parallelize independent subtasks without losing result validation. Which option is the most suitable design?

  1. Use lower-variance sampling and enforce an output schema.
  2. Instrument retrieval, prompt assembly, model inference, and tool spans separately.
  3. Use controlled concurrent model or retrieval calls and aggregate only completed outputs.
  4. Configure a supported ANN vector index and tune search parameters.

Explanation

Correct Answer

C:

Parallelism reduces critical-path latency where dependencies do not require serial execution; it directly supports the architectural objective to parallelize independent subtasks without losing result validation. Sequential chains add avoidable delay when operations are independent; that boundary is important when selecting the implementation.

Incorrect Answers

A:

The scope of this alternative is different: predictable extraction benefits from constrained prompts and machine validation; it supports favor controlled generation and strict downstream validation, while the architecture selection needs parallelize independent subtasks without losing result validation after three independent summaries take roughly the sum of their individual response times. A temperature setting alone cannot prevent malformed JSON or fabricated fields; for the architecture selection, the unresolved requirement remains to parallelize independent subtasks without losing result validation, as shown when three independent summaries take roughly the sum of their individual response times.

B:

For work that needs to trace end-to-end timings rather than assuming the FM is slow, per-stage profiling identifies where optimization actually reduces the critical path; the specific the architecture selection instead requires parallelize independent subtasks without losing result validation in light of three independent summaries take roughly the sum of their individual response times. An aggregate duration metric hides slow vector queries; this is insufficient for the architecture selection, given the evidence that three independent summaries take roughly the sum of their individual response times.

D:

For work that needs to index embeddings and benchmark recall and query time, nearest-neighbor indexing avoids exhaustive comparison for every request, with measurable speed-versus-recall tradeoffs; the specific the architecture selection instead requires parallelize independent subtasks without losing result validation in light of three independent summaries take roughly the sum of their individual response times. Storing vectors without a search index can cause costly full scans; this is insufficient for the architecture selection, given the evidence that three independent summaries take roughly the sum of their individual response times.

Question 393

Production evidence: Search returns unrelated items after only the query encoder is changed. The original design context was: A vector-search system loses relevance after embedding model replacement. Which change prevents recurrence?

  1. Ensure both sides use compatible embedding spaces and reindex the corpus.
  2. Diff prompt templates and test quality regressions on a fixed dataset.
  3. Check sync history, source versions, and vector index update status.
  4. Use paired retrieval tests with relevance labels and p95 query timing.

Explanation

Correct Answer

A:

Similarity comparisons assume compatible vector representations; mixing model spaces invalidates ranking; that explains the reported failure: search returns unrelated items after only the query encoder is changed. Increasing nearest-neighbor candidate count cannot align incompatible embeddings; a symptom-only workaround would not restore the requirement to verify query and document vector compatibility and rebuild as needed.

Incorrect Answers

B:

The scope of this alternative is different: holding test cases constant isolates instruction changes from input distribution shifts; it supports compare exact prompt versions using controlled evaluation inputs, while the reported failure and its causal repair needs verify query and document vector compatibility and rebuild as needed after search returns unrelated items after only the query encoder is changed. Changing model and prompt simultaneously makes attribution harder; for the reported failure and its causal repair, the unresolved requirement remains to verify query and document vector compatibility and rebuild as needed, as shown when search returns unrelated items after only the query encoder is changed.

C:

Stale embeddings can continue pointing to older text even if the source repository is current; this explains its relevance to inspect ingestion freshness and whether changed chunks were re-embedded, not the the reported failure and its causal repair requirement to verify query and document vector compatibility and rebuild as needed after search returns unrelated items after only the query encoder is changed. Rephrasing the user prompt cannot fix a missing index update; choosing it for the reported failure and its causal repair would leave the underlying issue visible: search returns unrelated items after only the query encoder is changed.

D:

For work that needs to benchmark answer evidence quality and query tail latency together, search tuning is a quality-performance tradeoff, not a single latency metric; the specific the reported failure and its causal repair instead requires verify query and document vector compatibility and rebuild as needed in light of search returns unrelated items after only the query encoder is changed. A faster index can be worse if approximate search loses key passages; this is insufficient for the reported failure and its causal repair, given the evidence that search returns unrelated items after only the query encoder is changed.

Question 394

A customer assistant's answer quality falls after a model revision. The engineering team is required to compare responses on a stable golden dataset and review divergences. What should be built first?

  1. Run output-diff and groundedness regression evaluations across versions.
  2. Build dashboards correlating quality scores, policy interventions, latency, and token spend.
  3. Publish token-usage and estimated-cost metrics with dimensions in CloudWatch.
  4. Diff prompt templates and test quality regressions on a fixed dataset.

Explanation

Correct Answer

A:

Controlled test inputs expose model-specific behavior changes separately from traffic variation; it directly supports the architectural objective to compare responses on a stable golden dataset and review divergences. A successful API status code proves only that a response was returned; that boundary is important when selecting the implementation.

Incorrect Answers

B:

A holistic view supports trade-off decisions instead of optimizing a single proxy metric; this explains its relevance to combine evaluation and runtime signals into a governed observability view, not the the architecture selection requirement to compare responses on a stable golden dataset and review divergences after latency improves but the new model invents steps that the prior release handled correctly. Optimizing only throughput may degrade factuality or increase harm; choosing it for the architecture selection would leave the underlying issue visible: latency improves but the new model invents steps that the prior release handled correctly.

C:

The scope of this alternative is different: attributed usage reveals which behavior or cohort drives spend; it supports record input and output tokens per model, tenant, and feature, while the architecture selection needs compare responses on a stable golden dataset and review divergences after latency improves but the new model invents steps that the prior release handled correctly. A single monthly total does not identify the feature creating token bursts; for the architecture selection, the unresolved requirement remains to compare responses on a stable golden dataset and review divergences, as shown when latency improves but the new model invents steps that the prior release handled correctly.

D:

The scope of this alternative is different: holding test cases constant isolates instruction changes from input distribution shifts; it supports compare exact prompt versions using controlled evaluation inputs, while the architecture selection needs compare responses on a stable golden dataset and review divergences after latency improves but the new model invents steps that the prior release handled correctly. Changing model and prompt simultaneously makes attribution harder; for the architecture selection, the unresolved requirement remains to compare responses on a stable golden dataset and review divergences, as shown when latency improves but the new model invents steps that the prior release handled correctly.

Question 395

An analyst wants to build conditional prompt transformations without full custom code. After deployment, the analyst manually copies outputs among several prompt experiments. Engineers need a cause-level fix, not a change in presentation. What should they implement?

  1. Estimate input tokens and apply a configured context budget at the gateway.
  2. Use Amazon Bedrock Flows for the supported visual orchestration use case.
  3. Use API Gateway with a Lambda integration that invokes Bedrock.
  4. Evaluate Amazon Bedrock Data Automation for supported multimodal document extraction.

Explanation

Correct Answer

B:

Flow nodes represent ordered processing and routing steps while reducing bespoke glue; that explains the reported failure: the analyst manually copies outputs among several prompt experiments. A visual workflow does not eliminate the need for external authorization and data validation; a symptom-only workaround would not restore the requirement to compose managed model and function nodes into a reusable workflow.

Incorrect Answers

A:

Early budgeting allocates space for system instructions, retrieval context, and requested output; this explains its relevance to reject or shorten over-budget requests before FM invocation, not the the reported failure and its causal repair requirement to compose managed model and function nodes into a reusable workflow after the analyst manually copies outputs among several prompt experiments. Generic API payload byte limits do not reflect model token accounting; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the analyst manually copies outputs among several prompt experiments.

C:

The gateway handles API authentication and routing; Lambda holds the controlled inference integration; this explains its relevance to expose a managed API while keeping FM credentials server-side, not the the reported failure and its causal repair requirement to compose managed model and function nodes into a reusable workflow after the analyst manually copies outputs among several prompt experiments. Embedding AWS credentials in the browser exposes the runtime privilege boundary; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the analyst manually copies outputs among several prompt experiments.

D:

Purpose-built extraction can structure document content for downstream business workflows; this explains its relevance to use a specialized managed document-processing component before generative synthesis, not the the reported failure and its causal repair requirement to compose managed model and function nodes into a reusable workflow after the analyst manually copies outputs among several prompt experiments. A text summarization prompt alone cannot guarantee reliable field extraction across formats; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the analyst manually copies outputs among several prompt experiments.

Question 396

A multi-tool agent should access a knowledge base through a narrow interface. After deployment, the agent constructs malformed search calls and requests indexes it should not reach. Engineers need a cause-level fix, not a change in presentation. What should they implement?

  1. Test supported embedding dimensionality settings against recall, size, and latency.
  2. Use document sensitivity labels as indexed filterable metadata and enforce access upstream.
  3. Expose a scoped retrieval function or MCP-compatible tool contract.
  4. Use controlled query expansion with an approved terminology dictionary or FM transform.

Explanation

Correct Answer

C:

Typed query parameters and a controlled handler let the application validate and authorize retrieval requests; that explains the reported failure: the agent constructs malformed search calls and requests indexes it should not reach. Unstructured free-form tool strings are difficult to validate or restrict; a symptom-only workaround would not restore the requirement to offer retrieval as a typed tool with explicit input schema.

Incorrect Answers

A:

Reduced vector size can lower index storage and search cost, but may change semantic discrimination; that is valuable when the goal is to compare lower-dimensional representations against observed retrieval quality, but the reported failure and its causal repair instead depends on the ability to offer retrieval as a typed tool with explicit input schema. A smaller vector is not automatically better when hard queries lose recall; it does not account for the condition in the reported failure and its causal repair: the agent constructs malformed search calls and requests indexes it should not reach.

B:

For work that needs to partition retrieval by classification tags derived from trusted identity, label-aware queries exclude disallowed chunks rather than asking the model to ignore them; the specific the reported failure and its causal repair instead requires offer retrieval as a typed tool with explicit input schema in light of the agent constructs malformed search calls and requests indexes it should not reach. Generation-side disclaimers do not prevent confidential text entering context; this is insufficient for the reported failure and its causal repair, given the evidence that the agent constructs malformed search calls and requests indexes it should not reach.

D:

Expansion bridges terminology mismatch while constraints keep the query anchored to user intent; that is valuable when the goal is to expand queries with validated domain synonyms before retrieval, but the reported failure and its causal repair instead depends on the ability to offer retrieval as a typed tool with explicit input schema. Unconstrained creative rewriting can introduce unrelated terms into sensitive retrieval; it does not account for the condition in the reported failure and its causal repair: the agent constructs malformed search calls and requests indexes it should not reach.

Question 397

A high-traffic assistant sends entire manuals in every prompt. The architecture must cut input tokens while keeping the relevant evidence. Which implementation best meets that requirement?

  1. Use version-aware cache invalidation linked to freshness requirements.
  2. Use conditional inference cascading with a conservative escalation threshold.
  3. Retrieve only top-ranked bounded passages and reserve an explicit context budget.
  4. Publish token-usage and estimated-cost metrics with dimensions in CloudWatch.

Explanation

Correct Answer

C:

Smaller relevant context reduces input tokens and avoids crowding out necessary instructions; it directly supports the architectural objective to cut input tokens while keeping the relevant evidence. Blindly removing all context may improve cost while destroying factual grounding; that boundary is important when selecting the implementation.

Incorrect Answers

A:

For work that needs to expire or invalidate cached responses when indexed source data changes, a cache can retain speed benefits while dropping answers based on stale documents; the specific the architecture selection instead requires cut input tokens while keeping the relevant evidence in light of cost per answer spikes whenever long manuals are included verbatim. A very long fixed TTL is unsuitable for volatile inventory decisions; this is insufficient for the architecture selection, given the evidence that cost per answer spikes whenever long manuals are included verbatim.

B:

Escalation limits expensive inference to the cases that need additional reasoning; this explains its relevance to combine cheap initial screening with a stronger fallback model, not the the architecture selection requirement to cut input tokens while keeping the relevant evidence after cost per answer spikes whenever long manuals are included verbatim. Routing solely on confidence rhetoric without measured error rates can miss risky cases; choosing it for the architecture selection would leave the underlying issue visible: cost per answer spikes whenever long manuals are included verbatim.

D:

Attributed usage reveals which behavior or cohort drives spend; this explains its relevance to record input and output tokens per model, tenant, and feature, not the the architecture selection requirement to cut input tokens while keeping the relevant evidence after cost per answer spikes whenever long manuals are included verbatim. A single monthly total does not identify the feature creating token bursts; choosing it for the architecture selection would leave the underlying issue visible: cost per answer spikes whenever long manuals are included verbatim.

Question 398

A source bucket has changed documents after the knowledge-base index was built. The architecture must make the indexed corpus reflect additions, updates, and deletions. Which implementation best meets that requirement?

  1. Trigger targeted removal or resynchronization when authoritative documents are deleted.
  2. Run an Amazon Bedrock Knowledge Bases data-source synchronization job.
  3. Combine source authorization checks with retrieval metadata filters.
  4. Use Amazon Bedrock Knowledge Bases with a supported vector store.

Explanation

Correct Answer

B:

Sync processes new, changed, and removed sources and updates corresponding vector content; it directly supports the architectural objective to make the indexed corpus reflect additions, updates, and deletions. Uploading files to storage does not itself guarantee the index is refreshed; that boundary is important when selecting the implementation.

Incorrect Answers

A:

For work that needs to propagate source deletion events into index removal workflows, deletion-aware maintenance prevents removed sources remaining searchable after the source system revokes them; the specific the architecture selection instead requires make the indexed corpus reflect additions, updates, and deletions in light of the assistant continues returning a deleted document after source cleanup. A retention policy on the raw bucket does not automatically eliminate an existing vector entry; this is insufficient for the architecture selection, given the evidence that the assistant continues returning a deleted document after source cleanup.

C:

The scope of this alternative is different: the application must carry trusted identity context into candidate selection so the FM never sees disallowed chunks; it supports enforce source-specific access controls before constructing the retrieval context, while the architecture selection needs make the indexed corpus reflect additions, updates, and deletions after the assistant continues returning a deleted document after source cleanup. An FM refusal after retrieval is too late to protect raw context exposure; for the architecture selection, the unresolved requirement remains to make the indexed corpus reflect additions, updates, and deletions, as shown when the assistant continues returning a deleted document after source cleanup.

D:

Managed knowledge bases coordinate data-source ingestion and semantic retrieval for FM augmentation; this explains its relevance to avoid hand-building every retrieval integration component, not the the architecture selection requirement to make the indexed corpus reflect additions, updates, and deletions after the assistant continues returning a deleted document after source cleanup. The underlying vector store still requires data governance and access design; choosing it for the architecture selection would leave the underlying issue visible: the assistant continues returning a deleted document after source cleanup.

Question 399

A model-powered application must use minimum necessary personal information. A release proposal aims to minimize prompt fields based on business need and document policy. Which architecture decision fits the constraint?

  1. Implement identity-policy and network controls alongside document-level retrieval checks.
  2. Use evidence verification and policy-based output review with human escalation.
  3. Tokenize person-level fields while keeping the re-identification map in a protected store.
  4. Apply schema-based minimization before retrieval and inference.

Explanation

Correct Answer

D:

Sending only task-required fields reduces privacy exposure and token usage; it directly supports the architectural objective to minimize prompt fields based on business need and document policy. Encrypting all fields in transit does not justify sending unnecessary personal data; that boundary is important when selecting the implementation.

Incorrect Answers

A:

For work that needs to separate IAM authorizations, endpoint policy, and data filtering responsibilities, the three layers serve different purposes: permitted API actions, permitted network paths, and permitted content; the specific the architecture selection instead requires minimize prompt fields based on business need and document policy in light of a classification prompt includes full addresses despite needing only postal regions. Granting VPC endpoint access does not confer document-level authorization; this is insufficient for the architecture selection, given the evidence that a classification prompt includes full addresses despite needing only postal regions.

B:

For work that needs to gate high-risk advice on evidence and policy review rather than fluency, a policy decision checks whether an answer is supported and within allowed scope; the specific the architecture selection instead requires minimize prompt fields based on business need and document policy in light of a classification prompt includes full addresses despite needing only postal regions. Lower temperature may reduce variability but cannot certify clinical correctness; this is insufficient for the architecture selection, given the evidence that a classification prompt includes full addresses despite needing only postal regions.

C:

The scope of this alternative is different: tokenization preserves linkage for authorized workflows without exposing original identifiers to the model; it supports substitute pseudonymous identifiers before prompt assembly, while the architecture selection needs minimize prompt fields based on business need and document policy after a classification prompt includes full addresses despite needing only postal regions. Hashing alone can remain reversible by guessing when the input space is small; for the architecture selection, the unresolved requirement remains to minimize prompt fields based on business need and document policy, as shown when a classification prompt includes full addresses despite needing only postal regions.

Question 400

Treating a scanned page as plain UTF-8 text loses its visual evidence. An architecture reviewer must still ensure the application can extract usable text and relevant visual context before retrieval. What recommendation is justified?

  1. Index effective-from and effective-to attributes and apply time-based retrieval filters.
  2. Combine OCR or document extraction with a multimodal-aware preprocessing pipeline.
  3. Construct content blocks with the correct media format and model-supported payload type.
  4. Use Amazon Comprehend entity extraction followed by domain validation.

Explanation

Correct Answer

B:

Extraction makes printed content searchable, while image-aware handling preserves details ordinary text extraction misses; this is the behavior to validate in a release review concerned with extract usable text and relevant visual context before retrieval. Treating a scanned page as plain UTF-8 text loses its visual evidence; the proposed shortcut would therefore be an inadequate guarantee.

Incorrect Answers

A:

For work that needs to filter retrieval on version and validity metadata, temporal metadata separates current guidance from superseded but textually similar versions; the specific the release-control decision instead requires extract usable text and relevant visual context before retrieval in light of the assistant cites empty chunks for image-based invoices despite readable page images. Similarity ranking alone may favor obsolete documents with repeated phrasing; this is insufficient for the release-control decision, given the evidence that the assistant cites empty chunks for image-based invoices despite readable page images.

C:

The API schema and selected model capability jointly determine how nontext input is accepted; this explains its relevance to send supported image blocks with the surrounding user text, not the the release-control decision requirement to extract usable text and relevant visual context before retrieval after the assistant cites empty chunks for image-based invoices despite readable page images. Putting base64 characters in a text field does not create an image input block; choosing it for the release-control decision would leave the underlying issue visible: the assistant cites empty chunks for image-based invoices despite readable page images.

D:

Entity detection can populate searchable attributes, while a validation step controls accuracy and allowed values; that is valuable when the goal is to derive structured metadata independently of the generation prompt, but the release-control decision instead depends on the ability to extract usable text and relevant visual context before retrieval. Asking a generation model to guess filters per query is less reproducible than indexed metadata; it does not account for the condition in the release-control decision: the assistant cites empty chunks for image-based invoices despite readable page images.

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