Question 80
A code-review note warns: Merely asking a model to be accurate cannot supply missing knowledge. The business requirement is to include bounded evidence and instructions to abstain when unsupported. Which mechanism should replace the shortcut?
- Provide role guidance through system messages and enforce boundaries in application logic.
- Use evidence verification and policy-based output review with human escalation.
- Gate prompt version promotion and retain associated CloudTrail control-plane records.
- Build evidence-first prompts that require supporting passages for claims.
Explanation
Correct Answer
D:Grounding the answer to retrieved material and permitting uncertainty reduces unsupported completions; this is the behavior to validate in a release review concerned with include bounded evidence and instructions to abstain when unsupported. Merely asking a model to be accurate cannot supply missing knowledge; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
A:For work that needs to keep trusted system instructions separate from untrusted user content, trusted instructions set behavior while the runtime distinguishes lower-trust user content; the specific the release-control decision instead requires include bounded evidence and instructions to abstain when unsupported in light of answers confidently prescribe a repair procedure absent from approved manuals. A role instruction by itself is not a substitute for guardrails and authorization; this is insufficient for the release-control decision, given the evidence that answers confidently prescribe a repair procedure absent from approved manuals.
B:A policy decision checks whether an answer is supported and within allowed scope; this explains its relevance to gate high-risk advice on evidence and policy review rather than fluency, not the the release-control decision requirement to include bounded evidence and instructions to abstain when unsupported after answers confidently prescribe a repair procedure absent from approved manuals. Lower temperature may reduce variability but cannot certify clinical correctness; choosing it for the release-control decision would leave the underlying issue visible: answers confidently prescribe a repair procedure absent from approved manuals.
C:For work that needs to keep a reviewed prompt release process with change audit events, approval records and API audit trails complement template versioning for accountability; the specific the release-control decision instead requires include bounded evidence and instructions to abstain when unsupported in light of answers confidently prescribe a repair procedure absent from approved manuals. A model response log alone does not establish who deployed an instruction change; this is insufficient for the release-control decision, given the evidence that answers confidently prescribe a repair procedure absent from approved manuals.
Question 81
A Bedrock tool needs to read S3 documents for an authenticated user. The incident report says: A retrieval tool can delete the same objects it was meant only to read. Which specific design change best corrects the failure?
- Build a Strands-based tool agent with external policy and execution limits.
- Issue a task-scoped role with minimal S3 object permissions and caller-aware filters.
- Federate workforce identities and use scoped IAM roles for backend execution.
- Partition the RAG architecture by residency domain and enforce region-aware routing.
Explanation
Correct Answer
B:The tool runtime's data-plane scope must match the action being executed; that explains the reported failure: a retrieval tool can delete the same objects it was meant only to read. Allowing s3:* on the bucket makes prompt injection more damaging; a symptom-only workaround would not restore the requirement to avoid granting broad bucket permissions to the agent runtime.
Incorrect Answers
A:The framework coordinates tool calls, while independent handlers enforce identity and limits; this explains its relevance to use an agent framework with controlled action execution and observability, not the the reported failure and its causal repair requirement to avoid granting broad bucket permissions to the agent runtime after a retrieval tool can delete the same objects it was meant only to read. The presence of agent reasoning traces does not automatically authorize actions; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a retrieval tool can delete the same objects it was meant only to read.
C:Federation authenticates users; IAM and application checks independently authorize model and data actions; that is valuable when the goal is to map enterprise user identity to bounded application and model permissions, but the reported failure and its causal repair instead depends on the ability to avoid granting broad bucket permissions to the agent runtime. A successful SSO login does not imply access to every document or FM; it does not account for the condition in the reported failure and its causal repair: a retrieval tool can delete the same objects it was meant only to read.
D:Data location and inference destination both matter when governing cross-border processing; this explains its relevance to choose per-jurisdiction storage and processing paths before inference, not the the reported failure and its causal repair requirement to avoid granting broad bucket permissions to the agent runtime after a retrieval tool can delete the same objects it was meant only to read. Replicating all vector indexes into one region may violate source residency rules; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a retrieval tool can delete the same objects it was meant only to read.
Question 82
A deployment role can invoke all available models, despite a restricted policy. The incident report says: A developer calls a prohibited model ARN using backend permissions. Which specific design change best corrects the failure?
- Use PII detection and deterministic redaction in the input preprocessing layer.
- Apply least-privilege Bedrock IAM permissions in a trusted backend authorization layer.
- Implement identity-policy and network controls alongside document-level retrieval checks.
- Apply schema-based minimization before retrieval and inference.
- Apply IAM least privilege to Bedrock inference operations and model ARNs.
Explanation
Correct Answer
E:The role's identity policies govern which invocation APIs and resources are authorized; that explains the reported failure: a developer calls a prohibited model ARN using backend permissions. An application UI hiding a model does not prevent direct API invocation; a symptom-only workaround would not restore the requirement to constrain model invocation by allowed resources and actions.
Incorrect Answers
A:For work that needs to redact or tokenize protected entities before inference, removing protected values upstream limits what is sent to the model and recorded in downstream logs; the specific the reported failure and its causal repair instead requires constrain model invocation by allowed resources and actions in light of a developer calls a prohibited model ARN using backend permissions. Post-generation redaction cannot remove confidential data already supplied to an external call; this is insufficient for the reported failure and its causal repair, given the evidence that a developer calls a prohibited model ARN using backend permissions.
B:The scope of this alternative is different: iAM can constrain model invocation actions and resources, complementing application tenant rules; it supports restrict invocation rights to approved model resources for each caller, while the reported failure and its causal repair needs constrain model invocation by allowed resources and actions after a developer calls a prohibited model ARN using backend permissions. A prompt telling the model to use a cheaper provider is not an enforcement mechanism; for the reported failure and its causal repair, the unresolved requirement remains to constrain model invocation by allowed resources and actions, as shown when a developer calls a prohibited model ARN using backend permissions.
C:The three layers serve different purposes: permitted API actions, permitted network paths, and permitted content; that is valuable when the goal is to separate IAM authorizations, endpoint policy, and data filtering responsibilities, but the reported failure and its causal repair instead depends on the ability to constrain model invocation by allowed resources and actions. Granting VPC endpoint access does not confer document-level authorization; it does not account for the condition in the reported failure and its causal repair: a developer calls a prohibited model ARN using backend permissions.
D:For work that needs to minimize prompt fields based on business need and document policy, sending only task-required fields reduces privacy exposure and token usage; the specific the reported failure and its causal repair instead requires constrain model invocation by allowed resources and actions in light of a developer calls a prohibited model ARN using backend permissions. Encrypting all fields in transit does not justify sending unnecessary personal data; this is insufficient for the reported failure and its causal repair, given the evidence that a developer calls a prohibited model ARN using backend permissions.
Question 83
A downstream parser rejects a renamed field after deployment. Investigators also establish that a model response schema changes unexpectedly between versions. Which implementation most directly addresses the cause?
- Use paired retrieval tests with relevance labels and p95 query timing.
- Use Amazon Bedrock model invocation logging where supported and restrict log access.
- Track verified task completion and tool side-effect correctness.
- Execute schema and semantic contract tests against model responses.
- Use staged agent evaluations that check delegation and aggregation results.
Explanation
Correct Answer
D:Schema checks detect field removal, type changes, and invalid required combinations; that explains the reported failure: a downstream parser rejects a renamed field after deployment. Matching a few output words does not establish API compatibility; a symptom-only workaround would not restore the requirement to validate structured-output contracts before routing traffic.
Incorrect Answers
A:The scope of this alternative is different: search tuning is a quality-performance tradeoff, not a single latency metric; it supports benchmark answer evidence quality and query tail latency together, while the reported failure and its causal repair needs validate structured-output contracts before routing traffic after a downstream parser rejects a renamed field after deployment. A faster index can be worse if approximate search loses key passages; for the reported failure and its causal repair, the unresolved requirement remains to validate structured-output contracts before routing traffic, as shown when a downstream parser rejects a renamed field after deployment.
B:Invocation details can support forensic analysis while requiring explicit data handling controls; this explains its relevance to enable protected model invocation logging with a privacy-conscious retention policy, not the the reported failure and its causal repair requirement to validate structured-output contracts before routing traffic after a downstream parser rejects a renamed field after deployment. CloudTrail control-plane events do not by themselves capture answer text for quality review; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a downstream parser rejects a renamed field after deployment.
C:An agent must finish intended actions within policy, not merely produce a convincing narrative; that is valuable when the goal is to measure successful end-to-end task completion, not only coherent text, but the reported failure and its causal repair instead depends on the ability to validate structured-output contracts before routing traffic. Final-response fluency can conceal failed tool executions; it does not account for the condition in the reported failure and its causal repair: a downstream parser rejects a renamed field after deployment.
E:For work that needs to evaluate handoff completion and ownership errors with trace-based tests, intermediate trace checks find tasks skipped or duplicated across specialists; the specific the reported failure and its causal repair instead requires validate structured-output contracts before routing traffic in light of a downstream parser rejects a renamed field after deployment. Judging only final wording may miss an unapproved side effect; this is insufficient for the reported failure and its causal repair, given the evidence that a downstream parser rejects a renamed field after deployment.
Question 84
A shared AI gateway serves separate departments with different model policies. Most questions are simple, but a small fraction needs high-reasoning models. The deployment has these independent requirements: (1) restrict invocation rights to approved model resources for each caller; (2) control spend without sacrificing difficult-case quality. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.
- Use CodePipeline with automated tests, security scans, and gated promotion.
- 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.
- Evaluate Amazon Bedrock Provisioned Throughput for the selected supported model.
- Use a smaller default model with confidence or complexity-based escalation.
Explanation
Correct Answers
B:IAM can constrain model invocation actions and resources, complementing application tenant rules; this fulfills restrict invocation rights to approved model resources for each caller within a combined design that must also control spend without sacrificing difficult-case quality. A prompt telling the model to use a cheaper provider is not an enforcement mechanism; the other required action(s) must additionally control spend without sacrificing difficult-case quality.
E:A cascade pays premium inference costs for the minority of requests requiring deeper capability; this fulfills control spend without sacrificing difficult-case quality within a combined design that must also restrict invocation rights to approved model resources for each caller. Uniform model selection cannot exploit the workload's complexity distribution; the other required action(s) must additionally restrict invocation rights to approved model resources for each caller.
Incorrect Answers
A:Deployment pipelines enforce repeatable verification and allow controlled rollback of risky GenAI components; its proper focus is to test prompts, IAM, and infrastructure changes before production, rather than the combined requirements to restrict invocation rights to approved model resources for each caller and control spend without sacrificing difficult-case quality. Manual direct production edits defeat the evidence trail of approvals; in this combined design needing restrict invocation rights to approved model resources for each caller and control spend without sacrificing difficult-case quality, it does not directly meet the specified requirement to restrict invocation rights to approved model resources for each caller.
C:Edge processing can reduce payloads and protect connectivity without claiming that the FM itself runs at the edge; its proper focus is to separate low-latency local preprocessing from remote model inference, rather than the combined requirements to restrict invocation rights to approved model resources for each caller and control spend without sacrificing difficult-case quality. Moving the web client to Wavelength does not move an unsupported managed FM there; in this combined design needing restrict invocation rights to approved model resources for each caller and control spend without sacrificing difficult-case quality, it does not directly meet the specified requirement to restrict invocation rights to approved model resources for each caller.
D:Provisioned capacity is designed for workloads needing committed throughput rather than purely bursty on-demand access; its proper focus is to reserve supported inference capacity for steady traffic, rather than the combined requirements to restrict invocation rights to approved model resources for each caller and control spend without sacrificing difficult-case quality. Cross-Region inference profiles do not become provisioned capacity reservations; in this combined design needing restrict invocation rights to approved model resources for each caller and control spend without sacrificing difficult-case quality, it does not directly meet the specified requirement to restrict invocation rights to approved model resources for each caller.
Question 85
A code-review note warns: A role instruction by itself is not a substitute for guardrails and authorization. The business requirement is to keep trusted system instructions separate from untrusted user content. Which mechanism should replace the shortcut?
- Provide role guidance through system messages and enforce boundaries in application logic.
- Gate prompt version promotion and retain associated CloudTrail control-plane records.
- Implement conditional branching and escalation in an orchestrated prompt flow.
- Use structured message roles and explicit untrusted-content delimiters.
- Build evidence-first prompts that require supporting passages for claims.
Explanation
Correct Answer
A:Trusted instructions set behavior while the runtime distinguishes lower-trust user content; this is the behavior to validate in a release review concerned with keep trusted system instructions separate from untrusted user content. A role instruction by itself is not a substitute for guardrails and authorization; the proposed shortcut would therefore be an inadequate guarantee.
Incorrect Answers
B:For work that needs to keep a reviewed prompt release process with change audit events, approval records and API audit trails complement template versioning for accountability; the specific the release-control decision instead requires keep trusted system instructions separate from untrusted user content in light of a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt. A model response log alone does not establish who deployed an instruction change; this is insufficient for the release-control decision, given the evidence that a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt.
C:Branching isolates specialized handling and can route sensitive outcomes through human review; that is valuable when the goal is to branch an AI workflow based on trusted classification results, but the release-control decision instead depends on the ability to keep trusted system instructions separate from untrusted user content. A generic all-purpose prompt cannot guarantee a mandatory approval transition; it does not account for the condition in the release-control decision: a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt.
D:Keeping data separate from system directives reduces accidental instruction precedence confusion; this explains its relevance to prevent user-supplied role delimiters from becoming trusted instructions, not the the release-control decision requirement to keep trusted system instructions separate from untrusted user content after a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt. Plain string concatenation can blur the boundary between user data and instructions; choosing it for the release-control decision would leave the underlying issue visible: a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt.
E:For work that needs to include bounded evidence and instructions to abstain when unsupported, grounding the answer to retrieved material and permitting uncertainty reduces unsupported completions; the specific the release-control decision instead requires keep trusted system instructions separate from untrusted user content in light of a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt. Merely asking a model to be accurate cannot supply missing knowledge; this is insufficient for the release-control decision, given the evidence that a user message labeled SYSTEM overrides an approval requirement in a naive concatenated prompt.
Question 86
A viewer can update stock because the agent service account has write access. Investigators also establish that several agents use the same inventory tool with different privileges. Which implementation most directly addresses the cause?
- Put parameter validation and authorization in the Lambda tool handler.
- Apply least-privilege Bedrock IAM permissions in a trusted backend authorization layer.
- Enforce caller identity and operation-level authorization in the tool layer.
- Use Model Context Protocol-compatible interfaces with authenticated tool servers.
Explanation
Correct Answer
C:Trusted identity propagation prevents a shared tool server from becoming an unrestricted deputy; that explains the reported failure: a viewer can update stock because the agent service account has write access. Relying on the requested product name is not a proof of user permission; a symptom-only workaround would not restore the requirement to authorize each tool invocation with end-user context and action scope.
Incorrect Answers
A:For work that needs to validate the tool schema and business limits in code before execution, the handler rejects malformed identifiers and disallowed amounts even if the FM requests them; the specific the reported failure and its causal repair instead requires authorize each tool invocation with end-user context and action scope in light of a viewer can update stock because the agent service account has write access. Model-side tool descriptions do not enforce server-side transactional limits; this is insufficient for the reported failure and its causal repair, given the evidence that a viewer can update stock because the agent service account has write access.
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 reported failure and its causal repair instead depends on the ability to authorize each tool invocation with end-user context and action scope. A prompt telling the model to use a cheaper provider is not an enforcement mechanism; it does not account for the condition in the reported failure and its causal repair: a viewer can update stock because the agent service account has write access.
D:A standard tool interface describes available operations and schemas, reducing framework-specific glue; that is valuable when the goal is to make tool discovery and invocation contracts consistent across clients, but the reported failure and its causal repair instead depends on the ability to authorize each tool invocation with end-user context and action scope. Protocol compatibility does not grant permissions; authentication remains necessary; it does not account for the condition in the reported failure and its causal repair: a viewer can update stock because the agent service account has write access.
Question 87
A legal assistant must escalate only ambiguous contract exceptions. A successful solution needs to combine cheap initial screening with a stronger fallback model. Which option is the most suitable design?
- Use token counting or model-aware estimation at the inference gateway.
- Use conditional inference cascading with a conservative escalation threshold.
- Use version-aware cache invalidation linked to freshness requirements.
- Evaluate provisioned inference capacity with utilization and cost modeling.
- Use supported Bedrock reranking or equivalent post-retrieval reranking.
Explanation
Correct Answer
B:Escalation limits expensive inference to the cases that need additional reasoning; it directly supports the architectural objective to combine cheap initial screening with a stronger fallback model. Routing solely on confidence rhetoric without measured error rates can miss risky cases; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: preflight estimates let the service allocate input, retrieval, and completion budgets; it supports estimate token volume and enforce per-request spend ceilings, while the architecture selection needs combine cheap initial screening with a stronger fallback model after the model either overspends on easy cases or mishandles hard exceptions. HTTP byte count is not a dependable substitute for model token accounting; for the architecture selection, the unresolved requirement remains to combine cheap initial screening with a stronger fallback model, as shown when the model either overspends on easy cases or mishandles hard exceptions.
C:The scope of this alternative is different: a cache can retain speed benefits while dropping answers based on stale documents; it supports expire or invalidate cached responses when indexed source data changes, while the architecture selection needs combine cheap initial screening with a stronger fallback model after the model either overspends on easy cases or mishandles hard exceptions. A very long fixed TTL is unsuitable for volatile inventory decisions; for the architecture selection, the unresolved requirement remains to combine cheap initial screening with a stronger fallback model, as shown when the model either overspends on easy cases or mishandles hard exceptions.
D:The scope of this alternative is different: capacity commitment can stabilize throughput for a sufficiently steady supported workload; it supports compare reserved model throughput against observed sustained demand, while the architecture selection needs combine cheap initial screening with a stronger fallback model after the model either overspends on easy cases or mishandles hard exceptions. A commitment is wasteful if traffic is highly sporadic and low volume; for the architecture selection, the unresolved requirement remains to combine cheap initial screening with a stronger fallback model, as shown when the model either overspends on easy cases or mishandles hard exceptions.
E:The scope of this alternative is different: a second-stage scorer can improve ordering before generation sees the passages; it supports rerank initial candidates with a query-aware model, while the architecture selection needs combine cheap initial screening with a stronger fallback model after the model either overspends on easy cases or mishandles hard exceptions. Expanding output tokens does not increase the quality of retrieved evidence; for the architecture selection, the unresolved requirement remains to combine cheap initial screening with a stronger fallback model, as shown when the model either overspends on easy cases or mishandles hard exceptions.
Question 88
A tool-calling model emits function arguments incrementally. An incident-response agent needs to inspect, act, and then recheck evidence. The deployment has these independent requirements: (1) buffer and validate a completed tool-call payload before execution; (2) separate observation, action, and verification into explicit workflow steps. Which TWO implementation actions jointly cover the stated requirements? Choose TWO.
- Use Model Context Protocol-compatible interfaces with authenticated tool servers.
- Put parameter validation and authorization in the Lambda tool handler.
- Use a Step Functions human-in-the-loop approval task with an audit trail.
- Orchestrate a bounded tool loop with AWS Step Functions.
- Accumulate streamed tool-use deltas until the structured call is complete.
Explanation
Correct Answers
D:A workflow engine tracks steps, retries, stop conditions, and state outside uncertain model output; this fulfills separate observation, action, and verification into explicit workflow steps within a combined design that must also buffer and validate a completed tool-call payload before execution. Unconstrained recursive prompting can repeat unsafe actions without a terminal criterion; the other required action(s) must additionally buffer and validate a completed tool-call payload before execution.
E:Partial arguments are not safe transactional commands; validation should occur on the finalized tool input; this fulfills buffer and validate a completed tool-call payload before execution within a combined design that must also separate observation, action, and verification into explicit workflow steps. Executing the first JSON fragment can call a function with missing or wrong fields; the other required action(s) must additionally separate observation, action, and verification into explicit workflow steps.
Incorrect Answers
A:A standard tool interface describes available operations and schemas, reducing framework-specific glue; its proper focus is to make tool discovery and invocation contracts consistent across clients, rather than the combined requirements to buffer and validate a completed tool-call payload before execution and separate observation, action, and verification into explicit workflow steps. Protocol compatibility does not grant permissions; authentication remains necessary; in this combined design needing buffer and validate a completed tool-call payload before execution and separate observation, action, and verification into explicit workflow steps, it does not directly meet the specified requirement to separate observation, action, and verification into explicit workflow steps.
B:The handler rejects malformed identifiers and disallowed amounts even if the FM requests them; its proper focus is to validate the tool schema and business limits in code before execution, rather than the combined requirements to buffer and validate a completed tool-call payload before execution and separate observation, action, and verification into explicit workflow steps. Model-side tool descriptions do not enforce server-side transactional limits; in this combined design needing buffer and validate a completed tool-call payload before execution and separate observation, action, and verification into explicit workflow steps, it does not directly meet the specified requirement to separate observation, action, and verification into explicit workflow steps.
C:A persisted state machine makes the review a mandatory transition and records the decision; its proper focus is to insert reviewer approval with resumable workflow state, rather than the combined requirements to buffer and validate a completed tool-call payload before execution and separate observation, action, and verification into explicit workflow steps. A message in the prompt asking for approval cannot prevent an API side effect; in this combined design needing buffer and validate a completed tool-call payload before execution and separate observation, action, and verification into explicit workflow steps, it does not directly meet the specified requirement to buffer and validate a completed tool-call payload before execution.
Question 89
A file-based ingestion workflow must reject documents missing required ownership fields. The architecture must enforce schema rules at the ingestion boundary rather than in generation. Which implementation best meets that requirement?
- Use separate model-specific payload adapters behind a common application interface.
- Validate required attributes with Lambda before accepting documents for indexing.
- Use Amazon Comprehend entity extraction followed by domain validation.
- Combine source authorization checks with retrieval metadata filters.
Explanation
Correct Answer
B:Early validation avoids making unclassified or untraceable content searchable; it directly supports the architectural objective to enforce schema rules at the ingestion boundary rather than in generation. Prompt instructions do not create missing ownership metadata in the source system; that boundary is important when selecting the implementation.
Incorrect Answers
A:The scope of this alternative is different: a stable application contract can translate into the payload and headers expected by each runtime; it supports adapt each model's request serialization at the integration boundary, while the architecture selection needs enforce schema rules at the ingestion boundary rather than in generation after chunks with unknown owners enter a searchable index and cannot be attributed. One arbitrary prompt JSON format is not universal across inference endpoints; for the architecture selection, the unresolved requirement remains to enforce schema rules at the ingestion boundary rather than in generation, as shown when chunks with unknown owners enter a searchable index and cannot be attributed.
C:Entity detection can populate searchable attributes, while a validation step controls accuracy and allowed values; this explains its relevance to derive structured metadata independently of the generation prompt, not the the architecture selection requirement to enforce schema rules at the ingestion boundary rather than in generation after chunks with unknown owners enter a searchable index and cannot be attributed. Asking a generation model to guess filters per query is less reproducible than indexed metadata; choosing it for the architecture selection would leave the underlying issue visible: chunks with unknown owners enter a searchable index and cannot be attributed.
D:The application must carry trusted identity context into candidate selection so the FM never sees disallowed chunks; this explains its relevance to enforce source-specific access controls before constructing the retrieval context, not the the architecture selection requirement to enforce schema rules at the ingestion boundary rather than in generation after chunks with unknown owners enter a searchable index and cannot be attributed. An FM refusal after retrieval is too late to protect raw context exposure; choosing it for the architecture selection would leave the underlying issue visible: chunks with unknown owners enter a searchable index and cannot be attributed.
Question 90
A CRM web application needs to add a secure GenAI summarization endpoint. The engineering team is required to expose a managed API while keeping FM credentials server-side. What should be built first?
- Use API Gateway with a Lambda integration that invokes Bedrock.
- Canary-route a small cohort through the deployment pipeline and compare quality signals.
- Use a versioned enterprise GenAI gateway with shared policy enforcement.
- Run a Lambda event handler that invokes a bounded generation workflow.
Explanation
Correct Answer
A:The gateway handles API authentication and routing; Lambda holds the controlled inference integration; it directly supports the architectural objective to expose a managed API while keeping FM credentials server-side. Embedding AWS credentials in the browser exposes the runtime privilege boundary; that boundary is important when selecting the implementation.
Incorrect Answers
B:A limited release contains risk and allows metrics to trigger rollback before broad exposure; this explains its relevance to release incrementally with measurable rollback conditions, not the the architecture selection requirement to expose a managed API while keeping FM credentials server-side after a browser client can call arbitrary models because static credentials were shipped to users. Replacing the model globally makes attribution and rollback harder; choosing it for the architecture selection would leave the underlying issue visible: a browser client can call arbitrary models because static credentials were shipped to users.
C:A gateway can standardize access, request tracking, and model routing across clients; that is valuable when the goal is to centralize authentication, rate limiting, and telemetry at one AI service boundary, but the architecture selection instead depends on the ability to expose a managed API while keeping FM credentials server-side. Allowing every client to bypass the gateway makes policies inconsistent; it does not account for the condition in the architecture selection: a browser client can call arbitrary models because static credentials were shipped to users.
D:An event-driven consumer decouples the drafting operation from the CRM write path; that is valuable when the goal is to process events without blocking the customer record transaction, but the architecture selection instead depends on the ability to expose a managed API while keeping FM credentials server-side. Calling the FM synchronously inside the record commit increases transaction fragility; it does not account for the condition in the architecture selection: a browser client can call arbitrary models because static credentials were shipped to users.