Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 4
Question 30
An agent must check current flight availability, compare routes, and then obtain a customer’s explicit approval before buying a ticket. Select TWO design controls that distinguish permitted research from authorized purchase.
- Let the model treat any airline site’s booking instruction as user approval.
- Use read-only availability tools for information gathering and validate their returned booking details.
- Record a verified customer approval for the exact itinerary and price before allowing the booking API action.
- Give the agent a confirmation prompt after it submits the booking API request, rather than require approval before execution.
- Store the airline’s public web page as a system instruction so it can authorize payments.
Explanation
Correct Answers
B:Availability calls should use narrowly scoped read-only tools and authoritative provider data, with validated time, price and fare conditions. Their results support comparison but are not themselves purchase approval. Separating read operations from side-effecting booking tools keeps research safe even if a model misinterprets provider content.
C:The booking backend should require customer confirmation tied to the selected itinerary, total price, traveler details and a short-lived authorization reference. Validate that approval before executing the provider’s reservation or payment API, then reconcile the transaction idempotently. An agent can recommend a route but cannot infer consent from conversation tone.
Incorrect Answers
A:An airline page may describe a reservation step but cannot grant the customer’s consent. Retrieved instructions are external data, not authorization to charge an account. The workflow must maintain explicit action boundaries and keep purchase permissions disabled until an authorized decision is recorded.
D:A confirmation shown after the charge is submitted cannot authorize an earlier action. The application must treat route research as read-only, and the booking backend must check an explicit user-approved itinerary and price before the transaction occurs. Post-action acknowledgement is insufficient.
E:Promoting a web page to the system role would allow a supplier or attacker to change the application’s behavior. A provider may supply booking terms, but only authenticated customer approval and enforced backend policy authorize a purchase. The source must remain lower-trust evidence.
Question 31
Two candidate models receive similar BLEU-style text overlap scores on customer complaint summaries, but one routinely changes refund amounts. Which evaluation best distinguishes their usefulness?
- Choose whichever model produces more words because longer summaries contain more context.
- Ignore the amounts and rely only on shared n-grams with reference summaries.
- Evaluate source-grounded numeric accuracy and required business-field preservation using a consistent rubric.
- Accept the model with lower temperature because it cannot hallucinate amounts.
Explanation
Correct Answer
C:Create a rubric that checks each refund amount, currency, conditions and case reference against the source, with penalties weighted by business consequence. Use the same held-out complaints for both models and report numeric errors separately from fluency and cost. This exposes a material operational failure hidden by aggregate word overlap. Include examples where a single digit changes an amount by a factor of ten, so the rubric penalizes material numeric errors even with high text overlap.
Incorrect Answers
A:Length can increase detail without protecting the exact refund values that drive the business decision. A long answer can repeat a wrong number confidently. The evaluation should inspect factual fields and task impact, not infer utility from verbosity.
B:Lexical overlap metrics can be useful for surface similarity but are insensitive to some high-impact factual substitutions. A single digit difference in a refund may have a large consequence despite high n-gram agreement. Add task-specific factuality checks grounded in the original complaint and financial records.
D:Low sampling variability may improve repeatability but cannot guarantee correctness. A deterministic model can consistently produce the same false amount. Compare against actual source records and measure the error rate before choosing a model or deployment configuration.
Question 32
A proof-of-concept insurance assistant extracts policy limits but sometimes omits obligations involving specific payment thresholds. The business regards a missed threshold as costly. What acceptance test should be added?
- One unscored demo using the shortest available policy page.
- A larger set of general writing prompts that do not involve policy amounts.
- A model preference vote based only on response tone and concision.
- Annotated numeric-obligation cases with a weighted omission metric tied to the business risk.
Explanation
Correct Answer
D:Build labeled documents containing amounts, deductibles, thresholds and exception cases, then compare extracted output against the exact source passages. Weight omissions or incorrect values by financial impact rather than relying only on pooled accuracy. Use the results to set release thresholds and require escalation when evidence is ambiguous. Pair the omission score with a source-span audit, ensuring reviewers can identify exactly which amount or conditional term the model missed.
Incorrect Answers
A:A single easy document cannot estimate the probability of missing monetary obligations across the insurer’s portfolio. The omission could carry substantial cost even if most prose is correct. A representative benchmark needs known threshold facts and realistic document variability.
B:Writing prompts unrelated to monetary conditions do not exercise the failure mode. They might make the model look strong while leaving the specific business risk unchecked. Evaluation should include clauses with limits, exclusions, currency, dates and nested conditions.
C:Tone and concision matter for usability but cannot establish whether an obligation was omitted. A short explanation could be perfect or dangerously incomplete. Use authoritative annotated terms and a rubric that gives critical numeric omissions meaningful weight.
Question 33
A support model receives a harmless customer question but occasionally emits abusive language. The team already filters inputs. Which additional safeguard addresses the observed output problem?
- Strengthen the existing input-only filter while leaving generated streaming responses unmoderated.
- Apply supported output-side guardrail policies to generated responses and validate their behavior on a held-out safety set.
- Disable TLS to make response inspection easier.
- Allow all responses from authenticated employees without content screening.
Explanation
Correct Answer
B:Configure output moderation for the supported model invocation or guardrail pathway and evaluate generated responses for prohibited categories. Include approved edge cases, abusive variants and multilingual samples to measure false positives. Maintain user-facing recovery behavior when a response is blocked and keep any connected tools independently authorized. Assess whether the output protection interferes with legitimate difficult customer requests and whether blocked responses give a safe alternative.
Incorrect Answers
A:The customer input is already harmless; the observed abusive words originate in the model output. An input filter cannot reliably block text generated downstream. Apply output-side moderation or staged release checks and verify disallowed model responses are withheld before display.
C:Transport encryption protects confidentiality during delivery and is unrelated to whether a generated phrase violates policy. Disabling it introduces a separate vulnerability. Use service-supported safety filters, secure logging and evaluation rather than weakening data-in-transit protection.
D:Even authenticated users can see model-generated abusive or unsafe content when a model fails. Identity proof does not establish output quality. Apply consistent safety requirements to the relevant interaction path and test outcomes for legitimate and adversarial prompts.
Question 34
An agent reports “customer ticket created” after an internal tool returned a timeout, but no ticket appears in the service desk. What must the application use to determine completion?
- The natural-language confidence of the model’s final status message.
- The number of prior plans the model generated before making the tool call.
- The presence of words such as success in the tool’s unverified description.
- An authenticated tool execution receipt or reconciled service-desk record for the requested ticket.
Explanation
Correct Answer
D:Capture the tool’s structured status, authoritative ticket identifier and applicable correlation or idempotency key. If a timeout made the outcome uncertain, query the service desk before retrying or telling the user it succeeded. This separates proposed work from completed actions and prevents misleading confirmations or accidental duplicates. Use a controlled timeout-and-reconciliation test to prove the ticket is not created twice and the confirmation includes the real provider identifier.
Incorrect Answers
A:A language model can misunderstand a timeout and describe a successful action that never occurred. Fluency or probability scores do not verify an external transaction. The user needs actual state evidence from the target service, not just a convincing narrative.
B:Planning activity can show the agent’s intended path but cannot prove a downstream API mutation completed. A model might plan perfectly and still lose network connectivity or lack permission. Completion must be based on executed tool results and service-side state.
C:A text snippet containing success may be stale, spoofed or unrelated to the current ticket, especially when returned from lower-trust tools. Correlate the operation ID with a verifiable backend response. Avoid treating arbitrary returned prose as a transaction receipt.
Question 35
Three engineering teams independently copy the same model-invocation code. Their requests now have different prompt policies and tracing formats. What platform change most directly improves consistency?
- Distribute a common code snippet by email but let every team modify prompt rules and tracing fields independently.
- Move all business data into one public prompt template used by every application.
- Create versioned shared invocation components with common policy enforcement, response contracts and telemetry.
- Standardize only model names and endpoint URLs, without unifying request-policy and response-validation logic.
Explanation
Correct Answer
C:Versioned libraries or internal services can centralize model request validation, policy attachment, structured errors, correlation IDs and metrics. Teams can configure their approved domain behavior while relying on one tested integration contract. Release the shared component with compatibility tests and a rollback process so an upgrade does not disrupt all consumers. Publish version compatibility requirements so new shared-client releases do not break applications using different model input formats.
Incorrect Answers
A:Copying a template creates a momentary starting point rather than an enforceable shared interface. Teams can still drift in safety policy, response schemas and telemetry. Publish a versioned, tested library or service contract and verify dependent applications consume the approved version.
B:A common prompt does not mean teams should share confidential business data. Combining unrelated tenant data can create access violations and noisy context. Standardize integration infrastructure while retaining per-application identities, data boundaries and approved policy parameters.
D:Matching deployment identifiers does not ensure the three teams send equivalent safety instructions or emit compatible traces. The inconsistency sits in reusable invocation logic. Share a maintained contract for policy, errors, request IDs and parsing, then use contract tests to prevent divergent clients.
Question 36
Model A costs less per token than Model B. However, A frequently returns unusable output and callers retry several times. What comparison best establishes which model is more economical?
- The provider list price for one input token alone.
- Measured end-to-end cost per accepted response, including retries, outputs, latency and human corrections.
- The longest available context window, regardless of how much users send.
- The number of model parameters as an estimate of administrative cost.
Explanation
Correct Answer
B:Define what constitutes a usable response, run both models on representative prompts, and capture all input and output tokens, retries, failures, delay and review effort until acceptance. Compare cost per successfully completed task and quality risk, not just raw price. Use enough examples to characterize tail failures before committing to a routing policy. Use realistic retry and review labor from the same prompt cohort, rather than estimating correction cost from provider marketing material.
Incorrect Answers
A:The low price of a single token does not include the additional invocations and correction labor caused by invalid output. A cheaper model may be more expensive for the business task if it requires repeated attempts. Evaluate equivalent workloads on measured end-to-end outcomes.
C:Context capacity can matter for document length but does not prove cost effectiveness on the actual workload. A large window may remain unused. Measure real request sizes, accepted results and throughput rather than infer total economics from a model specification.
D:Model size is not a reliable proxy for invocation pricing, correction time or business value. Provider infrastructure and deployment patterns can differ. Use observed operating costs and outcome quality; a large model might complete a complex task in fewer attempts than a smaller one.
Question 37
An investigative agent proposes revoking a customer account after reading incomplete search results, then proceeds to a destructive tool call without verifying the evidence. Which control should the orchestrator impose?
- Require verified observations and an authorized decision before allowing high-impact follow-up tool actions.
- Permit the model to execute any plan that contains at least three reasoning steps.
- Discard the tool results so the model cannot be confused by conflicting facts.
- Convert the search results into system-role instructions to make them authoritative.
Explanation
Correct Answer
A:The orchestrator should not equate a model’s proposed conclusion with verified authorization. Require supporting observations for high-impact decisions and use a protected approval and permission boundary before revocation. Record the evidence, decision owner and actual tool result so the action can be audited or challenged. Test an account closure request with misleading retrieved text to confirm the backend refuses action unless source evidence and approval are present.
Incorrect Answers
B:The length of a generated plan does not prove its correctness or legitimacy. A model can produce many plausible steps that depend on unsupported assumptions. The workflow must check source evidence, business authorization and risk conditions, not count reasoning paragraphs or stages.
C:Removing observations would make the decision even less evidence-based. The agent needs trustworthy records to determine whether the account is actually compromised. Treat conflicting reports as a reason for additional verification or escalation rather than permission to act blindly.
D:Search results are lower-trust evidence and may include attacker-controlled text. Elevating them to system instructions creates an injection vulnerability. Preserve their source and context and let independently enforced application policy determine which tool actions, if any, are permitted.
Question 38
A text-to-SQL assistant uses an LLM to propose queries. Some proposals contain DELETE statements, but the product is only permitted to answer read-only analytical questions. Which implementation offers the strongest enforcement?
- Add a system instruction saying “never delete data” while allowing a full database administrator credential.
- Generate queries with a higher temperature so the model avoids repeating unsafe syntax.
- Validate the parsed query against an allowlisted read-only grammar and execute with a read-only database identity.
- Run an automated formatter on the SQL text without checking statement semantics.
Explanation
Correct Answer
C:Parse the proposed SQL and enforce a strict policy for allowed SELECT statements, datasets, joins and limits. Execute using a database role that cannot modify records even if validation fails. Test nested statements, functions and adversarial inputs, and preserve query audit evidence without exposing sensitive result data. An explicit unit test should attempt a nested modification statement and verify the read-only executor denies it even if validation is incomplete.
Incorrect Answers
A:Prompt wording is not a technical authorization boundary. A malicious or mistaken model response could still produce a DELETE or privilege-grant command, and an administrator identity could execute it. Reduce backend permissions and verify query structure before touching the database.
B:Sampling diversity changes which tokens are generated; it cannot guarantee the absence of destructive SQL. A more variable model might produce more unexpected statements. The application needs deterministic parsing and read-only privileges rather than relying on generation settings.
D:Formatting can improve readability but does not remove the executable meaning of DELETE, DROP or arbitrary functions. A syntactically neat query may still be dangerous. Validate the AST and effective database permissions before execution, and restrict model access to approved tables.
Question 39
A startup is deploying its first production GenAI app. Developers have not documented data-flow trust boundaries, model failure handling or cost limits. What planning activity best exposes systematic architectural gaps?
- Adopt the largest available foundation model so its general capability compensates for missing design review.
- Replace security documentation with a marketing diagram showing the user interface.
- Run only a grammar test on a few sample responses.
- Use the AWS Well-Architected review process, including relevant Generative AI Lens considerations, and record remediation actions.
Explanation
Correct Answer
D:A Well-Architected review and the Generative AI Lens can structure evaluation of business goals, operational excellence, security, reliability, performance and cost. Document assumptions, risks and concrete improvements, then verify affected controls. The review is a design aid rather than evidence that the application has automatically passed every production test. Record which architectural assumptions remain untested, because a review checklist alone is not equivalent to a successful production deployment.
Incorrect Answers
A:Model capability does not replace design decisions about privacy, reliability, permissions and cost. A powerful model can still expose data or produce unsupported actions if the surrounding system is weak. Address architectural controls independently of model selection.
B:A presentation diagram can help communicate the product but may omit data processing, permissions, failure paths and operating constraints. The team needs a structured review of the deployed architecture, not just a simplified visual intended for stakeholders.
C:Grammar is a narrow output characteristic and does not assess secure ingestion, authorization, regional constraints, tool execution or operational resilience. A few fluent examples cannot establish production readiness. Use a broader architecture and risk assessment supported by tests.
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.