Question 380

A retrieval upgrade makes some important documents disappear from results. The architecture must measure recall using known relevant documents. Which implementation best meets that requirement?

  1. Evaluate retrieval precision at k against labeled source passages.
  2. Track verified task completion and tool side-effect correctness.
  3. Track recall at k on a representative retrieval benchmark.
  4. Diff prompt templates and test quality regressions on a fixed dataset.

Explanation

Correct Answer

C:

Recall reveals missing evidence that generation cannot cite if never retrieved; it directly supports the architectural objective to measure recall using known relevant documents. Improved precision can come from dropping too many useful results; that boundary is important when selecting the implementation.

Incorrect Answers

A:

Precision quantifies ranking noise that wastes context and can distract the model; this explains its relevance to measure how many retrieved hits are relevant among top-k results, not the the architecture selection requirement to measure recall using known relevant documents after answers omit required exceptions because the relevant clause never reaches context. Final-answer accuracy alone does not expose redundant retrieval; choosing it for the architecture selection would leave the underlying issue visible: answers omit required exceptions because the relevant clause never reaches context.

B:

An agent must finish intended actions within policy, not merely produce a convincing narrative; that is valuable when the goal is to measure successful end-to-end task completion, not only coherent text, but the architecture selection instead depends on the ability to measure recall using known relevant documents. Final-response fluency can conceal failed tool executions; it does not account for the condition in the architecture selection: answers omit required exceptions because the relevant clause never reaches context.

D:

Holding test cases constant isolates instruction changes from input distribution shifts; that is valuable when the goal is to compare exact prompt versions using controlled evaluation inputs, but the architecture selection instead depends on the ability to measure recall using known relevant documents. Changing model and prompt simultaneously makes attribution harder; it does not account for the condition in the architecture selection: answers omit required exceptions because the relevant clause never reaches context.

Question 381

A deployment role can invoke all available models, despite a restricted policy. A release proposal aims to constrain model invocation by allowed resources and actions. Which architecture decision fits the constraint?

  1. Apply a Bedrock Guardrails sensitive-information filter with independent output validation.
  2. Apply least-privilege Bedrock IAM permissions in a trusted backend authorization layer.
  3. Apply schema-based minimization before retrieval and inference.
  4. Apply IAM least privilege to Bedrock inference operations and model ARNs.

Explanation

Correct Answer

D:

The role's identity policies govern which invocation APIs and resources are authorized; it directly supports the architectural objective to constrain model invocation by allowed resources and actions. An application UI hiding a model does not prevent direct API invocation; that boundary is important when selecting the implementation.

Incorrect Answers

A:

Output filters reduce accidental disclosure of detected sensitive data types; this explains its relevance to block configured PII patterns in generated output, not the the architecture selection requirement to constrain model invocation by allowed resources and actions after a developer calls a prohibited model ARN using backend permissions. Filtering final answers alone cannot replace source access restrictions; choosing it for the architecture selection would leave the underlying issue visible: a developer calls a prohibited model ARN using backend permissions.

B:

IAM can constrain model invocation actions and resources, complementing application tenant rules; this explains its relevance to restrict invocation rights to approved model resources for each caller, not the the architecture selection requirement to constrain model invocation by allowed resources and actions after a developer calls a prohibited model ARN using backend permissions. A prompt telling the model to use a cheaper provider is not an enforcement mechanism; choosing it for the architecture selection would leave the underlying issue visible: a developer calls a prohibited model ARN using backend permissions.

C:

Sending only task-required fields reduces privacy exposure and token usage; that is valuable when the goal is to minimize prompt fields based on business need and document policy, but the architecture selection instead depends on the ability to constrain model invocation by allowed resources and actions. Encrypting all fields in transit does not justify sending unnecessary personal data; it does not account for the condition in the architecture selection: a developer calls a prohibited model ARN using backend permissions.

Question 382

Users wait through repeated timeouts after one external API becomes unhealthy. Investigators also establish that a third-party tool has intermittent failures and slow responses. Which implementation most directly addresses the cause?

  1. Put parameter validation and authorization in the Lambda tool handler.
  2. Use Model Context Protocol-compatible interfaces with authenticated tool servers.
  3. Add circuit breakers, bounded retries, and timeouts around tool adapters.
  4. Record tool calls per successful task and detect repeated action patterns.
  5. Implement structured tool errors with idempotency and bounded retry semantics.
  6. Enforce caller identity and operation-level authorization in the tool layer.

Explanation

Correct Answer

C:

Tool isolation stops a broken dependency from consuming every step and preserves controlled degradation; that explains the reported failure: users wait through repeated timeouts after one external API becomes unhealthy. Increasing the maximum number of agent iterations can multiply the failure load; a symptom-only workaround would not restore the requirement to prevent cascading tool retries from exhausting the agent session.

Incorrect Answers

A:

The handler rejects malformed identifiers and disallowed amounts even if the FM requests them; that is valuable when the goal is to validate the tool schema and business limits in code before execution, but the reported failure and its causal repair instead depends on the ability to prevent cascading tool retries from exhausting the agent session. Model-side tool descriptions do not enforce server-side transactional limits; it does not account for the condition in the reported failure and its causal repair: users wait through repeated timeouts after one external API becomes unhealthy.

B:

For work that needs to make tool discovery and invocation contracts consistent across clients, a standard tool interface describes available operations and schemas, reducing framework-specific glue; the specific the reported failure and its causal repair instead requires prevent cascading tool retries from exhausting the agent session in light of users wait through repeated timeouts after one external API becomes unhealthy. Protocol compatibility does not grant permissions; authentication remains necessary; this is insufficient for the reported failure and its causal repair, given the evidence that users wait through repeated timeouts after one external API becomes unhealthy.

D:

The scope of this alternative is different: efficiency metrics reveal unproductive loops that raise cost and risk; it supports measure tool efficiency and stopping correctness, while the reported failure and its causal repair needs prevent cascading tool retries from exhausting the agent session after users wait through repeated timeouts after one external API becomes unhealthy. High model response quality does not imply economical orchestration; for the reported failure and its causal repair, the unresolved requirement remains to prevent cascading tool retries from exhausting the agent session, as shown when users wait through repeated timeouts after one external API becomes unhealthy.

E:

Typed outcomes let the agent distinguish temporary failures from rejected requests without blindly repeating side effects; this explains its relevance to return typed success and recoverable error results to the orchestrator, not the the reported failure and its causal repair requirement to prevent cascading tool retries from exhausting the agent session after users wait through repeated timeouts after one external API becomes unhealthy. Returning vague free text makes retries and compensation unreliable; choosing it for the reported failure and its causal repair would leave the underlying issue visible: users wait through repeated timeouts after one external API becomes unhealthy.

F:

For work that needs to authorize each tool invocation with end-user context and action scope, trusted identity propagation prevents a shared tool server from becoming an unrestricted deputy; the specific the reported failure and its causal repair instead requires prevent cascading tool retries from exhausting the agent session in light of users wait through repeated timeouts after one external API becomes unhealthy. Relying on the requested product name is not a proof of user permission; this is insufficient for the reported failure and its causal repair, given the evidence that users wait through repeated timeouts after one external API becomes unhealthy.

Question 383

An inference client targets both Bedrock-hosted and SageMaker AI models. The engineering team is required to adapt each model's request serialization at the integration boundary. What should be built first?

  1. Use separate model-specific payload adapters behind a common application interface.
  2. Use Amazon Comprehend entity extraction followed by domain validation.
  3. Build properly structured Bedrock Converse messages rather than concatenating ad hoc JSON.
  4. Validate required attributes with Lambda before accepting documents for indexing.

Explanation

Correct Answer

A:

A stable application contract can translate into the payload and headers expected by each runtime; it directly supports the architectural objective to adapt each model's request serialization at the integration boundary. One arbitrary prompt JSON format is not universal across inference endpoints; that boundary is important when selecting the implementation.

Incorrect Answers

B:

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 architecture selection instead depends on the ability to adapt each model's request serialization at the integration boundary. Asking a generation model to guess filters per query is less reproducible than indexed metadata; it does not account for the condition in the architecture selection: switching backends produces validation errors although the same user prompt is valid.

C:

The Converse request schema distinguishes roles, message content, system instructions, and inference options; that is valuable when the goal is to serialize each turn as a valid message with supported roles and content blocks, but the architecture selection instead depends on the ability to adapt each model's request serialization at the integration boundary. A plain JSON-looking string is not equivalent to the required typed request structure; it does not account for the condition in the architecture selection: switching backends produces validation errors although the same user prompt is valid.

D:

The scope of this alternative is different: early validation avoids making unclassified or untraceable content searchable; it supports enforce schema rules at the ingestion boundary rather than in generation, while the architecture selection needs adapt each model's request serialization at the integration boundary after switching backends produces validation errors although the same user prompt is valid. Prompt instructions do not create missing ownership metadata in the source system; for the architecture selection, the unresolved requirement remains to adapt each model's request serialization at the integration boundary, as shown when switching backends produces validation errors although the same user prompt is valid.

Question 384

A tool-calling model emits function arguments incrementally. The architecture must buffer and validate a completed tool-call payload before execution. Which implementation best meets that requirement?

  1. Accumulate streamed tool-use deltas until the structured call is complete.
  2. Correlate invocation traces and structured tool logs with request IDs.
  3. Accept work through API Gateway and process queued jobs from SQS.
  4. Instrument end-to-end traces with AWS X-Ray and correlated request identifiers.

Explanation

Correct Answer

A:

Partial arguments are not safe transactional commands; validation should occur on the finalized tool input; it directly supports the architectural objective to buffer and validate a completed tool-call payload before execution. Executing the first JSON fragment can call a function with missing or wrong fields; that boundary is important when selecting the implementation.

Incorrect Answers

B:

Event-level traces reveal which reasoning step formed a bad function argument and where validation failed; that is valuable when the goal is to find failed tool events across a complex runtime session, but the architecture selection instead depends on the ability to buffer and validate a completed tool-call payload before execution. Aggregate model success percentages obscure the failing tool request; it does not account for the condition in the architecture selection: a purchase tool runs after receiving only the initial half of the requested item ID.

C:

Queues decouple front-end request acceptance from model throughput and support bounded retries; this explains its relevance to buffer asynchronous work instead of holding client connections open, not the the architecture selection requirement to buffer and validate a completed tool-call payload before execution after a purchase tool runs after receiving only the initial half of the requested item ID. Keeping every HTTP request open makes slow inference consume client connections; choosing it for the architecture selection would leave the underlying issue visible: a purchase tool runs after receiving only the initial half of the requested item ID.

D:

The scope of this alternative is different: distributed tracing separates retrieval and tool overhead from model generation latency; it supports identify slow spans across gateway, retrieval, and model calls, while the architecture selection needs buffer and validate a completed tool-call payload before execution after a purchase tool runs after receiving only the initial half of the requested item ID. CloudWatch aggregate invocation counts alone cannot locate an individual slow hop; for the architecture selection, the unresolved requirement remains to buffer and validate a completed tool-call payload before execution, as shown when a purchase tool runs after receiving only the initial half of the requested item ID.

Question 385

A platform organization wants to prevent unapproved model invocation. The incident report says: An account admin invokes a restricted service despite local team guidance. Which specific design change best corrects the failure?

  1. Track retrieval provenance from the source object to the final citation.
  2. Combine source authorization checks with retrieval metadata filters.
  3. Use AWS Organizations SCPs with IAM and application-level model allowlists.
  4. Implement structured log redaction and least-privilege retention policies.

Explanation

Correct Answer

C:

Organizational guardrails bound the permissions identities can receive across governed accounts; that explains the reported failure: an account admin invokes a restricted service despite local team guidance. An SCP sets a permission ceiling, not a grant of access by itself; a symptom-only workaround would not restore the requirement to enforce service-access boundaries across accounts.

Incorrect Answers

A:

Stable source IDs and spans allow reviewers to verify claimed evidence; that is valuable when the goal is to carry document identifiers and chunk locations into the generated response, but the reported failure and its causal repair instead depends on the ability to enforce service-access boundaries across accounts. A generated footnote without a backing retrieval record can be fabricated; it does not account for the condition in the reported failure and its causal repair: an account admin invokes a restricted service despite local team guidance.

B:

The application must carry trusted identity context into candidate selection so the FM never sees disallowed chunks; that is valuable when the goal is to enforce source-specific access controls before constructing the retrieval context, but the reported failure and its causal repair instead depends on the ability to enforce service-access boundaries across accounts. An FM refusal after retrieval is too late to protect raw context exposure; it does not account for the condition in the reported failure and its causal repair: an account admin invokes a restricted service despite local team guidance.

D:

Logs can support forensics without storing unnecessary credentials or identities; that is valuable when the goal is to apply redaction and access restrictions before writing traces, but the reported failure and its causal repair instead depends on the ability to enforce service-access boundaries across accounts. Encrypting a sensitive log does not eliminate unnecessary exposure to authorized readers; it does not account for the condition in the reported failure and its causal repair: an account admin invokes a restricted service despite local team guidance.

Question 386

Production evidence: A nightly full ingest dominates costs despite only a handful of updated pages. The original design context was: A large document repository changes only a small fraction of files each day. Which change prevents recurrence?

  1. Tune OpenSearch shard and index layout based on workload benchmarks.
  2. Configure a supported ANN vector index and tune search parameters.
  3. Trigger targeted removal or resynchronization when authoritative documents are deleted.
  4. Use incremental synchronization that processes only changed documents.

Explanation

Correct Answer

D:

Change-aware ingestion avoids re-embedding unchanged source content in routine refreshes; that explains the reported failure: a nightly full ingest dominates costs despite only a handful of updated pages. Rebuilding every vector daily increases processing cost without improving freshness; a symptom-only workaround would not restore the requirement to reduce unnecessary embedding work during regular index updates.

Incorrect Answers

A:

For work that needs to distribute index capacity and measure query fan-out before scaling, shard sizing and placement influence concurrency, memory pressure, and search fan-out; the specific the reported failure and its causal repair instead requires reduce unnecessary embedding work during regular index updates in light of a nightly full ingest dominates costs despite only a handful of updated pages. Adding shards without testing can increase coordination overhead instead of helping; this is insufficient for the reported failure and its causal repair, given the evidence that a nightly full ingest dominates costs despite only a handful of updated pages.

B:

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 reported failure and its causal repair instead requires reduce unnecessary embedding work during regular index updates in light of a nightly full ingest dominates costs despite only a handful of updated pages. Storing vectors without a search index can cause costly full scans; this is insufficient for the reported failure and its causal repair, given the evidence that a nightly full ingest dominates costs despite only a handful of updated pages.

C:

Deletion-aware maintenance prevents removed sources remaining searchable after the source system revokes them; this explains its relevance to propagate source deletion events into index removal workflows, not the the reported failure and its causal repair requirement to reduce unnecessary embedding work during regular index updates after a nightly full ingest dominates costs despite only a handful of updated pages. A retention policy on the raw bucket does not automatically eliminate an existing vector entry; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a nightly full ingest dominates costs despite only a handful of updated pages.

Question 387

A code-review note warns: Cross-Region inference profiles do not become provisioned capacity reservations. The business requirement is to reserve supported inference capacity for steady traffic. Which mechanism should replace the shortcut?

  1. Invoke the selected Bedrock model through a Lambda-based request handler.
  2. Evaluate provisioned inference capacity with utilization and cost modeling.
  3. Build a common service contract with adapters for Bedrock and SageMaker AI endpoints.
  4. Evaluate Amazon Bedrock Provisioned Throughput for the selected supported model.

Explanation

Correct Answer

D:

Provisioned capacity is designed for workloads needing committed throughput rather than purely bursty on-demand access; this is the behavior to validate in a release review concerned with reserve supported inference capacity for steady traffic. Cross-Region inference profiles do not become provisioned capacity reservations; the proposed shortcut would therefore be an inadequate guarantee.

Incorrect Answers

A:

The scope of this alternative is different: a short-lived function can call managed inference without hosting model weights; it supports use on-demand inference from event-driven compute, while the release-control decision needs reserve supported inference capacity for steady traffic after a steady premium workload is repeatedly constrained by on-demand traffic variability. Provisioned capacity may be excessive for infrequent low-volume use; for the release-control decision, the unresolved requirement remains to reserve supported inference capacity for steady traffic, as shown when a steady premium workload is repeatedly constrained by on-demand traffic variability.

B:

Capacity commitment can stabilize throughput for a sufficiently steady supported workload; that is valuable when the goal is to compare reserved model throughput against observed sustained demand, but the release-control decision instead depends on the ability to reserve supported inference capacity for steady traffic. A commitment is wasteful if traffic is highly sporadic and low volume; it does not account for the condition in the release-control decision: a steady premium workload is repeatedly constrained by on-demand traffic variability.

C:

The scope of this alternative is different: an application-level interface can translate payloads and propagate tracing while maintaining backend independence; it supports separate inference abstraction from provider-specific deployment details, while the release-control decision needs reserve supported inference capacity for steady traffic after a steady premium workload is repeatedly constrained by on-demand traffic variability. Trying to send identical provider-specific headers to every endpoint will break interoperability; for the release-control decision, the unresolved requirement remains to reserve supported inference capacity for steady traffic, as shown when a steady premium workload is repeatedly constrained by on-demand traffic variability.

Question 388

Production evidence: The model either overspends on easy cases or mishandles hard exceptions. The original design context was: A legal assistant must escalate only ambiguous contract exceptions. Which change prevents recurrence?

  1. Use token counting or model-aware estimation at the inference gateway.
  2. Tune hybrid search using both exact-match and embedding scores.
  3. Use version-aware cache invalidation linked to freshness requirements.
  4. Use conditional inference cascading with a conservative escalation threshold.

Explanation

Correct Answer

D:

Escalation limits expensive inference to the cases that need additional reasoning; that explains the reported failure: the model either overspends on easy cases or mishandles hard exceptions. Routing solely on confidence rhetoric without measured error rates can miss risky cases; a symptom-only workaround would not restore the requirement to combine cheap initial screening with a stronger fallback model.

Incorrect Answers

A:

Preflight estimates let the service allocate input, retrieval, and completion budgets; this explains its relevance to estimate token volume and enforce per-request spend ceilings, not the the reported failure and its causal repair requirement to combine cheap initial screening with a stronger fallback model after the model either overspends on easy cases or mishandles hard exceptions. HTTP byte count is not a dependable substitute for model token accounting; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the model either overspends on easy cases or mishandles hard exceptions.

B:

For work that needs to combine lexical and semantic signals in retrieval, hybrid retrieval covers identifier precision and natural-language similarity; the specific the reported failure and its causal repair instead requires combine cheap initial screening with a stronger fallback model in light of the model either overspends on easy cases or mishandles hard exceptions. Changing answer temperature cannot repair poor source selection; this is insufficient for the reported failure and its causal repair, given the evidence that the model either overspends on easy cases or mishandles hard exceptions.

C:

A cache can retain speed benefits while dropping answers based on stale documents; this explains its relevance to expire or invalidate cached responses when indexed source data changes, not the the reported failure and its causal repair requirement to combine cheap initial screening with a stronger fallback model after the model either overspends on easy cases or mishandles hard exceptions. A very long fixed TTL is unsuitable for volatile inventory decisions; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the model either overspends on easy cases or mishandles hard exceptions.

Question 389

Chunks with unknown owners enter a searchable index and cannot be attributed. Investigators also establish that a file-based ingestion workflow must reject documents missing required ownership fields. Which implementation most directly addresses the cause?

  1. Expose a scoped retrieval function or MCP-compatible tool contract.
  2. Use Amazon Comprehend entity extraction followed by domain validation.
  3. Validate required attributes with Lambda before accepting documents for indexing.
  4. Use separate model-specific payload adapters behind a common application interface.

Explanation

Correct Answer

C:

Early validation avoids making unclassified or untraceable content searchable; that explains the reported failure: chunks with unknown owners enter a searchable index and cannot be attributed. Prompt instructions do not create missing ownership metadata in the source system; a symptom-only workaround would not restore the requirement to enforce schema rules at the ingestion boundary rather than in generation.

Incorrect Answers

A:

For work that needs to offer retrieval as a typed tool with explicit input schema, typed query parameters and a controlled handler let the application validate and authorize retrieval requests; the specific the reported failure and its causal repair instead requires enforce schema rules at the ingestion boundary rather than in generation in light of chunks with unknown owners enter a searchable index and cannot be attributed. Unstructured free-form tool strings are difficult to validate or restrict; this is insufficient for the reported failure and its causal repair, given the evidence that chunks with unknown owners enter a searchable index and cannot be attributed.

B:

The scope of this alternative is different: entity detection can populate searchable attributes, while a validation step controls accuracy and allowed values; it supports derive structured metadata independently of the generation prompt, while the reported failure and its causal repair needs enforce schema rules at the ingestion boundary rather than in generation after chunks with unknown owners enter a searchable index and cannot be attributed. Asking a generation model to guess filters per query is less reproducible than indexed metadata; for the reported failure and its causal repair, the unresolved requirement remains to enforce schema rules at the ingestion boundary rather than in generation, as shown when chunks with unknown owners enter a searchable index and cannot be attributed.

D:

A stable application contract can translate into the payload and headers expected by each runtime; this explains its relevance to adapt each model's request serialization at the integration boundary, not the the reported failure and its causal repair requirement to enforce schema rules at the ingestion boundary rather than in generation after chunks with unknown owners enter a searchable index and cannot be attributed. One arbitrary prompt JSON format is not universal across inference endpoints; choosing it for the reported failure and its causal repair would leave the underlying issue visible: chunks with unknown owners enter a searchable index and cannot be attributed.

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.

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