Question 30
A Bedrock application sends conversation history but receives role-format errors. The incident report says: The runtime rejects an otherwise sensible prompt because its message layout is invalid. Which specific design change best corrects the failure?
- Apply AWS Glue Data Quality rules and quarantine invalid source records.
- Use a preprocessing transform that identifies and restores section boundaries before chunking.
- Build properly structured Bedrock Converse messages rather than concatenating ad hoc JSON.
- Construct content blocks with the correct media format and model-supported payload type.
Explanation
Correct Answer
C:The Converse request schema distinguishes roles, message content, system instructions, and inference options; that explains the reported failure: the runtime rejects an otherwise sensible prompt because its message layout is invalid. A plain JSON-looking string is not equivalent to the required typed request structure; a symptom-only workaround would not restore the requirement to serialize each turn as a valid message with supported roles and content blocks.
Incorrect Answers
A:For work that needs to reject malformed rows before embedding and indexing, quality rules can check required fields, ranges, and patterns before downstream indexing uses the data; the specific the reported failure and its causal repair instead requires serialize each turn as a valid message with supported roles and content blocks in light of the runtime rejects an otherwise sensible prompt because its message layout is invalid. An embedding model can encode malformed text but cannot repair authoritative source accuracy; this is insufficient for the reported failure and its causal repair, given the evidence that the runtime rejects an otherwise sensible prompt because its message layout is invalid.
B:Structure-aware preparation improves retrieval context and supports citations back to source spans; this explains its relevance to repair document structure while retaining a link to unmodified evidence, not the the reported failure and its causal repair requirement to serialize each turn as a valid message with supported roles and content blocks after the runtime rejects an otherwise sensible prompt because its message layout is invalid. Flattening all text into one unstructured field can combine unrelated clauses; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the runtime rejects an otherwise sensible prompt because its message layout is invalid.
D:The API schema and selected model capability jointly determine how nontext input is accepted; this explains its relevance to send supported image blocks with the surrounding user text, not the the reported failure and its causal repair requirement to serialize each turn as a valid message with supported roles and content blocks after the runtime rejects an otherwise sensible prompt because its message layout is invalid. Putting base64 characters in a text field does not create an image input block; choosing it for the reported failure and its causal repair would leave the underlying issue visible: the runtime rejects an otherwise sensible prompt because its message layout is invalid.
Question 31
A conversational UI feels slow despite acceptable total throughput. A successful solution needs to show generated text incrementally to reduce perceived wait. Which option is the most suitable design?
- Restructure integration calls to batch or parallelize independent work.
- Instrument retrieval, prompt assembly, model inference, and tool spans separately.
- Use supported FM streaming and forward events promptly to clients.
- Key caches by authorization scope, model revision, and relevant data version.
Explanation
Correct Answer
C:The first visible token can arrive before full completion, improving interaction responsiveness; it directly supports the architectural objective to show generated text incrementally to reduce perceived wait. Streaming does not necessarily reduce total token compute cost; that boundary is important when selecting the implementation.
Incorrect Answers
A:Minimizing critical-path service hops frees latency budget for the actual model response; this explains its relevance to reduce network round trips and combine independent lookups, not the the architecture selection requirement to show generated text incrementally to reduce perceived wait after a long response leaves the UI blank until all text is generated. A faster FM cannot fully compensate for avoidable serial network calls; choosing it for the architecture selection would leave the underlying issue visible: a long response leaves the UI blank until all text is generated.
B:Per-stage profiling identifies where optimization actually reduces the critical path; that is valuable when the goal is to trace end-to-end timings rather than assuming the FM is slow, but the architecture selection instead depends on the ability to show generated text incrementally to reduce perceived wait. An aggregate duration metric hides slow vector queries; it does not account for the condition in the architecture selection: a long response leaves the UI blank until all text is generated.
D:Cache identity must reflect user visibility and the evidence used to create the answer; that is valuable when the goal is to prevent cross-tenant reuse even when the prompt text is identical, but the architecture selection instead depends on the ability to show generated text incrementally to reduce perceived wait. Hashing only the question ignores who is permitted to see the response; it does not account for the condition in the architecture selection: a long response leaves the UI blank until all text is generated.
Question 32
Production evidence: The evaluator changes its rating when response order is swapped. The original design context was: A team scales subjective model reviews with an automatic judge. Which change prevents recurrence?
- Use LLM-as-a-judge evaluations with reference labels and consistency checks.
- Use model evaluations plus human expert review for ambiguous high-risk outcomes.
- Establish blind human reviews with adjudication for contested examples.
- Calibrate an LLM-as-a-judge rubric with human-reviewed reference cases.
Explanation
Correct Answer
A:Rubric-based judging scales measurement when evaluated for bias and agreement; that explains the reported failure: the evaluator changes its rating when response order is swapped. A single unverified judge score is not ground truth; a symptom-only workaround would not restore the requirement to define an explicit judge rubric and calibrate against human examples.
Incorrect Answers
B: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 define an explicit judge rubric and calibrate against human examples after the evaluator changes its rating when response order is swapped. Automatic fluency scores cannot settle complex regulatory appropriateness; for the reported failure and its causal repair, the unresolved requirement remains to define an explicit judge rubric and calibrate against human examples, as shown when the evaluator changes its rating when response order is swapped.
C:Consistent rubrics and disagreement handling improve label reliability; that is valuable when the goal is to use a documented annotation rubric and reconcile reviewer disagreement, but the reported failure and its causal repair instead depends on the ability to define an explicit judge rubric and calibrate against human examples. A single uncalibrated reviewer can inject personal preference into evaluation; it does not account for the condition in the reported failure and its causal repair: the evaluator changes its rating when response order is swapped.
D:For work that needs to validate automated rubric ratings against independent expert judgments, automated evaluators can scale review, but their own bias and consistency need testing; the specific the reported failure and its causal repair instead requires define an explicit judge rubric and calibrate against human examples in light of the evaluator changes its rating when response order is swapped. A single judge's numeric score is not a ground-truth fairness guarantee; this is insufficient for the reported failure and its causal repair, given the evidence that the evaluator changes its rating when response order is swapped.
Question 33
A factory stores sensitive source records on premises. After deployment, a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts. Engineers need a cause-level fix, not a change in presentation. What should they implement?
- Partition the RAG architecture by residency domain and enforce region-aware routing.
- Use Amazon Macie for S3 sensitive-data discovery with remediation workflows.
- Apply least-privilege Bedrock IAM permissions in a trusted backend authorization layer.
- Use a controlled hybrid connectivity path and minimize transferred sensitive data.
Explanation
Correct Answer
D:Hybrid design separates locally governed source systems from cloud FM calls and permits explicit data movement policy; that explains the reported failure: a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts. Hosting other workloads on Outposts does not automatically place Bedrock inference on premises; a symptom-only workaround would not restore the requirement to integrate approved metadata with cloud inference over private connectivity.
Incorrect Answers
A:For work that needs to choose per-jurisdiction storage and processing paths before inference, data location and inference destination both matter when governing cross-border processing; the specific the reported failure and its causal repair instead requires integrate approved metadata with cloud inference over private connectivity in light of a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts. Replicating all vector indexes into one region may violate source residency rules; this is insufficient for the reported failure and its causal repair, given the evidence that a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts.
B:Macie can identify sensitive data in S3 objects and trigger action before indexing; that is valuable when the goal is to detect sensitive content in S3 prior to making it searchable, but the reported failure and its causal repair instead depends on the ability to integrate approved metadata with cloud inference over private connectivity. Macie is not an inline filter for arbitrary model responses; it does not account for the condition in the reported failure and its causal repair: a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts.
C:For work that needs to restrict invocation rights to approved model resources for each caller, iAM can constrain model invocation actions and resources, complementing application tenant rules; the specific the reported failure and its causal repair instead requires integrate approved metadata with cloud inference over private connectivity in light of a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts. A prompt telling the model to use a cheaper provider is not an enforcement mechanism; this is insufficient for the reported failure and its causal repair, given the evidence that a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts.
Question 34
Manual console replication can silently create different policy scopes or network paths. An architecture reviewer must still ensure the application can prevent infrastructure configuration drift between test and production deployments. What recommendation is justified?
- Execute structured-output and safety test cases in an automated prompt test workflow.
- Publish parameterized IaC modules and validate them in CI for each environment.
- Define shared infrastructure modules and apply the AWS Well-Architected Generative AI Lens.
- Use retrieval-augmented generation with authorization-filtered source retrieval.
Explanation
Correct Answer
B:Infrastructure as code makes endpoints, IAM, logging, and security defaults reproducible and reviewable; this is the behavior to validate in a release review concerned with prevent infrastructure configuration drift between test and production deployments. Manual console replication can silently create different policy scopes or network paths; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:Edge cases reveal schema failures, instruction conflicts, and unsafe fallbacks that normal examples miss; that is valuable when the goal is to test malformed, adversarial, and boundary inputs before deployment, but the release-control decision instead depends on the ability to prevent infrastructure configuration drift between test and production deployments. Validating only the happy path leaves parser failure modes untested; it does not account for the condition in the release-control decision: the same assistant behaves differently because production has an unreviewed resource policy.
C:Standard deployment patterns encode tested identity, observability, reliability, and cost choices across teams; that is valuable when the goal is to provide a reusable reference architecture with repeatable security and operations checks, but the release-control decision instead depends on the ability to prevent infrastructure configuration drift between test and production deployments. Copying application source alone does not standardize IAM boundaries or operational controls; it does not account for the condition in the release-control decision: the same assistant behaves differently because production has an unreviewed resource policy.
D:The scope of this alternative is different: retrieval supplies current authorized passages at request time, allowing the model to ground an answer without changing model weights; it supports produce evidence-backed answers from current contracts without teaching a new model the documents, while the release-control decision needs prevent infrastructure configuration drift between test and production deployments after the same assistant behaves differently because production has an unreviewed resource policy. Training or prompt-only recall cannot guarantee document freshness or per-user access control; for the release-control decision, the unresolved requirement remains to prevent infrastructure configuration drift between test and production deployments, as shown when the same assistant behaves differently because production has an unreviewed resource policy.
Question 35
Production evidence: A prompt version is promoted with no responsible owner or test evidence. The original design context was: A company needs repeatable compliance approval for prompt and model revisions. Which change prevents recurrence?
- Maintain deployment-linked model cards and policy attestations.
- Use AWS CloudTrail for supported API audit events and correlate to deployment releases.
- Establish versioned approvals and automated policy gates in deployment pipelines.
- Standardize audit dimensions for inference, deployment, and safety events.
Explanation
Correct Answer
C:Release records join model, prompt, data, and guardrail revisions with validated test results; that explains the reported failure: a prompt version is promoted with no responsible owner or test evidence. An informal message about approval cannot be reliably enforced by automation; a symptom-only workaround would not restore the requirement to require evidence-backed signoff before version promotion.
Incorrect Answers
A:For work that needs to connect deployed versions to model limitations and permitted-purpose policy, written limits and tests make scope decisions reviewable across model updates; the specific the reported failure and its causal repair instead requires require evidence-backed signoff before version promotion in light of a prompt version is promoted with no responsible owner or test evidence. A developer's informal note does not bind a runtime to the approved scope; this is insufficient for the reported failure and its causal repair, given the evidence that a prompt version is promoted with no responsible owner or test evidence.
B: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 reported failure and its causal repair instead requires require evidence-backed signoff before version promotion in light of a prompt version is promoted with no responsible owner or test evidence. It is not a substitute for recording task-level answer quality and business decisions; this is insufficient for the reported failure and its causal repair, given the evidence that a prompt version is promoted with no responsible owner or test evidence.
D:For work that needs to correlate policy events, model version, and request identifiers, cross-system correlation allows review of which version and policy were active during an incident; the specific the reported failure and its causal repair instead requires require evidence-backed signoff before version promotion in light of a prompt version is promoted with no responsible owner or test evidence. Independent uncoupled dashboards cannot reliably reconstruct an event sequence; this is insufficient for the reported failure and its causal repair, given the evidence that a prompt version is promoted with no responsible owner or test evidence.
Question 36
GPU utilization is low while individual requests wait in an inefficient per-request queue. Investigators also establish that a container-hosted model has poor throughput on mixed-length requests. Which implementation most directly addresses the cause?
- Evaluate Amazon Bedrock Provisioned Throughput for the selected supported model.
- Build a common service contract with adapters for Bedrock and SageMaker AI endpoints.
- Use an inference server with dynamic batching tuned to latency objectives.
- Profile GPU memory and model loading, then allocate suitable inference instances.
- Profile prefill and decode bottlenecks with token-specific metrics.
Explanation
Correct Answer
C:Batching can improve accelerator utilization but must be bounded to protect interactive delay; that explains the reported failure: gPU utilization is low while individual requests wait in an inefficient per-request queue. Simply adding network load balancers does not optimize token scheduling; a symptom-only workaround would not restore the requirement to introduce serving-level batching and token-aware queue management.
Incorrect Answers
A:Provisioned capacity is designed for workloads needing committed throughput rather than purely bursty on-demand access; this explains its relevance to reserve supported inference capacity for steady traffic, not the the reported failure and its causal repair requirement to introduce serving-level batching and token-aware queue management after gPU utilization is low while individual requests wait in an inefficient per-request queue. Cross-Region inference profiles do not become provisioned capacity reservations; choosing it for the reported failure and its causal repair would leave the underlying issue visible: gPU utilization is low while individual requests wait in an inefficient per-request queue.
B:An application-level interface can translate payloads and propagate tracing while maintaining backend independence; that is valuable when the goal is to separate inference abstraction from provider-specific deployment details, but the reported failure and its causal repair instead depends on the ability to introduce serving-level batching and token-aware queue management. Trying to send identical provider-specific headers to every endpoint will break interoperability; it does not account for the condition in the reported failure and its causal repair: gPU utilization is low while individual requests wait in an inefficient per-request queue.
D:The scope of this alternative is different: lLM serving must account for model parameters, activation and cache memory, and concurrent token generation; it supports size the runtime for weights, KV cache, and maximum concurrency, while the reported failure and its causal repair needs introduce serving-level batching and token-aware queue management after gPU utilization is low while individual requests wait in an inefficient per-request queue. CPU autoscaling alone does not fix GPU memory exhaustion; for the reported failure and its causal repair, the unresolved requirement remains to introduce serving-level batching and token-aware queue management, as shown when gPU utilization is low while individual requests wait in an inefficient per-request queue.
E:For work that needs to measure input and output token throughput separately, token-stage measurements distinguish long-prompt processing from slow completion generation; the specific the reported failure and its causal repair instead requires introduce serving-level batching and token-aware queue management in light of gPU utilization is low while individual requests wait in an inefficient per-request queue. Request-per-second counts conceal large differences in token workload; this is insufficient for the reported failure and its causal repair, given the evidence that gPU utilization is low while individual requests wait in an inefficient per-request queue.
Question 37
A drafting assistant varies too widely in tone and structure. The engineering team is required to reduce output variation through explicit constraints and lower sampling randomness. What should be built first?
- Build evidence-first prompts that require supporting passages for claims.
- Use ConverseStream or a supported streaming Bedrock operation with an appropriate client transport.
- Specify concrete style and output constraints and benchmark suitable sampling settings.
- Use schema-oriented instructions with application-side JSON validation.
Explanation
Correct Answer
C:Clear instructions define expected content while lower temperature can reduce variation for supported models; it directly supports the architectural objective to reduce output variation through explicit constraints and lower sampling randomness. Lower temperature cannot make external facts true without grounded evidence; that boundary is important when selecting the implementation.
Incorrect Answers
A:Grounding the answer to retrieved material and permitting uncertainty reduces unsupported completions; this explains its relevance to include bounded evidence and instructions to abstain when unsupported, not the the architecture selection requirement to reduce output variation through explicit constraints and lower sampling randomness after repeated requests generate inconsistent headings and discretionary language. Merely asking a model to be accurate cannot supply missing knowledge; choosing it for the architecture selection would leave the underlying issue visible: repeated requests generate inconsistent headings and discretionary language.
B:For work that needs to deliver incremental tokens through a supported streaming inference API, streaming sends response increments, improving perceived latency without changing total generated work; the specific the architecture selection instead requires reduce output variation through explicit constraints and lower sampling randomness in light of repeated requests generate inconsistent headings and discretionary language. A synchronous InvokeModel response provides output after completion rather than incremental display; this is insufficient for the architecture selection, given the evidence that repeated requests generate inconsistent headings and discretionary language.
D:An output contract improves consistency, while code validation catches nonconforming responses before side effects; that is valuable when the goal is to define explicit output structure and validate generated data, but the architecture selection instead depends on the ability to reduce output variation through explicit constraints and lower sampling randomness. Prompt examples alone do not make model output a trusted typed object; it does not account for the condition in the architecture selection: repeated requests generate inconsistent headings and discretionary language.
Question 38
A policy assistant confidently cites fabricated sections. A successful solution needs to bind the answer to retrieved evidence and inspect citation support. Which option is the most suitable design?
- Separate retrieved content from trusted instructions and deny tool authority to source text.
- Use evidence verification and policy-based output review with human escalation.
- Use source-grounded RAG with a post-generation citation consistency check.
- Track retrieval provenance from the source object to the final citation.
Explanation
Correct Answer
C:Retrieval provides attributable evidence; the checker rejects claims unsupported by the cited passage; it directly supports the architectural objective to bind the answer to retrieved evidence and inspect citation support. A plausible citation-looking string is not proof that the document says the claim; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: trust boundaries prevent source passages from redefining policies or initiating privileged calls; it supports treat retrieved document text as untrusted evidence, not executable authority, while the architecture selection needs bind the answer to retrieved evidence and inspect citation support after an answer quotes a nonexistent paragraph number from an otherwise valid source. RAG improves facts but does not make arbitrary retrieved text safe instructions; for the architecture selection, the unresolved requirement remains to bind the answer to retrieved evidence and inspect citation support, as shown when an answer quotes a nonexistent paragraph number from an otherwise valid source.
B:For work that needs to gate high-risk advice on evidence and policy review rather than fluency, a policy decision checks whether an answer is supported and within allowed scope; the specific the architecture selection instead requires bind the answer to retrieved evidence and inspect citation support in light of an answer quotes a nonexistent paragraph number from an otherwise valid source. Lower temperature may reduce variability but cannot certify clinical correctness; this is insufficient for the architecture selection, given the evidence that an answer quotes a nonexistent paragraph number from an otherwise valid source.
D:Stable source IDs and spans allow reviewers to verify claimed evidence; this explains its relevance to carry document identifiers and chunk locations into the generated response, not the the architecture selection requirement to bind the answer to retrieved evidence and inspect citation support after an answer quotes a nonexistent paragraph number from an otherwise valid source. A generated footnote without a backing retrieval record can be fabricated; choosing it for the architecture selection would leave the underlying issue visible: an answer quotes a nonexistent paragraph number from an otherwise valid source.
Question 39
A predictable high-volume workload needs committed model throughput. The incident report says: A steady premium workload is repeatedly constrained by on-demand traffic variability. Which specific design change best corrects the failure?
- Use a smaller default model with confidence or complexity-based escalation.
- Evaluate Amazon Bedrock Provisioned Throughput for the selected supported model.
- Invoke the selected Bedrock model through a Lambda-based request handler.
- Use an appropriate cross-Region inference profile and bounded application retries.
Explanation
Correct Answer
B:Provisioned capacity is designed for workloads needing committed throughput rather than purely bursty on-demand access; that explains the reported failure: a steady premium workload is repeatedly constrained by on-demand traffic variability. Cross-Region inference profiles do not become provisioned capacity reservations; a symptom-only workaround would not restore the requirement to reserve supported inference capacity for steady traffic.
Incorrect Answers
A: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 reported failure and its causal repair needs reserve supported inference capacity for steady traffic after a steady premium workload is repeatedly constrained by on-demand traffic variability. Uniform model selection cannot exploit the workload's complexity distribution; for the reported failure and its causal repair, the unresolved requirement remains to reserve supported inference capacity for steady traffic, as shown when a steady premium workload is repeatedly constrained by on-demand traffic variability.
C:A short-lived function can call managed inference without hosting model weights; this explains its relevance to use on-demand inference from event-driven compute, not the the reported failure and its causal repair requirement to reserve supported inference capacity for steady traffic after a steady premium workload is repeatedly constrained by on-demand traffic variability. Provisioned capacity may be excessive for infrequent low-volume use; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a steady premium workload is repeatedly constrained by on-demand traffic variability.
D:A Bedrock inference profile routes supported calls across allowed destination Regions, helping smooth regional capacity pressure; this explains its relevance to maintain service continuity across supported Bedrock capacity pools, not the the reported failure and its causal repair requirement to reserve supported inference capacity for steady traffic after a steady premium workload is repeatedly constrained by on-demand traffic variability. Geographic or global profile selection must respect contractual processing boundaries; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a steady premium workload is repeatedly constrained by on-demand traffic variability.
Question 40
A code-review note warns: The model does not persist an application's prior requests automatically. The business requirement is to maintain a scoped, expiring conversation state outside model weights. Which mechanism should replace the shortcut?
- Build evidence-first prompts that require supporting passages for claims.
- Compose modular prompt steps with explicit inputs, outputs, and failure handlers.
- Use context-window accounting with retrieval pruning and safe truncation.
- Store tenant-keyed session history and reconstruct a bounded message context.
- Gate prompt version promotion and retain associated CloudTrail control-plane records.
Explanation
Correct Answer
D:External state allows controlled continuity, retention, and size limits between otherwise stateless calls; this is the behavior to validate in a release review concerned with maintain a scoped, expiring conversation state outside model weights. The model does not persist an application's prior requests automatically; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:The scope of this alternative is different: grounding the answer to retrieved material and permitting uncertainty reduces unsupported completions; it supports include bounded evidence and instructions to abstain when unsupported, while the release-control decision needs maintain a scoped, expiring conversation state outside model weights after after a new API call, the bot asks for diagnostic results that were provided earlier. Merely asking a model to be accurate cannot supply missing knowledge; for the release-control decision, the unresolved requirement remains to maintain a scoped, expiring conversation state outside model weights, as shown when after a new API call, the bot asks for diagnostic results that were provided earlier.
B:For work that needs to publish reusable prompt-flow components with monitored I/O contracts, component reuse reduces inconsistent transformation logic and supports per-step tracing; the specific the release-control decision instead requires maintain a scoped, expiring conversation state outside model weights in light of after a new API call, the bot asks for diagnostic results that were provided earlier. Duplicating prompt chains in every app makes fixes and safety checks uneven; this is insufficient for the release-control decision, given the evidence that after a new API call, the bot asks for diagnostic results that were provided earlier.
C:Model limits cover combined input context and expected output, so evidence needs explicit allocation; that is valuable when the goal is to budget system, retrieved, conversation, and output tokens before the call, but the release-control decision instead depends on the ability to maintain a scoped, expiring conversation state outside model weights. Blindly raising max output tokens can worsen a context-budget failure; it does not account for the condition in the release-control decision: after a new API call, the bot asks for diagnostic results that were provided earlier.
E:The scope of this alternative is different: approval records and API audit trails complement template versioning for accountability; it supports keep a reviewed prompt release process with change audit events, while the release-control decision needs maintain a scoped, expiring conversation state outside model weights after after a new API call, the bot asks for diagnostic results that were provided earlier. A model response log alone does not establish who deployed an instruction change; for the release-control decision, the unresolved requirement remains to maintain a scoped, expiring conversation state outside model weights, as shown when after a new API call, the bot asks for diagnostic results that were provided earlier.