Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 25
Question 240
A new prompt template is being deployed to an order-support assistant. In staging it sometimes omits the JSON property `refundStatus` required by an API client. What validation should block release?
- Run representative end-to-end synthetic journeys and schema-contract assertions before promotion, with rollback if the output regresses.
- Add a system prompt reminding the model to emit `refundStatus`, but do not run schema-contract regression tests.
- Approve because the response sounds fluent even without the required field.
- Disable the client-side parser so missing properties no longer produce visible errors.
Explanation
Correct Answer
A:Use frozen realistic customer flows, explicit schema validation and known malformed-input cases to compare old and new templates. Require the mandatory field with correct typing and valid states, monitor the staged rollout, and retain an approved rollback. Validate output against the actual downstream client, not only a model self-check. Force a missing refundStatus in staging and verify the contract gate blocks promotion.
Incorrect Answers
B:A prompt reminder may reduce the frequency of missing fields but cannot guarantee the required property in every response. The API client needs typed validation and controlled staging journeys. Block release when the output schema breaks, and retain rollback for the previous template.
C:Natural-language quality cannot substitute for a structured contract used by software. A fluent answer missing a required property can fail or misroute a transaction. A missing required refundStatus field is a machine-readable contract failure, not a cosmetic response issue.
D:Bypassing parsing hides incompatibility and could let incorrect business results through. Fix the generation contract and reject invalid responses rather than suppress errors. A missing required refundStatus field is a machine-readable contract failure, not a cosmetic response issue.
Question 241
A CI deployment of a GenAI proxy introduces a public ingress rule that bypasses its private API gateway. Which preventive control most directly addresses the configuration risk?
- Remove the test environment to reduce the number of environments being checked.
- Write a prompt asking the model not to reveal the public endpoint.
- Rely exclusively on the model’s safety filters to authenticate API traffic.
- Run infrastructure-as-code security policy checks in CI, require review of network changes, and verify deployment endpoints.
Explanation
Correct Answer
D:Use code-scanned IaC policies to reject unapproved public ingress and resource policies before deployment. Require review for sensitive changes, validate actual endpoint reachability after rollout and retain rollback. Model prompts cannot protect a publicly accessible management or invocation endpoint. Test a negative network probe from an unauthenticated source.
Incorrect Answers
A:Eliminating a test environment makes network mistakes less visible and increases deployment risk. A CI policy should validate all environments consistently, with separate allowlists for authorized exposure. Keeping a staging deployment gives reviewers a place to compare intended and effective ingress rules and to probe from an unauthenticated network before production promotion.
B:A prompt is not a firewall rule or authentication mechanism. A public route can be called directly without any assistant text. Fix infrastructure permissions and ingress. The leaked route remains reachable by clients that never read the model's message. Correct the IaC security-group, load-balancer and gateway routing policies so the bypass is impossible.
C:Model guardrails act on prompts and generated content but do not authorize callers or stop network-level abuse. Harden the gateway, IAM and deployment topology separately. Content moderation cannot authenticate network callers or require them to traverse the private gateway. Deploy a network/IAM policy test that rejects any unapproved public route.
Question 242
A knowledge-base ingestion job switches from a 1,536-dimensional embedding model to a model producing 1,024-dimensional vectors. Existing index writes fail. What is the correct migration?
- Switch only the query embedder and assume the index can compare vectors of incompatible dimensions.
- Change the vector index to 1,024 dimensions while retaining all embeddings generated by the original model.
- Build a compatible vector schema/index and regenerate embeddings, validating retrieval before switching the query model.
- Pad missing vector elements with unverified random numbers and keep every old similarity score.
Explanation
Correct Answer
C:Embedding model changes can alter both dimensions and the underlying semantic space. Version the index and embedder, rebuild documents and query embeddings with the same compatible model, and compare judged retrieval on a frozen test suite. Use a staged cutover and rollback; do not mix old and new vectors without documented interoperability.
Incorrect Answers
A:Query-to-index comparisons require compatible vector dimensions and semantic representation. Changing only the query side can fail validation or degrade relevance. Migrate as a matched pair. A 1,024-value query cannot be searched against a 1,536-dimensional vector field, and changing the model family may invalidate semantic comparisons even at the same length. Migrate both ends together.
B:Updating the index dimension alone does not convert the old 1,536-element vectors or make them semantically compatible with the new embedding model. Existing records may fail validation or compare in a different vector space. Re-embed the documents, validate query compatibility and perform a controlled cutover.
D:Random padding may satisfy an array shape superficially but cannot reproduce the representation learned by the new model. Similarity rankings would be untrustworthy. Recompute the embeddings against the intended model.
Question 243
A team claims its GenAI application fully meets an industry compliance framework because all S3 objects are encrypted. Which review approach is more defensible?
- Treat encryption as proof that all authorization and deletion requirements are satisfied.
- Ask the model to draft a generic compliance certificate without source records.
- Map the framework’s actual control requirements to identity, data retention, logging, security testing and encryption evidence.
- Remove control failures from the report so the compliance dashboard appears complete.
Explanation
Correct Answer
C:Build a control matrix identifying which framework clauses apply, the accountable owners and verification evidence for each. Test IAM, network boundaries, retention, incident handling and data governance in addition to encryption. Record exceptions and remediation. A compliant storage setting is one control, not evidence that the entire GenAI system meets every obligation.
Incorrect Answers
A:Encryption protects a defined boundary but cannot establish which people are allowed to read data, how long it may be kept or whether unauthorized tool actions are prevented. Audit the complete control set.
B:A fluent model-generated document cannot replace actual audit reports, technical tests or owner approvals. It may invent scope and compliance status. Trace assertions to observed evidence. A certificate generated without access-control tests, retention evidence or change records cannot substantiate framework clauses. Assess actual technical controls and identify the framework obligations that remain unverified.
D:Hiding failed controls misrepresents the environment and prevents risk remediation. Preserve accurately scoped exceptions and validate that repairs are effective before marking a control compliant. An auditor needs an honest exception list, owner and remediation history. A green dashboard obtained by suppressing failed controls leaves the original security gap in place.
Question 244
An agent workflow makes independent fraud-score and customer-preference API calls sequentially, then adds their results. Most latency comes from waiting on these separate calls. What optimization should be evaluated?
- Increase answer length so elapsed time feels proportionally shorter.
- Parallelize dependent transactions even when an earlier result determines whether later work is permitted.
- Start every downstream call before validating which customer is authorized.
- Run independent authorized calls concurrently with deadlines, bounded retries and trace-based verification of dependencies.
Explanation
Correct Answer
D:The fraud-score lookup and customer-preference lookup do not depend on each other, so start them together once the customer and both calls are authorized. Join the results by request identity, enforce independent timeouts and retry budgets, and compare critical-path latency and error rates with the sequential baseline. Keep dependent protected actions ordered.
Incorrect Answers
A:Longer generated answers do not shorten the two API waits that account for the measured latency. They can add model decoding time and token cost after the calls finish. Profile the fraud and customer-preference request spans and optimize their scheduling, not the length of the final prose.
B:Some steps are dependent: for example, a protected action may require an earlier authorization result before the next transaction is permitted. Launching those steps concurrently can bypass the decision boundary or create invalid side effects. Parallelize only the separate, already authorized read calls identified in this scenario.
C:Starting every downstream call before checking customer ownership could expose data or execute a request under the wrong identity. Concurrency is safe only after each target and scope is authorized. Bind the fraud-score and preference requests to the verified customer, then run independent reads within their deadlines.
Question 245
An S3 event notification is delivered twice for the same object version. A knowledge-base indexing worker creates duplicate vector chunks. What should the ingestion process change?
- Stop recording object versions and choose only the most recent ingestion timestamp.
- Create a new random document ID on every retry so the duplicates cannot be linked.
- Rely on the event system to guarantee exactly one delivery at all times.
- Use stable document/version/chunk identifiers and idempotent upsert or delete operations across duplicate deliveries.
Explanation
Correct Answer
D:Build idempotency from stable source key, object version and chunk position. An upsert should replace the same logical chunk instead of creating an additional record. Validate event ordering and deletion semantics, and test replayed notifications before using the index for cited answers. Keep durable progress receipts for recovery.
Incorrect Answers
A:Ingestion timestamps do not prove that two events represent different document content. Without object-version metadata, out-of-order deliveries can reintroduce obsolete passages. Preserve source identity. Two notifications for one S3 version should map to the same deterministic chunk identity. Their arrival timestamps differ, but the document revision and intended index mutation are identical.
B:Random IDs ensure the same source can create unlimited distinct vectors, making duplication worse. Use deterministic identities tied to the source version and chunk. Use stable document and version identifiers when upserting vectors so a retried message updates existing chunks instead of multiplying documents in the collection.
C:Event systems may use at-least-once delivery; an application must tolerate duplicates. An untested exactly-once assumption leads to repeat processing and inconsistent retrieval. Design the consumer accordingly. An S3 notification or queue consumer may receive the same logical change again after a retry. Make the worker idempotent and reconcile the stored vector IDs against the source version.
Question 246
An update to the enterprise API gateway changes the model response envelope, breaking a mobile app’s parser. How should the release process handle this?
- Deploy the breaking gateway version to all clients at once so errors are easier to count.
- Update only the mobile parser to accept the new envelope without versioning or testing other API consumers.
- Modify the production mobile app to ignore all parsing errors without testing its business behavior.
- Run compatibility tests across gateway and client contracts and keep a versioned rollback path for the previous adapter.
Explanation
Correct Answer
D:Version response contracts and test representative clients against old and new adapters in staging, including error envelopes and streaming. Use a limited canary, monitor parse failures and retain the previous configuration for rapid rollback. An API contract is a software interface and must not rely on model fluency.
Incorrect Answers
A:Global rollout spreads a known failure to every client and leaves no safe comparison group. Stage the gateway change and preserve recovery options. A progressive rollout with contract tests would have caught the mobile parsing failure while most clients still used the old response shape. Keep a tested rollback.
B:One mobile parser hotfix may restore that client but leave other consumers broken and undocumented. The gateway is an enterprise interface with multiple dependencies. Verify old and new response contracts, stage adapter changes, and retain a rollback so existing clients can be recovered if a compatibility assumption proves false.
C:Ignoring malformed output can conceal incorrect or missing business data and cause application actions to use defaults. Validate and repair the schema contract instead. A missing field might become an incorrect customer account, payment status or tool argument. Version the response schema and reject incompatible envelopes rather than silently using defaults.
Question 247
An auditor disputes an answer generated three months ago. The company must reconstruct which controls and policy corpus governed that response. Which evidence must be retained?
- Versioned model ID, prompt, guardrails, source documents, retrieval configuration and request-level trace references.
- A screenshot of the answer with no record of source versions or caller permissions.
- A verbal assurance that the model provider follows responsible AI practices.
- Only the latest current prompt, assuming older model deployments were identical.
Explanation
Correct Answer
A:Link a request or trace ID to the exact model revision, prompt template, inference settings, guardrail configuration, source corpus versions and authenticated access context. Preserve tamper-resistant records under retention rules, allowing an auditor to reproduce or explain the old outcome and distinguish later changes. Minimize personal data in logs.
Incorrect Answers
B:A displayed answer does not identify the retrieved clauses or control configuration. It cannot establish whether the response was grounded or whether the caller was authorized. Preserve lineage. The screenshot cannot prove which IAM grants or guardrail revision applied then. Retain the request trace, model and prompt versions, source document IDs and authorization decision.
C:General provider commitments are useful background but do not reconstruct a specific application response and its supporting sources. Keep system-specific reproducible evidence. Generic vendor policies do not say which policy passages were retrieved for this customer's response. The audited record must link an actual invocation to its evidence and effective controls.
D:Current settings may differ from the ones that produced the disputed answer. Overwriting history destroys evidence of a policy regression or source change. Retain approved prior versions. A later template or model revision may produce different answers to the same input. Preserve immutable release identifiers and historical source references from the disputed date.
Question 248
A RAG assistant indexes equipment safety manuals using fixed token chunks. A warning heading falls into one chunk while the required prohibition appears in the next. What is a better segmentation strategy?
- Increase generation randomness to connect unrelated fragments creatively.
- Use structure-aware chunking with heading continuity and controlled overlap, then test retrieval of complete safety instructions.
- Index only one sentence per manual and discard the rest.
- Delete warning headings so the chunks contain fewer tokens.
Explanation
Correct Answer
B:Preserve section boundaries, headings and adjacent warning clauses when constructing retrievable units. Use appropriate overlap and source offsets, balancing context completeness against redundancy and storage cost. Test representative queries for both the warning and the prohibition, and require evidence that a returned chunk includes the controlling instruction.
Incorrect Answers
A:Random generation cannot recover omitted source constraints reliably and may invent a prohibited step. Correct retrieval inputs before changing model sampling. A prohibited operating step can arise if the model sees a warning title without its qualifying sentence. Restore chunk overlap or section-aware grouping before relying on generation.
C:One sentence omits necessary context and increases the chance of false instructions. Chunk size should be selected through judged answerability and relevance tests, not extreme truncation. A prohibition and its exception can span adjacent sentences; indexing only isolated sentences strips the condition that makes an equipment instruction safe. Retain the relevant section structure.
D:Headings provide context that distinguishes a warning from ordinary procedure text. Removing them can make a fragment misleading or difficult to cite. Keep structured source identity. A heading such as 'DANGER' or 'Do not operate' changes how the following line should be interpreted. Preserve that hierarchy and the exact passage offsets for citations.
Question 249
A foundation-model update introduces fabricated customer eligibility rules on three known edge cases. What is the safest deployment gate?
- Increase answer length so the fabricated rules look more detailed.
- Run a versioned factuality regression suite and hold or roll back promotion until the offending cases meet release thresholds.
- Approve because most simple questions still pass and the edge cases are infrequent.
- Remove the edge cases from the benchmark to improve the apparent pass rate.
Explanation
Correct Answer
B:Use held-out versioned prompts and authoritative policy references to compare the prior and candidate model. Treat unsupported eligibility statements as material, document their causes and validate repairs before a limited canary. Preserve rollback and monitor newly surfaced failure classes; do not generalize a pass from the unchanged easy cases.
Incorrect Answers
A:Longer prose can multiply unsupported claims without making them true. Accuracy requires source-grounded evaluation, not a larger output budget. A longer unsupported eligibility rule can become more persuasive while still being false. Compare the candidate against the same authoritative policy cases that exposed the error.
C:Low frequency does not eliminate the business impact of incorrect eligibility. A material policy error can harm customers even with a high aggregate pass rate. Apply risk-weighted acceptance thresholds. An uncommon edge case can still wrongly deny a benefit or authorize an ineligible payment. Keep severity-weighted acceptance thresholds that block known customer-impacting false rules.
D:Dropping failing cases hides a known regression and corrupts comparisons across versions. Keep them in the frozen suite and add similar boundary conditions for coverage. Removal would erase the only regression cases that reproduce the hallucination. Keep the frozen inputs, expected outcomes and affected policy revisions in the promotion gate.
Question 250
A simple chat widget must answer one authenticated question interactively from a supported Bedrock model. No background workflow is required. Which integration is most direct?
- Use a bounded synchronous model invocation through the authenticated application API and return its validated response.
- Create an unlimited queue of agent tool calls before handling a single user message.
- Launch a nightly batch job and tell the user to return the next morning.
- Store the question in a data lake but never invoke an inference endpoint.
Explanation
Correct Answer
A:An authenticated request handler can invoke a supported Bedrock runtime API synchronously, enforce model permissions, validate content and meet a defined timeout and latency SLO. Include safe error handling and rate limits. A batch or autonomous multi-step workflow would add complexity where the application needs one prompt and response.
Incorrect Answers
B:Unbounded agent operations would increase cost and risk without serving the narrow chat task. Choose the simplest authorized inference path matching the actual use case. One synchronous supported runtime invocation is sufficient for the described authenticated request. An unbounded autonomous loop introduces retries, tool permissions and charges unrelated to delivering the immediate reply.
C:Batch scheduling fits many offline or noninteractive records, not an immediate single-turn chat. It would fail the user-facing responsiveness requirement. The customer expects an interactive answer now, not tomorrow; supported batch inference trades immediate response for bulk job processing. Use the direct invoke path with a bounded timeout.
D:Object storage can retain requests but cannot generate an answer without a supported model invocation and result-processing path. It is not sufficient for interactive inference. An S3 object can hold the incoming question but does not execute an inference call. The application still needs Bedrock runtime invocation, parsing and a user-facing response.