Question 1
A disguised executable is passed through the upload workflow as a document. Investigators also establish that an API accepts uploaded attachments and extracts text for a model. Which implementation most directly addresses the cause?
- Run prompt-injection and jailbreak evaluations against the full tool workflow.
- Separate retrieved content from trusted instructions and deny tool authority to source text.
- Parse generated SQL and enforce read-only, scoped database permissions.
- Configure Amazon Bedrock Guardrails content filters for the intended safety categories.
- Run upload validation, malware scanning where applicable, and trusted text extraction.
- Run server-side output scanning and blocking for defined secret formats.
Explanation
Correct Answer
E:Preprocessing reduces dangerous payloads and prevents unchecked files from entering downstream stages; that explains the reported failure: a disguised executable is passed through the upload workflow as a document. An FM content filter is not a replacement for file-type and malware checks; a symptom-only workaround would not restore the requirement to scan and validate attachments before including content in prompts.
Incorrect Answers
A: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 scan and validate attachments before including content in prompts after a disguised executable is passed through the upload workflow as a document. A policy document claiming safety is not a measured security result; for the reported failure and its causal repair, the unresolved requirement remains to scan and validate attachments before including content in prompts, as shown when a disguised executable is passed through the upload workflow as a document.
B:For work that needs to treat retrieved document text as untrusted evidence, not executable authority, trust boundaries prevent source passages from redefining policies or initiating privileged calls; the specific the reported failure and its causal repair instead requires scan and validate attachments before including content in prompts in light of a disguised executable is passed through the upload workflow as a document. RAG improves facts but does not make arbitrary retrieved text safe instructions; this is insufficient for the reported failure and its causal repair, given the evidence that a disguised executable is passed through the upload workflow as a document.
C:For work that needs to validate query structure and allowlisted read-only operations before execution, deterministic validation prevents a generated statement from becoming an unauthorized database action; the specific the reported failure and its causal repair instead requires scan and validate attachments before including content in prompts in light of a disguised executable is passed through the upload workflow as a document. Model-generated SQL is not trusted merely because it resembles an ordinary SELECT; this is insufficient for the reported failure and its causal repair, given the evidence that a disguised executable is passed through the upload workflow as a document.
D:Input filters evaluate configured harmful-content categories before or during protected inference workflows; that is valuable when the goal is to apply managed content-policy checks to user input, but the reported failure and its causal repair instead depends on the ability to scan and validate attachments before including content in prompts. IAM permission checks govern API access but do not classify harmful user language; it does not account for the condition in the reported failure and its causal repair: a disguised executable is passed through the upload workflow as a document.
F:Post-processing can enforce exact patterns for credentials that a probabilistic model may miss; this explains its relevance to apply deterministic secret-pattern detection before sending responses, not the the reported failure and its causal repair requirement to scan and validate attachments before including content in prompts after a disguised executable is passed through the upload workflow as a document. A safety classifier alone may not cover organization-specific token structures; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a disguised executable is passed through the upload workflow as a document.
Question 2
p95 inference time violates the interactive target despite low request volume. Investigators also establish that a service has strict interactive latency needs on eligible models. Which implementation most directly addresses the cause?
- Experiment with temperature and top-p settings on the creative task set.
- Optimize vector index search settings based on measured recall-latency curves.
- Benchmark latency-optimized model inference where available for the chosen model.
- Use supported batch inference or controlled application-side batching.
Explanation
Correct Answer
C:Service-tier choices can improve responsiveness but availability and model compatibility must be checked; that explains the reported failure: p95 inference time violates the interactive target despite low request volume. Latency optimization does not guarantee identical cost or support for every model; a symptom-only workaround would not restore the requirement to measure a supported latency-optimized inference mode against quality objectives.
Incorrect Answers
A: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 reported failure and its causal repair requirement to measure a supported latency-optimized inference mode against quality objectives after p95 inference time violates the interactive target despite low request volume. Increasing randomness without limits can raise factual and formatting error rates; choosing it for the reported failure and its causal repair would leave the underlying issue visible: p95 inference time violates the interactive target despite low request volume.
B:Vector index configuration trades candidate breadth, speed, and memory; this explains its relevance to profile and tune ANN index parameters and shard layout, not the the reported failure and its causal repair requirement to measure a supported latency-optimized inference mode against quality objectives after p95 inference time violates the interactive target despite low request volume. Increasing the top-k response size may worsen inference context overhead; choosing it for the reported failure and its causal repair would leave the underlying issue visible: p95 inference time violates the interactive target despite low request volume.
D:The scope of this alternative is different: bulk processing can trade turnaround time for efficiency and coordinated capacity use; it supports batch requests within latency and provider constraints, while the reported failure and its causal repair needs measure a supported latency-optimized inference mode against quality objectives after p95 inference time violates the interactive target despite low request volume. Interactive chat requests should not be delayed inside oversized batches; for the reported failure and its causal repair, the unresolved requirement remains to measure a supported latency-optimized inference mode against quality objectives, as shown when p95 inference time violates the interactive target despite low request volume.
Question 3
Different business units interpret acceptable AI use differently. The engineering team is required to codify common organization-wide requirements and exceptions. What should be built first?
- Use AWS CloudTrail for supported API audit events and correlate to deployment releases.
- Publish a policy-as-code control baseline for AI deployments.
- Catalog sources with AWS Glue metadata and explicit lineage records.
- Publish violation counts to CloudWatch with alarms and remediation workflows.
Explanation
Correct Answer
B:Central baselines make approved controls testable while permitting narrowly reviewed exceptions; it directly supports the architectural objective to codify common organization-wide requirements and exceptions. Individual team documentation alone does not consistently enforce shared obligations; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to capture AWS control-plane changes in an auditable event trail, cloudTrail records identity and control-plane events, complementing application-level inference traces; the specific the architecture selection instead requires codify common organization-wide requirements and exceptions in light of two teams deploy incompatible privacy filters under the same corporate policy. It is not a substitute for recording task-level answer quality and business decisions; this is insufficient for the architecture selection, given the evidence that two teams deploy incompatible privacy filters under the same corporate policy.
C:The scope of this alternative is different: a dataset catalog and transformation history make source provenance independently reviewable; it supports record how inputs were transformed and where they came from, while the architecture selection needs codify common organization-wide requirements and exceptions after two teams deploy incompatible privacy filters under the same corporate policy. CloudTrail API events alone do not describe every semantic transformation of data; for the architecture selection, the unresolved requirement remains to codify common organization-wide requirements and exceptions, as shown when two teams deploy incompatible privacy filters under the same corporate policy.
D:The scope of this alternative is different: rate-based monitoring identifies sustained drift and can trigger containment of affected releases; it supports detect policy-breach trends and route alerts to response owners, while the architecture selection needs codify common organization-wide requirements and exceptions after two teams deploy incompatible privacy filters under the same corporate policy. Only measuring availability misses safety degradation in otherwise successful calls; for the architecture selection, the unresolved requirement remains to codify common organization-wide requirements and exceptions, as shown when two teams deploy incompatible privacy filters under the same corporate policy.
Question 4
Production evidence: Similar tickets flip between categories because thresholds were never specified. The original design context was: A classifier becomes inconsistent on borderline customer tickets. Which change prevents recurrence?
- Correlate service errors, concurrency, retries, and request deadlines.
- Use LLM-as-a-judge evaluations with reference labels and consistency checks.
- Rewrite prompt criteria with boundary examples and validate expected classes.
- Use schema validators and prompt-version logging in the test pipeline.
- Add step-level logs and X-Ray spans around prompt and tool transitions.
Explanation
Correct Answer
C:Specific instructions reduce unplanned interpretation, while edge tests reveal remaining uncertainty; that explains the reported failure: similar tickets flip between categories because thresholds were never specified. Blindly lowering temperature cannot define missing decision boundaries; a symptom-only workaround would not restore the requirement to make decision criteria explicit and evaluate ambiguous examples.
Incorrect Answers
A:Error classification distinguishes transient capacity limits from client deadline exhaustion; that is valuable when the goal is to separate quota pressure from upstream network and application timeouts, but the reported failure and its causal repair instead depends on the ability to make decision criteria explicit and evaluate ambiguous examples. Treating every exception as a model-quality failure sends debugging in the wrong direction; it does not account for the condition in the reported failure and its causal repair: similar tickets flip between categories because thresholds were never specified.
B:Rubric-based judging scales measurement when evaluated for bias and agreement; that is valuable when the goal is to define an explicit judge rubric and calibrate against human examples, but the reported failure and its causal repair instead depends on the ability to make decision criteria explicit and evaluate ambiguous examples. A single unverified judge score is not ground truth; it does not account for the condition in the reported failure and its causal repair: similar tickets flip between categories because thresholds were never specified.
D:For work that needs to add automated contract checks and version-aware prompt diagnostics, output validation localizes whether a template revision changed field structure; the specific the reported failure and its causal repair instead requires make decision criteria explicit and evaluate ambiguous examples in light of similar tickets flip between categories because thresholds were never specified. Only measuring model latency cannot explain parser failures; this is insufficient for the reported failure and its causal repair, given the evidence that similar tickets flip between categories because thresholds were never specified.
E:The scope of this alternative is different: tracing the boundaries reveals where context or formatting changes unexpectedly; it supports trace intermediate prompts and transformations with secure correlation IDs, while the reported failure and its causal repair needs make decision criteria explicit and evaluate ambiguous examples after similar tickets flip between categories because thresholds were never specified. A final answer log alone cannot reconstruct lost intermediate fields; for the reported failure and its causal repair, the unresolved requirement remains to make decision criteria explicit and evaluate ambiguous examples, as shown when similar tickets flip between categories because thresholds were never specified.
Question 5
A long customer request needs a separate review path for regulated topics. A successful solution needs to branch an AI workflow based on trusted classification results. Which option is the most suitable design?
- Implement a clarification branch using deterministic workflow state.
- Use Amazon Bedrock Prompt Management with versioned prompt templates.
- Implement a defense-in-depth moderation pipeline at distinct trust boundaries.
- Implement conditional branching and escalation in an orchestrated prompt flow.
Explanation
Correct Answer
D:Branching isolates specialized handling and can route sensitive outcomes through human review; it directly supports the architectural objective to branch an AI workflow based on trusted classification results. A generic all-purpose prompt cannot guarantee a mandatory approval transition; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to pause and obtain clarification before invoking expensive downstream tools, explicit state transitions prevent the application from guessing mandatory values; the specific the architecture selection instead requires branch an AI workflow based on trusted classification results in light of regulated messages bypass the required expert-review queue. Increasing temperature makes missing identifiers less reliable, not more available; this is insufficient for the architecture selection, given the evidence that regulated messages bypass the required expert-review queue.
B:The scope of this alternative is different: versioning creates a reviewable artifact with variables, allowing controlled rollout and rollback; it supports centralize parameterized prompts and promote immutable versions, while the architecture selection needs branch an AI workflow based on trusted classification results after regulated messages bypass the required expert-review queue. Copying prompt strings into application code hides drift between clients; for the architecture selection, the unresolved requirement remains to branch an AI workflow based on trusted classification results, as shown when regulated messages bypass the required expert-review queue.
C:Independent stages catch different failure modes: unsafe inputs, model behavior, and unsafe final outputs; this explains its relevance to layer data classification, input safety, FM guardrails, and output checks, not the the architecture selection requirement to branch an AI workflow based on trusted classification results after regulated messages bypass the required expert-review queue. A single prompt instruction cannot replace independent enforcement points; choosing it for the architecture selection would leave the underlying issue visible: regulated messages bypass the required expert-review queue.
Question 6
A security team probes a tool-enabled assistant for jailbreaks. A successful solution needs to measure resistance using repeatable adversarial test suites. Which option is the most suitable design?
- Validate tool arguments and enforce IAM-scoped execution independent of retrieved instructions.
- Record tool calls per successful task and detect repeated action patterns.
- Run prompt-injection and jailbreak evaluations against the full tool workflow.
- Create versioned guardrail configurations with reviewed deployment promotion.
- Test supported guardrail policies with multilingual adversarial examples and fallback handling.
Explanation
Correct Answer
C:Testing realistic attacks surfaces gaps that benign user prompts and single-model demos miss; it directly supports the architectural objective to measure resistance using repeatable adversarial test suites. A policy document claiming safety is not a measured security result; that boundary is important when selecting the implementation.
Incorrect Answers
A:Backend authorization constrains the blast radius even if model text is manipulated; this explains its relevance to block privilege escalation when ticket text is adversarial, not the the architecture selection requirement to measure resistance using repeatable adversarial test suites after a crafted prompt obtains a tool call that standard tests never attempted. Filtering for a few banned words cannot recognize every prompt injection pattern; choosing it for the architecture selection would leave the underlying issue visible: a crafted prompt obtains a tool call that standard tests never attempted.
B:For work that needs to measure tool efficiency and stopping correctness, efficiency metrics reveal unproductive loops that raise cost and risk; the specific the architecture selection instead requires measure resistance using repeatable adversarial test suites in light of a crafted prompt obtains a tool call that standard tests never attempted. High model response quality does not imply economical orchestration; this is insufficient for the architecture selection, given the evidence that a crafted prompt obtains a tool call that standard tests never attempted.
D:Version control helps reproduce enforcement outcomes and safely stage policy revisions; that is valuable when the goal is to maintain controlled guardrail versions and test each policy change, but the architecture selection instead depends on the ability to measure resistance using repeatable adversarial test suites. Editing a live content filter without testing can create unexpected overblocking; it does not account for the condition in the architecture selection: a crafted prompt obtains a tool call that standard tests never attempted.
E:For work that needs to verify moderation coverage for the deployed languages, safety effectiveness must be evaluated for the actual languages and model path in use; the specific the architecture selection instead requires measure resistance using repeatable adversarial test suites in light of a crafted prompt obtains a tool call that standard tests never attempted. A single English test cannot demonstrate protection for every locale; this is insufficient for the architecture selection, given the evidence that a crafted prompt obtains a tool call that standard tests never attempted.
Question 7
Traffic peaks cause repeated Bedrock throttling. The architecture must control concurrency and smooth demand before it reaches the FM. Which implementation best meets that requirement?
- Retrieve only top-ranked bounded passages and reserve an explicit context budget.
- Enforce queue-based concurrency limits and bounded admission control.
- Use a smaller default model with confidence or complexity-based escalation.
- Tune endpoint autoscaling against throughput, queue depth, and token load.
Explanation
Correct Answer
B:Concurrency gates prevent sudden bursts from overwhelming model quotas; it directly supports the architectural objective to control concurrency and smooth demand before it reaches the FM. Unrestricted retries increase load rather than creating capacity; that boundary is important when selecting the implementation.
Incorrect Answers
A:Smaller relevant context reduces input tokens and avoids crowding out necessary instructions; that is valuable when the goal is to cut input tokens while keeping the relevant evidence, but the architecture selection instead depends on the ability to control concurrency and smooth demand before it reaches the FM. Blindly removing all context may improve cost while destroying factual grounding; it does not account for the condition in the architecture selection: request spikes create a storm of rate-limit errors across every caller.
C:The scope of this alternative is different: a cascade pays premium inference costs for the minority of requests requiring deeper capability; it supports control spend without sacrificing difficult-case quality, while the architecture selection needs control concurrency and smooth demand before it reaches the FM after request spikes create a storm of rate-limit errors across every caller. Uniform model selection cannot exploit the workload's complexity distribution; for the architecture selection, the unresolved requirement remains to control concurrency and smooth demand before it reaches the FM, as shown when request spikes create a storm of rate-limit errors across every caller.
D:Token processing and memory requirements can predict resource pressure better than request count alone; this explains its relevance to scale workers using token-related demand signals and minimum capacity needs, not the the architecture selection requirement to control concurrency and smooth demand before it reaches the FM after request spikes create a storm of rate-limit errors across every caller. CPU-only autoscaling can miss decoder saturation and KV-cache constraints; choosing it for the architecture selection would leave the underlying issue visible: request spikes create a storm of rate-limit errors across every caller.
Question 8
A large-model workflow also receives trivial classification requests. The architecture must route easy tasks to a small specialist and reserve stronger reasoning for exceptions. Which implementation best meets that requirement?
- Use a coordinator that delegates bounded subtasks to specialist agents.
- Use policy-driven human escalation conditions enforced outside model prose.
- Use a cascade with measurable thresholds for escalation.
- Add an evidence-insufficiency branch that requests retrieval or human input.
Explanation
Correct Answer
C:Task-dependent routing conserves inference cost while maintaining quality on demanding inputs; it directly supports the architectural objective to route easy tasks to a small specialist and reserve stronger reasoning for exceptions. Always using the strongest model ignores the easy-query cost advantage; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: explicit coordination preserves task ownership, context, and control across model boundaries; it supports route tasks to the right specialist and preserve an auditable handoff, while the architecture selection 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. Letting every agent call every tool obscures responsibility and privilege scope; for the architecture selection, 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.
B:The application makes escalation deterministic for defined risk classes; this explains its relevance to route risk-sensitive outputs to specialists rather than all outputs, not the the architecture selection 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. A generic confidence statement from the model is not a security policy gate; choosing it for the architecture selection would leave the underlying issue visible: simple ticket labels incur the same long latency as intricate dispute analysis.
D:The scope of this alternative is different: deterministic branching can stop progression when required data is absent, rather than letting a model improvise; it supports avoid fabricating missing intermediate facts in a reasoning workflow, while the architecture selection 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. Longer chain-of-thought text is not a verification substitute; for the architecture selection, 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.
Question 9
A team compares two prompts for potentially biased explanations. A release proposal aims to run controlled A/B prompt evaluations on matched examples. Which architecture decision fits the constraint?
- Use versioned prompts and matched evaluation cohorts with documented scoring.
- Publish evaluation reports with complete experiment provenance.
- Record policy outcomes and route blocked responses to safe alternatives or human review.
- Report confidence proxies, cited inputs, and caveats matched to evaluation results.
Explanation
Correct Answer
A:Comparable inputs isolate prompt changes from sample-composition differences; it directly supports the architectural objective to run controlled A/B prompt evaluations on matched examples. Comparing unrelated traffic groups confounds prompt effect with user mix; that boundary is important when selecting the implementation.
Incorrect Answers
B:Reproducible metadata enables independent review of why a version passed; that is valuable when the goal is to archive dataset version, scoring rubric, model and prompt configuration, but the architecture selection instead depends on the ability to run controlled A/B prompt evaluations on matched examples. An unversioned spreadsheet of final scores cannot be reproduced; it does not account for the condition in the architecture selection: the new prompt appears fairer solely because its test traffic is different.
C:For work that needs to build intervention logging and controlled fallback behavior into the app, explicit handling avoids exposing forbidden text while preserving an audit trail; the specific the architecture selection instead requires run controlled A/B prompt evaluations on matched examples in light of the new prompt appears fairer solely because its test traffic is different. Silently replacing every blocked response with a generic claim hides policy failures; this is insufficient for the architecture selection, given the evidence that the new prompt appears fairer solely because its test traffic is different.
D:Calibrated communication conveys reliability limits and source coverage; that is valuable when the goal is to avoid presenting uncertain statements as deterministic facts, but the architecture selection instead depends on the ability to run controlled A/B prompt evaluations on matched examples. A confident tone setting does not measure uncertainty; it does not account for the condition in the architecture selection: the new prompt appears fairer solely because its test traffic is different.
Question 10
Containers fail security review because the model key is hard-coded in source control. Investigators also establish that a batch document service calls an FM from a container worker. Which implementation most directly addresses the cause?
- Implement content-aware model routing against an approved capability map.
- Use Bedrock Converse with a provider adapter for model-specific parameters.
- Correlate invocation traces and structured tool logs with request IDs.
- Use an AWS SDK credential provider and least-privilege role for model invocation.
Explanation
Correct Answer
D:SDK signing and role credentials keep long-lived secrets out of application artifacts; that explains the reported failure: containers fail security review because the model key is hard-coded in source control. Storing static AWS keys in a container image increases credential leakage risk; a symptom-only workaround would not restore the requirement to sign runtime requests with service identity rather than embedded credentials.
Incorrect Answers
A:For work that needs to route requests based on required capability rather than one fixed FM, task classification selects a model whose features and cost fit each input; the specific the reported failure and its causal repair instead requires sign runtime requests with service identity rather than embedded credentials in light of containers fail security review because the model key is hard-coded in source control. Uniform random routing can send image tasks to text-only models; this is insufficient for the reported failure and its causal repair, given the evidence that containers fail security review because the model key is hard-coded in source control.
B:Converse presents a common messages API for supported models, with extensibility for unique fields; this explains its relevance to standardize message exchange across model families, not the the reported failure and its causal repair 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. A model-specific raw payload should not be assumed to work for every provider; choosing it for the reported failure and its causal repair would leave the underlying issue visible: containers fail security review because the model key is hard-coded in source control.
C:For work that needs to find failed tool events across a complex runtime session, event-level traces reveal which reasoning step formed a bad function argument and where validation failed; the specific the reported failure and its causal repair instead requires sign runtime requests with service identity rather than embedded credentials in light of containers fail security review because the model key is hard-coded in source control. Aggregate model success percentages obscure the failing tool request; this is insufficient for the reported failure and its causal repair, given the evidence that containers fail security review because the model key is hard-coded in source control.