Question 340
Agents use incompatible parameter names for the same repository search operation. Investigators also establish that a tool-enabled assistant is being integrated with a heterogeneous tool ecosystem. Which implementation most directly addresses the cause?
- Use Model Context Protocol-compatible interfaces with authenticated tool servers.
- Run prompt-injection and jailbreak evaluations against the full tool workflow.
- Put parameter validation and authorization in the Lambda tool handler.
- Enforce caller identity and operation-level authorization in the tool layer.
Explanation
Correct Answer
A:A standard tool interface describes available operations and schemas, reducing framework-specific glue; that explains the reported failure: agents use incompatible parameter names for the same repository search operation. Protocol compatibility does not grant permissions; authentication remains necessary; a symptom-only workaround would not restore the requirement to make tool discovery and invocation contracts consistent across clients.
Incorrect Answers
B:The scope of this alternative is different: testing realistic attacks surfaces gaps that benign user prompts and single-model demos miss; it supports measure resistance using repeatable adversarial test suites, while the reported failure and its causal repair needs make tool discovery and invocation contracts consistent across clients after agents use incompatible parameter names for the same repository search operation. A policy document claiming safety is not a measured security result; for the reported failure and its causal repair, the unresolved requirement remains to make tool discovery and invocation contracts consistent across clients, as shown when agents use incompatible parameter names for the same repository search operation.
C:For work that needs to validate the tool schema and business limits in code before execution, the handler rejects malformed identifiers and disallowed amounts even if the FM requests them; the specific the reported failure and its causal repair instead requires make tool discovery and invocation contracts consistent across clients in light of agents use incompatible parameter names for the same repository search operation. Model-side tool descriptions do not enforce server-side transactional limits; this is insufficient for the reported failure and its causal repair, given the evidence that agents use incompatible parameter names for the same repository search operation.
D:Trusted identity propagation prevents a shared tool server from becoming an unrestricted deputy; that is valuable when the goal is to authorize each tool invocation with end-user context and action scope, but the reported failure and its causal repair instead depends on the ability to make tool discovery and invocation contracts consistent across clients. Relying on the requested product name is not a proof of user permission; it does not account for the condition in the reported failure and its causal repair: agents use incompatible parameter names for the same repository search operation.
Question 341
A service-chatbot needs to remember an account's previous troubleshooting steps. A knowledge assistant consumes meeting recordings, not transcripts. The deployment has these independent requirements: (1) maintain a scoped, expiring conversation state outside model weights; (2) convert speech into searchable textual evidence with timestamps. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.
- Transcribe recordings with Amazon Transcribe before chunking and embedding text.
- Provide role guidance through system messages and enforce boundaries in application logic.
- Store tenant-keyed session history and reconstruct a bounded message context.
- Use a preprocessing transform that identifies and restores section boundaries before chunking.
- Build evidence-first prompts that require supporting passages for claims.
Explanation
Correct Answers
A:Speech recognition produces text that a text retrieval pipeline can index, while timestamps support traceability; this fulfills convert speech into searchable textual evidence with timestamps within a combined design that must also maintain a scoped, expiring conversation state outside model weights. Passing raw audio into a text-only embedding stage cannot recover spoken content; the other required action(s) must additionally maintain a scoped, expiring conversation state outside model weights.
C:External state allows controlled continuity, retention, and size limits between otherwise stateless calls; this fulfills maintain a scoped, expiring conversation state outside model weights within a combined design that must also convert speech into searchable textual evidence with timestamps. The model does not persist an application's prior requests automatically; the other required action(s) must additionally convert speech into searchable textual evidence with timestamps.
Incorrect Answers
B:Trusted instructions set behavior while the runtime distinguishes lower-trust user content; its proper focus is to keep trusted system instructions separate from untrusted user content, rather than the combined requirements to maintain a scoped, expiring conversation state outside model weights and convert speech into searchable textual evidence with timestamps. A role instruction by itself is not a substitute for guardrails and authorization; in this combined design needing maintain a scoped, expiring conversation state outside model weights and convert speech into searchable textual evidence with timestamps, it does not directly meet the specified requirement to convert speech into searchable textual evidence with timestamps.
D:Structure-aware preparation improves retrieval context and supports citations back to source spans; its proper focus is to repair document structure while retaining a link to unmodified evidence, rather than the combined requirements to maintain a scoped, expiring conversation state outside model weights and convert speech into searchable textual evidence with timestamps. Flattening all text into one unstructured field can combine unrelated clauses; in this combined design needing maintain a scoped, expiring conversation state outside model weights and convert speech into searchable textual evidence with timestamps, it does not directly meet the specified requirement to maintain a scoped, expiring conversation state outside model weights.
E:Grounding the answer to retrieved material and permitting uncertainty reduces unsupported completions; its proper focus is to include bounded evidence and instructions to abstain when unsupported, rather than the combined requirements to maintain a scoped, expiring conversation state outside model weights and convert speech into searchable textual evidence with timestamps. Merely asking a model to be accurate cannot supply missing knowledge; in this combined design needing maintain a scoped, expiring conversation state outside model weights and convert speech into searchable textual evidence with timestamps, it does not directly meet the specified requirement to convert speech into searchable textual evidence with timestamps.
Question 342
Production evidence: The agent locks a customer account without any recorded supervisor consent. The original design context was: A support automation can perform a destructive account action. Which change prevents recurrence?
- Use model evaluations plus human expert review for ambiguous high-risk outcomes.
- Put parameter validation and authorization in the Lambda tool handler.
- Place a human-approval gate before the privileged workflow state.
- Use a Step Functions human-in-the-loop approval task with an audit trail.
Explanation
Correct Answer
C:The workflow pauses for authorized review and resumes with a recorded approval token; that explains the reported failure: the agent locks a customer account without any recorded supervisor consent. Asking the model whether it feels confident is not an approval control; a symptom-only workaround would not restore the requirement to require a human decision before the high-impact tool executes.
Incorrect Answers
A:The scope of this alternative is different: human judgment complements scalable automated scoring where nuance or policy interpretation matters; it supports combine automatic metrics and targeted human evaluation, while the reported failure and its causal repair needs require a human decision before the high-impact tool executes after the agent locks a customer account without any recorded supervisor consent. Automatic fluency scores cannot settle complex regulatory appropriateness; for the reported failure and its causal repair, the unresolved requirement remains to require a human decision before the high-impact tool executes, as shown when the agent locks a customer account without any recorded supervisor consent.
B:The handler rejects malformed identifiers and disallowed amounts even if the FM requests them; this explains its relevance to validate the tool schema and business limits in code before execution, not the the reported failure and its causal repair requirement to require a human decision before the high-impact tool executes after the agent locks a customer account without any recorded supervisor consent. Model-side tool descriptions do not enforce server-side transactional limits; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the agent locks a customer account without any recorded supervisor consent.
D:For work that needs to insert reviewer approval with resumable workflow state, a persisted state machine makes the review a mandatory transition and records the decision; the specific the reported failure and its causal repair instead requires require a human decision before the high-impact tool executes in light of the agent locks a customer account without any recorded supervisor consent. A message in the prompt asking for approval cannot prevent an API side effect; this is insufficient for the reported failure and its causal repair, given the evidence that the agent locks a customer account without any recorded supervisor consent.
Question 343
An answer-generation system needs assessment beyond grammatical fluency. The architecture must measure factual support, relevance, completeness, and response clarity separately. Which implementation best meets that requirement?
- Record tool calls per successful task and detect repeated action patterns.
- Create a rubric with distinct groundedness, relevance, and completeness metrics.
- Track recall at k on a representative retrieval benchmark.
- Check sync history, source versions, and vector index update status.
Explanation
Correct Answer
B:Generative output can be fluent yet unsupported, so quality needs multiple independent dimensions; it directly supports the architectural objective to measure factual support, relevance, completeness, and response clarity separately. A generic text-overlap score misses plausible but false statements; that boundary is important when selecting the implementation.
Incorrect Answers
A:Efficiency metrics reveal unproductive loops that raise cost and risk; this explains its relevance to measure tool efficiency and stopping correctness, not the the architecture selection requirement to measure factual support, relevance, completeness, and response clarity separately after the model scores well on readability but invents policy exceptions. High model response quality does not imply economical orchestration; choosing it for the architecture selection would leave the underlying issue visible: the model scores well on readability but invents policy exceptions.
C:For work that needs to measure recall using known relevant documents, recall reveals missing evidence that generation cannot cite if never retrieved; the specific the architecture selection instead requires measure factual support, relevance, completeness, and response clarity separately in light of the model scores well on readability but invents policy exceptions. Improved precision can come from dropping too many useful results; this is insufficient for the architecture selection, given the evidence that the model scores well on readability but invents policy exceptions.
D:For work that needs to inspect ingestion freshness and whether changed chunks were re-embedded, stale embeddings can continue pointing to older text even if the source repository is current; the specific the architecture selection instead requires measure factual support, relevance, completeness, and response clarity separately in light of the model scores well on readability but invents policy exceptions. Rephrasing the user prompt cannot fix a missing index update; this is insufficient for the architecture selection, given the evidence that the model scores well on readability but invents policy exceptions.
Question 344
The relevant passage is often ranked fifth and never reaches generation. A large document repository changes only a small fraction of files each day. The deployment has these independent requirements: (1) improve ordering of retrieved candidates before context construction; (2) reduce unnecessary embedding work during regular index updates. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.
- Use incremental synchronization that processes only changed documents.
- Tune OpenSearch shard and index layout based on workload benchmarks.
- Configure a supported ANN vector index and tune search parameters.
- Apply a compatible reranker to an initial retrieval candidate set.
- Trigger targeted removal or resynchronization when authoritative documents are deleted.
Explanation
Correct Answers
A:Change-aware ingestion avoids re-embedding unchanged source content in routine refreshes; this fulfills reduce unnecessary embedding work during regular index updates within a combined design that must also improve ordering of retrieved candidates before context construction. Rebuilding every vector daily increases processing cost without improving freshness; the other required action(s) must additionally improve ordering of retrieved candidates before context construction.
D:Reranking scores query-passage fit at a later stage so fewer low-value chunks consume context; this fulfills improve ordering of retrieved candidates before context construction within a combined design that must also reduce unnecessary embedding work during regular index updates. Increasing model output length cannot fix the ranking of input evidence; the other required action(s) must additionally reduce unnecessary embedding work during regular index updates.
Incorrect Answers
B:Shard sizing and placement influence concurrency, memory pressure, and search fan-out; its proper focus is to distribute index capacity and measure query fan-out before scaling, rather than the combined requirements to improve ordering of retrieved candidates before context construction and reduce unnecessary embedding work during regular index updates. Adding shards without testing can increase coordination overhead instead of helping; in this combined design needing improve ordering of retrieved candidates before context construction and reduce unnecessary embedding work during regular index updates, it does not directly meet the specified requirement to reduce unnecessary embedding work during regular index updates.
C:Nearest-neighbor indexing avoids exhaustive comparison for every request, with measurable speed-versus-recall tradeoffs; its proper focus is to index embeddings and benchmark recall and query time, rather than the combined requirements to improve ordering of retrieved candidates before context construction and reduce unnecessary embedding work during regular index updates. Storing vectors without a search index can cause costly full scans; in this combined design needing improve ordering of retrieved candidates before context construction and reduce unnecessary embedding work during regular index updates, it does not directly meet the specified requirement to reduce unnecessary embedding work during regular index updates.
E:Deletion-aware maintenance prevents removed sources remaining searchable after the source system revokes them; its proper focus is to propagate source deletion events into index removal workflows, rather than the combined requirements to improve ordering of retrieved candidates before context construction and reduce unnecessary embedding work during regular index updates. A retention policy on the raw bucket does not automatically eliminate an existing vector entry; in this combined design needing improve ordering of retrieved candidates before context construction and reduce unnecessary embedding work during regular index updates, it does not directly meet the specified requirement to improve ordering of retrieved candidates before context construction.
Question 345
An operations chatbot escalates only uncertain security actions. A successful solution needs to route risk-sensitive outputs to specialists rather than all outputs. Which option is the most suitable design?
- Use a cascade with measurable thresholds for escalation.
- Use evidence verification and policy-based output review with human escalation.
- Use policy-driven human escalation conditions enforced outside model prose.
- Use a coordinator that delegates bounded subtasks to specialist agents.
Explanation
Correct Answer
C:The application makes escalation deterministic for defined risk classes; it directly supports the architectural objective to route risk-sensitive outputs to specialists rather than all outputs. A generic confidence statement from the model is not a security policy gate; that boundary is important when selecting the implementation.
Incorrect Answers
A:Task-dependent routing conserves inference cost while maintaining quality on demanding inputs; this explains its relevance to route easy tasks to a small specialist and reserve stronger reasoning for exceptions, not the the architecture selection requirement to route risk-sensitive outputs to specialists rather than all outputs after a privileged role change is auto-executed because the model sounded certain. Always using the strongest model ignores the easy-query cost advantage; choosing it for the architecture selection would leave the underlying issue visible: a privileged role change is auto-executed because the model sounded certain.
B:A policy decision checks whether an answer is supported and within allowed scope; that is valuable when the goal is to gate high-risk advice on evidence and policy review rather than fluency, but the architecture selection instead depends on the ability to route risk-sensitive outputs to specialists rather than all outputs. Lower temperature may reduce variability but cannot certify clinical correctness; it does not account for the condition in the architecture selection: a privileged role change is auto-executed because the model sounded certain.
D:For work that needs to route tasks to the right specialist and preserve an auditable handoff, explicit coordination preserves task ownership, context, and control across model boundaries; the specific the architecture selection instead requires route risk-sensitive outputs to specialists rather than all outputs in light of a privileged role change is auto-executed because the model sounded certain. Letting every agent call every tool obscures responsibility and privilege scope; this is insufficient for the architecture selection, given the evidence that a privileged role change is auto-executed because the model sounded certain.
Question 346
Similarity ranking alone may favor obsolete documents with repeated phrasing. An architecture reviewer must still ensure the application can filter retrieval on version and validity metadata. What recommendation is justified?
- Use Amazon Aurora PostgreSQL with the pgvector extension where supported.
- Index effective-from and effective-to attributes and apply time-based retrieval filters.
- Use document sensitivity labels as indexed filterable metadata and enforce access upstream.
- Filter by trusted attributes before vector or hybrid scoring.
- Attach trusted department metadata and filter the vector query by caller authorization.
Explanation
Correct Answer
B:Temporal metadata separates current guidance from superseded but textually similar versions; this is the behavior to validate in a release review concerned with filter retrieval on version and validity metadata. Similarity ranking alone may favor obsolete documents with repeated phrasing; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:The scope of this alternative is different: vector columns and similarity operators allow embeddings to coexist with relational filtering and transactions; it supports store embeddings near relational metadata with SQL-compatible controls, while the release-control decision needs filter retrieval on version and validity metadata after the assistant cites a revoked regulation instead of the version effective last month. Ordinary relational equality indexes alone are not approximate-nearest-neighbor search; for the release-control decision, the unresolved requirement remains to filter retrieval on version and validity metadata, as shown when the assistant cites a revoked regulation instead of the version effective last month.
C:The scope of this alternative is different: label-aware queries exclude disallowed chunks rather than asking the model to ignore them; it supports partition retrieval by classification tags derived from trusted identity, while the release-control decision needs filter retrieval on version and validity metadata after the assistant cites a revoked regulation instead of the version effective last month. Generation-side disclaimers do not prevent confidential text entering context; for the release-control decision, the unresolved requirement remains to filter retrieval on version and validity metadata, as shown when the assistant cites a revoked regulation instead of the version effective last month.
D:The scope of this alternative is different: candidate restriction enforces contextual scope while ranking orders relevant allowed chunks; it supports combine metadata prefilters with semantic ranking instead of relying on prompts, while the release-control decision needs filter retrieval on version and validity metadata after the assistant cites a revoked regulation instead of the version effective last month. The FM cannot reliably undo a retrieval query that included unauthorized content; for the release-control decision, the unresolved requirement remains to filter retrieval on version and validity metadata, as shown when the assistant cites a revoked regulation instead of the version effective last month.
E:Source metadata constrains which chunks are eligible, preventing unrelated sensitive context from entering inference; this explains its relevance to enforce department-level retrieval boundaries before passages reach the FM, not the the release-control decision requirement to filter retrieval on version and validity metadata after the assistant cites a revoked regulation instead of the version effective last month. A text instruction to the model is not an access-control boundary; choosing it for the release-control decision would leave the underlying issue visible: the assistant cites a revoked regulation instead of the version effective last month.
Question 347
A domain extraction task has narrow vocabulary and stable input schemas. After deployment, an expensive general model adds latency without increasing extraction accuracy. Engineers need a cause-level fix, not a change in presentation. What should they implement?
- Use an inference server with dynamic batching tuned to latency objectives.
- Benchmark compact models against task-specific accuracy and latency criteria.
- Benchmark model price-performance on the actual task mix.
- Use a smaller default model with confidence or complexity-based escalation.
Explanation
Correct Answer
B:A focused task may not require frontier-level capability if the acceptance set is narrow; that explains the reported failure: an expensive general model adds latency without increasing extraction accuracy. Generic leaderboard rank does not guarantee superior price-performance on this dataset; a symptom-only workaround would not restore the requirement to select a smaller validated model rather than the largest available.
Incorrect Answers
A:The scope of this alternative is different: batching can improve accelerator utilization but must be bounded to protect interactive delay; it supports introduce serving-level batching and token-aware queue management, while the reported failure and its causal repair needs select a smaller validated model rather than the largest available after an expensive general model adds latency without increasing extraction accuracy. Simply adding network load balancers does not optimize token scheduling; for the reported failure and its causal repair, the unresolved requirement remains to select a smaller validated model rather than the largest available, as shown when an expensive general model adds latency without increasing extraction accuracy.
C:A model using fewer retries and shorter outputs can be cheaper overall despite a higher unit rate; that is valuable when the goal is to select by end-to-end cost per successful task, not price per token alone, but the reported failure and its causal repair instead depends on the ability to select a smaller validated model rather than the largest available. Raw input-token price misses completion size, errors, and escalation cost; it does not account for the condition in the reported failure and its causal repair: an expensive general model adds latency without increasing extraction accuracy.
D:A cascade pays premium inference costs for the minority of requests requiring deeper capability; this explains its relevance to control spend without sacrificing difficult-case quality, not the the reported failure and its causal repair requirement to select a smaller validated model rather than the largest available after an expensive general model adds latency without increasing extraction accuracy. Uniform model selection cannot exploit the workload's complexity distribution; choosing it for the reported failure and its causal repair would leave the underlying issue visible: an expensive general model adds latency without increasing extraction accuracy.
Question 348
A multilingual customer assistant covers languages unevenly supported by providers. A successful solution needs to validate accuracy and safety per language before selecting a provider. Which option is the most suitable design?
- Use an appropriate cross-Region inference profile and bounded application retries.
- Benchmark model price-performance on the actual task mix.
- Benchmark models that support image input and the intended structured-response pattern.
- Run a multilingual task-specific model benchmark with native-speaker review.
Explanation
Correct Answer
D:Language-specific tests reveal quality disparities that English-only benchmarks conceal; it directly supports the architectural objective to validate accuracy and safety per language before selecting a provider. Provider marketing claims about multilingual capability do not prove compliance with the target domain; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: a Bedrock inference profile routes supported calls across allowed destination Regions, helping smooth regional capacity pressure; it supports maintain service continuity across supported Bedrock capacity pools, while the architecture selection needs validate accuracy and safety per language before selecting a provider after translated refusals work in English but sensitive content passes through in a second language. Geographic or global profile selection must respect contractual processing boundaries; for the architecture selection, the unresolved requirement remains to validate accuracy and safety per language before selecting a provider, as shown when translated refusals work in English but sensitive content passes through in a second language.
B:A model using fewer retries and shorter outputs can be cheaper overall despite a higher unit rate; that is valuable when the goal is to select by end-to-end cost per successful task, not price per token alone, but the architecture selection instead depends on the ability to validate accuracy and safety per language before selecting a provider. Raw input-token price misses completion size, errors, and escalation cost; it does not account for the condition in the architecture selection: translated refusals work in English but sensitive content passes through in a second language.
C:For work that needs to choose an FM capable of accepting the required modalities and output schema, selection must evaluate actual modality support, response fidelity, latency, and cost on domain examples; the specific the architecture selection instead requires validate accuracy and safety per language before selecting a provider in light of translated refusals work in English but sensitive content passes through in a second language. Text-only performance rankings do not establish image understanding; this is insufficient for the architecture selection, given the evidence that translated refusals work in English but sensitive content passes through in a second language.
Question 349
A knowledge base pulls regulated records from several locations. A successful solution needs to record source registration and ownership metadata centrally. Which option is the most suitable design?
- Combine source authorization checks with retrieval metadata filters.
- Catalog sources with AWS Glue metadata and explicit lineage records.
- Maintain versioned model cards associated with approved model artifacts.
- Use Glue Data Catalog or an equivalent governed inventory for source lineage.
Explanation
Correct Answer
D:A source inventory ties datasets to stewards, classifications, and downstream consumers; it directly supports the architectural objective to record source registration and ownership metadata centrally. A vector embedding cannot inherently explain its source's licensing rights; that boundary is important when selecting the implementation.
Incorrect Answers
A: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 architecture selection instead depends on the ability to record source registration and ownership metadata centrally. An FM refusal after retrieval is too late to protect raw context exposure; it does not account for the condition in the architecture selection: the team cannot identify which owner must approve a document reindex.
B:For work that needs to record how inputs were transformed and where they came from, a dataset catalog and transformation history make source provenance independently reviewable; the specific the architecture selection instead requires record source registration and ownership metadata centrally in light of the team cannot identify which owner must approve a document reindex. CloudTrail API events alone do not describe every semantic transformation of data; this is insufficient for the architecture selection, given the evidence that the team cannot identify which owner must approve a document reindex.
C:Model cards record evaluation context and limitations for oversight and informed use; this explains its relevance to publish reviewed model facts, intended uses, and known performance limits, not the the architecture selection requirement to record source registration and ownership metadata centrally after the team cannot identify which owner must approve a document reindex. A deployment timestamp alone does not communicate observed bias or failure domains; choosing it for the architecture selection would leave the underlying issue visible: the team cannot identify which owner must approve a document reindex.
Question 350
A virtual assistant must handle tool reasoning and action limits. A release proposal aims to use an agent framework with controlled action execution and observability. Which architecture decision fits the constraint?
- Issue a task-scoped role with minimal S3 object permissions and caller-aware filters.
- Build a Strands-based tool agent with external policy and execution limits.
- Estimate input tokens and apply a configured context budget at the gateway.
- Correlate invocation traces and structured tool logs with request IDs.
Explanation
Correct Answer
B:The framework coordinates tool calls, while independent handlers enforce identity and limits; it directly supports the architectural objective to use an agent framework with controlled action execution and observability. The presence of agent reasoning traces does not automatically authorize actions; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: the tool runtime's data-plane scope must match the action being executed; it supports avoid granting broad bucket permissions to the agent runtime, while the architecture selection needs use an agent framework with controlled action execution and observability after an agent invokes a forbidden system administration tool through an overly broad runtime role. Allowing s3:* on the bucket makes prompt injection more damaging; for the architecture selection, the unresolved requirement remains to use an agent framework with controlled action execution and observability, as shown when an agent invokes a forbidden system administration tool through an overly broad runtime role.
C:For work that needs to reject or shorten over-budget requests before FM invocation, early budgeting allocates space for system instructions, retrieval context, and requested output; the specific the architecture selection instead requires use an agent framework with controlled action execution and observability in light of an agent invokes a forbidden system administration tool through an overly broad runtime role. Generic API payload byte limits do not reflect model token accounting; this is insufficient for the architecture selection, given the evidence that an agent invokes a forbidden system administration tool through an overly broad runtime role.
D: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 architecture selection needs use an agent framework with controlled action execution and observability after an agent invokes a forbidden system administration tool through an overly broad runtime role. Aggregate model success percentages obscure the failing tool request; for the architecture selection, the unresolved requirement remains to use an agent framework with controlled action execution and observability, as shown when an agent invokes a forbidden system administration tool through an overly broad runtime role.