Question 220
Retrieved web pages contain instructions to ignore the system prompt. The architecture must treat retrieved document text as untrusted evidence, not executable authority. Which implementation best meets that requirement?
- Validate tool arguments and enforce IAM-scoped execution independent of retrieved instructions.
- Establish versioned approvals and automated policy gates in deployment pipelines.
- Use source-grounded RAG with a post-generation citation consistency check.
- Separate retrieved content from trusted instructions and deny tool authority to source text.
Explanation
Correct Answer
D:Trust boundaries prevent source passages from redefining policies or initiating privileged calls; it directly supports the architectural objective to treat retrieved document text as untrusted evidence, not executable authority. RAG improves facts but does not make arbitrary retrieved text safe instructions; that boundary is important when selecting the implementation.
Incorrect Answers
A:Backend authorization constrains the blast radius even if model text is manipulated; that is valuable when the goal is to block privilege escalation when ticket text is adversarial, but the architecture selection instead depends on the ability to treat retrieved document text as untrusted evidence, not executable authority. Filtering for a few banned words cannot recognize every prompt injection pattern; it does not account for the condition in the architecture selection: an external article tells the agent to exfiltrate internal tool results.
B:Release records join model, prompt, data, and guardrail revisions with validated test results; this explains its relevance to require evidence-backed signoff before version promotion, not the the architecture selection requirement to treat retrieved document text as untrusted evidence, not executable authority after an external article tells the agent to exfiltrate internal tool results. An informal message about approval cannot be reliably enforced by automation; choosing it for the architecture selection would leave the underlying issue visible: an external article tells the agent to exfiltrate internal tool results.
C:The scope of this alternative is different: retrieval provides attributable evidence; the checker rejects claims unsupported by the cited passage; it supports bind the answer to retrieved evidence and inspect citation support, while the architecture selection needs treat retrieved document text as untrusted evidence, not executable authority after an external article tells the agent to exfiltrate internal tool results. A plausible citation-looking string is not proof that the document says the claim; for the architecture selection, the unresolved requirement remains to treat retrieved document text as untrusted evidence, not executable authority, as shown when an external article tells the agent to exfiltrate internal tool results.
Question 221
A code-review note warns: Storing static AWS keys in a container image increases credential leakage risk. The business requirement is to sign runtime requests with service identity rather than embedded credentials. Which mechanism should replace the shortcut?
- Check effective IAM permissions, resource scope, and explicit deny policies.
- Use capped exponential backoff with jitter in the AWS SDK client.
- Use an AWS SDK credential provider and least-privilege role for model invocation.
- Implement content-aware model routing against an approved capability map.
Explanation
Correct Answer
C:SDK signing and role credentials keep long-lived secrets out of application artifacts; this is the behavior to validate in a release review concerned with sign runtime requests with service identity rather than embedded credentials. Storing static AWS keys in a container image increases credential leakage risk; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:Authorization depends on the caller identity and target action, not just account membership; this explains its relevance to trace which runtime role and model resource is actually used, not the the release-control decision requirement to sign runtime requests with service identity rather than embedded credentials after containers fail security review because the model key is hard-coded in source control. Changing the prompt cannot grant invoke permission to the backend role; choosing it for the release-control decision would leave the underlying issue visible: containers fail security review because the model key is hard-coded in source control.
B:Spreading retries reduces synchronized load and bounds time spent recovering from transient errors; this explains its relevance to retry safely without amplifying traffic spikes, not the the release-control decision requirement to sign runtime requests with service identity rather than embedded credentials after containers fail security review because the model key is hard-coded in source control. Immediate tight-loop retries worsen rate limits and increase failure latency; choosing it for the release-control decision would leave the underlying issue visible: containers fail security review because the model key is hard-coded in source control.
D:Task classification selects a model whose features and cost fit each input; that is valuable when the goal is to route requests based on required capability rather than one fixed FM, but the release-control decision instead depends on the ability to sign runtime requests with service identity rather than embedded credentials. Uniform random routing can send image tasks to text-only models; it does not account for the condition in the release-control decision: containers fail security review because the model key is hard-coded in source control.
Question 222
Production evidence: A cheaper model appears superior only because it was tested on easier records. The original design context was: Several models are candidates for a production summarization feature. Which change prevents recurrence?
- Diff prompt templates and test quality regressions on a fixed dataset.
- Use a multi-objective comparison on a fixed task distribution.
- Run a controlled Bedrock model evaluation with task-specific metrics.
- Build versioned evaluation dashboards with agreed KPI definitions.
Explanation
Correct Answer
C:Matched evaluation sets support meaningful quality and operational comparisons; that explains the reported failure: a cheaper model appears superior only because it was tested on easier records. Comparing unrelated examples confounds model differences with question difficulty; a symptom-only workaround would not restore the requirement to compare models on the same representative inputs and cost/latency measurements.
Incorrect Answers
A: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 reported failure and its causal repair requirement to compare models on the same representative inputs and cost/latency measurements after a cheaper model appears superior only because it was tested on easier records. Changing model and prompt simultaneously makes attribution harder; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a cheaper model appears superior only because it was tested on easier records.
B:A technically strong model still fails if it misses a mandatory response-time or safety target; that is valuable when the goal is to evaluate quality, p95 latency, and cost jointly against acceptance thresholds, but the reported failure and its causal repair instead depends on the ability to compare models on the same representative inputs and cost/latency measurements. Ranking solely by benchmark accuracy hides operational disqualification; it does not account for the condition in the reported failure and its causal repair: a cheaper model appears superior only because it was tested on easier records.
D:A common report links model performance to actual workflow outcomes and makes trade-offs visible; that is valuable when the goal is to report quality, latency, safety, cost, and business outcome in one comparison, but the reported failure and its causal repair instead depends on the ability to compare models on the same representative inputs and cost/latency measurements. A ranking chart with only perplexity cannot establish business benefit; it does not account for the condition in the reported failure and its causal repair: a cheaper model appears superior only because it was tested on easier records.
Question 223
A consumer chatbot must reject disallowed harmful prompts before generation. A document assistant stores source files containing tax identifiers. The deployment has these independent requirements: (1) apply managed content-policy checks to user input; (2) detect sensitive content in S3 prior to making it searchable. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.
- Use the Amazon Bedrock ApplyGuardrail API around input handling.
- Use Amazon Macie for S3 sensitive-data discovery with remediation workflows.
- Configure Amazon Bedrock Guardrails content filters for the intended safety categories.
- Implement a defense-in-depth moderation pipeline at distinct trust boundaries.
- Serve de-identified retrieval data by default with a controlled privileged lookup path.
Explanation
Correct Answers
B:Macie can identify sensitive data in S3 objects and trigger action before indexing; this fulfills detect sensitive content in S3 prior to making it searchable within a combined design that must also apply managed content-policy checks to user input. Macie is not an inline filter for arbitrary model responses; the other required action(s) must additionally apply managed content-policy checks to user input.
C:Input filters evaluate configured harmful-content categories before or during protected inference workflows; this fulfills apply managed content-policy checks to user input within a combined design that must also detect sensitive content in S3 prior to making it searchable. IAM permission checks govern API access but do not classify harmful user language; the other required action(s) must additionally detect sensitive content in S3 prior to making it searchable.
Incorrect Answers
A:Standalone evaluation lets supported guardrail controls run independently of a full FM generation call; its proper focus is to screen user text with a standalone guardrail policy call when supported, rather than the combined requirements to apply managed content-policy checks to user input and detect sensitive content in S3 prior to making it searchable. Attaching a guardrail only to a different invocation path leaves this custom path unprotected; in this combined design needing apply managed content-policy checks to user input and detect sensitive content in S3 prior to making it searchable, it does not directly meet the specified requirement to detect sensitive content in S3 prior to making it searchable.
D:Independent stages catch different failure modes: unsafe inputs, model behavior, and unsafe final outputs; its proper focus is to layer data classification, input safety, FM guardrails, and output checks, rather than the combined requirements to apply managed content-policy checks to user input and detect sensitive content in S3 prior to making it searchable. A single prompt instruction cannot replace independent enforcement points; in this combined design needing apply managed content-policy checks to user input and detect sensitive content in S3 prior to making it searchable, it does not directly meet the specified requirement to apply managed content-policy checks to user input.
E:Separate paths prevent broad FM context access to raw identifiers while preserving legitimate workflows; its proper focus is to maintain separate masked views and role-gated source access, rather than the combined requirements to apply managed content-policy checks to user input and detect sensitive content in S3 prior to making it searchable. A model prompt cannot safely decide who may de-anonymize records; in this combined design needing apply managed content-policy checks to user input and detect sensitive content in S3 prior to making it searchable, it does not directly meet the specified requirement to detect sensitive content in S3 prior to making it searchable.
Question 224
An agent session lasts a minute without evidence identifying its slow tool. Investigators also establish that a multi-agent service needs to explain which step consumed its latency budget. Which implementation most directly addresses the cause?
- Create end-to-end CloudWatch dashboards with request and business KPIs.
- Instrument retrieval, prompt assembly, model inference, and tool spans separately.
- Create structured trace records for each model and tool invocation.
- Instrument each tool call and aggregate failures per tool and step.
Explanation
Correct Answer
C:Per-step observability distinguishes orchestration overhead from model response time; that explains the reported failure: an agent session lasts a minute without evidence identifying its slow tool. One log line per final answer cannot expose intermediate retries; a symptom-only workaround would not restore the requirement to trace correlated agent and tool spans per user request.
Incorrect Answers
A:Latency, error rate, completion quality, and user outcomes together describe system health; this explains its relevance to correlate operational metrics with task completion and conversion, not the the reported failure and its causal repair requirement to trace correlated agent and tool spans per user request after an agent session lasts a minute without evidence identifying its slow tool. Infrastructure CPU graphs alone do not show customer value; choosing it for the reported failure and its causal repair would leave the underlying issue visible: an agent session lasts a minute without evidence identifying its slow tool.
B:The scope of this alternative is different: per-stage profiling identifies where optimization actually reduces the critical path; it supports trace end-to-end timings rather than assuming the FM is slow, while the reported failure and its causal repair needs trace correlated agent and tool spans per user request after an agent session lasts a minute without evidence identifying its slow tool. An aggregate duration metric hides slow vector queries; for the reported failure and its causal repair, the unresolved requirement remains to trace correlated agent and tool spans per user request, as shown when an agent session lasts a minute without evidence identifying its slow tool.
D:For work that needs to monitor tool success rate, latency, retries, and action counts, tool-level metrics isolate external dependency issues from FM reasoning failures; the specific the reported failure and its causal repair instead requires trace correlated agent and tool spans per user request in light of an agent session lasts a minute without evidence identifying its slow tool. Final-response success alone can hide repeated expensive intermediate failures; this is insufficient for the reported failure and its causal repair, given the evidence that an agent session lasts a minute without evidence identifying its slow tool.
Question 225
A platform team exposes multiple MCP tools used by distinct departments. A successful solution needs to standardize capability discovery while independently validating caller permissions. Which option is the most suitable design?
- Issue a task-scoped role with minimal S3 object permissions and caller-aware filters.
- Give tool handlers a least-privilege IAM role with read-only permissions.
- Use Model Context Protocol-compatible interfaces with authenticated tool servers.
- Publish typed tool definitions behind an authenticated tool gateway.
Explanation
Correct Answer
D:Consistent discovery simplifies client integration, but the gateway still checks each action and caller; it directly supports the architectural objective to standardize capability discovery while independently validating caller permissions. A tool manifest is descriptive metadata rather than an authorization boundary; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to avoid granting broad bucket permissions to the agent runtime, the tool runtime's data-plane scope must match the action being executed; the specific the architecture selection instead requires standardize capability discovery while independently validating caller permissions in light of an agent lists an HR tool that it should not be allowed to execute. Allowing s3:* on the bucket makes prompt injection more damaging; this is insufficient for the architecture selection, given the evidence that an agent lists an HR tool that it should not be allowed to execute.
B:For work that needs to restrict callable actions independently of the model's suggestions, data-plane authorization blocks prohibited writes even when a model emits a malicious tool request; the specific the architecture selection instead requires standardize capability discovery while independently validating caller permissions in light of an agent lists an HR tool that it should not be allowed to execute. Prompt-level denials alone cannot override permissions carried by a runtime role; this is insufficient for the architecture selection, given the evidence that an agent lists an HR tool that it should not be allowed to execute.
C:A standard tool interface describes available operations and schemas, reducing framework-specific glue; this explains its relevance to make tool discovery and invocation contracts consistent across clients, not the the architecture selection requirement to standardize capability discovery while independently validating caller permissions after an agent lists an HR tool that it should not be allowed to execute. Protocol compatibility does not grant permissions; authentication remains necessary; choosing it for the architecture selection would leave the underlying issue visible: an agent lists an HR tool that it should not be allowed to execute.
Question 226
A code-review note warns: Copying prompt strings into application code hides drift between clients. The business requirement is to centralize parameterized prompts and promote immutable versions. Which mechanism should replace the shortcut?
- Gate prompt version promotion and retain associated CloudTrail control-plane records.
- Diff prompt templates and test quality regressions on a fixed dataset.
- Validate prompt revisions with a golden dataset and automated acceptance gates.
- Use Amazon Bedrock Prompt Management with versioned prompt templates.
Explanation
Correct Answer
D:Versioning creates a reviewable artifact with variables, allowing controlled rollout and rollback; this is the behavior to validate in a release review concerned with centralize parameterized prompts and promote immutable versions. Copying prompt strings into application code hides drift between clients; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:Approval records and API audit trails complement template versioning for accountability; this explains its relevance to keep a reviewed prompt release process with change audit events, not the the release-control decision requirement to centralize parameterized prompts and promote immutable versions after a prompt edit unexpectedly changes production responses without an identifiable revision. A model response log alone does not establish who deployed an instruction change; choosing it for the release-control decision would leave the underlying issue visible: a prompt edit unexpectedly changes production responses without an identifiable revision.
B:The scope of this alternative is different: holding test cases constant isolates instruction changes from input distribution shifts; it supports compare exact prompt versions using controlled evaluation inputs, while the release-control decision needs centralize parameterized prompts and promote immutable versions after a prompt edit unexpectedly changes production responses without an identifiable revision. Changing model and prompt simultaneously makes attribution harder; for the release-control decision, the unresolved requirement remains to centralize parameterized prompts and promote immutable versions, as shown when a prompt edit unexpectedly changes production responses without an identifiable revision.
C:For work that needs to run repeatable regression checks against a fixed evaluation set, representative input-output checks expose quality regressions before promotion; the specific the release-control decision instead requires centralize parameterized prompts and promote immutable versions in light of a prompt edit unexpectedly changes production responses without an identifiable revision. One handcrafted demo question is insufficient to test diverse user intents; this is insufficient for the release-control decision, given the evidence that a prompt edit unexpectedly changes production responses without an identifiable revision.
Question 227
A generated summary must not include prohibited sensitive terms. The architecture must screen the response after generation before delivering it. Which implementation best meets that requirement?
- Enforce output moderation with Bedrock Guardrails and an application release gate.
- Use the Amazon Bedrock ApplyGuardrail API around input handling.
- Apply groundedness evaluation with an evidence-threshold fallback.
- Apply a Bedrock Guardrails sensitive-information filter with independent output validation.
Explanation
Correct Answer
A:Response-side checks can intercept material produced despite safe-looking user input; it directly supports the architectural objective to screen the response after generation before delivering it. Input-only filtering cannot inspect harmful text newly created by the model; that boundary is important when selecting the implementation.
Incorrect Answers
B:Standalone evaluation lets supported guardrail controls run independently of a full FM generation call; that is valuable when the goal is to screen user text with a standalone guardrail policy call when supported, but the architecture selection instead depends on the ability to screen the response after generation before delivering it. Attaching a guardrail only to a different invocation path leaves this custom path unprotected; it does not account for the condition in the architecture selection: a benign user question causes the model to emit disallowed content.
C:The scope of this alternative is different: a groundedness check assesses whether context supports the proposed claim, allowing refusal or review; it supports compare claims against the retrieved context and abstain when unsupported, while the architecture selection needs screen the response after generation before delivering it after a benign user question causes the model to emit disallowed content. A high semantic similarity score alone does not establish entailment of each statement; for the architecture selection, the unresolved requirement remains to screen the response after generation before delivering it, as shown when a benign user question causes the model to emit disallowed content.
D:For work that needs to block configured PII patterns in generated output, output filters reduce accidental disclosure of detected sensitive data types; the specific the architecture selection instead requires screen the response after generation before delivering it in light of a benign user question causes the model to emit disallowed content. Filtering final answers alone cannot replace source access restrictions; this is insufficient for the architecture selection, given the evidence that a benign user question causes the model to emit disallowed content.
Question 228
Simple ticket labels incur the same long latency as intricate dispute analysis. Investigators also establish that a large-model workflow also receives trivial classification requests. Which implementation most directly addresses the cause?
- Validate generated JSON against a strict application-side schema.
- Use policy-driven human escalation conditions enforced outside model prose.
- Use a coordinator that delegates bounded subtasks to specialist agents.
- Use a cascade with measurable thresholds for escalation.
- Use Model Context Protocol-compatible interfaces with authenticated tool servers.
Explanation
Correct Answer
D:Task-dependent routing conserves inference cost while maintaining quality on demanding inputs; that explains the reported failure: simple ticket labels incur the same long latency as intricate dispute analysis. Always using the strongest model ignores the easy-query cost advantage; a symptom-only workaround would not restore the requirement to route easy tasks to a small specialist and reserve stronger reasoning for exceptions.
Incorrect Answers
A:For work that needs to reject responses that violate the agreed schema before automation, machine validation catches missing keys and invalid types independently of model confidence; the specific the reported failure and its causal repair instead requires route easy tasks to a small specialist and reserve stronger reasoning for exceptions in light of simple ticket labels incur the same long latency as intricate dispute analysis. A JSON-shaped response is not guaranteed to satisfy downstream semantic rules; this is insufficient for the reported failure and its causal repair, given the evidence that simple ticket labels incur the same long latency as intricate dispute analysis.
B:The scope of this alternative is different: the application makes escalation deterministic for defined risk classes; it supports route risk-sensitive outputs to specialists rather than all outputs, while the reported failure and its causal repair needs route easy tasks to a small specialist and reserve stronger reasoning for exceptions after simple ticket labels incur the same long latency as intricate dispute analysis. A generic confidence statement from the model is not a security policy gate; for the reported failure and its causal repair, the unresolved requirement remains to route easy tasks to a small specialist and reserve stronger reasoning for exceptions, as shown when simple ticket labels incur the same long latency as intricate dispute analysis.
C:Explicit coordination preserves task ownership, context, and control across model boundaries; this explains its relevance to route tasks to the right specialist and preserve an auditable handoff, not the the reported failure and its causal repair requirement to route easy tasks to a small specialist and reserve stronger reasoning for exceptions after simple ticket labels incur the same long latency as intricate dispute analysis. Letting every agent call every tool obscures responsibility and privilege scope; choosing it for the reported failure and its causal repair would leave the underlying issue visible: simple ticket labels incur the same long latency as intricate dispute analysis.
E:For work that needs to make tool discovery and invocation contracts consistent across clients, a standard tool interface describes available operations and schemas, reducing framework-specific glue; the specific the reported failure and its causal repair instead requires route easy tasks to a small specialist and reserve stronger reasoning for exceptions in light of simple ticket labels incur the same long latency as intricate dispute analysis. Protocol compatibility does not grant permissions; authentication remains necessary; this is insufficient for the reported failure and its causal repair, given the evidence that simple ticket labels incur the same long latency as intricate dispute analysis.
Question 229
An assistant serves predictable daily digests at fixed times. The architecture must generate known content ahead of peak user traffic. Which implementation best meets that requirement?
- Precompute and cache recurring summaries before their expected read window.
- Experiment with temperature and top-p settings on the creative task set.
- Use controlled concurrent model or retrieval calls and aggregate only completed outputs.
- Use hierarchical or structure-aware chunking with parent-child context.
Explanation
Correct Answer
A:Scheduled generation moves work away from interactive critical paths; it directly supports the architectural objective to generate known content ahead of peak user traffic. Precomputation is inappropriate for information requiring a fresh personalized answer; that boundary is important when selecting the implementation.
Incorrect Answers
B:Sampling changes diversity, but decisions should be validated against coherence and policy requirements; this explains its relevance to tune supported sampling controls while measuring quality and safety, not the the architecture selection requirement to generate known content ahead of peak user traffic after every employee waits for the same static morning digest to be regenerated. Increasing randomness without limits can raise factual and formatting error rates; choosing it for the architecture selection would leave the underlying issue visible: every employee waits for the same static morning digest to be regenerated.
C:Parallelism reduces critical-path latency where dependencies do not require serial execution; this explains its relevance to parallelize independent subtasks without losing result validation, not the the architecture selection requirement to generate known content ahead of peak user traffic after every employee waits for the same static morning digest to be regenerated. Sequential chains add avoidable delay when operations are independent; choosing it for the architecture selection would leave the underlying issue visible: every employee waits for the same static morning digest to be regenerated.
D:For work that needs to keep chunks small enough to rank while preserving section relationships, section-aware segmentation keeps retrieved evidence coherent and limits unrelated text in prompts; the specific the architecture selection instead requires generate known content ahead of peak user traffic in light of every employee waits for the same static morning digest to be regenerated. Giant whole-document chunks dilute similarity, while tiny isolated fragments lose meaning; this is insufficient for the architecture selection, given the evidence that every employee waits for the same static morning digest to be regenerated.
Question 230
A prompt release passes unit tests but fails real user journeys. A successful solution needs to exercise synthetic end-to-end tasks before full deployment. Which option is the most suitable design?
- Track recall at k on a representative retrieval benchmark.
- Run representative synthetic workflows through retrieval, model, and tools.
- Use a two-stage RAG evaluation that scores retrieved context and generated claims.
- Block deployment when defined quality metrics breach the baseline.
Explanation
Correct Answer
B:End-to-end tests catch integration defects that isolated prompt tests miss; it directly supports the architectural objective to exercise synthetic end-to-end tasks before full deployment. One successful raw inference call does not validate tool and data paths; that boundary is important when selecting the implementation.
Incorrect Answers
A:Recall reveals missing evidence that generation cannot cite if never retrieved; this explains its relevance to measure recall using known relevant documents, not the the architecture selection requirement to exercise synthetic end-to-end tasks before full deployment after the system produces valid text while failing to create the required CRM follow-up. Improved precision can come from dropping too many useful results; choosing it for the architecture selection would leave the underlying issue visible: the system produces valid text while failing to create the required CRM follow-up.
C:Separating retrieval and generation identifies where evidence was lost or misused; this explains its relevance to evaluate retrieval quality separately from answer groundedness, not the the architecture selection requirement to exercise synthetic end-to-end tasks before full deployment after the system produces valid text while failing to create the required CRM follow-up. A low answer score alone does not reveal whether retrieval or generation failed; choosing it for the architecture selection would leave the underlying issue visible: the system produces valid text while failing to create the required CRM follow-up.
D:For work that needs to run golden-set regressions as a CI/CD release gate, automated gates compare candidate and approved behavior before promoting versions; the specific the architecture selection instead requires exercise synthetic end-to-end tasks before full deployment in light of the system produces valid text while failing to create the required CRM follow-up. A successful build proves syntax and packaging, not answer reliability; this is insufficient for the architecture selection, given the evidence that the system produces valid text while failing to create the required CRM follow-up.