Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 40
Question 390
A claims workflow extracts vehicle details, verifies coverage and drafts a settlement notice. A downstream step occasionally receives a free-form description instead of the expected policy limit. Which architecture should be used?
- Pass unvalidated free-form output directly to a payment or settlement action.
- Chain extraction, verification and drafting using typed, source-linked intermediate artifacts and stop when required fields fail validation.
- Remove step identifiers so the final response cannot be tied to an earlier extractor.
- Have the final drafting model invent a plausible policy limit when the verifier fails.
Explanation
Correct Answer
B:Give extraction an explicit schema and provenance, coverage verification a validated decision/result, and drafting a narrow input contract. An orchestration service such as Step Functions can branch to review on invalid or missing data. Carry approved source references and constrain any financially consequential action behind independent authorization.
Incorrect Answers
A:Free-form text may omit units, validity dates or the exact contract amount. Passing it directly to a payment side effect is unsafe and not auditable. A free-form `totalAmount` may be missing currency or contain a guess. Require a typed valid extraction before any settlement or payment step.
C:Intermediate IDs are needed to reconstruct why a notice used a particular figure. Dropping them harms observability and incident investigation. Identifiers link original documents, verified coverage and final notices. Removing them makes it impossible to attribute a wrong settlement amount.
D:A made-up limit can cause an unauthorized settlement. Missing evidence is a failure state requiring clarification or human review, not improvisation. When validation fails, the model cannot infer a legitimate policy limit from general patterns. Branch to correction or review rather than fabricate it.
Question 391
A Bedrock application receives intermittent `ValidationException` responses after a deployment. Logs contain only “model failed,” and engineers suspect wrong request fields. What is the best troubleshooting action?
- Silence all validation errors because the next request may succeed.
- Log full raw user prompts and secrets to a public dashboard for easier reproduction.
- Capture sanitized request schema, model/deployment identifier and validation-error details with a correlation ID.
- Increase the CPU allocation of the user’s browser without inspecting the API request.
Explanation
Correct Answer
C:Log the invoked Bedrock API, model or inference-profile identifier, request field names and types, sanitized validation error and a stable correlation ID. Compare the failed payload schema with the target model’s documented contract and a known-good call. This distinguishes a genuine request-format regression from permissions, throttling or client-side display behavior without exposing prompts or credentials.
Incorrect Answers
A:Ignoring ValidationException hides the new deployment’s request-contract defect and may keep returning an error for every affected input. A malformed field generally needs a payload correction, not repeated blind attempts. Record the safe error category, reproduce a minimal failing request and compare it with the previously valid model contract.
B:Sending raw customer prompts and secrets to a public dashboard would expose sensitive data while adding little clarity about request-field validation. Engineers need the field names, payload shape, model ID and sanitized error details. Redact private values, keep diagnostic records access-controlled and reproduce using safe synthetic inputs.
D:Browser CPU capacity does not determine whether the Bedrock endpoint accepts the request schema and model-specific parameters. Increasing client resources cannot repair a server-side validation error. Inspect and validate the actual SDK/API body sent after the deployment and correlate it with the returned exception.
Question 392
A safety policy changes to prohibit a new category of harmful financial advice. The app uses a versioned system prompt and Bedrock guardrail configuration. What should govern rollout?
- Disable guardrail enforcement until employees learn the revised policy wording.
- Rely only on a general benchmark from the model provider, without testing the new prohibited category.
- Edit the policy document in production and assume every current invocation automatically adopts it.
- Version the policy prompt and runtime controls, then test representative allowed and prohibited inputs before promotion.
Explanation
Correct Answer
D:Treat policy changes as tested release artifacts with explicit ownership, effective dates, configuration IDs and rollback. Add the new adverse prompts plus near-boundary legitimate cases to a frozen test set. Verify actual runtime allow/block decisions and investigate false positives before broad deployment. A new prohibited-advice category must appear in both runtime guardrail configuration and a versioned regression suite. Test adjacent legitimate financial education as well as harmful requests to detect false positives and bypasses before promotion.
Incorrect Answers
A:Removing enforcement during a policy transition opens an avoidable gap. Stage the new configuration and preserve existing protections. Production should maintain existing safeguards during a change. Stage the new forbidden-advice rule and test that no temporary unmoderated gap appears. Avoid an unguarded production interval.
B:A benchmark may not cover the organization’s new financial-advice risk. Run use-case-specific tests against the exact current policy. A public benchmark cannot exercise the organization's new financial policy or its borderline legitimate customer questions. Use labeled task-specific regression cases.
C:Updating documentation alone does not prove a deployed prompt or guardrail was changed. Confirm the effective runtime version and its behavior. Editing a policy document does not necessarily update the deployed system prompt or guardrail version. Verify effective runtime configuration and observed blocking.
Question 393
A service manual answer requires both an equipment warranty exception and a safety bulletin. The retrieval engine finds only one of the sources. How should a branching prompt workflow proceed?
- Generate a complete answer from the one retrieved source and infer what the other bulletin probably says.
- Concatenate all available outputs even if they disagree and omit provenance.
- Check coverage of each required authoritative source, retrieve or escalate missing evidence, and reconcile supported claims before drafting.
- Use a longer output limit to make the missing source seem less important.
Explanation
Correct Answer
C:Represent required source categories explicitly and gate the synthesis step on their availability and validity. Branch to additional retrieval, clarification or a truthful incomplete response when a bulletin is missing. Preserve document versions and compare conflicts before presenting a unified safety recommendation. If the warranty exception is found but the mandatory safety bulletin is absent, the chain should stop short of asserting a complete service recommendation. Retrieve the missing source or expose the uncertainty with precise citations.
Incorrect Answers
A:An absent safety bulletin can contain a critical restriction. Guessing its contents can create dangerous instructions despite a plausible warranty explanation. A missing safety bulletin could reverse the warranty-only recommendation. Obtain the authoritative bulletin or return a clearly incomplete answer rather than infer its contents.
B:Joining incompatible fragments without reconciliation hides conflicts and can attribute claims to the wrong source. Retain passage-level provenance. Conflicting passages need reconciliation with source IDs and effective dates. Simple concatenation creates a false unified policy even when required evidence is absent.
D:Answer length does not supply the missing mandatory evidence. The workflow must acknowledge source insufficiency and refuse an unsupported conclusion. Longer wording does not supply the absent bulletin. Gate final drafting on required source coverage and escalate if retrieval remains incomplete.
Question 394
A customer disputes a recommendation made two weeks ago. The team cannot identify which model, prompt, retrieval index or tool calls were involved. Which logging design should be added?
- Privacy-filtered correlated invocation traces with immutable configuration versions, retrieval provenance and actual tool receipts.
- Publicly record complete raw prompts and API credentials to guarantee audit availability.
- Ask the model to retrospectively guess its older hidden instructions and actions.
- Store only the final user-facing sentence and delete all deployment metadata.
Explanation
Correct Answer
A:Create a safe request ID linking sanitized inputs, model/config hashes, retrieval source IDs, tool executions and outcomes. Set controlled retention, access and redaction for personal data. A replayable technical record distinguishes model reasoning text from actual backend actions and supports investigation without violating data-minimization requirements.
Incorrect Answers
B:Public sensitive-data logging is a security incident waiting to happen. Auditable does not mean unrestricted; protect and minimize traces. Publicly logging customer prompts and secrets creates a new breach path. Store minimized, access-controlled trace references and configuration hashes instead. Exclude secret and payment fields from trace bodies.
C:A generative reconstruction is not reliable history and cannot prove real API side effects. Use event receipts recorded at execution time. A model cannot recall exact hidden prompts or authenticated tool receipts from two weeks ago. Preserve immutable records when the original interaction occurs.
D:A final sentence lacks provenance and cannot establish which source version or tool request produced the effect. Keep a bounded audit trail. A final sentence cannot show which index snapshot, model version or tool result drove the decision. Correlate deployment and invocation metadata.
Question 395
A reservation agent tells a customer the correct cancellation policy, but executes a tool call to cancel the wrong booking. What evidence best isolates the fault?
- The natural-language explanation alone, because it proves which API arguments were sent.
- Correlated agent/tool execution traces showing the chosen booking ID, arguments, authorization and tool result.
- A screenshot of the generic cancellation policy with no transaction identifiers.
- Only the foundation model’s aggregate token count.
Explanation
Correct Answer
B:Inspect the actual tool request payload and booking identity, upstream retrieval/selection step, authorization decision and returned receipt. Use traced IDs to distinguish model planning error from backend parameter mapping or tool implementation error. Improve pre-action confirmation and business-side validation before retrying. The model may describe the right cancellation policy yet pass a different booking ID to the tool. Compare selected booking identity, authorized request arguments and the actual provider cancellation receipt before claiming the reservation was changed.
Incorrect Answers
A:Correct prose can coexist with a wrong side effect. A generated summary is not a trustworthy record of the executed API call. The model may explain the right policy while sending the wrong booking ID. Inspect actual cancellation arguments and provider receipt before confirming success.
C:Generic policy text explains what should happen, not what happened to a specific booking. Investigate the transaction receipt and workflow state. General terms do not identify which reservation was modified. Compare authorized booking selection and the transaction-specific tool result. The provider receipt must identify the canceled reservation.
D:Tokens consumed may show cost but cannot identify which booking identifier was passed to the tool. Instrument action inputs and outputs. Token volume cannot distinguish a wrong cancellation ID from a correct one. Use correlated request and tool-operation identifiers with readback.
Question 396
A Bedrock agent occasionally fails after invoking a pricing tool, but the model response logs only show a timeout. How should the engineer isolate the failing dependency?
- Trace the agent request through the downstream pricing API with AWS X-Ray or equivalent correlated spans and inspect timeout/retry details.
- Assume every timeout originates in the foundation model without inspecting the tool.
- Increase model randomness so the timeout occurs less predictably.
- Discard downstream API errors and return a successful price estimate.
Explanation
Correct Answer
A:Instrument agent orchestration and the API/compute path with request IDs, per-call latency and status codes. Compare failed spans to the pricing tool’s own logs and validate bounded retries and idempotency. This reveals whether the issue is tool throttling, network delays, credential denial or invocation coordination.
Incorrect Answers
B:A model-level timeout can include downstream calls and retries. Trace the actual execution path before assigning the failure to a component. An external pricing tool can time out while the foundation model itself responds normally. Add separate spans and error codes for each dependency.
C:Output sampling does not repair an unavailable or slow pricing API and can introduce greater answer variation. Diagnose dependency telemetry. Sampling changes wording, not the availability of an upstream price quote. Diagnose the API duration, retry budget and actual tool response.
D:Inventing prices after a timeout violates source accuracy and can cause financial harm. Return an explicit unavailable state or approved fallback. A fabricated price can create financial harm and hides the failed dependency. Return an accurate unavailable or pending status until a real quote is verified.
Question 397
A contract-processing chain successfully extracts a counterparty name but fails to validate its payment routing number. The next step would draft a transfer instruction. What must the workflow do?
- Treat failed validation as a warning but continue transfer authorization automatically.
- Branch to source correction or accountable review and block any payment drafting or tool action until validation succeeds.
- Ask the model to invent the missing bank number using patterns from other customers.
- Remove the failed validator from the chain so all documents reach the final stage.
Explanation
Correct Answer
B:Use typed state transitions that distinguish valid, invalid and incomplete extraction. Preserve the original document evidence and a reason for failure, then retry only authorized corrections or escalate. Prevent payment-side actions while routing details remain unverified and require separate approval for any later transfer. A validated counterparty name is not enough to authorize a bank transfer. Keep the routing-number field in an invalid state, block downstream drafting and tool execution, and request a verified correction plus any required approval.
Incorrect Answers
A:A warning does not enforce a control boundary when an irreversible action follows. Gate the next step on a successful verified result. A bank-routing failure must block any transfer-related next step, not merely add a warning to the final text. Use typed failure transitions.
C:Patterns cannot identify a particular beneficiary’s account number. A guessed digit can redirect funds and is unacceptable as factual data. Bank details are exact beneficiary identifiers; statistical guesses could send money to the wrong recipient. Require authoritative correction and approval.
D:Deleting validation trades visible failure for silent financial risk. Repair the extraction or source data and keep the block. Removing the validator converts an obvious failed check into an unreviewed financial action. Preserve source evidence and escalate incomplete routing numbers.
Question 398
A new mobile chat entry point uses an AI assistant but omits the AI disclosure shown on the desktop site. It also hides how to escalate to a human. What should release QA cover?
- A hidden internal note confirming that the team knows the assistant is automated.
- The model’s decoding temperature instead of any user interface behavior.
- Only the original desktop screen because mobile uses the same underlying model.
- Every supported entry point must display appropriate AI disclosure and a working human escalation path, tested across realistic flows.
Explanation
Correct Answer
D:Map required transparency, limitation and appeal/escalation controls across mobile, desktop and embedded integrations. Test first contact, error, sensitive-task and accessibility paths, including actual escalation submission. Release should fail when an entry point silently removes a required disclosure or route. Test the initial mobile conversation, error state and human escalation interaction with keyboard and assistive technology. A disclosure available only on desktop does not satisfy the mobile user who cannot tell the response is generated by AI.
Incorrect Answers
A:Employees knowing the system is automated does not inform customers. Disclosure must be available at the point of interaction and function as designed. The disclosure must reach the actual mobile customer, not only internal employees. Test visible AI identification in every supported entry point.
B:Sampling controls affect generated wording, not whether the mobile UI contains an accessible disclosure and escalation action. Temperature influences the wording of model output but cannot add a missing disclosure control or working human-help link to mobile navigation. Check the actual mobile disclosure and escalation UI.
C:The backend model can be identical while different interfaces omit legally or ethically relevant information. Check the user experience for each exposed channel. Desktop and mobile can share inference while presenting different disclosure and appeal functionality. Validate each UI flow, including accessibility and escalation.
Question 399
A generated Lambda patch adds immediate unlimited retries to a Bedrock inference client. The original bug disappears in one unit test, but load tests now show synchronized traffic spikes and 429 errors. What should code review require?
- Implement capped exponential backoff with jitter and retry classification, then validate under realistic load with observability.
- Keep retrying instantly forever because more attempts eventually guarantee capacity.
- Remove HTTP status logging so the new retries cannot trigger release alerts.
- Give the Lambda administrator permissions so throttling limits no longer apply.
Explanation
Correct Answer
A:Retry only safe transient failures, honor documented service guidance, apply per-request deadlines and jitter to avoid retry storms, and account for idempotency. Run concurrency/load tests, inspect 429 rates and token quotas, and verify that failures return clearly when limits are exhausted. Review generated code just as carefully as manually written code.
Incorrect Answers
B:Unlimited synchronized retries can amplify service throttling and cost, starving legitimate requests. A bounded policy must stop when recovery is not possible. A client storm cannot create new model throughput; bound retries with exponential backoff and jitter, respecting 429 quotas and termination deadlines.
C:Without error telemetry the team cannot prove whether retries reduced or worsened incidents. Preserve safe metrics and trace IDs. Keep error counts and retry attempts to detect overload caused by the patch. Suppressed 429 events only hide the new failure mode.
D:IAM privilege does not raise model inference quotas and broadens the blast radius of a compromised function. Treat authorization and capacity separately. AdministratorAccess does not increase service capacity or token quotas. It adds risk while leaving rate limiting and retry behavior unchanged.
Question 400
A shared prompt orchestrator recursively invokes a research tool whenever a source is missing. A malformed source causes the same tool call to repeat indefinitely. What should the flow enforce?
- Remove tool-execution logs to avoid high storage consumption during recursion.
- Bound tool-call depth and total budget, detect repeated state, and return a typed unresolved/error branch when progress stops.
- Ask the model to write a longer explanation while continuing identical tool calls.
- Allow unlimited tool iterations because the next response must eventually succeed.
Explanation
Correct Answer
B:Track a finite step/cost/time budget, tool arguments and evidence state across the workflow. Detect no-progress cycles, apply bounded retry rules, and route missing evidence to clarification or review. Record execution receipts so operators can diagnose the loop without risking runaway billable requests. Store a hash of repeated tool arguments and detect when retries return no new source evidence. Stop on the bounded attempt or cost limit with an explicit unresolved state; never let an unchanged missing-source loop keep calling a billable model.
Incorrect Answers
A:Logs are needed to reproduce the recursive failure and verify repair. Minimize sensitive fields and retention rather than discarding the execution trace entirely. Retain correlated tool-call arguments and retry counts so the no-progress cycle can be reproduced. Remove repetition through bounded orchestration, not by deleting evidence.
C:Longer output does not change the defective state transition. It can increase token consumption while the same tool request repeats. Fix orchestration control flow. A longer answer does not fix the repeated research-tool transition or missing source. Detect identical request hashes and terminate the loop safely.
D:An unbounded loop can continue without new information, consuming resources and delaying users indefinitely. Introduce explicit termination conditions and an honest failure state. The same malformed source may never become usable. Enforce step, time and cost ceilings with a truthful unresolved state and escalation.