Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 27
Question 260
An SQS queue redelivers an accepted GenAI workflow message after a worker timeout. The workflow also sends a customer notification and creates a billing record. What prevents duplicate side effects?
- Disable all failure handling after the first message is received.
- Bind processing and external writes to a stable idempotency key, with durable completion state and controlled retries.
- Generate a new transaction identifier on every retry to make messages appear unique.
- Assume SQS guarantees every message is delivered exactly once and never retried.
Explanation
Correct Answer
B:At-least-once delivery and uncertain worker outcomes require idempotent side effects. Persist a work key tied to the business operation, check or atomically mark completed writes, and make billing and notifications replay-safe. Test timeout-after-success cases; a duplicate queue message must not create a new invoice or charge.
Incorrect Answers
A:Discarding errors can lose accepted work and prevents repair of partial failures. Record status and use bounded replay with duplicate protection. A worker timeout can follow a successful billing write. Without recovery and reconciliation, the user may receive neither a notice nor an accurate paid state; use durable checkpoints.
C:Random new identifiers defeat deduplication because the same business event becomes a new operation each time. Preserve one identity across retries. The second delivery now has a different operation key and may create another bill. Bind every retry to one business event and deduplicate at the billing API boundary.
D:A consumer must be prepared for redelivery and retry behavior; delivery semantics alone do not make arbitrary external transactions exactly once. Implement application-level safeguards. Even FIFO deduplication has a defined scope; external billing and notification actions still need idempotent consumers, durable operation IDs and reconciliation after unknown outcomes.
Question 261
A manufacturing assistant retrieves generic web articles when engineers ask about internal abbreviations such as MPR-7 and QLA. What should guide embedding-model selection?
- Pick the model with the most parameters without testing the organization’s search cases.
- Evaluate candidate embedding models on domain-labeled acronym queries and consider hybrid exact matching for identifiers.
- Increase nearest-neighbor result count without testing whether the embedding model understands internal identifiers.
- Use a public English semantic-search benchmark as the sole model-selection metric for the internal acronym workload.
Explanation
Correct Answer
B:Build a judged set covering real internal abbreviations, synonyms, full-form names and near-collision product codes. Compare recall and precision across embedding choices and hybrid lexical matching, while retaining the same access filters. The best public benchmark model may not represent unusual company language correctly; use task-grounded evidence.
Incorrect Answers
A:Model size or dimensionality alone does not predict relevance for specialized acronyms. An expensive embedder can still confuse similarly spelled equipment names. Benchmark on the intended vocabulary. Test abbreviations like MPR-7 and QLA against labeled internal documents. General parameter count says nothing about exact product-code recall or whether a vector ranks a generic web page higher.
C:Increasing K can expose more candidates, but it does not show whether the chosen embedding model distinguishes MPR-7 or QLA from unrelated public terminology. Measure recall on organization-specific labeled queries, retain authoritative source filters, and add exact matching or controlled synonym support where domain acronyms are important.
D:A general benchmark measures different vocabulary and relevance conditions from manufacturing-specific product identifiers. A high external score is not evidence that MPR-7 or QLA retrieve the correct repair manuals. Use a judged in-domain evaluation and examine hybrid lexical matching for exact model strings.
Question 262
A GenAI service dashboard shows healthy CPU and median latency, but users report fabricated technical specifications. Which additional measures provide relevant operational insight?
- Track source-grounded factuality, citation validity and accepted task outcomes alongside infrastructure metrics.
- Treat all generated text as correct whenever the request returns HTTP 200.
- Disable user-quality feedback because it might lower the service score.
- Increase CPU dashboard sampling until it displays more points.
Explanation
Correct Answer
A:Operational health must include outcome quality as well as infrastructure uptime. Evaluate representative technical claims against approved sources, track citation resolution failures, monitor acceptance/correction rates and segment by task. Correlate regressions with model, prompt and retrieval versions to distinguish a healthy endpoint from an unreliable answer system.
Incorrect Answers
B:HTTP success means the API completed, not that its content is grounded or safe. A plausible hallucination often returns status 200. Compare claims with references and outcomes. Generation can succeed technically while a product specification is invented. Monitor claim-level grounding, evidence quality and customer correction reports independently of HTTP status.
C:Eliminating feedback reduces visibility into user harm and model drift. Use quality reports with privacy safeguards and measured validation rather than hiding negative evidence. A sudden increase in fabricated dimensions or certifications will remain invisible if staff complaints are suppressed. Classify feedback and tie each case to the model and source version.
D:Finer CPU telemetry cannot establish whether the model invented a specification. The problem is semantic correctness, not only compute utilization. Add task-level evaluation signals. CPU sampling diagnoses infrastructure pressure, not whether a cited document supports a specification. Add evidence-based answer quality and unsupported-claim metrics.
Question 263
A quality-audit assistant states that a product meets a pressure limit. The source is a long PDF containing several limits for different variants. Which citation design makes the claim verifiable?
- Discard product variant metadata because similarity ranking should infer the right one.
- Generate a page number from the model’s guess when a parser supplies no location.
- Link only to the PDF home page without identifying which paragraph supports the pressure value.
- Retain exact page and passage offsets plus immutable document version and variant identifiers for the cited limit.
Explanation
Correct Answer
D:The retrieved chunk should carry source revision, page coordinates, text span and associated variant. Verify that the displayed statement matches the exact pressure row and unit in the authoritative file. Test near-identical variants so the model cannot cite a plausible but different limit. Citation evidence should survive parsing and reindexing.
Incorrect Answers
A:Variants may have different certified limits; dropping them can cause incorrect equipment selection. Preserve explicit source metadata and filter before ranking. The same manual may publish different pressure limits for adjacent variants. Preserve product model and revision metadata so the retrieved paragraph cannot be applied to the wrong equipment.
B:Invented locations create a false audit trail and can conceal a hallucinated figure. If offsets are unavailable, state that limitation or repair the extraction pipeline. An invented page location looks auditable until a reviewer opens it. Store parser-derived page spans and verify the claimed numeric limit against the exact source version.
C:A whole-document link can contain many conflicting limits and makes it difficult to verify which value the answer used. Supply precise evidence for consequential claims. A document-level link cannot distinguish two nearby tables with conflicting pressure figures. Include the variant identifier, row or passage offset and immutable revision in the citation.
Question 264
A vector index contains embeddings generated by model X. An updated query service uses model Y, producing vectors with the same length but different semantics. Search relevance collapses. What should be repaired?
- Discard all relevance labels so the regression is harder to measure.
- Use a matched embedding space for stored documents and new queries, rebuilding the index under model Y if the migration is intended.
- Raise model generation temperature to compensate for incoherent neighbor distances.
- Keep model Y for queries because identical vector dimensions guarantee semantic compatibility.
Explanation
Correct Answer
B:Embedding dimensions alone do not guarantee coordinates have comparable meanings. Tie each index generation to the exact embedder version and use a compatible model for queries; rebuild source vectors when changing space. Compare judged search performance before cutover and keep a rollback index until the new pair passes.
Incorrect Answers
A:Deleting tests hides a known retrieval regression and prevents safe promotion. Preserve the failing cases as part of a stable evaluation suite. Retain a judged query set to prove the new embedding space lost relevant neighbors. The fix is rebuilding aligned vectors, not removing regression evidence.
C:Generation randomness cannot fix the retrieval stage’s vector-space mismatch. Even eloquent answers may cite unrelated sources. Correct embeddings before generation. Sampling temperature changes generated prose after search; it cannot repair query-to-index distance calculations across incompatible embedding representations. The nearest-neighbor distances must be computed within one compatible embedding space.
D:Independent models can produce different learned representations despite equal vector lengths. Their cosine scores may become meaningless when mixed. Verify semantic compatibility, not only the schema. Dimensionality is only the tensor length. Vector spaces learned by different models need not align, so reembed source documents and queries with the same selected model.
Question 265
A customer-support chat application takes many seconds to complete a long response. Users think the service has frozen while the model is working. What interface capability directly improves perceived responsiveness?
- Generate a fake completion message before inference starts.
- Wait for the entire answer before sending any data, regardless of the product’s interaction needs.
- Stream supported model response events and display validated incremental text with an explicit completion state.
- Send repeated identical requests in parallel and show whichever finishes first without cost controls.
Explanation
Correct Answer
C:Use a supported streaming API and parse its event boundaries correctly. Render partial text as provisional, handle safety and malformed-output rules, and mark the response complete only after the final event. Measure time to first token and end-to-end latency; streaming improves feedback but does not automatically reduce total generation time.
Incorrect Answers
A:False completion status misrepresents execution and can cause users to act on unfinished results. Clearly differentiate connecting, generating and completed states. An early fake confirmation can mislead the customer into taking a step before the model has produced or validated its response. Stream actual partial text with clear progress state.
B:All-at-once delivery can be appropriate for short or structured responses but fails the requested early-feedback experience for long prose. Evaluate supported streaming instead. Holding the full response gives no early feedback, even when the inference service supports streaming. Measure time to first visible token and moderate chunks before release.
D:Uncontrolled duplicate invocations can multiply charges and introduce inconsistent outputs. Improve client delivery rather than creating redundant model work. Parallel duplicate generations may race to return inconsistent facts and raise spend. A single supported streaming invocation addresses perceived latency more directly and supports cancellation.
Question 266
A Bedrock request fails because the prompt contains 90,000 tokens while the deployed model supports a smaller context window. The application also reserves 4,000 output tokens. What should the developer calculate?
- Count only visible user characters, assuming every character equals one token.
- Account for system/user messages, retrieved passages, tool material and reserved output budget against the model’s supported limits.
- Ignore retrieved content because the model treats knowledge-base passages as free context.
- Measure only the input tokens and assume the response token allowance does not consume any context budget.
Explanation
Correct Answer
B:Compute total effective token usage using model-appropriate token accounting, including hidden message structure where documented, retrieval and conversation history. Reserve sufficient generation budget, trim or retrieve only relevant content, and fail clearly when limits cannot be met. Test the actual deployed model and API because limits differ by model and modality.
Incorrect Answers
A:Characters and tokens are not equivalent, particularly across scripts, code and structured payloads. Character counting can understate consumption. Use model-specific estimates or usage metrics. The deployed model's tokenizer, special message tokens and reserved completion budget govern admissible context. A character count can badly underestimate multilingual or structured inputs.
C:Retrieved passages are part of the inference context and consume tokens. Adding many chunks can cause overflow even when the user question is short. Control retrieval size. Retrieved passages are encoded into the model's prompt like other content. Include them, system instructions and the planned output allowance in token accounting.
D:The actual request limit depends on the selected model and includes applicable system, user, tool and retrieved content as well as allowed generation capacity. Ignoring the reserved response budget can leave a request oversized even after counting the prompt. Test against the documented limits for the specific deployment.
Question 267
A product catalog uses 3,072-dimensional embeddings, doubling storage cost compared with a compact model. No one has measured relevance improvement. What is a defensible decision process?
- Remove all product-ID filters to make search appear faster.
- Keep the largest vector because high dimensionality always yields more accurate nearest neighbors.
- Benchmark supported embedding sizes and models on held-out catalog queries, comparing recall, latency and storage expense.
- Compress stored vectors randomly while leaving the query vectors untouched.
Explanation
Correct Answer
C:Use a fixed representative judged query set, including near-duplicate SKUs and multilingual names, to compare retrieval quality under candidate dimensions. Record storage, indexing and query costs, and test exact identifier constraints. Choose the smallest configuration that meets business recall requirements; cost optimization must not degrade critical product accuracy.
Incorrect Answers
A:Identifier filters prevent wrong product matches and may enforce access rules. Dropping them is not an acceptable way to reduce vector-search cost. Product ID or tenant constraints should still prevent similar but different models from being mixed. Optimize vector choice through measured relevance without dropping mandatory filters.
B:Larger dimensions can represent more information but are not a universal ranking-quality guarantee. The actual domain and model matter. Test rather than infer from vector length. Benchmark recall and ranking on actual product identifiers at both sizes. Larger vectors may increase storage and latency without proportional semantic gains.
D:Incompatible or uncontrolled compression can change similarity geometry and break the index/query contract. Use a validated supported method with matched query processing. Random projection without validated compatibility can distort nearest-neighbor similarity, especially if only the stored side changes. Use a tested dimension-reduction or reembedding migration.
Question 268
A data pipeline combines two vendor datasets and feeds the derived results to a GenAI reporting tool. Compliance needs to know which source rights and transformations apply to each figure. What should the pipeline record?
- An LLM-generated guess about where the numbers came from.
- Source identities, licensing/use rights, transformation versions and lineage relationships for each derived dataset.
- One timestamp for the entire program without source-level version details.
- Only the generated report title because all upstream data can be inferred from its topic.
Explanation
Correct Answer
B:Track each input dataset version, permitted use, transformation job and resulting artifact ID. Propagate lineage through joins and aggregations so a report number can be tied to its contributors and licensing constraints. Keep access controls and deletion rules aligned with upstream agreements, and test whether an auditor can reproduce a representative figure.
Incorrect Answers
A:A model can fabricate a credible origin story without knowing the actual pipeline. Auditability depends on captured processing metadata, not generated inference. Document the two actual vendor source versions, licenses and transformation steps. Generated provenance cannot establish which upstream data rights govern a derived number.
C:One timestamp may help sequence events but cannot reconstruct source revisions or transformation logic. Version-level relationships are necessary to explain changed figures. Compliance may depend on the source's effective revision or a particular ETL formula. One program date cannot reconstruct both lineage chains.
D:Familiar subject matter does not identify exact data origin or license restrictions. A report title is not a provenance record. Preserve source mappings outside the model. Two reports with the same title may derive from different vendors, terms or transformations. Preserve column-level or record-level source identifiers and processing history.
Question 269
A browser client receives Bedrock streaming response events. It sometimes splits raw network bytes mid-event and renders JSON fragments as chat text. What should the parser implement?
- Concatenate every binary chunk as UTF-8 prose without checking event types.
- Ask the model to avoid emitting newlines to prevent packet fragmentation.
- Decode the documented event stream envelopes and assemble text blocks using event boundaries before rendering.
- Assume each network packet contains exactly one complete user-visible token.
Explanation
Correct Answer
C:Use the supported stream client or parse event framing, message boundaries, content block deltas and completion/errors according to the API. Assemble only user-visible text segments and handle partial frames and disconnects. Test with deliberately fragmented transport data; network packet boundaries do not equal model event boundaries.
Incorrect Answers
A:Streams can carry typed metadata, usage, errors or tool calls in addition to text. Treating all bytes as prose produces malformed output and may leak internal diagnostics. The event stream carries typed frames and possible tool/error events, not merely printable text. Use the protocol decoder and render only validated text deltas.
B:Newlines are not the underlying cause of arbitrary transport fragmentation. Prompt wording cannot replace correct protocol framing and buffering. Transport frames can split in the middle of a JSON field or Unicode character regardless of the model's newline behavior. Buffer and parse complete event boundaries.
D:TCP and HTTP transport may split or coalesce application messages arbitrarily. Packet count is not a safe tokenization rule. Parse the event protocol explicitly. Network packets do not correspond one-to-one to application events or generated tokens. Reassemble, decode and distinguish text from metadata before updating the interface.
Question 270
A GenAI support assistant reduces first-draft time, but specialists spend extra minutes correcting inaccurate answers. Which TWO measurements best determine whether it delivers business value? Choose TWO.
- Measure the median model-generation latency while excluding manual review and later corrections.
- The number of parameters in the model without task-level evidence.
- Total handling time per accepted resolved case, including human correction effort.
- The total count of generated tokens regardless of whether they are useful.
- Customer resolution quality or satisfaction for comparable supported cases.
Explanation
Correct Answers
C:Include drafting, review, rework and escalation time in the same resolved-case metric. Compare case mix and staff cohorts to avoid attributing unrelated efficiency changes to the assistant. A shorter initial draft step may still lose money if correction dominates total handling. Include accepted first-contact resolutions and cases requiring repeated rework; a shorter draft is not an efficiency gain if staff correct it for longer than they previously composed an answer.
E:User-facing quality helps detect when speed gains are purchased at the expense of incorrect or incomplete resolution. Combine it with total staff time, not an isolated model accuracy or fluency score, and examine cases where the assistant caused repeat contacts. Pair satisfaction with audited factual correctness and repeat-contact rates for comparable customers. A pleasant but inaccurate response can lower total resolution quality even if it reduces the initial writing time.
Incorrect Answers
A:Draft latency captures only one part of the support workflow. It can improve even while specialist rework increases the total resolution time. The business decision needs accepted-case handling cost and customer-quality outcomes, including repeat contacts, not a speed-only model metric.
B:Parameter count is a model design property, not a direct business outcome. A smaller model can sometimes solve the task better or at lower full lifecycle cost. Measure real operations.
D:Token counts are useful for cost accounting but do not determine customer outcomes or staff efficiency. More text can mean greater correction burden. Evaluate accepted work. A high token count can mean a verbose but wrong response that takes more specialist time to correct. Track accepted case outcomes and full staff handling cost instead.