Question 560
Routine classification queries are handled by a costly general-purpose FM. The architecture must compare smaller models against acceptance metrics before routing. Which implementation best meets that requirement?
- Benchmark model price-performance on the actual task mix.
- Use a validated small-model tier for straightforward requests.
- Create end-to-end CloudWatch dashboards with request and business KPIs.
- Evaluate provisioned inference capacity with utilization and cost modeling.
Explanation
Correct Answer
B:Capability-based selection lowers average cost when simpler models meet quality thresholds; it directly supports the architectural objective to compare smaller models against acceptance metrics before routing. The cheapest model is not acceptable for tasks it fails in evaluation; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to select by end-to-end cost per successful task, not price per token alone, a model using fewer retries and shorter outputs can be cheaper overall despite a higher unit rate; the specific the architecture selection instead requires compare smaller models against acceptance metrics before routing in light of simple ticket classifications cost as much as complex reasoning tasks. Raw input-token price misses completion size, errors, and escalation cost; this is insufficient for the architecture selection, given the evidence that simple ticket classifications cost as much as complex reasoning tasks.
C:The scope of this alternative is different: latency, error rate, completion quality, and user outcomes together describe system health; it supports correlate operational metrics with task completion and conversion, while the architecture selection needs compare smaller models against acceptance metrics before routing after simple ticket classifications cost as much as complex reasoning tasks. Infrastructure CPU graphs alone do not show customer value; for the architecture selection, the unresolved requirement remains to compare smaller models against acceptance metrics before routing, as shown when simple ticket classifications cost as much as complex reasoning tasks.
D:For work that needs to compare reserved model throughput against observed sustained demand, capacity commitment can stabilize throughput for a sufficiently steady supported workload; the specific the architecture selection instead requires compare smaller models against acceptance metrics before routing in light of simple ticket classifications cost as much as complex reasoning tasks. A commitment is wasteful if traffic is highly sporadic and low volume; this is insufficient for the architecture selection, given the evidence that simple ticket classifications cost as much as complex reasoning tasks.
Question 561
Production evidence: Query speed improves but rare policy clauses stop appearing in results. The original design context was: A vector-store migration must preserve relevance within latency limits. Which change prevents recurrence?
- Use a multi-objective comparison on a fixed task distribution.
- Use paired retrieval tests with relevance labels and p95 query timing.
- Build versioned evaluation dashboards with agreed KPI definitions.
- Ensure both sides use compatible embedding spaces and reindex the corpus.
Explanation
Correct Answer
B:Search tuning is a quality-performance tradeoff, not a single latency metric; that explains the reported failure: query speed improves but rare policy clauses stop appearing in results. A faster index can be worse if approximate search loses key passages; a symptom-only workaround would not restore the requirement to benchmark answer evidence quality and query tail latency together.
Incorrect Answers
A:For work that needs to evaluate quality, p95 latency, and cost jointly against acceptance thresholds, a technically strong model still fails if it misses a mandatory response-time or safety target; the specific the reported failure and its causal repair instead requires benchmark answer evidence quality and query tail latency together in light of query speed improves but rare policy clauses stop appearing in results. Ranking solely by benchmark accuracy hides operational disqualification; this is insufficient for the reported failure and its causal repair, given the evidence that query speed improves but rare policy clauses stop appearing in results.
C:For work that needs to report quality, latency, safety, cost, and business outcome in one comparison, a common report links model performance to actual workflow outcomes and makes trade-offs visible; the specific the reported failure and its causal repair instead requires benchmark answer evidence quality and query tail latency together in light of query speed improves but rare policy clauses stop appearing in results. A ranking chart with only perplexity cannot establish business benefit; this is insufficient for the reported failure and its causal repair, given the evidence that query speed improves but rare policy clauses stop appearing in results.
D:For work that needs to verify query and document vector compatibility and rebuild as needed, similarity comparisons assume compatible vector representations; mixing model spaces invalidates ranking; the specific the reported failure and its causal repair instead requires benchmark answer evidence quality and query tail latency together in light of query speed improves but rare policy clauses stop appearing in results. Increasing nearest-neighbor candidate count cannot align incompatible embeddings; this is insufficient for the reported failure and its causal repair, given the evidence that query speed improves but rare policy clauses stop appearing in results.
Question 562
A model leaderboard says little about disaster recovery, governance, and operations. An architecture reviewer must still ensure the application can map architectural risks to an explicit, repeatable review checklist. What recommendation is justified?
- Use the AWS Well-Architected Tool with a GenAI-focused workload review.
- Instrument the prototype to record token usage, p95 latency, task success, and estimated spend.
- Define shared infrastructure modules and apply the AWS Well-Architected Generative AI Lens.
- Use schema-oriented instructions with application-side JSON validation.
Explanation
Correct Answer
A:A structured workload review captures risks and improvement actions across relevant pillars before production approval; this is the behavior to validate in a release review concerned with map architectural risks to an explicit, repeatable review checklist. A model leaderboard says little about disaster recovery, governance, and operations; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
B:For work that needs to compare quality against per-request tokens, latency, and escalation frequency, a credible proof of concept exposes both technical quality and economics; aggregate demo accuracy alone hides token-heavy failures; the specific the release-control decision instead requires map architectural risks to an explicit, repeatable review checklist in light of architecture signoffs depend on reviewer memory and omit predictable failure modes. A single average response time masks tail latency that affects interactive workloads; this is insufficient for the release-control decision, given the evidence that architecture signoffs depend on reviewer memory and omit predictable failure modes.
C:The scope of this alternative is different: standard deployment patterns encode tested identity, observability, reliability, and cost choices across teams; it supports provide a reusable reference architecture with repeatable security and operations checks, while the release-control decision needs map architectural risks to an explicit, repeatable review checklist after architecture signoffs depend on reviewer memory and omit predictable failure modes. Copying application source alone does not standardize IAM boundaries or operational controls; for the release-control decision, the unresolved requirement remains to map architectural risks to an explicit, repeatable review checklist, as shown when architecture signoffs depend on reviewer memory and omit predictable failure modes.
D:An output contract improves consistency, while code validation catches nonconforming responses before side effects; that is valuable when the goal is to define explicit output structure and validate generated data, but the release-control decision instead depends on the ability to map architectural risks to an explicit, repeatable review checklist. Prompt examples alone do not make model output a trusted typed object; it does not account for the condition in the release-control decision: architecture signoffs depend on reviewer memory and omit predictable failure modes.
Question 563
A security auditor asks for data-plane and control-plane boundaries. The engineering team is required to separate IAM authorizations, endpoint policy, and data filtering responsibilities. What should be built first?
- Publish violation counts to CloudWatch with alarms and remediation workflows.
- Apply schema-based minimization before retrieval and inference.
- Configure explicit retention policies and S3 Lifecycle rules for eligible objects.
- Implement identity-policy and network controls alongside document-level retrieval checks.
Explanation
Correct Answer
D:The three layers serve different purposes: permitted API actions, permitted network paths, and permitted content; it directly supports the architectural objective to separate IAM authorizations, endpoint policy, and data filtering responsibilities. Granting VPC endpoint access does not confer document-level authorization; that boundary is important when selecting the implementation.
Incorrect Answers
A:Rate-based monitoring identifies sustained drift and can trigger containment of affected releases; this explains its relevance to detect policy-breach trends and route alerts to response owners, not the the architecture selection requirement to separate IAM authorizations, endpoint policy, and data filtering responsibilities after a network-isolated service still leaks content because its search query ignores user identity. Only measuring availability misses safety degradation in otherwise successful calls; choosing it for the architecture selection would leave the underlying issue visible: a network-isolated service still leaks content because its search query ignores user identity.
B:For work that needs to minimize prompt fields based on business need and document policy, sending only task-required fields reduces privacy exposure and token usage; the specific the architecture selection instead requires separate IAM authorizations, endpoint policy, and data filtering responsibilities in light of a network-isolated service still leaks content because its search query ignores user identity. Encrypting all fields in transit does not justify sending unnecessary personal data; this is insufficient for the architecture selection, given the evidence that a network-isolated service still leaks content because its search query ignores user identity.
C:Storage lifecycle controls remove or transition stored data in accordance with policy; that is valuable when the goal is to apply lifecycle and retention controls to stored prompts and documents, but the architecture selection instead depends on the ability to separate IAM authorizations, endpoint policy, and data filtering responsibilities. Lifecycle expiry is distinct from immediate vector-index source deletion; it does not account for the condition in the architecture selection: a network-isolated service still leaks content because its search query ignores user identity.
Question 564
A service invokes Bedrock sporadically and should avoid paying for dedicated capacity. The architecture must use on-demand inference from event-driven compute. Which implementation best meets that requirement?
- Evaluate Amazon Bedrock Provisioned Throughput for the selected supported model.
- Use SageMaker AI real-time inference with a compatible custom model container.
- Evaluate provisioned inference capacity with utilization and cost modeling.
- Build a common service contract with adapters for Bedrock and SageMaker AI endpoints.
- Profile GPU memory and model loading, then allocate suitable inference instances.
- Invoke the selected Bedrock model through a Lambda-based request handler.
Explanation
Correct Answer
F:A short-lived function can call managed inference without hosting model weights; it directly supports the architectural objective to use on-demand inference from event-driven compute. Provisioned capacity may be excessive for infrequent low-volume use; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: provisioned capacity is designed for workloads needing committed throughput rather than purely bursty on-demand access; it supports reserve supported inference capacity for steady traffic, while the architecture selection needs use on-demand inference from event-driven compute after a pilot pays for reserved throughput while making only a few calls each hour. Cross-Region inference profiles do not become provisioned capacity reservations; for the architecture selection, the unresolved requirement remains to use on-demand inference from event-driven compute, as shown when a pilot pays for reserved throughput while making only a few calls each hour.
B:Managed hosting of a custom container provides deployment control at the cost of endpoint operations; that is valuable when the goal is to deploy and operate a controlled custom inference endpoint, but the architecture selection instead depends on the ability to use on-demand inference from event-driven compute. A Bedrock model ID does not automatically expose arbitrary custom containers; it does not account for the condition in the architecture selection: a pilot pays for reserved throughput while making only a few calls each hour.
C:The scope of this alternative is different: capacity commitment can stabilize throughput for a sufficiently steady supported workload; it supports compare reserved model throughput against observed sustained demand, while the architecture selection needs use on-demand inference from event-driven compute after a pilot pays for reserved throughput while making only a few calls each hour. A commitment is wasteful if traffic is highly sporadic and low volume; for the architecture selection, the unresolved requirement remains to use on-demand inference from event-driven compute, as shown when a pilot pays for reserved throughput while making only a few calls each hour.
D:For work that needs to separate inference abstraction from provider-specific deployment details, an application-level interface can translate payloads and propagate tracing while maintaining backend independence; the specific the architecture selection instead requires use on-demand inference from event-driven compute in light of a pilot pays for reserved throughput while making only a few calls each hour. Trying to send identical provider-specific headers to every endpoint will break interoperability; this is insufficient for the architecture selection, given the evidence that a pilot pays for reserved throughput while making only a few calls each hour.
E:LLM serving must account for model parameters, activation and cache memory, and concurrent token generation; this explains its relevance to size the runtime for weights, KV cache, and maximum concurrency, not the the architecture selection requirement to use on-demand inference from event-driven compute after a pilot pays for reserved throughput while making only a few calls each hour. CPU autoscaling alone does not fix GPU memory exhaustion; choosing it for the architecture selection would leave the underlying issue visible: a pilot pays for reserved throughput while making only a few calls each hour.
Question 565
Granting VPC endpoint access does not confer document-level authorization. An architecture reviewer must still ensure the application can separate IAM authorizations, endpoint policy, and data filtering responsibilities. What recommendation is justified?
- Apply schema-based minimization before retrieval and inference.
- Serve de-identified retrieval data by default with a controlled privileged lookup path.
- Publish violation counts to CloudWatch with alarms and remediation workflows.
- Implement identity-policy and network controls alongside document-level retrieval checks.
Explanation
Correct Answer
D:The three layers serve different purposes: permitted API actions, permitted network paths, and permitted content; this is the behavior to validate in a release review concerned with separate IAM authorizations, endpoint policy, and data filtering responsibilities. Granting VPC endpoint access does not confer document-level authorization; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:For work that needs to minimize prompt fields based on business need and document policy, sending only task-required fields reduces privacy exposure and token usage; the specific the release-control decision instead requires separate IAM authorizations, endpoint policy, and data filtering responsibilities in light of a network-isolated service still leaks content because its search query ignores user identity. Encrypting all fields in transit does not justify sending unnecessary personal data; this is insufficient for the release-control decision, given the evidence that a network-isolated service still leaks content because its search query ignores user identity.
B:The scope of this alternative is different: separate paths prevent broad FM context access to raw identifiers while preserving legitimate workflows; it supports maintain separate masked views and role-gated source access, while the release-control decision needs separate IAM authorizations, endpoint policy, and data filtering responsibilities after a network-isolated service still leaks content because its search query ignores user identity. A model prompt cannot safely decide who may de-anonymize records; for the release-control decision, the unresolved requirement remains to separate IAM authorizations, endpoint policy, and data filtering responsibilities, as shown when a network-isolated service still leaks content because its search query ignores user identity.
C:Rate-based monitoring identifies sustained drift and can trigger containment of affected releases; this explains its relevance to detect policy-breach trends and route alerts to response owners, not the the release-control decision requirement to separate IAM authorizations, endpoint policy, and data filtering responsibilities after a network-isolated service still leaks content because its search query ignores user identity. Only measuring availability misses safety degradation in otherwise successful calls; choosing it for the release-control decision would leave the underlying issue visible: a network-isolated service still leaks content because its search query ignores user identity.
Question 566
An assistant retrieves chapters from long policy manuals. A compliance team needs to know who changed production prompt instructions. A claims assistant must understand images in scanned PDFs. The deployment has these independent requirements: (1) keep chunks small enough to rank while preserving section relationships; (2) keep a reviewed prompt release process with change audit events; (3) extract usable text and relevant visual context before retrieval. Which THREE implementation actions jointly cover the stated requirements? Choose THREE.
- Combine OCR or document extraction with a multimodal-aware preprocessing pipeline.
- Run deterministic normalization with Lambda and store original-source references.
- Gate prompt version promotion and retain associated CloudTrail control-plane records.
- Orchestrate query routing and evidence merging across the relevant knowledge stores.
- Use Amazon Bedrock Prompt Management with versioned prompt templates.
- Use hierarchical or structure-aware chunking with parent-child context.
Explanation
Correct Answers
A:Extraction makes printed content searchable, while image-aware handling preserves details ordinary text extraction misses; this fulfills extract usable text and relevant visual context before retrieval within a combined design that must also keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events. Treating a scanned page as plain UTF-8 text loses its visual evidence; the other required action(s) must additionally keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events.
C:Approval records and API audit trails complement template versioning for accountability; this fulfills keep a reviewed prompt release process with change audit events within a combined design that must also keep chunks small enough to rank while preserving section relationships and extract usable text and relevant visual context before retrieval. A model response log alone does not establish who deployed an instruction change; the other required action(s) must additionally keep chunks small enough to rank while preserving section relationships and extract usable text and relevant visual context before retrieval.
F: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 keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval. Giant whole-document chunks dilute similarity, while tiny isolated fragments lose meaning; the other required action(s) must additionally keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval.
Incorrect Answers
B:Stable normalization reduces accidental embedding variation while preserving provenance for audit; its proper focus is to normalize source text without losing cited meaning before indexing, rather than the combined requirements to keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval. Generative rewriting can alter a legal date or obligation if used without verification; in this combined design needing keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval, it does not directly meet the specified requirement to extract usable text and relevant visual context before retrieval.
D:A structured retrieval plan collects the distinct evidence sets and preserves where each fact originated; its proper focus is to plan multiple retrieval calls then synthesize with source provenance, rather than the combined requirements to keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval. Searching only the most obvious collection can miss an essential exception; in this combined design needing keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval, it does not directly meet the specified requirement to keep chunks small enough to rank while preserving section relationships.
E:Versioning creates a reviewable artifact with variables, allowing controlled rollout and rollback; its proper focus is to centralize parameterized prompts and promote immutable versions, rather than the combined requirements to keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval. Copying prompt strings into application code hides drift between clients; in this combined design needing keep chunks small enough to rank while preserving section relationships and keep a reviewed prompt release process with change audit events and extract usable text and relevant visual context before retrieval, it does not directly meet the specified requirement to keep a reviewed prompt release process with change audit events.
Question 567
A summary misses the end of long documents despite no API error. The architecture must inspect truncation and chunk-coverage signals in the input pipeline. Which implementation best meets that requirement?
- Adjust structure-aware chunking and rerank evidence for completeness.
- Diff prompt templates and test quality regressions on a fixed dataset.
- Use segment-aware processing and track full-document coverage.
- Check sync history, source versions, and vector index update status.
- Use hierarchical or structure-aware chunking with parent-child context.
Explanation
Correct Answer
C:Silent truncation can drop relevant late sections even when inference technically succeeds; it directly supports the architectural objective to inspect truncation and chunk-coverage signals in the input pipeline. Increasing sampling randomness cannot restore missing source content; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to inspect chunk boundaries, overlap, and ranking of adjacent sections, chunk fragmentation can separate rules from exceptions even if a hit seems relevant; the specific the architecture selection instead requires inspect truncation and chunk-coverage signals in the input pipeline in light of only early chapters are cited when the request concerns an appendix. A longer final response cannot recreate omitted evidence; this is insufficient for the architecture selection, given the evidence that only early chapters are cited when the request concerns an appendix.
B:For work that needs to compare exact prompt versions using controlled evaluation inputs, holding test cases constant isolates instruction changes from input distribution shifts; the specific the architecture selection instead requires inspect truncation and chunk-coverage signals in the input pipeline in light of only early chapters are cited when the request concerns an appendix. Changing model and prompt simultaneously makes attribution harder; this is insufficient for the architecture selection, given the evidence that only early chapters are cited when the request concerns an appendix.
D:Stale embeddings can continue pointing to older text even if the source repository is current; that is valuable when the goal is to inspect ingestion freshness and whether changed chunks were re-embedded, but the architecture selection instead depends on the ability to inspect truncation and chunk-coverage signals in the input pipeline. Rephrasing the user prompt cannot fix a missing index update; it does not account for the condition in the architecture selection: only early chapters are cited when the request concerns an appendix.
E:The scope of this alternative is different: section-aware segmentation keeps retrieved evidence coherent and limits unrelated text in prompts; it supports keep chunks small enough to rank while preserving section relationships, while the architecture selection needs inspect truncation and chunk-coverage signals in the input pipeline after only early chapters are cited when the request concerns an appendix. Giant whole-document chunks dilute similarity, while tiny isolated fragments lose meaning; for the architecture selection, the unresolved requirement remains to inspect truncation and chunk-coverage signals in the input pipeline, as shown when only early chapters are cited when the request concerns an appendix.
Question 568
A generated answer may mix retrieved facts with speculation. A successful solution needs to compare claims against the retrieved context and abstain when unsupported. Which option is the most suitable design?
- Enforce output moderation with Bedrock Guardrails and an application release gate.
- Run a controlled Bedrock model evaluation with task-specific metrics.
- Separate retrieved content from trusted instructions and deny tool authority to source text.
- Run server-side output scanning and blocking for defined secret formats.
- Apply groundedness evaluation with an evidence-threshold fallback.
Explanation
Correct Answer
E:A groundedness check assesses whether context supports the proposed claim, allowing refusal or review; it directly supports the architectural objective to compare claims against the retrieved context and abstain when unsupported. A high semantic similarity score alone does not establish entailment of each statement; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: response-side checks can intercept material produced despite safe-looking user input; it supports screen the response after generation before delivering it, while the architecture selection needs 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; for the architecture selection, 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.
B:Matched evaluation sets support meaningful quality and operational comparisons; that is valuable when the goal is to compare models on the same representative inputs and cost/latency measurements, but the architecture selection instead depends on the ability to compare claims against the retrieved context and abstain when unsupported. Comparing unrelated examples confounds model differences with question difficulty; it does not account for the condition in the architecture selection: the assistant adds a made-up warranty exception absent from retrieved policies.
C:Trust boundaries prevent source passages from redefining policies or initiating privileged calls; this explains its relevance to treat retrieved document text as untrusted evidence, not executable authority, not the the architecture selection 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. RAG improves facts but does not make arbitrary retrieved text safe instructions; choosing it for the architecture selection would leave the underlying issue visible: the assistant adds a made-up warranty exception absent from retrieved policies.
D:Post-processing can enforce exact patterns for credentials that a probabilistic model may miss; that is valuable when the goal is to apply deterministic secret-pattern detection before sending responses, but the architecture selection instead depends on the ability to compare claims against the retrieved context and abstain when unsupported. A safety classifier alone may not cover organization-specific token structures; it does not account for the condition in the architecture selection: the assistant adds a made-up warranty exception absent from retrieved policies.
Question 569
Several agent frameworks need to share one corporate retrieval API. The incident report says: Agent upgrades fail because each client assumed a different vector-store schema. Which specific design change best corrects the failure?
- Publish an authenticated, versioned vector-search API contract.
- Use Amazon OpenSearch Service vector search indexes.
- Use a pgvector-enabled relational design with validated ANN indexes.
- Configure a supported ANN vector index and tune search parameters.
Explanation
Correct Answer
A:A stable interface centralizes filters, tracing, and error handling while different clients integrate; that explains the reported failure: agent upgrades fail because each client assumed a different vector-store schema. Embedding DB credentials in each agent increases both coupling and privilege spread; a symptom-only workaround would not restore the requirement to standardize transport and authorization independently of model internals.
Incorrect Answers
B:OpenSearch supports vector indexing and search features alongside text retrieval and filtering; that is valuable when the goal is to run vector similarity search with operationally tunable indexes, but the reported failure and its causal repair instead depends on the ability to standardize transport and authorization independently of model internals. Storing vectors as arbitrary JSON fields without index support will not provide efficient similarity retrieval; it does not account for the condition in the reported failure and its causal repair: agent upgrades fail because each client assumed a different vector-store schema.
C:The scope of this alternative is different: vector operators select semantically close rows while SQL predicates enforce structured constraints; it supports combine SQL conditions with supported nearest-neighbor vector search, while the reported failure and its causal repair needs standardize transport and authorization independently of model internals after agent upgrades fail because each client assumed a different vector-store schema. A full-text B-tree lookup does not represent semantic distance; for the reported failure and its causal repair, the unresolved requirement remains to standardize transport and authorization independently of model internals, as shown when agent upgrades fail because each client assumed a different vector-store schema.
D:Nearest-neighbor indexing avoids exhaustive comparison for every request, with measurable speed-versus-recall tradeoffs; that is valuable when the goal is to index embeddings and benchmark recall and query time, but the reported failure and its causal repair instead depends on the ability to standardize transport and authorization independently of model internals. Storing vectors without a search index can cause costly full scans; it does not account for the condition in the reported failure and its causal repair: agent upgrades fail because each client assumed a different vector-store schema.
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?
- Add idempotency checks and durable outcome records to tool integrations.
- Correlate invocation traces and structured tool logs with request IDs.
- Place durable work in Amazon SQS with an idempotent consumer.
- 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.