Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 5
Question 40
A new FM deployment lowers token price but increases incorrect account summaries and staff review. Leadership wants a fair comparison with the previous model. Which evidence should determine promotion?
- The lower advertised token price, without testing customer-facing quality.
- Whether the new model is more recent in the provider catalog.
- The new model’s own assessment of its helpfulness on a few unverified questions.
- The same held-out business cases evaluated for accuracy, latency, total cost and reviewer corrections.
Explanation
Correct Answer
D:Evaluate both versions against the same source-grounded customer cases, including difficult account edge conditions. Capture factual mistakes, accepted-answer rate, staff correction time, retry cost and p95 latency. Define thresholds before the comparison, promote only if the combined outcome is acceptable, and use a monitored canary with rollback if quality deteriorates. Include error bars and the share of accepted answers for each model, avoiding a misleading comparison based on only average response cost.
Incorrect Answers
A:Unit price is a component of spending but does not include additional corrections or poor customer experiences. A low-price model that requires more human labor can increase total cost and operational risk. Promotion must depend on measured quality and task-level economics.
B:Release recency does not establish suitability for this organization’s account data or compliance requirements. New models can change output format, refusal patterns and cost. Test the candidate on a representative common workload and retain a rollback path.
C:A model rating its own answers without authoritative records can reward fluent but incorrect summaries. A handful of convenient prompts is also too narrow to estimate production behavior. Use the same held-out source data and defined rubric for both deployments.
Question 41
A tool-enabled Bedrock agent repeatedly calls a rate-limited inventory API and retries the same operation hundreds of times after receiving throttling. What workflow control should prevent recurrence?
- Increase retry count and apply a fixed one-second pause to every throttle response, without any total attempt budget.
- Configure bounded retries with exponential backoff, a circuit breaker and a terminal error or recovery branch.
- Remove the API’s throttling limits by granting the agent an administrator role.
- Ignore the error code and report success whenever the agent has made at least ten calls.
Explanation
Correct Answer
B:Apply capped attempts with jittered backoff, recognize retryable status codes, and open a circuit when failure thresholds are exceeded. The state machine should record a terminal or delayed-retry state rather than ask the model to improvise more calls. Track tool usage and restore service only when the dependency is healthy. After the circuit opens, test that the client receives an accurate failure state rather than a generated claim that inventory was successfully checked.
Incorrect Answers
A:Synchronized fixed delays can keep many agents retrying together, increasing load on the limited inventory API. Without attempt and cost limits a failed workflow can run indefinitely. Use exponential backoff with jitter, appropriate circuit breaking and an explicit terminal error or recovery path.
C:Administrative permissions are not a throughput control. They may broaden what the agent can do without changing an API’s legitimate rate limit. The correct response is to handle throttling safely, limit side effects and request quota changes only through approved operational channels.
D:A call count does not prove successful execution. Reporting success after repeated failures misleads the user and can corrupt subsequent workflow state. Check authenticated tool results and provide an accurate failure status after the retry budget expires.
Question 42
Four development teams call the same Bedrock-facing internal API. Each team handles tool errors using different formats, so incident traces cannot be joined. What shared interface improvement is most useful?
- Standardize typed tool results, stable error categories and correlation IDs across all consumers.
- Make every tool error an HTTP 200 response containing an unstructured success-looking message.
- Assign every tool its own unrelated trace-ID format so teams can retain their preferences.
- Remove error details and tracing to avoid disagreement between teams.
Explanation
Correct Answer
A:A shared typed contract makes success, transient errors, authorization failures and permanent validation problems distinguishable. Common correlation IDs allow one request to be followed across model calls and downstream tools. Version the contract and check compatibility before deployment so each team can implement consistent retry and incident-response behavior. Validate error mappings for authentication, quota and business-rule denials, so no consumer retries a permanent rejection as a transient fault.
Incorrect Answers
B:An HTTP success code for actual failures prevents callers from choosing the correct recovery path and can lead to false claims that actions completed. A consistent API should preserve machine-readable status semantics rather than hiding failures inside prose. This is particularly important for side-effecting agent tools.
C:Incompatible tracing identifiers block end-to-end investigations when several tools participate in one user request. Each service may still record local details, but must propagate a common correlation context. Without this, the platform cannot reliably connect downstream errors to the originating model interaction.
D:Removing diagnostic evidence makes outages harder to reproduce and hides authorization mistakes or partial tool failures. The platform needs structured, privacy-conscious telemetry and consistent error mapping, not silence. Security controls can redact sensitive fields while retaining the identifiers and categories needed for accountability.
Question 43
A healthcare education assistant sometimes produces specific emergency medication instructions that are unsupported by its approved reference material. What release control best limits this risk?
- Permit all advice if the model includes a generic not-medical-advice disclaimer.
- Disable citations so users do not notice the model’s uncertainty.
- Add a general medical disclaimer but continue answering unsupported emergency treatment questions from pretrained knowledge.
- Enforce grounded domain policies with refusal and escalation to approved medical guidance or qualified personnel for unsupported cases.
Explanation
Correct Answer
D:Use approved clinical education scope, source-grounding checks, and runtime content policies to prevent unsupported personalized emergency advice. When the answer cannot be verified, respond with an appropriate escalation or official emergency procedure reference rather than invent instructions. Evaluate adversarial and ambiguous test cases and enforce restrictions on any connected tools. Review exactly how the assistant responds to an out-of-scope urgent request and whether it avoids specific unsupported treatment instructions.
Incorrect Answers
A:Disclaimers may clarify scope but cannot prevent unsafe content from reaching a user. The problem is unsupported, high-impact advice, which needs an enforceable boundary. Tests should verify that the assistant refuses to improvise instructions when the authorized reference lacks sufficient information.
B:Removing citations conceals the evidence gap and makes an unsafe response harder to inspect. For high-consequence topics, provenance and clear uncertainty are more important, not less. Keep trustworthy source references and route unsupported questions to authorized resources rather than fabricate a recommendation.
C:A disclaimer does not convert unsupported patient-specific medication instructions into clinically verified advice. The assistant must detect when approved evidence is absent, refuse unsafe treatment details and route the request to an authorized source or qualified professional. Test this boundary on missing and conflicting documents.
Question 44
Two foundation models show similar factual accuracy on short benchmark prompts. One supports much longer contexts but has higher total inference cost on the company’s real 30-page research inputs. Which comparison should guide deployment?
- Select the model with the largest advertised context window without testing real requests.
- Choose the least expensive per-input-token list price even if the model truncates required documents.
- Benchmark supported context capacity, accepted-answer quality, latency and total token cost on representative long inputs.
- Increase output length on both models until the measured differences disappear.
Explanation
Correct Answer
C:Test the actual distribution of input lengths, output needs and concurrency. Compare factual accuracy, truncation behavior, latency and cost per accepted research summary. If a smaller context model with retrieval solves the task, include that architecture in the comparison. Record the workload-specific tradeoff rather than generalize from short benchmark scores. Benchmark requests near the shorter model context boundary so a loss of source content is visible in measured factuality results.
Incorrect Answers
A:A large context window may be useful but does not prove that the model can preserve relevant facts across lengthy research inputs. It may also create greater per-request expense. The deployment should be selected using measured quality and performance on actual document sizes rather than maximum specification alone.
B:A low input-token price can be misleading when the model cannot process the real request, causes extra retrieval rounds or needs repeated correction. Compare full request costs and the resulting factual quality. A cheaper unit price does not establish successful business task completion.
D:Longer output allocations generally increase potential completion cost and do not resolve input context limitations or missing source facts. The models’ differences should be measured, not obscured by configuration changes that affect both. Use realistic input and response requirements and evaluate accepted outcomes.
Question 45
A reference architecture uses the same AWS Region for every customer, but one business unit must keep all regulated documents in a particular jurisdiction. What change should the platform team make?
- Allow customers to type any Region name into the model prompt and trust the model to comply.
- Expose approved Region and classification parameters validated by deployment policy before selecting storage or inference.
- Copy all documents into a global bucket first and delete unwanted copies after inference.
- Remove regional configuration from the architecture because latency and cost are more important.
Explanation
Correct Answer
B:Use declarative environment parameters for legal residency, sensitivity and permitted service availability. Validate them against approved account/Region policies and supported model invocation paths, including any cross-Region inference routing. Fail safely if no compliant deployment is available, and record the configuration for audit and reproducibility. Include backups and derived indexes in the region configuration review, not merely the model endpoint used to produce the final answer.
Incorrect Answers
A:User-supplied natural language is not a reliable enforcement boundary for data residency. A model might route content incorrectly or misinterpret a country constraint. The application must validate service placement before any regulated data is stored, retrieved or sent to a model.
C:Creating a prohibited cross-border copy is still a transfer even if it is later deleted. Deletion may not remove all logs or derived records. Apply residency checks before data movement and keep backups, retrieval indexes and model routes within approved boundaries.
D:Cost and latency matter, but they do not supersede explicitly binding data location requirements. The architecture should make compliance visible as a constraint that narrows choices. Compare performance among permitted Regions rather than removing the requirement or hiding it in an informal design note.
Question 46
A refund agent identifies a possible duplicate payment, but the beneficiary account cannot be reliably matched to the customer’s authenticated identity. What must happen before any transfer is authorized?
- Proceed with the transfer because the model assigned high confidence to the refund.
- Ask the model to produce a longer rationale, then treat that text as proof of recipient identity.
- Verify the recipient and transaction through authoritative backend checks and obtain the required approval before execution.
- Retry the payment API with progressively larger amounts until a response succeeds.
Explanation
Correct Answer
C:Validate the customer, original charge and beneficiary using trusted records and prescribed anti-fraud checks. Require a documented approval for the exact amount and recipient when policy mandates it. Only then invoke the payment API with an idempotency key and reconcile the service receipt. If evidence remains uncertain, halt safely. Exercise a conflicting payee ID to confirm that approval for one recipient cannot authorize a refund into an unrelated account.
Incorrect Answers
A:A model confidence score reflects its generated assessment, not proof that a payee owns an account. An incorrect refund destination creates financial loss. Payment actions must be gated by verified business identities, transaction records and any required approval, independent of the model’s suggestion.
B:More explanation may help a human understand the proposed refund but cannot authenticate a bank account or establish consent. The agent can be fluent while relying on stale or incomplete information. Use backend records and protected verification steps before authorizing a side effect.
D:Increasing transaction amounts on retries is dangerous and unrelated to identity resolution. A timeout may mean the prior request succeeded, making repeated transfers possible. Enforce immutable approved transaction parameters, bounded retry rules and provider reconciliation rather than guessing.
Question 47
A generated shopping recommendation sometimes includes a customer’s private telephone number when the source notes contain it. The model’s incoming prompt is already filtered. What should the output path do?
- Inspect the actual generated response for sensitive values and block or mask detected disclosures under a tested policy.
- Assume input scanning guarantees that every possible response is free of private data.
- Send the response unchanged and hide only the telephone number in analytics dashboards.
- Raise the output limit so the model has room to explain why the number is included.
Explanation
Correct Answer
A:Sensitive information can appear in output through retrieved context, model behavior or incomplete input redaction. Apply a supported output filter, perform additional necessary validation, and fail safely when policy is violated. Test real and synthetic phone-number patterns while preserving the usefulness of legitimate product recommendations. Include generated phone numbers that are formatted unusually, since privacy controls must be tested beyond a single standard pattern.
Incorrect Answers
B:An input-side control may miss information introduced through retrieval, tools or model inference. It also may not detect every entity. Defense in depth requires inspecting what will actually be delivered to the user and applying appropriate access and privacy restrictions before release.
C:Masking only monitoring views protects some operators but does not prevent the consumer from seeing the sensitive number. The breach occurs when the response is delivered. Enforcement belongs on the serving path, with privacy-aware logs and controls on cached or streamed outputs.
D:Generation length does not determine whether a data disclosure is authorized. Allowing more tokens may create more opportunities for exposure. The application must minimize input data and inspect output, not attempt to justify the inclusion of customer identifiers with additional prose.
Question 48
Several teams use agent tools built by different owners. Investigation records show that one tool’s child request cannot be linked back to the original customer interaction. What standard should be introduced?
- Store a raw transcript of every customer interaction without any privacy filter.
- Use the model name alone as the identifier for all calls in a session.
- Let each downstream service create unrelated random IDs and discard the parent ID.
- Propagate stable correlation IDs and typed tool events across each authorized call, with privacy-conscious logging.
Explanation
Correct Answer
D:Define a reusable tool event schema containing operation identity, parent trace, classified outcome and timing. Propagate correlation IDs across model, orchestrator and backend calls, redacting sensitive arguments and honoring retention policy. This supports debugging a partial workflow and verifying tool actions without capturing unnecessary raw customer secrets. Propagate the trace across asynchronous queues and retries without writing sensitive raw payment details into long-retained diagnostic events.
Incorrect Answers
A:Full raw transcript collection can expose personal data and still does not solve correlation if downstream events lack consistent identifiers. Store only necessary diagnostics under appropriate retention and access controls. Request-to-tool linkage should be explicit in structured telemetry, not guessed from sensitive text.
B:Many independent requests may use the same foundation model, so its name cannot uniquely identify the originating conversation or affected transaction. A request or trace identifier is needed to disambiguate concurrent work. The model version can be additional metadata but not the primary correlation key.
C:Locally generated IDs are useful when they preserve a link to the parent trace. Discarding the relationship breaks end-to-end troubleshooting and audit reconstruction. Each agent and tool should pass a stable context or parent reference so the sequence can be followed across asynchronous boundaries.
Question 49
A revised prompt template is ready for deployment. In offline tests it improves formatting but slightly increases unsupported claims. The team wants controlled production validation. What rollout approach is most appropriate?
- Replace the prompt globally because offline formatting looks better.
- Direct all traffic to the new template, then review complaint totals at month-end.
- Canary the new prompt based on response-format success and latency only, without monitoring unsupported-claim rates.
- Run a bounded canary with predeclared grounding, latency and rollback thresholds and compare with the old template.
Explanation
Correct Answer
D:Version the old and new templates, route a limited portion of eligible traffic, and compare factuality, safety, task success, latency and cost under similar conditions. Define thresholds before rollout and automate a rollback when unacceptable regressions appear. Escalate from canary to broad use only after the measured risks are controlled. Keep a rollback threshold on unsupported claims that is stricter than the threshold for minor style regressions or answer length changes.
Incorrect Answers
A:Good formatting does not compensate for a rise in fabricated statements. A global switch could expose every customer to a known regression. Quality gates must cover consequential factuality and use representative production-like traffic before expanding the rollout.
B:A one-month monitoring delay can allow harmful or expensive mistakes to accumulate without a recovery point. A staged rollout should surface early signals and preserve the prior version. Production traffic must be limited according to risk and monitored near real time.
C:The known regression concerns factual grounding, so format and speed alone are incomplete rollout gates. The canary should compare source-supported answer quality, latency and error rates against the previous version with explicit stop and rollback thresholds. Otherwise a stylistic improvement can conceal higher factual risk.
Question 50
An agentic research service repeatedly invokes models and external tools until a vague “done” signal is generated. A single query sometimes costs hundreds of dollars. Which protection should be enforced?
- Raise the per-request output limit so the model reaches a clearer stopping phrase.
- Allow repeated tool calls while adding a disclaimer about potential cost.
- Set enforceable step, token-spend and tool-call budgets with a terminal or human escalation path.
- Remove all user-visible progress reports but preserve unbounded execution.
Explanation
Correct Answer
C:The orchestrator should count calls, measure token use or billed cost, impose deadlines and terminate or escalate when a limit is reached. Track idempotent completed steps so safe recovery is possible. Test loops, dependency outages and partial failures to ensure no model output can bypass the configured budget. The agent should preserve a summary of verified completed steps so stopping does not cause an already authorized external transaction to repeat.
Incorrect Answers
A:A larger output budget can increase consumption and does not establish when an agent has actually completed useful work. An ambiguous natural-language stopping phrase is not an enforceable cost boundary. The workflow needs measured resource limits and progress checks.
B:A disclaimer cannot prevent the application from consuming money after a tool loop or unexpected retry. Budget rules should be implemented independently of the model and enforced on each call. User communication is useful but not a substitute for bounded execution.
D:Hiding progress worsens transparency without reducing consumption. It prevents users from understanding what happened when an expensive query fails. Keep a useful status and enforce technical limits, with accurate records of model/tool operations rather than vague success claims.