Question 570

A tool-calling API must avoid duplicate side effects during retries. The incident report says: A repeated request generates two identical customer refunds. Which specific design change best corrects the failure?

  1. Add idempotency checks and durable outcome records to tool integrations.
  2. Correlate invocation traces and structured tool logs with request IDs.
  3. Place durable work in Amazon SQS with an idempotent consumer.
  4. Build a Strands-based tool agent with external policy and execution limits.

Explanation

Correct Answer

A:

Duplicate-safe execution separates transport retries from unique business operations; that explains the reported failure: a repeated request generates two identical customer refunds. A network timeout does not prove the original mutation failed; a symptom-only workaround would not restore the requirement to associate requests with idempotency keys at state-changing handlers.

Incorrect Answers

B:

The scope of this alternative is different: event-level traces reveal which reasoning step formed a bad function argument and where validation failed; it supports find failed tool events across a complex runtime session, while the reported failure and its causal repair needs associate requests with idempotency keys at state-changing handlers after a repeated request generates two identical customer refunds. Aggregate model success percentages obscure the failing tool request; for the reported failure and its causal repair, the unresolved requirement remains to associate requests with idempotency keys at state-changing handlers, as shown when a repeated request generates two identical customer refunds.

C:

Queueing absorbs outages and at-least-once deliveries require duplicate-safe processing; this explains its relevance to buffer outbound jobs and handle redelivery explicitly, not the the reported failure and its causal repair requirement to associate requests with idempotency keys at state-changing handlers after a repeated request generates two identical customer refunds. Fire-and-forget HTTP calls can lose jobs during partner downtime; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a repeated request generates two identical customer refunds.

D:

For work that needs to use an agent framework with controlled action execution and observability, the framework coordinates tool calls, while independent handlers enforce identity and limits; the specific the reported failure and its causal repair instead requires associate requests with idempotency keys at state-changing handlers in light of a repeated request generates two identical customer refunds. The presence of agent reasoning traces does not automatically authorize actions; this is insufficient for the reported failure and its causal repair, given the evidence that a repeated request generates two identical customer refunds.

Question 571

A high benchmark score does not remove token-limit constraints. An architecture reviewer must still ensure the application can match context-window and output-token requirements to real documents. What recommendation is justified?

  1. Use an appropriate cross-Region inference profile and bounded application retries.
  2. Measure supported context and output limits for shortlisted FMs against representative report sizes.
  3. Benchmark models that support image input and the intended structured-response pattern.
  4. Use a versioned deprecation and rollback plan for model artifacts and endpoint clients.

Explanation

Correct Answer

B:

A model's input and output budgets determine whether the whole evidence set and desired summary fit; this is the behavior to validate in a release review concerned with match context-window and output-token requirements to real documents. A high benchmark score does not remove token-limit constraints; the proposed shortcut would therefore be an inadequate guarantee.

Incorrect Answers

A:

For work that needs to maintain service continuity across supported Bedrock capacity pools, a Bedrock inference profile routes supported calls across allowed destination Regions, helping smooth regional capacity pressure; the specific the release-control decision instead requires match context-window and output-token requirements to real documents in light of requests stop early or omit report sections when lengthy source bundles are supplied. Geographic or global profile selection must respect contractual processing boundaries; this is insufficient for the release-control decision, given the evidence that requests stop early or omit report sections when lengthy source bundles are supplied.

C:

Selection must evaluate actual modality support, response fidelity, latency, and cost on domain examples; this explains its relevance to choose an FM capable of accepting the required modalities and output schema, not the the release-control decision requirement to match context-window and output-token requirements to real documents after requests stop early or omit report sections when lengthy source bundles are supplied. Text-only performance rankings do not establish image understanding; choosing it for the release-control decision would leave the underlying issue visible: requests stop early or omit report sections when lengthy source bundles are supplied.

D:

The scope of this alternative is different: controlled retirement identifies dependent callers, preserves lineage, and gives clients a migration interval; it supports remove old deployment access without losing the approved audit record, while the release-control decision needs match context-window and output-token requirements to real documents after requests stop early or omit report sections when lengthy source bundles are supplied. Deleting a model before consumers migrate breaks inference without a recovery path; for the release-control decision, the unresolved requirement remains to match context-window and output-token requirements to real documents, as shown when requests stop early or omit report sections when lengthy source bundles are supplied.

Question 572

A new model version has uncertain production quality. The incident report says: A regression spreads to all customers immediately after rollout. Which specific design change best corrects the failure?

  1. Coordinate bounded specialist tasks with a stateful orchestration framework.
  2. Use a versioned enterprise GenAI gateway with shared policy enforcement.
  3. Federate workforce identities and use scoped IAM roles for backend execution.
  4. Canary-route a small cohort through the deployment pipeline and compare quality signals.

Explanation

Correct Answer

D:

A limited release contains risk and allows metrics to trigger rollback before broad exposure; that explains the reported failure: a regression spreads to all customers immediately after rollout. Replacing the model globally makes attribution and rollback harder; a symptom-only workaround would not restore the requirement to release incrementally with measurable rollback conditions.

Incorrect Answers

A:

For work that needs to use explicit orchestration for specialist agents and merge conditions, task delegation and aggregation make dependencies and timeout behavior testable; the specific the reported failure and its causal repair instead requires release incrementally with measurable rollback conditions in light of a regression spreads to all customers immediately after rollout. Sending one open-ended prompt cannot guarantee each specialist completed its role; this is insufficient for the reported failure and its causal repair, given the evidence that a regression spreads to all customers immediately after rollout.

B:

A gateway can standardize access, request tracking, and model routing across clients; this explains its relevance to centralize authentication, rate limiting, and telemetry at one AI service boundary, not the the reported failure and its causal repair requirement to release incrementally with measurable rollback conditions after a regression spreads to all customers immediately after rollout. Allowing every client to bypass the gateway makes policies inconsistent; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a regression spreads to all customers immediately after rollout.

C:

For work that needs to map enterprise user identity to bounded application and model permissions, federation authenticates users; IAM and application checks independently authorize model and data actions; the specific the reported failure and its causal repair instead requires release incrementally with measurable rollback conditions in light of a regression spreads to all customers immediately after rollout. A successful SSO login does not imply access to every document or FM; this is insufficient for the reported failure and its causal repair, given the evidence that a regression spreads to all customers immediately after rollout.

Question 573

A code-review note warns: A model response log alone does not establish who deployed an instruction change. The business requirement is to keep a reviewed prompt release process with change audit events. Which mechanism should replace the shortcut?

  1. Use Amazon Bedrock Prompt Management with versioned prompt templates.
  2. Gate prompt version promotion and retain associated CloudTrail control-plane records.
  3. Use schema validators and prompt-version logging in the test pipeline.
  4. Compose modular prompt steps with explicit inputs, outputs, and failure handlers.

Explanation

Correct Answer

B:

Approval records and API audit trails complement template versioning for accountability; this is the behavior to validate in a release review concerned with keep a reviewed prompt release process with change audit events. A model response log alone does not establish who deployed an instruction change; the proposed shortcut would therefore be an inadequate guarantee.

Incorrect Answers

A:

Versioning creates a reviewable artifact with variables, allowing controlled rollout and rollback; this explains its relevance to centralize parameterized prompts and promote immutable versions, not the the release-control decision requirement to keep a reviewed prompt release process with change audit events after investigators cannot connect unsafe output to a specific approved prompt release. Copying prompt strings into application code hides drift between clients; choosing it for the release-control decision would leave the underlying issue visible: investigators cannot connect unsafe output to a specific approved prompt release.

C:

Output validation localizes whether a template revision changed field structure; this explains its relevance to add automated contract checks and version-aware prompt diagnostics, not the the release-control decision requirement to keep a reviewed prompt release process with change audit events after investigators cannot connect unsafe output to a specific approved prompt release. Only measuring model latency cannot explain parser failures; choosing it for the release-control decision would leave the underlying issue visible: investigators cannot connect unsafe output to a specific approved prompt release.

D:

Component reuse reduces inconsistent transformation logic and supports per-step tracing; this explains its relevance to publish reusable prompt-flow components with monitored I/O contracts, not the the release-control decision requirement to keep a reviewed prompt release process with change audit events after investigators cannot connect unsafe output to a specific approved prompt release. Duplicating prompt chains in every app makes fixes and safety checks uneven; choosing it for the release-control decision would leave the underlying issue visible: investigators cannot connect unsafe output to a specific approved prompt release.

Question 574

A large retrieval prompt causes context-length errors. A successful solution needs to budget system, retrieved, conversation, and output tokens before the call. Which option is the most suitable design?

  1. Use context-window accounting with retrieval pruning and safe truncation.
  2. Add step-level logs and X-Ray spans around prompt and tool transitions.
  3. Evaluate retrieval precision at k against labeled source passages.
  4. Diff prompt templates and test quality regressions on a fixed dataset.

Explanation

Correct Answer

A:

Model limits cover combined input context and expected output, so evidence needs explicit allocation; it directly supports the architectural objective to budget system, retrieved, conversation, and output tokens before the call. Blindly raising max output tokens can worsen a context-budget failure; that boundary is important when selecting the implementation.

Incorrect Answers

B:

The scope of this alternative is different: tracing the boundaries reveals where context or formatting changes unexpectedly; it supports trace intermediate prompts and transformations with secure correlation IDs, while the architecture selection needs budget system, retrieved, conversation, and output tokens before the call after the runtime rejects a request after multiple long source passages are appended. A final answer log alone cannot reconstruct lost intermediate fields; for the architecture selection, the unresolved requirement remains to budget system, retrieved, conversation, and output tokens before the call, as shown when the runtime rejects a request after multiple long source passages are appended.

C:

For work that needs to measure how many retrieved hits are relevant among top-k results, precision quantifies ranking noise that wastes context and can distract the model; the specific the architecture selection instead requires budget system, retrieved, conversation, and output tokens before the call in light of the runtime rejects a request after multiple long source passages are appended. Final-answer accuracy alone does not expose redundant retrieval; this is insufficient for the architecture selection, given the evidence that the runtime rejects a request after multiple long source passages are appended.

D:

Holding test cases constant isolates instruction changes from input distribution shifts; this explains its relevance to compare exact prompt versions using controlled evaluation inputs, not the the architecture selection requirement to budget system, retrieved, conversation, and output tokens before the call after the runtime rejects a request after multiple long source passages are appended. Changing model and prompt simultaneously makes attribution harder; choosing it for the architecture selection would leave the underlying issue visible: the runtime rejects a request after multiple long source passages are appended.

Question 575

A cheaper listed model produces enough retries to raise total cost per answer. Investigators also establish that a GenAI platform compares candidates with very different token efficiency. Which implementation most directly addresses the cause?

  1. Tune endpoint autoscaling against throughput, queue depth, and token load.
  2. Enforce queue-based concurrency limits and bounded admission control.
  3. Use token counting or model-aware estimation at the inference gateway.
  4. Benchmark compact models against task-specific accuracy and latency criteria.
  5. Benchmark model price-performance on the actual task mix.
  6. Use version-aware cache invalidation linked to freshness requirements.

Explanation

Correct Answer

E:

A model using fewer retries and shorter outputs can be cheaper overall despite a higher unit rate; that explains the reported failure: a cheaper listed model produces enough retries to raise total cost per answer. Raw input-token price misses completion size, errors, and escalation cost; a symptom-only workaround would not restore the requirement to select by end-to-end cost per successful task, not price per token alone.

Incorrect Answers

A:

Token processing and memory requirements can predict resource pressure better than request count alone; this explains its relevance to scale workers using token-related demand signals and minimum capacity needs, not the the reported failure and its causal repair requirement to select by end-to-end cost per successful task, not price per token alone after a cheaper listed model produces enough retries to raise total cost per answer. CPU-only autoscaling can miss decoder saturation and KV-cache constraints; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a cheaper listed model produces enough retries to raise total cost per answer.

B:

Concurrency gates prevent sudden bursts from overwhelming model quotas; that is valuable when the goal is to control concurrency and smooth demand before it reaches the FM, but the reported failure and its causal repair instead depends on the ability to select by end-to-end cost per successful task, not price per token alone. Unrestricted retries increase load rather than creating capacity; it does not account for the condition in the reported failure and its causal repair: a cheaper listed model produces enough retries to raise total cost per answer.

C:

For work that needs to estimate token volume and enforce per-request spend ceilings, preflight estimates let the service allocate input, retrieval, and completion budgets; the specific the reported failure and its causal repair instead requires select by end-to-end cost per successful task, not price per token alone in light of a cheaper listed model produces enough retries to raise total cost per answer. HTTP byte count is not a dependable substitute for model token accounting; this is insufficient for the reported failure and its causal repair, given the evidence that a cheaper listed model produces enough retries to raise total cost per answer.

D:

A focused task may not require frontier-level capability if the acceptance set is narrow; that is valuable when the goal is to select a smaller validated model rather than the largest available, but the reported failure and its causal repair instead depends on the ability to select by end-to-end cost per successful task, not price per token alone. Generic leaderboard rank does not guarantee superior price-performance on this dataset; it does not account for the condition in the reported failure and its causal repair: a cheaper listed model produces enough retries to raise total cost per answer.

F:

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 reported failure and its causal repair instead requires select by end-to-end cost per successful task, not price per token alone in light of a cheaper listed model produces enough retries to raise total cost per answer. A very long fixed TTL is unsuitable for volatile inventory decisions; this is insufficient for the reported failure and its causal repair, given the evidence that a cheaper listed model produces enough retries to raise total cost per answer.

Question 576

A model-powered application must use minimum necessary personal information. The incident report says: A classification prompt includes full addresses despite needing only postal regions. Which specific design change best corrects the failure?

  1. Track retrieval provenance from the source object to the final citation.
  2. Implement identity-policy and network controls alongside document-level retrieval checks.
  3. Apply schema-based minimization before retrieval and inference.
  4. Tokenize person-level fields while keeping the re-identification map in a protected store.

Explanation

Correct Answer

C:

Sending only task-required fields reduces privacy exposure and token usage; that explains the reported failure: a classification prompt includes full addresses despite needing only postal regions. Encrypting all fields in transit does not justify sending unnecessary personal data; a symptom-only workaround would not restore the requirement to minimize prompt fields based on business need and document policy.

Incorrect Answers

A:

The scope of this alternative is different: stable source IDs and spans allow reviewers to verify claimed evidence; it supports carry document identifiers and chunk locations into the generated response, while the reported failure and its causal repair needs minimize prompt fields based on business need and document policy after a classification prompt includes full addresses despite needing only postal regions. A generated footnote without a backing retrieval record can be fabricated; for the reported failure and its causal repair, 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.

B:

The three layers serve different purposes: permitted API actions, permitted network paths, and permitted content; that is valuable when the goal is to separate IAM authorizations, endpoint policy, and data filtering responsibilities, but the reported failure and its causal repair instead depends on the ability to minimize prompt fields based on business need and document policy. Granting VPC endpoint access does not confer document-level authorization; it does not account for the condition in the reported failure and its causal repair: a classification prompt includes full addresses despite needing only postal regions.

D:

Tokenization preserves linkage for authorized workflows without exposing original identifiers to the model; this explains its relevance to substitute pseudonymous identifiers before prompt assembly, not the the reported failure and its causal repair requirement to 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; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a classification prompt includes full addresses despite needing only postal regions.

Question 577

A search platform requires approximate nearest-neighbor retrieval at large scale. A release proposal aims to index embeddings and benchmark recall and query time. Which architecture decision fits the constraint?

  1. Tune OpenSearch shard and index layout based on workload benchmarks.
  2. Publish an authenticated, versioned vector-search API contract.
  3. Configure a supported ANN vector index and tune search parameters.
  4. Benchmark supported embedding models on a multilingual query-document relevance set.

Explanation

Correct Answer

C:

Nearest-neighbor indexing avoids exhaustive comparison for every request, with measurable speed-versus-recall tradeoffs; it directly supports the architectural objective to index embeddings and benchmark recall and query time. Storing vectors without a search index can cause costly full scans; that boundary is important when selecting the implementation.

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 architecture selection instead requires index embeddings and benchmark recall and query time in light of query latency grows linearly with a rapidly expanding document corpus. Adding shards without testing can increase coordination overhead instead of helping; this is insufficient for the architecture selection, given the evidence that query latency grows linearly with a rapidly expanding document corpus.

B:

For work that needs to standardize transport and authorization independently of model internals, a stable interface centralizes filters, tracing, and error handling while different clients integrate; the specific the architecture selection instead requires index embeddings and benchmark recall and query time in light of query latency grows linearly with a rapidly expanding document corpus. Embedding DB credentials in each agent increases both coupling and privilege spread; this is insufficient for the architecture selection, given the evidence that query latency grows linearly with a rapidly expanding document corpus.

D:

For work that needs to select embeddings based on language fit and retrieval measurements, recall and ranking quality on target languages matter more than generic generation benchmarks; the specific the architecture selection instead requires index embeddings and benchmark recall and query time in light of query latency grows linearly with a rapidly expanding document corpus. An English-only evaluation cannot establish cross-language semantic matching; this is insufficient for the architecture selection, given the evidence that query latency grows linearly with a rapidly expanding document corpus.

Question 578

A Bedrock tool needs to read S3 documents for an authenticated user. A release proposal aims to avoid granting broad bucket permissions to the agent runtime. Which architecture decision fits the constraint?

  1. Issue a task-scoped role with minimal S3 object permissions and caller-aware filters.
  2. Federate workforce identities and use scoped IAM roles for backend execution.
  3. Partition the RAG architecture by residency domain and enforce region-aware routing.
  4. Correlate invocation traces and structured tool logs with request IDs.

Explanation

Correct Answer

A:

The tool runtime's data-plane scope must match the action being executed; it directly supports the architectural objective to avoid granting broad bucket permissions to the agent runtime. Allowing s3:* on the bucket makes prompt injection more damaging; that boundary is important when selecting the implementation.

Incorrect Answers

B:

For work that needs to map enterprise user identity to bounded application and model permissions, federation authenticates users; IAM and application checks independently authorize model and data actions; the specific the architecture selection instead requires avoid granting broad bucket permissions to the agent runtime in light of a retrieval tool can delete the same objects it was meant only to read. A successful SSO login does not imply access to every document or FM; this is insufficient for the architecture selection, given the evidence that a retrieval tool can delete the same objects it was meant only to read.

C:

The scope of this alternative is different: data location and inference destination both matter when governing cross-border processing; it supports choose per-jurisdiction storage and processing paths before inference, while the architecture selection needs avoid granting broad bucket permissions to the agent runtime after a retrieval tool can delete the same objects it was meant only to read. Replicating all vector indexes into one region may violate source residency rules; for the architecture selection, the unresolved requirement remains to avoid granting broad bucket permissions to the agent runtime, as shown when a retrieval tool can delete the same objects it was meant only to read.

D:

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 avoid granting broad bucket permissions to the agent runtime. Aggregate model success percentages obscure the failing tool request; it does not account for the condition in the architecture selection: a retrieval tool can delete the same objects it was meant only to read.

Question 579

An assistant retrieves chapters from long policy manuals. A compliance assistant must answer policy questions as of a requested effective date. The deployment has these independent requirements: (1) keep chunks small enough to rank while preserving section relationships; (2) filter retrieval on version and validity metadata. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.

  1. Filter by trusted attributes before vector or hybrid scoring.
  2. Use hierarchical or structure-aware chunking with parent-child context.
  3. Expose a scoped retrieval function or MCP-compatible tool contract.
  4. Index effective-from and effective-to attributes and apply time-based retrieval filters.
  5. Use Amazon Aurora PostgreSQL with the pgvector extension where supported.

Explanation

Correct Answers

B:

Section-aware segmentation keeps retrieved evidence coherent and limits unrelated text in prompts; this fulfills keep chunks small enough to rank while preserving section relationships within a combined design that must also filter retrieval on version and validity metadata. Giant whole-document chunks dilute similarity, while tiny isolated fragments lose meaning; the other required action(s) must additionally filter retrieval on version and validity metadata.

D:

Temporal metadata separates current guidance from superseded but textually similar versions; this fulfills filter retrieval on version and validity metadata within a combined design that must also keep chunks small enough to rank while preserving section relationships. Similarity ranking alone may favor obsolete documents with repeated phrasing; the other required action(s) must additionally keep chunks small enough to rank while preserving section relationships.

Incorrect Answers

A:

Candidate restriction enforces contextual scope while ranking orders relevant allowed chunks; its proper focus is to combine metadata prefilters with semantic ranking instead of relying on prompts, rather than the combined requirements to keep chunks small enough to rank while preserving section relationships and filter retrieval on version and validity metadata. The FM cannot reliably undo a retrieval query that included unauthorized content; in this combined design needing keep chunks small enough to rank while preserving section relationships and filter retrieval on version and validity metadata, it does not directly meet the specified requirement to filter retrieval on version and validity metadata.

C:

Typed query parameters and a controlled handler let the application validate and authorize retrieval requests; its proper focus is to offer retrieval as a typed tool with explicit input schema, rather than the combined requirements to keep chunks small enough to rank while preserving section relationships and filter retrieval on version and validity metadata. Unstructured free-form tool strings are difficult to validate or restrict; in this combined design needing keep chunks small enough to rank while preserving section relationships and filter retrieval on version and validity metadata, it does not directly meet the specified requirement to filter retrieval on version and validity metadata.

E:

Vector columns and similarity operators allow embeddings to coexist with relational filtering and transactions; its proper focus is to store embeddings near relational metadata with SQL-compatible controls, rather than the combined requirements to keep chunks small enough to rank while preserving section relationships and filter retrieval on version and validity metadata. Ordinary relational equality indexes alone are not approximate-nearest-neighbor search; in this combined design needing keep chunks small enough to rank while preserving section relationships and filter retrieval on version and validity metadata, it does not directly meet the specified requirement to filter retrieval on version and validity metadata.

Question 580

A new model is proposed to replace a working deployment. The architecture must limit the initial audience and monitor quality before global rollout. Which implementation best meets that requirement?

  1. Use a two-stage RAG evaluation that scores retrieved context and generated claims.
  2. Combine vector-index health metrics with source-sync freshness audits.
  3. Build versioned evaluation dashboards with agreed KPI definitions.
  4. Use canary or A/B routing with explicit rollback quality gates.

Explanation

Correct Answer

D:

A small controlled exposure reveals production behavior while constraining a regression's impact; it directly supports the architectural objective to limit the initial audience and monitor quality before global rollout. A full cutover has no contemporaneous control cohort; that boundary is important when selecting the implementation.

Incorrect Answers

A:

For work that needs to evaluate retrieval quality separately from answer groundedness, separating retrieval and generation identifies where evidence was lost or misused; the specific the architecture selection instead requires limit the initial audience and monitor quality before global rollout in light of customer complaints spike immediately after an irreversible global model switch. A low answer score alone does not reveal whether retrieval or generation failed; this is insufficient for the architecture selection, given the evidence that customer complaints spike immediately after an irreversible global model switch.

B:

Operational health includes current content and quality, not just cluster availability; that is valuable when the goal is to monitor index freshness, recall checks, and retrieval latency, but the architecture selection instead depends on the ability to limit the initial audience and monitor quality before global rollout. Green storage health does not mean embeddings match updated documents; it does not account for the condition in the architecture selection: customer complaints spike immediately after an irreversible global model switch.

C:

The scope of this alternative is different: a common report links model performance to actual workflow outcomes and makes trade-offs visible; it supports report quality, latency, safety, cost, and business outcome in one comparison, while the architecture selection needs limit the initial audience and monitor quality before global rollout after customer complaints spike immediately after an irreversible global model switch. A ranking chart with only perplexity cannot establish business benefit; for the architecture selection, the unresolved requirement remains to limit the initial audience and monitor quality before global rollout, as shown when customer complaints spike immediately after an irreversible global model switch.

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