Question 330

An application uses two Bedrock models and frequently changes the preferred provider. After deployment, a vendor switch forces a coordinated redeployment of dozens of application consumers. Engineers need a cause-level fix, not a change in presentation. What should they implement?

  1. Choose a geographic Bedrock cross-Region inference profile and verify its destination Regions.
  2. Use a versioned deprecation and rollback plan for model artifacts and endpoint clients.
  3. Put model selection behind a versioned routing adapter with AWS AppConfig configuration.
  4. Use version-aware cache invalidation linked to freshness requirements.
  5. Use feature-flagged model routing with deployment-safe configuration changes.

Explanation

Correct Answer

C:

The adapter abstracts model-specific requests while configuration changes routing independently of service releases; that explains the reported failure: a vendor switch forces a coordinated redeployment of dozens of application consumers. Embedding model IDs in each client couples every deployment to one provider; a symptom-only workaround would not restore the requirement to switch providers without editing every calling microservice.

Incorrect Answers

A:

The scope of this alternative is different: geographic profiles constrain request processing to their supported region set, unlike globally routed profiles; it supports gain cross-Region capacity without routing protected prompts worldwide, while the reported failure and its causal repair needs switch providers without editing every calling microservice after a vendor switch forces a coordinated redeployment of dozens of application consumers. A broad global routing profile can violate a location-specific processing restriction; for the reported failure and its causal repair, the unresolved requirement remains to switch providers without editing every calling microservice, as shown when a vendor switch forces a coordinated redeployment of dozens of application consumers.

B:

The scope of this alternative is different: controlled retirement identifies dependent callers, preserves lineage, and gives clients a migration interval; it supports remove old deployment access without losing the approved audit record, while the reported failure and its causal repair needs switch providers without editing every calling microservice after a vendor switch forces a coordinated redeployment of dozens of application consumers. Deleting a model before consumers migrate breaks inference without a recovery path; for the reported failure and its causal repair, the unresolved requirement remains to switch providers without editing every calling microservice, as shown when a vendor switch forces a coordinated redeployment of dozens of application consumers.

D:

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 reported failure and its causal repair needs switch providers without editing every calling microservice after a vendor switch forces a coordinated redeployment of dozens of application consumers. A very long fixed TTL is unsuitable for volatile inventory decisions; for the reported failure and its causal repair, the unresolved requirement remains to switch providers without editing every calling microservice, as shown when a vendor switch forces a coordinated redeployment of dozens of application consumers.

E:

A controlled routing layer allows cohort-based experiments and rapid reversion without modifying prompts in every client; this explains its relevance to change routing percentages safely with quick rollback, not the the reported failure and its causal repair requirement to switch providers without editing every calling microservice after a vendor switch forces a coordinated redeployment of dozens of application consumers. Changing a global hard-coded model ID exposes all traffic at once; choosing it for the reported failure and its causal repair would leave the underlying issue visible: a vendor switch forces a coordinated redeployment of dozens of application consumers.

Question 331

A team wants to adjust model routing based on measured latency. After deployment, the router chooses faster outputs that fail policy adherence tests. Engineers need a cause-level fix, not a change in presentation. What should they implement?

  1. Instrument end-to-end traces with AWS X-Ray and correlated request identifiers.
  2. Benchmark latency-optimized model inference where available for the chosen model.
  3. Implement content-aware model routing against an approved capability map.
  4. Use controlled metric-driven routing with rollout and rollback limits.

Explanation

Correct Answer

D:

Operational measurements can inform selection without letting an unstable feedback loop thrash models; that explains the reported failure: the router chooses faster outputs that fail policy adherence tests. Using only raw latency can route sensitive tasks to a cheap but inadequate model; a symptom-only workaround would not restore the requirement to update routing weights using observed quality and cost constraints.

Incorrect Answers

A:

For work that needs to identify slow spans across gateway, retrieval, and model calls, distributed tracing separates retrieval and tool overhead from model generation latency; the specific the reported failure and its causal repair instead requires update routing weights using observed quality and cost constraints in light of the router chooses faster outputs that fail policy adherence tests. CloudWatch aggregate invocation counts alone cannot locate an individual slow hop; this is insufficient for the reported failure and its causal repair, given the evidence that the router chooses faster outputs that fail policy adherence tests.

B:

The scope of this alternative is different: service-tier choices can improve responsiveness but availability and model compatibility must be checked; it supports measure a supported latency-optimized inference mode against quality objectives, while the reported failure and its causal repair needs update routing weights using observed quality and cost constraints after the router chooses faster outputs that fail policy adherence tests. Latency optimization does not guarantee identical cost or support for every model; for the reported failure and its causal repair, the unresolved requirement remains to update routing weights using observed quality and cost constraints, as shown when the router chooses faster outputs that fail policy adherence tests.

C:

The scope of this alternative is different: task classification selects a model whose features and cost fit each input; it supports route requests based on required capability rather than one fixed FM, while the reported failure and its causal repair needs update routing weights using observed quality and cost constraints after the router chooses faster outputs that fail policy adherence tests. Uniform random routing can send image tasks to text-only models; for the reported failure and its causal repair, the unresolved requirement remains to update routing weights using observed quality and cost constraints, as shown when the router chooses faster outputs that fail policy adherence tests.

Question 332

An organization must synchronize a restricted document management system with RAG. The engineering team is required to keep an explicit ingestion identity and a reproducible source-to-chunk mapping. What should be built first?

  1. Use document sensitivity labels as indexed filterable metadata and enforce access upstream.
  2. Combine source authorization checks with retrieval metadata filters.
  3. Use Amazon OpenSearch Service vector search indexes.
  4. Create an authenticated ingestion adapter that records document IDs and source ACL metadata.

Explanation

Correct Answer

D:

A dedicated adapter preserves provenance and allows authorization-aware indexing of extracted content; it directly supports the architectural objective to keep an explicit ingestion identity and a reproducible source-to-chunk mapping. A broad anonymous crawler can violate source permissions and lose lineage; that boundary is important when selecting the implementation.

Incorrect Answers

A:

Label-aware queries exclude disallowed chunks rather than asking the model to ignore them; this explains its relevance to partition retrieval by classification tags derived from trusted identity, not the the architecture selection requirement to keep an explicit ingestion identity and a reproducible source-to-chunk mapping after compliance cannot trace a generated citation to its original document record. Generation-side disclaimers do not prevent confidential text entering context; choosing it for the architecture selection would leave the underlying issue visible: compliance cannot trace a generated citation to its original document record.

B:

For work that needs to enforce source-specific access controls before constructing the retrieval context, the application must carry trusted identity context into candidate selection so the FM never sees disallowed chunks; the specific the architecture selection instead requires keep an explicit ingestion identity and a reproducible source-to-chunk mapping in light of compliance cannot trace a generated citation to its original document record. An FM refusal after retrieval is too late to protect raw context exposure; this is insufficient for the architecture selection, given the evidence that compliance cannot trace a generated citation to its original document record.

C:

For work that needs to run vector similarity search with operationally tunable indexes, openSearch supports vector indexing and search features alongside text retrieval and filtering; the specific the architecture selection instead requires keep an explicit ingestion identity and a reproducible source-to-chunk mapping in light of compliance cannot trace a generated citation to its original document record. Storing vectors as arbitrary JSON fields without index support will not provide efficient similarity retrieval; this is insufficient for the architecture selection, given the evidence that compliance cannot trace a generated citation to its original document record.

Question 333

A deployed assistant starts generating more privacy violations after a data refresh. The engineering team is required to detect policy-breach trends and route alerts to response owners. What should be built first?

  1. Maintain versioned model cards associated with approved model artifacts.
  2. Publish violation counts to CloudWatch with alarms and remediation workflows.
  3. Track retrieval provenance from the source object to the final citation.
  4. Use Amazon Macie for S3 sensitive-data discovery with remediation workflows.

Explanation

Correct Answer

B:

Rate-based monitoring identifies sustained drift and can trigger containment of affected releases; it directly supports the architectural objective to detect policy-breach trends and route alerts to response owners. Only measuring availability misses safety degradation in otherwise successful calls; that boundary is important when selecting the implementation.

Incorrect Answers

A:

Model cards record evaluation context and limitations for oversight and informed use; this explains its relevance to publish reviewed model facts, intended uses, and known performance limits, not the the architecture selection requirement to detect policy-breach trends and route alerts to response owners after the app is healthy by uptime metrics while unsafe outputs increase sharply. A deployment timestamp alone does not communicate observed bias or failure domains; choosing it for the architecture selection would leave the underlying issue visible: the app is healthy by uptime metrics while unsafe outputs increase sharply.

C:

Stable source IDs and spans allow reviewers to verify claimed evidence; that is valuable when the goal is to carry document identifiers and chunk locations into the generated response, but the architecture selection instead depends on the ability to detect policy-breach trends and route alerts to response owners. A generated footnote without a backing retrieval record can be fabricated; it does not account for the condition in the architecture selection: the app is healthy by uptime metrics while unsafe outputs increase sharply.

D:

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 detect policy-breach trends and route alerts to response owners in light of the app is healthy by uptime metrics while unsafe outputs increase sharply. Macie is not an inline filter for arbitrary model responses; this is insufficient for the architecture selection, given the evidence that the app is healthy by uptime metrics while unsafe outputs increase sharply.

Question 334

Cost per answer spikes whenever long manuals are included verbatim. Investigators also establish that a high-traffic assistant sends entire manuals in every prompt. Which implementation most directly addresses the cause?

  1. Retrieve only top-ranked bounded passages and reserve an explicit context budget.
  2. Enforce queue-based concurrency limits and bounded admission control.
  3. Publish token-usage and estimated-cost metrics with dimensions in CloudWatch.
  4. Evaluate Bedrock prompt caching for stable repeated prompt segments.

Explanation

Correct Answer

A:

Smaller relevant context reduces input tokens and avoids crowding out necessary instructions; that explains the reported failure: cost per answer spikes whenever long manuals are included verbatim. Blindly removing all context may improve cost while destroying factual grounding; a symptom-only workaround would not restore the requirement to cut input tokens while keeping the relevant evidence.

Incorrect Answers

B:

For work that needs to control concurrency and smooth demand before it reaches the FM, concurrency gates prevent sudden bursts from overwhelming model quotas; the specific the reported failure and its causal repair instead requires cut input tokens while keeping the relevant evidence in light of cost per answer spikes whenever long manuals are included verbatim. Unrestricted retries increase load rather than creating capacity; this is insufficient for the reported failure and its causal repair, given the evidence that cost per answer spikes whenever long manuals are included verbatim.

C:

The scope of this alternative is different: attributed usage reveals which behavior or cohort drives spend; it supports record input and output tokens per model, tenant, and feature, while the reported failure and its causal repair needs cut input tokens while keeping the relevant evidence after cost per answer spikes whenever long manuals are included verbatim. A single monthly total does not identify the feature creating token bursts; for the reported failure and its causal repair, the unresolved requirement remains to cut input tokens while keeping the relevant evidence, as shown when cost per answer spikes whenever long manuals are included verbatim.

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 cut input tokens while keeping the relevant evidence after cost per answer spikes whenever long manuals are included verbatim. 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: cost per answer spikes whenever long manuals are included verbatim.

Question 335

A tool server requires persistent connections and heavy native dependencies. The architecture must choose a runtime suitable for long-lived complex MCP services. Which implementation best meets that requirement?

  1. Implement structured tool errors with idempotency and bounded retry semantics.
  2. Implement the authenticated MCP-facing operation with a Lambda-backed service.
  3. Issue a task-scoped role with minimal S3 object permissions and caller-aware filters.
  4. Run the MCP service on a managed container platform such as Amazon ECS.

Explanation

Correct Answer

D:

Containers suit persistent processes, custom dependencies, and controlled resource sizing; it directly supports the architectural objective to choose a runtime suitable for long-lived complex MCP services. A short function timeout can be inappropriate for a sustained tool session; that boundary is important when selecting the implementation.

Incorrect Answers

A:

The scope of this alternative is different: typed outcomes let the agent distinguish temporary failures from rejected requests without blindly repeating side effects; it supports return typed success and recoverable error results to the orchestrator, while the architecture selection needs choose a runtime suitable for long-lived complex MCP services after clients lose connections when a tool requires minutes of continuous computation. Returning vague free text makes retries and compensation unreliable; for the architecture selection, the unresolved requirement remains to choose a runtime suitable for long-lived complex MCP services, as shown when clients lose connections when a tool requires minutes of continuous computation.

B:

A stateless function suits short-lived bounded calls and scales with requests within service limits; this explains its relevance to host a stateless tool handler without maintaining idle servers, not the the architecture selection requirement to choose a runtime suitable for long-lived complex MCP services after clients lose connections when a tool requires minutes of continuous computation. Long-lived in-memory conversational state should not be assumed across invocations; choosing it for the architecture selection would leave the underlying issue visible: clients lose connections when a tool requires minutes of continuous computation.

C:

The tool runtime's data-plane scope must match the action being executed; this explains its relevance to avoid granting broad bucket permissions to the agent runtime, not the the architecture selection requirement to choose a runtime suitable for long-lived complex MCP services after clients lose connections when a tool requires minutes of continuous computation. Allowing s3:* on the bucket makes prompt injection more damaging; choosing it for the architecture selection would leave the underlying issue visible: clients lose connections when a tool requires minutes of continuous computation.

Question 336

A support bot answers FAQs that rarely change but also handles weekly price lists. A release proposal aims to isolate changing facts from stable instructions while controlling operational risk. Which architecture decision fits the constraint?

  1. Run a bounded Amazon Bedrock proof of concept with golden questions and acceptance thresholds.
  2. Build evidence-first prompts that require supporting passages for claims.
  3. Separate versioned system prompts from an indexed, frequently refreshed product knowledge source.
  4. Define shared infrastructure modules and apply the AWS Well-Architected Generative AI Lens.

Explanation

Correct Answer

C:

The prompt establishes behavioral policy while retrieval supplies volatile facts, so one can change without redeploying the other; it directly supports the architectural objective to isolate changing facts from stable instructions while controlling operational risk. Embedding a full catalog in a static prompt makes updates fragile and can exceed context limits; that boundary is important when selecting the implementation.

Incorrect Answers

A:

An evaluation pilot tests accuracy, safety, latency, and cost against representative inputs before architectural lock-in; that is valuable when the goal is to establish a measurable feasibility decision using representative customer traffic, but the architecture selection instead depends on the ability to isolate changing facts from stable instructions while controlling operational risk. A vendor demo on idealized prompts does not estimate production failures or cost; it does not account for the condition in the architecture selection: releasing a price update unexpectedly changes tone rules or leaves outdated prices in replies.

B:

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 architecture selection instead depends on the ability to isolate changing facts from stable instructions while controlling operational risk. Merely asking a model to be accurate cannot supply missing knowledge; it does not account for the condition in the architecture selection: releasing a price update unexpectedly changes tone rules or leaves outdated prices in replies.

D:

For work that needs to provide a reusable reference architecture with repeatable security and operations checks, standard deployment patterns encode tested identity, observability, reliability, and cost choices across teams; the specific the architecture selection instead requires isolate changing facts from stable instructions while controlling operational risk in light of releasing a price update unexpectedly changes tone rules or leaves outdated prices in replies. Copying application source alone does not standardize IAM boundaries or operational controls; this is insufficient for the architecture selection, given the evidence that releasing a price update unexpectedly changes tone rules or leaves outdated prices in replies.

Question 337

A multi-agent workflow must delegate research and then consolidate findings. After deployment, the final report is published before compliance review returns. Engineers need a cause-level fix, not a change in presentation. What should they implement?

  1. Use Amazon Q Developer for suggestions and validate output in CI.
  2. Coordinate bounded specialist tasks with a stateful orchestration framework.
  3. Orchestrate processing with Step Functions and task-state validation.
  4. Create structured trace records for each model and tool invocation.

Explanation

Correct Answer

B:

Task delegation and aggregation make dependencies and timeout behavior testable; that explains the reported failure: the final report is published before compliance review returns. Sending one open-ended prompt cannot guarantee each specialist completed its role; a symptom-only workaround would not restore the requirement to use explicit orchestration for specialist agents and merge conditions.

Incorrect Answers

A:

AI development assistance can generate candidate code, but normal review and testing establish fitness; that is valuable when the goal is to accelerate code exploration while retaining code review and tests, but the reported failure and its causal repair instead depends on the ability to use explicit orchestration for specialist agents and merge conditions. Suggested source code should not be trusted as already deployed or secure; it does not account for the condition in the reported failure and its causal repair: the final report is published before compliance review returns.

C:

For work that needs to sequence service calls with explicit failure and compensating paths, a state machine tracks each external operation, errors, and recoverable milestones; the specific the reported failure and its causal repair instead requires use explicit orchestration for specialist agents and merge conditions in light of the final report is published before compliance review returns. One long function hides partial completion and complicates retries; this is insufficient for the reported failure and its causal repair, given the evidence that the final report is published before compliance review returns.

D:

For work that needs to trace correlated agent and tool spans per user request, per-step observability distinguishes orchestration overhead from model response time; the specific the reported failure and its causal repair instead requires use explicit orchestration for specialist agents and merge conditions in light of the final report is published before compliance review returns. One log line per final answer cannot expose intermediate retries; this is insufficient for the reported failure and its causal repair, given the evidence that the final report is published before compliance review returns.

Question 338

A text-to-SQL feature turns questions into database reads. The architecture must validate query structure and allowlisted read-only operations before execution. Which implementation best meets that requirement?

  1. Enforce output moderation with Bedrock Guardrails and an application release gate.
  2. Execute schema and semantic contract tests against model responses.
  3. Run upload validation, malware scanning where applicable, and trusted text extraction.
  4. Parse generated SQL and enforce read-only, scoped database permissions.

Explanation

Correct Answer

D:

Deterministic validation prevents a generated statement from becoming an unauthorized database action; it directly supports the architectural objective to validate query structure and allowlisted read-only operations before execution. Model-generated SQL is not trusted merely because it resembles an ordinary SELECT; that boundary is important when selecting the implementation.

Incorrect Answers

A:

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 architecture selection instead depends on the ability to validate query structure and allowlisted read-only operations before execution. Input-only filtering cannot inspect harmful text newly created by the model; it does not account for the condition in the architecture selection: a prompt injection induces a destructive statement through the query assistant.

B:

Schema checks detect field removal, type changes, and invalid required combinations; that is valuable when the goal is to validate structured-output contracts before routing traffic, but the architecture selection instead depends on the ability to validate query structure and allowlisted read-only operations before execution. Matching a few output words does not establish API compatibility; it does not account for the condition in the architecture selection: a prompt injection induces a destructive statement through the query assistant.

C:

Preprocessing reduces dangerous payloads and prevents unchecked files from entering downstream stages; that is valuable when the goal is to scan and validate attachments before including content in prompts, but the architecture selection instead depends on the ability to validate query structure and allowlisted read-only operations before execution. An FM content filter is not a replacement for file-type and malware checks; it does not account for the condition in the architecture selection: a prompt injection induces a destructive statement through the query assistant.

Question 339

An agent executes a complex customer-service workflow across several tools. The architecture must measure successful end-to-end task completion, not only coherent text. Which implementation best meets that requirement?

  1. Use staged agent evaluations that check delegation and aggregation results.
  2. Record tool calls per successful task and detect repeated action patterns.
  3. Create end-to-end CloudWatch dashboards with request and business KPIs.
  4. Track verified task completion and tool side-effect correctness.

Explanation

Correct Answer

D:

An agent must finish intended actions within policy, not merely produce a convincing narrative; it directly supports the architectural objective to measure successful end-to-end task completion, not only coherent text. Final-response fluency can conceal failed tool executions; that boundary is important when selecting the implementation.

Incorrect Answers

A:

Intermediate trace checks find tasks skipped or duplicated across specialists; that is valuable when the goal is to evaluate handoff completion and ownership errors with trace-based tests, but the architecture selection instead depends on the ability to measure successful end-to-end task completion, not only coherent text. Judging only final wording may miss an unapproved side effect; it does not account for the condition in the architecture selection: the bot claims an order was canceled although the cancellation API failed.

B:

The scope of this alternative is different: efficiency metrics reveal unproductive loops that raise cost and risk; it supports measure tool efficiency and stopping correctness, while the architecture selection needs measure successful end-to-end task completion, not only coherent text after the bot claims an order was canceled although the cancellation API failed. High model response quality does not imply economical orchestration; for the architecture selection, the unresolved requirement remains to measure successful end-to-end task completion, not only coherent text, as shown when the bot claims an order was canceled although the cancellation API failed.

C:

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 measure successful end-to-end task completion, not only coherent text. Infrastructure CPU graphs alone do not show customer value; it does not account for the condition in the architecture selection: the bot claims an order was canceled although the cancellation API failed.

Question 340

Agents use incompatible parameter names for the same repository search operation. Investigators also establish that a tool-enabled assistant is being integrated with a heterogeneous tool ecosystem. Which implementation most directly addresses the cause?

  1. Use Model Context Protocol-compatible interfaces with authenticated tool servers.
  2. Run prompt-injection and jailbreak evaluations against the full tool workflow.
  3. Put parameter validation and authorization in the Lambda tool handler.
  4. Enforce caller identity and operation-level authorization in the tool layer.

Explanation

Correct Answer

A:

A standard tool interface describes available operations and schemas, reducing framework-specific glue; that explains the reported failure: agents use incompatible parameter names for the same repository search operation. Protocol compatibility does not grant permissions; authentication remains necessary; a symptom-only workaround would not restore the requirement to make tool discovery and invocation contracts consistent across clients.

Incorrect Answers

B:

The scope of this alternative is different: testing realistic attacks surfaces gaps that benign user prompts and single-model demos miss; it supports measure resistance using repeatable adversarial test suites, while the reported failure and its causal repair needs make tool discovery and invocation contracts consistent across clients after agents use incompatible parameter names for the same repository search operation. A policy document claiming safety is not a measured security result; for the reported failure and its causal repair, the unresolved requirement remains to make tool discovery and invocation contracts consistent across clients, as shown when agents use incompatible parameter names for the same repository search operation.

C:

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 make tool discovery and invocation contracts consistent across clients in light of agents use incompatible parameter names for the same repository search operation. 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 agents use incompatible parameter names for the same repository search operation.

D:

Trusted identity propagation prevents a shared tool server from becoming an unrestricted deputy; that is valuable when the goal is to authorize each tool invocation with end-user context and action scope, but the reported failure and its causal repair instead depends on the ability to make tool discovery and invocation contracts consistent across clients. Relying on the requested product name is not a proof of user permission; it does not account for the condition in the reported failure and its causal repair: agents use incompatible parameter names for the same repository search operation.

AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests