Question 50
Paraphrased shipping questions each trigger a full new generation. Investigators also establish that many questions are paraphrases of a limited set of approved topics. Which implementation most directly addresses the cause?
- Cache deterministic FAQ responses with a policy-aware TTL.
- Use semantic caching with similarity thresholds and authorization-aware cache keys.
- Use version-aware cache invalidation linked to freshness requirements.
- Evaluate Bedrock prompt caching for stable repeated prompt segments.
- Key caches by authorization scope, model revision, and relevant data version.
Explanation
Correct Answer
B:Semantic matching can reduce repeated inference even when phrasing differs; that explains the reported failure: paraphrased shipping questions each trigger a full new generation. Overbroad similarity thresholds can return an answer for a materially different question; a symptom-only workaround would not restore the requirement to reuse answers for meaning-equivalent inputs with strong safeguards.
Incorrect Answers
A:A response cache bypasses redundant FM calls when identity, version, and validity conditions match; this explains its relevance to avoid regenerating identical approved answers while respecting freshness, not the the reported failure and its causal repair requirement to reuse answers for meaning-equivalent inputs with strong safeguards after paraphrased shipping questions each trigger a full new generation. An unkeyed global cache risks serving private answers to the wrong user; choosing it for the reported failure and its causal repair would leave the underlying issue visible: paraphrased shipping questions each trigger a full new generation.
C:A cache can retain speed benefits while dropping answers based on stale documents; that is valuable when the goal is to expire or invalidate cached responses when indexed source data changes, but the reported failure and its causal repair instead depends on the ability to reuse answers for meaning-equivalent inputs with strong safeguards. A very long fixed TTL is unsuitable for volatile inventory decisions; it does not account for the condition in the reported failure and its causal repair: paraphrased shipping questions each trigger a full new generation.
D:Caching eligible shared prefixes can reduce repeated processing under supported conditions; this explains its relevance to reuse stable prefixes when model and API support prompt caching, not the the reported failure and its causal repair requirement to reuse answers for meaning-equivalent inputs with strong safeguards after paraphrased shipping questions each trigger a full new generation. Caching dynamic private user data indiscriminately is unsafe and less reusable; choosing it for the reported failure and its causal repair would leave the underlying issue visible: paraphrased shipping questions each trigger a full new generation.
E:The scope of this alternative is different: cache identity must reflect user visibility and the evidence used to create the answer; it supports prevent cross-tenant reuse even when the prompt text is identical, while the reported failure and its causal repair needs reuse answers for meaning-equivalent inputs with strong safeguards after paraphrased shipping questions each trigger a full new generation. Hashing only the question ignores who is permitted to see the response; for the reported failure and its causal repair, the unresolved requirement remains to reuse answers for meaning-equivalent inputs with strong safeguards, as shown when paraphrased shipping questions each trigger a full new generation.
Question 51
A code-review note warns: Prompt examples alone do not make model output a trusted typed object. The business requirement is to define explicit output structure and validate generated data. Which mechanism should replace the shortcut?
- Specify concrete style and output constraints and benchmark suitable sampling settings.
- Validate generated JSON against a strict application-side schema.
- Use schema-oriented instructions with application-side JSON validation.
- Provide role guidance through system messages and enforce boundaries in application logic.
Explanation
Correct Answer
C:An output contract improves consistency, while code validation catches nonconforming responses before side effects; this is the behavior to validate in a release review concerned with define explicit output structure and validate generated data. Prompt examples alone do not make model output a trusted typed object; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:Clear instructions define expected content while lower temperature can reduce variation for supported models; that is valuable when the goal is to reduce output variation through explicit constraints and lower sampling randomness, but the release-control decision instead depends on the ability to define explicit output structure and validate generated data. Lower temperature cannot make external facts true without grounded evidence; it does not account for the condition in the release-control decision: a missing field causes a downstream function to misclassify a claim.
B:The scope of this alternative is different: machine validation catches missing keys and invalid types independently of model confidence; it supports reject responses that violate the agreed schema before automation, while the release-control decision needs define explicit output structure and validate generated data after a missing field causes a downstream function to misclassify a claim. A JSON-shaped response is not guaranteed to satisfy downstream semantic rules; for the release-control decision, the unresolved requirement remains to define explicit output structure and validate generated data, as shown when a missing field causes a downstream function to misclassify a claim.
D:Trusted instructions set behavior while the runtime distinguishes lower-trust user content; this explains its relevance to keep trusted system instructions separate from untrusted user content, not the the release-control decision requirement to define explicit output structure and validate generated data after a missing field causes a downstream function to misclassify a claim. A role instruction by itself is not a substitute for guardrails and authorization; choosing it for the release-control decision would leave the underlying issue visible: a missing field causes a downstream function to misclassify a claim.
Question 52
A model integration receives intermittent throttling errors. The incident report says: Hundreds of workers simultaneously retry and keep the model throttled. Which specific design change best corrects the failure?
- Accept work through API Gateway and process queued jobs from SQS.
- Use capped exponential backoff with jitter in the AWS SDK client.
- Use an AWS SDK credential provider and least-privilege role for model invocation.
- Check effective IAM permissions, resource scope, and explicit deny policies.
Explanation
Correct Answer
B:Spreading retries reduces synchronized load and bounds time spent recovering from transient errors; that explains the reported failure: hundreds of workers simultaneously retry and keep the model throttled. Immediate tight-loop retries worsen rate limits and increase failure latency; a symptom-only workaround would not restore the requirement to retry safely without amplifying traffic spikes.
Incorrect Answers
A:Queues decouple front-end request acceptance from model throughput and support bounded retries; that is valuable when the goal is to buffer asynchronous work instead of holding client connections open, but the reported failure and its causal repair instead depends on the ability to retry safely without amplifying traffic spikes. Keeping every HTTP request open makes slow inference consume client connections; it does not account for the condition in the reported failure and its causal repair: hundreds of workers simultaneously retry and keep the model throttled.
C:The scope of this alternative is different: sDK signing and role credentials keep long-lived secrets out of application artifacts; it supports sign runtime requests with service identity rather than embedded credentials, while the reported failure and its causal repair needs retry safely without amplifying traffic spikes after hundreds of workers simultaneously retry and keep the model throttled. Storing static AWS keys in a container image increases credential leakage risk; for the reported failure and its causal repair, the unresolved requirement remains to retry safely without amplifying traffic spikes, as shown when hundreds of workers simultaneously retry and keep the model throttled.
D:Authorization depends on the caller identity and target action, not just account membership; that is valuable when the goal is to trace which runtime role and model resource is actually used, but the reported failure and its causal repair instead depends on the ability to retry safely without amplifying traffic spikes. Changing the prompt cannot grant invoke permission to the backend role; it does not account for the condition in the reported failure and its causal repair: hundreds of workers simultaneously retry and keep the model throttled.
Question 53
The retrieved clause is correct but its 'unless' paragraph is not present. Investigators also establish that an assistant returns a relevant document but misses a crucial exception. Which implementation most directly addresses the cause?
- Configure bounded chunk overlap with semantic section boundaries where possible.
- Use segment-aware processing and track full-document coverage.
- Check sync history, source versions, and vector index update status.
- Adjust structure-aware chunking and rerank evidence for completeness.
Explanation
Correct Answer
D:Chunk fragmentation can separate rules from exceptions even if a hit seems relevant; that explains the reported failure: the retrieved clause is correct but its 'unless' paragraph is not present. A longer final response cannot recreate omitted evidence; a symptom-only workaround would not restore the requirement to inspect chunk boundaries, overlap, and ranking of adjacent sections.
Incorrect Answers
A:For work that needs to preserve overlap between segments split at arbitrary boundaries, overlap can retain details straddling adjacent segments without duplicating entire chapters; the specific the reported failure and its causal repair instead requires inspect chunk boundaries, overlap, and ranking of adjacent sections in light of the retrieved clause is correct but its 'unless' paragraph is not present. Excessive overlap increases index size and repeated retrieval noise; this is insufficient for the reported failure and its causal repair, given the evidence that the retrieved clause is correct but its 'unless' paragraph is not present.
B:Silent truncation can drop relevant late sections even when inference technically succeeds; that is valuable when the goal is to inspect truncation and chunk-coverage signals in the input pipeline, but the reported failure and its causal repair instead depends on the ability to inspect chunk boundaries, overlap, and ranking of adjacent sections. Increasing sampling randomness cannot restore missing source content; it does not account for the condition in the reported failure and its causal repair: the retrieved clause is correct but its 'unless' paragraph is not present.
C:For work that needs to inspect ingestion freshness and whether changed chunks were re-embedded, stale embeddings can continue pointing to older text even if the source repository is current; the specific the reported failure and its causal repair instead requires inspect chunk boundaries, overlap, and ranking of adjacent sections in light of the retrieved clause is correct but its 'unless' paragraph is not present. Rephrasing the user prompt cannot fix a missing index update; this is insufficient for the reported failure and its causal repair, given the evidence that the retrieved clause is correct but its 'unless' paragraph is not present.
Question 54
A factory stores sensitive source records on premises. The engineering team is required to integrate approved metadata with cloud inference over private connectivity. What should be built first?
- Use Amazon Macie for S3 sensitive-data discovery with remediation workflows.
- Apply least-privilege Bedrock IAM permissions in a trusted backend authorization layer.
- Run local filtering and use secure network routes to a permitted cloud inference endpoint.
- 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; it directly supports the architectural objective to integrate approved metadata with cloud inference over private connectivity. Hosting other workloads on Outposts does not automatically place Bedrock inference on premises; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to detect sensitive content in S3 prior to making it searchable, macie can identify sensitive data in S3 objects and trigger action before indexing; the specific the architecture selection 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. Macie is not an inline filter for arbitrary model responses; this is insufficient for the architecture selection, given the evidence that a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts.
B:IAM can constrain model invocation actions and resources, complementing application tenant rules; that is valuable when the goal is to restrict invocation rights to approved model resources for each caller, but the architecture selection instead depends on the ability to integrate approved metadata with cloud inference over private connectivity. A prompt telling the model to use a cheaper provider is not an enforcement mechanism; it does not account for the condition in the architecture selection: a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts.
C:The scope of this alternative is different: edge processing can reduce payloads and protect connectivity without claiming that the FM itself runs at the edge; it supports separate low-latency local preprocessing from remote model inference, while the architecture selection needs integrate approved metadata with cloud inference over private connectivity after a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts. Moving the web client to Wavelength does not move an unsupported managed FM there; for the architecture selection, the unresolved requirement remains to integrate approved metadata with cloud inference over private connectivity, as shown when a prototype uploads full raw factory databases despite a policy allowing only redacted excerpts.
Question 55
A private subnet alone does not automatically provide a private route to every service. An architecture reviewer must still ensure the application can use a private network connection where the service supports it. What recommendation is justified?
- Use Amazon Macie for S3 sensitive-data discovery with remediation workflows.
- Enforce output moderation with Bedrock Guardrails and an application release gate.
- Configure explicit retention policies and S3 Lifecycle rules for eligible objects.
- Configure an appropriate AWS PrivateLink interface VPC endpoint and endpoint policies.
Explanation
Correct Answer
D:Private connectivity keeps service traffic on AWS network paths and provides a control point for allowed access; this is the behavior to validate in a release review concerned with use a private network connection where the service supports it. A private subnet alone does not automatically provide a private route to every service; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:For work that needs to detect sensitive content in S3 prior to making it searchable, macie can identify sensitive data in S3 objects and trigger action before indexing; the specific the release-control decision instead requires use a private network connection where the service supports it in light of workers in isolated subnets cannot reach inference without falling back to a public path. Macie is not an inline filter for arbitrary model responses; this is insufficient for the release-control decision, given the evidence that workers in isolated subnets cannot reach inference without falling back to a public path.
B:Response-side checks can intercept material produced despite safe-looking user input; that is valuable when the goal is to screen the response after generation before delivering it, but the release-control decision instead depends on the ability to use a private network connection where the service supports it. Input-only filtering cannot inspect harmful text newly created by the model; it does not account for the condition in the release-control decision: workers in isolated subnets cannot reach inference without falling back to a public path.
C:Storage lifecycle controls remove or transition stored data in accordance with policy; this explains its relevance to apply lifecycle and retention controls to stored prompts and documents, not the the release-control decision requirement to use a private network connection where the service supports it after workers in isolated subnets cannot reach inference without falling back to a public path. Lifecycle expiry is distinct from immediate vector-index source deletion; choosing it for the release-control decision would leave the underlying issue visible: workers in isolated subnets cannot reach inference without falling back to a public path.
Question 56
A code-review note warns: Increasing temperature makes missing identifiers less reliable, not more available. The business requirement is to pause and obtain clarification before invoking expensive downstream tools. Which mechanism should replace the shortcut?
- Provide role guidance through system messages and enforce boundaries in application logic.
- Implement a clarification branch using deterministic workflow state.
- Build evidence-first prompts that require supporting passages for claims.
- Implement conditional branching and escalation in an orchestrated prompt flow.
- Use Amazon Bedrock Flows or explicit workflow orchestration for multi-stage prompting.
Explanation
Correct Answer
B:Explicit state transitions prevent the application from guessing mandatory values; this is the behavior to validate in a release review concerned with pause and obtain clarification before invoking expensive downstream tools. Increasing temperature makes missing identifiers less reliable, not more available; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:Trusted instructions set behavior while the runtime distinguishes lower-trust user content; that is valuable when the goal is to keep trusted system instructions separate from untrusted user content, but the release-control decision instead depends on the ability to pause and obtain clarification before invoking expensive downstream tools. A role instruction by itself is not a substitute for guardrails and authorization; it does not account for the condition in the release-control decision: the assistant orders a replacement component without confirming the device model.
C:Grounding the answer to retrieved material and permitting uncertainty reduces unsupported completions; that is valuable when the goal is to include bounded evidence and instructions to abstain when unsupported, but the release-control decision instead depends on the ability to pause and obtain clarification before invoking expensive downstream tools. Merely asking a model to be accurate cannot supply missing knowledge; it does not account for the condition in the release-control decision: the assistant orders a replacement component without confirming the device model.
D:For work that needs to branch an AI workflow based on trusted classification results, branching isolates specialized handling and can route sensitive outcomes through human review; the specific the release-control decision instead requires pause and obtain clarification before invoking expensive downstream tools in light of the assistant orders a replacement component without confirming the device model. A generic all-purpose prompt cannot guarantee a mandatory approval transition; this is insufficient for the release-control decision, given the evidence that the assistant orders a replacement component without confirming the device model.
E:Distinct steps allow validation and routing between model calls instead of one opaque long prompt; this explains its relevance to coordinate multiple prompts with conditional processing stages, not the the release-control decision requirement to pause and obtain clarification before invoking expensive downstream tools after the assistant orders a replacement component without confirming the device model. A single free-form completion hides intermediate errors and cannot enforce deterministic gates; choosing it for the release-control decision would leave the underlying issue visible: the assistant orders a replacement component without confirming the device model.
Question 57
An agent can execute commands based on external ticket descriptions. The architecture must block privilege escalation when ticket text is adversarial. Which implementation best meets that requirement?
- Track verified task completion and tool side-effect correctness.
- Run prompt-injection and jailbreak evaluations against the full tool workflow.
- Validate tool arguments and enforce IAM-scoped execution independent of retrieved instructions.
- Separate retrieved content from trusted instructions and deny tool authority to source text.
Explanation
Correct Answer
C:Backend authorization constrains the blast radius even if model text is manipulated; it directly supports the architectural objective to block privilege escalation when ticket text is adversarial. Filtering for a few banned words cannot recognize every prompt injection pattern; that boundary is important when selecting the implementation.
Incorrect Answers
A:For work that needs to measure successful end-to-end task completion, not only coherent text, an agent must finish intended actions within policy, not merely produce a convincing narrative; the specific the architecture selection instead requires block privilege escalation when ticket text is adversarial in light of a malicious ticket asks the agent to read a secret outside its assignment. Final-response fluency can conceal failed tool executions; this is insufficient for the architecture selection, given the evidence that a malicious ticket asks the agent to read a secret outside its assignment.
B:Testing realistic attacks surfaces gaps that benign user prompts and single-model demos miss; this explains its relevance to measure resistance using repeatable adversarial test suites, not the the architecture selection requirement to block privilege escalation when ticket text is adversarial after a malicious ticket asks the agent to read a secret outside its assignment. A policy document claiming safety is not a measured security result; choosing it for the architecture selection would leave the underlying issue visible: a malicious ticket asks the agent to read a secret outside its assignment.
D:Trust boundaries prevent source passages from redefining policies or initiating privileged calls; that is valuable when the goal is to treat retrieved document text as untrusted evidence, not executable authority, but the architecture selection instead depends on the ability to block privilege escalation when ticket text is adversarial. RAG improves facts but does not make arbitrary retrieved text safe instructions; it does not account for the condition in the architecture selection: a malicious ticket asks the agent to read a secret outside its assignment.
Question 58
An application sees rising daily inference costs. A successful solution needs to record input and output tokens per model, tenant, and feature. Which option is the most suitable design?
- Create end-to-end CloudWatch dashboards with request and business KPIs.
- Profile prefill and decode bottlenecks with token-specific metrics.
- Publish token-usage and estimated-cost metrics with dimensions in CloudWatch.
- Create structured trace records for each model and tool invocation.
Explanation
Correct Answer
C:Attributed usage reveals which behavior or cohort drives spend; it directly supports the architectural objective to record input and output tokens per model, tenant, and feature. A single monthly total does not identify the feature creating token bursts; that boundary is important when selecting the implementation.
Incorrect Answers
A:Latency, error rate, completion quality, and user outcomes together describe system health; that is valuable when the goal is to correlate operational metrics with task completion and conversion, but the architecture selection instead depends on the ability to record input and output tokens per model, tenant, and feature. Infrastructure CPU graphs alone do not show customer value; it does not account for the condition in the architecture selection: spending doubles but engineers cannot separate traffic growth from longer prompts.
B:Token-stage measurements distinguish long-prompt processing from slow completion generation; that is valuable when the goal is to measure input and output token throughput separately, but the architecture selection instead depends on the ability to record input and output tokens per model, tenant, and feature. Request-per-second counts conceal large differences in token workload; it does not account for the condition in the architecture selection: spending doubles but engineers cannot separate traffic growth from longer prompts.
D:Per-step observability distinguishes orchestration overhead from model response time; this explains its relevance to trace correlated agent and tool spans per user request, not the the architecture selection requirement to record input and output tokens per model, tenant, and feature after spending doubles but engineers cannot separate traffic growth from longer prompts. One log line per final answer cannot expose intermediate retries; choosing it for the architecture selection would leave the underlying issue visible: spending doubles but engineers cannot separate traffic growth from longer prompts.
Question 59
An LLM is large and every worker startup takes several minutes. A release proposal aims to reduce cold-start impact through controlled artifact loading and warm capacity. Which architecture decision fits the constraint?
- Use SageMaker AI real-time inference with a compatible custom model container.
- Restructure integration calls to batch or parallelize independent work.
- Use staged model loading and maintain the needed minimum warm workers.
- Profile GPU memory and model loading, then allocate suitable inference instances.
Explanation
Correct Answer
C:Loading weights and initializing device memory dominate startup for large self-hosted models; it directly supports the architectural objective to reduce cold-start impact through controlled artifact loading and warm capacity. Reducing HTTP keepalive alone does not reduce weight initialization time; that boundary is important when selecting the implementation.
Incorrect Answers
A:Managed hosting of a custom container provides deployment control at the cost of endpoint operations; this explains its relevance to deploy and operate a controlled custom inference endpoint, not the the architecture selection requirement to reduce cold-start impact through controlled artifact loading and warm capacity after a scale-out event creates a queue while new workers repeatedly load multi-gigabyte artifacts. A Bedrock model ID does not automatically expose arbitrary custom containers; choosing it for the architecture selection would leave the underlying issue visible: a scale-out event creates a queue while new workers repeatedly load multi-gigabyte artifacts.
B:Minimizing critical-path service hops frees latency budget for the actual model response; that is valuable when the goal is to reduce network round trips and combine independent lookups, but the architecture selection instead depends on the ability to reduce cold-start impact through controlled artifact loading and warm capacity. A faster FM cannot fully compensate for avoidable serial network calls; it does not account for the condition in the architecture selection: a scale-out event creates a queue while new workers repeatedly load multi-gigabyte artifacts.
D:For work that needs to size the runtime for weights, KV cache, and maximum concurrency, lLM serving must account for model parameters, activation and cache memory, and concurrent token generation; the specific the architecture selection instead requires reduce cold-start impact through controlled artifact loading and warm capacity in light of a scale-out event creates a queue while new workers repeatedly load multi-gigabyte artifacts. CPU autoscaling alone does not fix GPU memory exhaustion; this is insufficient for the architecture selection, given the evidence that a scale-out event creates a queue while new workers repeatedly load multi-gigabyte artifacts.
Question 60
Production evidence: Audit logs show an inference destination outside the permitted geography. The original design context was: An insurance application must keep FM processing inside a defined geography. Which change prevents recurrence?
- Choose a geographic Bedrock cross-Region inference profile and verify its destination Regions.
- Use an appropriate cross-Region inference profile and bounded application retries.
- Use feature-flagged model routing with deployment-safe configuration changes.
- Use a smaller default model with confidence or complexity-based escalation.
Explanation
Correct Answer
A:Geographic profiles constrain request processing to their supported region set, unlike globally routed profiles; that explains the reported failure: audit logs show an inference destination outside the permitted geography. A broad global routing profile can violate a location-specific processing restriction; a symptom-only workaround would not restore the requirement to gain cross-Region capacity without routing protected prompts worldwide.
Incorrect Answers
B: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 gain cross-Region capacity without routing protected prompts worldwide after audit logs show an inference destination outside the permitted geography. 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: audit logs show an inference destination outside the permitted geography.
C:A controlled routing layer allows cohort-based experiments and rapid reversion without modifying prompts in every client; that is valuable when the goal is to change routing percentages safely with quick rollback, but the reported failure and its causal repair instead depends on the ability to gain cross-Region capacity without routing protected prompts worldwide. Changing a global hard-coded model ID exposes all traffic at once; it does not account for the condition in the reported failure and its causal repair: audit logs show an inference destination outside the permitted geography.
D: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 gain cross-Region capacity without routing protected prompts worldwide after audit logs show an inference destination outside the permitted geography. Uniform model selection cannot exploit the workload's complexity distribution; for the reported failure and its causal repair, the unresolved requirement remains to gain cross-Region capacity without routing protected prompts worldwide, as shown when audit logs show an inference destination outside the permitted geography.