Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 1
Question 1
A public-benefits claims assistant must answer from policies that change every day and cite the exact current clause. The team has one year of historical Q&A data. Which design most directly meets the freshness and audit requirements?
- Fine-tune a language model on last year’s answers and provide the model’s internal confidence with each response.
- Use Bedrock Knowledge Bases to retrieve authorized current policy passages and show verified citations with the answer.
- Increase the model context window and include a frozen copy of the previous policy year in each prompt.
- Cache every policy answer indefinitely so repeated requests always return identical wording.
Explanation
Correct Answer
B:A retrieval-augmented design can keep the authoritative policy collection synchronized and supply the relevant current passages to the model at inference time. The application must enforce requester access, record source version and passage offsets, verify that displayed citations substantiate each claim, and refuse when the needed clause is absent. This addresses both requirements. After each policy sync, run a known-amendment query and verify both the selected clause version and the displayed citation before serving claims.
Incorrect Answers
A:Fine-tuning can teach specialized style or stable knowledge, but learned weights do not reflect tomorrow’s policy change without a new customization cycle. The provided confidence score is not evidence that a particular clause exists. This fails both the required daily freshness and traceable citation criteria.
C:A larger context capacity changes how much text the model can process, not whether the supplied document copy is current. Repeating last year’s corpus increases token cost and preserves obsolete provisions. The app must select the version applicable to the claim and provide evidence traceability, not simply longer prompts.
D:Caching may improve latency, but permanent unversioned caching can continue serving clauses after an amendment or withdrawal. A safe cache would need source-version-aware keys, expiration and invalidation. It cannot replace retrieval and explicit citation validation for a service that must use the daily authoritative policy state.
Question 2
An Amazon Bedrock-powered order agent resumes after a Lambda container is recycled. Customers sometimes continue an order-status conversation hours later. What implementation avoids losing or mixing order context?
- Store the active order ID only in the Lambda process memory and rely on warm containers.
- Encode the complete conversation and customer credentials in a public shareable URL.
- Persist authorized session state with an expiry and key records by the authenticated customer and conversation.
- Allow the model to infer the most likely order from its training data when a previous turn is absent.
Explanation
Correct Answer
C:An application-managed durable store, such as DynamoDB, can retain an authorized order context, current workflow step and versioned session data. Lookups should bind the record to the authenticated principal, expire stale sessions and avoid cross-customer reuse. A resumed invocation reads verified state rather than depending on Lambda memory or fabricated model recall. Test logout on the shared device, expiration, and concurrent sessions to ensure an old order reference is never returned to another customer.
Incorrect Answers
A:Lambda execution environments are ephemeral and can be recycled or scaled independently. A state variable that happens to survive one invocation is not a reliable session store. The workflow needs a durable state reference with a supported lifecycle, especially when customers return after hours or use a different backend instance.
B:A shareable URL containing credentials exposes authentication material and potentially order details to history, referrer logs and accidental recipients. Conversation persistence must protect confidentiality and authorization instead of turning session data into a bearer credential. A short opaque session pointer still requires server-side user and expiry validation.
D:Foundation models do not know the user’s private current orders merely because they were pretrained. Guessing an order ID risks disclosing another person’s purchase or performing the wrong action. The agent must recover authorized application state from a trustworthy store and ask a clarifying question if the session cannot be validated.
Question 3
A public customer-support chatbot powered by a Bedrock model receives requests that violate the organization’s published safety policy. Which control provides a directly testable input-layer safeguard?
- Configure an appropriate Bedrock Guardrail on the supported input path, then evaluate representative blocked and allowed requests.
- Increase maximum output tokens so safety-relevant instructions have more space to appear.
- Hide disallowed prompts from the operations dashboard while passing them to the model unchanged.
- Rely exclusively on a footer saying that the chatbot is not responsible for its answers.
Explanation
Correct Answer
A:Bedrock Guardrails can evaluate supported user input against configured content policies, including denied topics or harmful content categories. The team should attach the guardrail to the applicable invocation flow, test both prohibited and legitimate near-miss requests, and monitor false positives and bypass attempts. Backend permission checks remain essential for any tools the chatbot can call. Include borderline educational prompts in the test suite so valid requests are not rejected merely because they share vocabulary with prohibited requests.
Incorrect Answers
B:A larger output budget permits a longer response; it neither evaluates the intent of an incoming request nor blocks a disallowed topic. Longer content could compound the harm. Safety must be enforced through applicable moderation and downstream authorization, not inferred from the maximum generation length setting.
C:Filtering what operators see on a dashboard is not an input moderation control. The model would still process the prohibited request and could generate a disallowed answer or trigger a tool. Safety controls must run on the actual request path and log appropriate detection evidence with privacy safeguards.
D:A disclaimer can explain limitations but cannot enforce organizational safety policy. It does not stop a harmful request from reaching the model or protect connected APIs. The team needs enforceable rules, adversarial tests and escalation procedures, while treating communication notices as complementary rather than preventative controls.
Question 4
An internal assistant includes the entire forty-page operations manual in every question, although most users ask about one procedure. Inference spend is growing. What is the best first optimization to test?
- Switch from HTTPS to HTTP to reduce prompt network overhead.
- Replace the manual with one vague summary so no source-specific evidence remains.
- Raise the generation temperature to make responses shorter on average.
- Retrieve only relevant manual sections and measure token use and task accuracy before and after.
Explanation
Correct Answer
D:Retrieval-augmented context selection can supply the handful of passages related to each question rather than the complete manual. Measure input and output token consumption, retrieval latency and grounded answer quality on a representative query set. Keep a fallback when no adequate passage is found; lower token cost is valuable only if critical procedures remain correct. Audit that safety-critical steps and exact numeric thresholds still appear in the retrieved context and that the source is the approved manual revision.
Incorrect Answers
A:Transport encryption is essential for protecting the manual and user questions; disabling it weakens security and does not solve the main cost driver. Most spend comes from repeatedly submitting irrelevant text tokens to the foundation model. Optimize context selection without removing confidentiality controls or auditability.
B:A global summary may reduce input size but can omit safety procedures, numeric thresholds and exception clauses the user requires. The optimization should retain access to exact source sections and citation provenance. A retrieval strategy with measured answer completeness offers better control than discarding the primary evidence.
C:Temperature adjusts sampling diversity where supported, not how many irrelevant manual tokens were placed in the input. A smaller or larger answer may still incur the same repeated forty-page prompt cost. Use explicit token accounting and targeted retrieval to address the identified cost source.
Question 5
A contract summarizer becomes more fluent after a model upgrade but begins omitting renewal and termination clauses. Which evaluation change identifies whether the upgrade actually improved the business task?
- Score only grammaticality and readability using a generic text metric.
- Compare summaries against labeled contracts for required-clause coverage and faithful representation of each clause.
- Measure the average number of generated tokens without examining the contracts.
- Accept the model’s self-assigned factuality score without showing it the source agreement.
Explanation
Correct Answer
B:A representative held-out corpus with annotated renewal, notice, termination and other critical provisions allows coverage and factual faithfulness to be measured separately from style. Compare old and new model versions using the same rubric and document difficulty mix. Escalate missing or ambiguous clauses instead of hiding them in a single aggregate fluency score. The benchmark should include short and long agreements, differing legal terminology, and amendments that reverse earlier clauses, with reviewer-verified ground truth.
Incorrect Answers
A:Readable language is useful but not sufficient when omitted contract terms can create financial or legal risk. A fluency-only score can improve even as the summary becomes incomplete. Evaluation must check the actual source text and the obligations readers expect to find, not just whether the output sounds polished.
C:Token counts help estimate cost and response length, not whether the model preserved a particular contractual obligation. A short summary might be useful or dangerously incomplete. The acceptance criteria should reflect required clause coverage, faithful paraphrase and business risk on the original contracts.
D:Model self-rating is not independent evidence of what an agreement actually states, especially if the model has no access to the source. Confidence can be miscalibrated. Use grounded annotations, a stable rubric and targeted review of discrepancies, with the original agreement available for verification.
Question 6
A retailer needs near-real-time personalized product descriptions during checkout. Two candidate foundation models have similar writing quality, but one violates the app’s p95 response-time target under load. What should guide selection?
- Choose the largest model because parameter count guarantees production responsiveness.
- Choose the model with the most benchmark examples, regardless of invocation route.
- Measure realistic concurrent prompt/output workloads and select an invocation and capacity configuration meeting quality and latency targets.
- Select the model with the higher advertised maximum token output, without measuring end-to-end concurrent latency.
Explanation
Correct Answer
C:Evaluate the full application path using realistic prompt length, output length, throughput, allowed regions and parallel checkout traffic. Compare supported on-demand versus provisioned options when relevant, then choose a model and invocation design that meets both acceptance-quality and p95 targets. Retain a measured fallback and monitor production drift after rollout. Specify the maximum acceptable first-token delay and end-to-end completion latency, and measure both during peak seasonal checkout demand.
Incorrect Answers
A:More parameters do not guarantee lower inference latency; larger models can require more compute or generate tokens more slowly. The team has an explicit user-experience SLO. Selection must consider measured p95 latency and operational capacity as well as the quality of final descriptions under the real checkout request pattern.
B:A broad benchmark can reveal model capability but may not reflect the retailer’s token lengths, peak traffic or infrastructure region. A model can excel offline yet miss interactive response targets. Test the real integration path with representative concurrency and include service quotas, streaming expectations and cost.
D:A high output limit only describes one model capability; it does not guarantee the required p95 completion time. The checkout workload needs comparable concurrency, prompt sizes, output lengths and invocation costs. Measure actual tail latency under representative traffic before choosing the serving configuration.
Question 7
Several agent workers write their observations into a shared memory store. A compromised retrieval tool begins inserting instructions that other agents treat as policy. Which design best limits the trust-boundary failure?
- Treat all shared memory as a new system instruction because it came from an internal workflow.
- Grant every agent unrestricted write permissions so conflicting observations can be reconciled automatically.
- Remove timestamps and provenance so the agents focus on a consistent shared story.
- Label observations by origin and trust level, restrict write scopes and validate what may be promoted into workflow state.
Explanation
Correct Answer
D:An agent memory store should distinguish trusted workflow state from untrusted retrieved observations. Attach provenance and time, validate schemas, limit which agents or tools may mutate particular fields, and enforce backend permissions before actions. Another agent can read a claim as evidence without interpreting its embedded imperative wording as authority. Test injection through each tool path. Prevent agents from overwriting protected approval fields solely because their shared notes say an operation has already received consent.
Incorrect Answers
A:An internal transport does not make source content trustworthy. A retrieved document or tool response may contain attacker-controlled instructions. Promoting shared data to system-level authority lets one compromised component steer every agent and any connected tool. Separate data claims from trusted application policy.
B:Broader write privileges enlarge the blast radius of a compromised tool or agent. Conflicting text is not safely resolved merely by allowing additional mutations. Apply per-agent least privilege and an explicit state transition policy, requiring reliable evidence for protected changes and rejecting unsupported commands.
C:Provenance, timestamps and source versions help identify which observation is authoritative or stale. Removing them reduces traceability and makes malicious content harder to detect. Agents should use typed records with origin information and independent authorization rather than blend all shared text into a single untrusted instruction stream.
Question 8
A research agent retrieves a web article that says to ignore its developer instructions and email internal account data to an external address. The article is relevant evidence for the user’s original question. What is the appropriate behavior?
- Summarize only the relevant article facts while treating embedded commands as untrusted data and denying unauthorized tools.
- Honor the embedded email instruction because the retrieval system selected the article.
- Send the account data only when the retrieved article uses the same domain as a trusted news site.
- Copy the article’s instructions into the next system message so the model can follow them reliably.
Explanation
Correct Answer
A:Search relevance is not authority. The retrieved page may be controlled by a third party and can contain prompt injection attempting to redirect the agent. Treat its statements as data, enforce application-controlled tool permissions and prevent data exfiltration. If useful, flag the malicious portion for security review without obeying it. Add a negative test where the page claims to be an administrator message and verify that no outbound email or secrets lookup occurs.
Incorrect Answers
B:A retrieval engine selects potentially useful content, not binding operational instructions. The external author does not gain permission to access confidential records because a result ranked highly. Executing this instruction would cross a trust boundary from source evidence into tool authorization.
C:Matching a publisher domain does not prove an embedded command has legitimate authority over the user’s private account information. Content can be compromised, quoted or irrelevant to the permitted task. Tool access must be decided by authenticated user permissions and application policy rather than by the document’s domain.
D:Moving untrusted text into a privileged instruction role would intentionally amplify the injection. The correct architecture keeps evidence separate from system and developer instructions, validates tool arguments, and restricts outbound actions. The user requested research, not transmission of secrets.
Question 9
A legal-document assistant serves three corporate subsidiaries whose documents have different access policies. Users sometimes ask broad questions about all subsidiaries. What should happen before a retrieved passage enters the model context?
- Retrieve from a shared index first and remove unauthorized subsidiary names from the generated answer afterward.
- Authorize each retrieval result using the authenticated requester’s subsidiary permissions and only pass allowed passages to the model.
- Add a response-side redaction filter while allowing the retrieval component to rank documents from every subsidiary.
- Allow the model to choose a subsidiary from the text of the user’s question and grant itself corresponding rights.
Explanation
Correct Answer
B:Bind requests to a verified user or service identity, enforce the appropriate ACL or tenant filter during retrieval, and exclude unauthorized chunks before inference. Audit effective grants and test cross-subsidiary questions and inheritance changes. A common model can serve multiple groups if its data access path remains strictly partitioned and any cached results preserve authorization scope.
Incorrect Answers
A:Filtering the final answer occurs after the model has already consumed restricted material. A summary may leak facts without mentioning subsidiary names, and model-driven redaction is not a sound authorization boundary. Enforce access against source metadata before context assembly, with audits of the actual retrieved passages.
C:Output filtering may mask some visible terms but it does not enforce source authorization and can miss paraphrased confidential details. The retrieval layer must restrict each document by the authenticated user’s subsidiary rights before it reaches the prompt. Test cross-subsidiary searches with a valid low-privilege identity.
D:User text is not proof of membership in a subsidiary. Letting the model infer authorization from a phrase would permit a malicious employee to request another subsidiary’s documents. Authenticate and validate entitlements in the retrieval system rather than grant privileges based on generated reasoning.
Question 10
Two agent workers concurrently update the shipping address of one order. The customer authorized a new address, but a delayed retry from the older workflow later overwrites it. What state-management control directly prevents this?
- Write any latest-arriving value because the most recent network packet must be the newest customer decision.
- Allow each agent to modify the record without checking the order’s current version.
- Use a version-checked conditional update and reject stale workflow writes before committing the address.
- Ask the model to describe the latest address clearly, then trust that text instead of the database.
Explanation
Correct Answer
C:Store a version number or comparable concurrency token with the order. Each mutation includes the version it observed and succeeds only if the record still matches, using a conditional write or transaction. If the state changed, reload and reconcile with the user’s latest authorized request. Use idempotent retry identifiers and audit the accepted transition. The concurrency guard should be checked under overlapping retries and delayed responses, including the case in which a customer immediately corrects an address.
Incorrect Answers
A:Network arrival order does not establish business causality. A delayed retry can represent an older authorization and arrive after a valid customer change. Applying last-arrival-wins without conditions may restore outdated details. The backend must compare the state version and the actual authorized mutation before committing changes.
B:Unconditional writes permit race conditions even when each agent individually behaved correctly. A distributed workflow needs a conflict rule tied to the record’s state and approved user action. Otherwise, a stale task can silently overwrite the current address and produce incorrect shipments.
D:Generated text is not the source of truth for a transactional address update. Even a fluent summary can omit a unit number or describe stale state. The database needs guarded writes and authoritative version checks; prose may help explain a conflict to the user but cannot enforce consistency.