Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 6
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.
Question 51
An equipment-inspection application accepts a photograph plus a written operator question. The team shortlisted a foundation model that supports text only because it has good language benchmarks. What should be checked first?
- Whether the model has the largest parameter count in its product family.
- Whether the deployed endpoint supports both image and text input in the required API, not just text generation.
- Whether increasing temperature causes the model to invent more convincing visual observations.
- Whether a text prompt containing the image filename is enough for the model to see all pixels.
Explanation
Correct Answer
B:The selected deployment must accept supported image content alongside text and perform the intended visual question-answering task. Check size/format limits, region availability and realistic inspection accuracy. If unsupported, use an approved vision-capable model or a validated OCR/vision preprocessing step rather than treating file metadata as the image. Test rotated photographs, tiny printed defect labels and unsupported file types to establish that the multimodal path is real and robust.
Incorrect Answers
A:Scale and text performance do not establish that a particular endpoint can process visual evidence. A larger text-only model still cannot inspect the photograph without a supported conversion or multimodal path. Verify the actual input modality contract before comparing cost.
C:Temperature affects generation variability and cannot supply missing image pixels. An answer based on guessed visual content could be especially unsafe in equipment inspection. The team needs genuine visual input and verification of ambiguous observations.
D:A filename or URL pasted into ordinary text does not necessarily cause an inference service to fetch or inspect an image. Use the documented multimodal content format and test that the model actually receives the photograph. Never trust invented observations about unseen visual evidence.
Question 52
A retrieved engineering file includes a sentence instructing an agent to delete all backup records. The file is needed only for technical summarization. Which action should the agent take?
- Execute the deletion because the instruction was embedded in a relevant source document.
- Transfer the instruction into a privileged system message so it can be audited.
- Treat the sentence as untrusted document content, ignore it as an operational command, and enforce tool authorization.
- Delete records if the model assigns sufficient confidence to the document’s legitimacy.
Explanation
Correct Answer
C:A retrieved file remains data even when it contains imperative language. Preserve the user’s summarization goal, flag suspicious embedded commands where appropriate and make tool access depend on independently verified authorization. The application should not expose backup deletion tools to a read-only summarization workflow at all. The negative test should include a document that falsely claims the customer authorized deletion, confirming the tool remains unreachable.
Incorrect Answers
A:Relevance to a technical summary does not grant the document author authority over operational tools. Executing a backup deletion would be an injection-induced privilege failure. The assistant should use source facts while rejecting commands that conflict with the authorized user task and backend permissions.
B:Promoting retrieved source text to the system role worsens the risk by granting high-priority instruction status to lower-trust content. Audit requirements should be met with provenance and event records, not by changing instruction hierarchy. The system should keep document text as evidence only.
D:Model confidence is not proof that a file author is an approved administrator. Attackers can use plausible formatting or context to influence output. Delete operations require explicit controlled identity and business approval outside the language model, never a confidence threshold on retrieved prose.
Question 53
A streaming chatbot displays each generated token immediately. It occasionally emits sensitive or disallowed text before its complete-response safety check runs. What should the application do?
- Apply an output moderation strategy that evaluates releasable chunks or buffers sensitive segments before display.
- Apply the complete-response guardrail after the entire stream has already been displayed to the user.
- Moderate the user prompt before inference but stream the generated response without output-side checks.
- Apply a simple client-side prohibited-word regex to each token but omit contextual PII and policy checks.
Explanation
Correct Answer
A:Once unsafe text reaches a user, later deletion cannot reverse disclosure. The streaming design needs a defined holdback or incremental moderation policy appropriate to the supported model and guardrail capabilities. Test the timing of both allowed content and blocked cases, including content that becomes unsafe only in context. Monitor partially sent content and accessibility display states, since removing a streamed word from the screen does not undo prior exposure.
Incorrect Answers
B:Late moderation can classify the full message but cannot prevent earlier disallowed tokens from being seen or copied. Release control must apply before sensitive chunks are displayed, through buffering, safe chunk moderation or another supported streaming-safe mechanism. Retaining a final pass alone leaves the observed gap.
C:A benign input can still produce unsafe generated content. Input moderation cannot guarantee safety of text emitted by the model, particularly in a token stream. The application needs an output-release boundary and tests of disallowed partial completions.
D:A word list may catch some literal terms but misses multi-token sensitive values, obfuscation and contextual unsafe instructions. It cannot replace supported policy-aware output moderation. Buffer or evaluate releasable chunks using appropriate content controls and verify the strategy on token-boundary cases.
Question 54
An organization must summarize 50,000 archived reports overnight. Users do not wait for individual responses and the provider supports batch processing. Which deployment pattern should be evaluated first?
- A real-time endpoint with one interactive connection per report for the whole night.
- A permanent provisioned endpoint sized for daytime interactive traffic alone.
- A supported asynchronous/batch inference workflow with durable input, job tracking and result reconciliation.
- A browser-based chatbot opened 50,000 times by a scheduled script with no retry controls.
Explanation
Correct Answer
C:Submit supported batch inputs to durable storage, track job status, enforce per-document correlation and collect results once complete. Handle failed items and retries without duplicating accepted work, and verify output completeness and cost against the overnight deadline. This matches noninteractive processing while preserving auditability and recovery. Validate an overnight completion target with realistic job retries and ensure output records retain their originating document identifiers.
Incorrect Answers
A:Maintaining thousands of interactive connections creates unnecessary coupling between clients and job duration. The task has a defined overnight completion window rather than immediate latency needs. Use processing patterns designed for large independent work items, with controlled failure handling and cost measurement.
B:Provisioned capacity might be appropriate for steady loads, but daytime interactive sizing may not match a concentrated overnight batch. Compare utilization, costs and completion deadlines rather than assume one endpoint is optimal. A native batch option may provide simpler job lifecycle management.
D:Automating the UI at scale is brittle and hides execution failures, quotas and result integrity issues. It also couples business processing to browser sessions. Use documented inference APIs, job status and structured outputs with retries, rather than simulating human chat interactions.
Question 55
Two foundation models score equally on a public language benchmark, but one frequently misinterprets the company’s internal product abbreviations. What evidence should determine which model to deploy?
- A domain-specific held-out evaluation covering the actual abbreviations, ambiguous contexts and required business outputs.
- A provider popularity ranking without testing any company data.
- The number of available model parameters, since more always means better internal terminology handling.
- The length of each model’s marketing description, used as a proxy for reliability.
Explanation
Correct Answer
A:Public benchmarks may not capture specialized product names or ambiguous abbreviations. Create a consented, representative company test corpus with authoritative expected interpretations, measure errors by scenario, and document edge cases. Include current and rare terms, and compare quality alongside latency and cost before making a production decision. Include uncommon and newly introduced acronyms in the held-out set, because they are most likely to expose unsupported generalization.
Incorrect Answers
B:Popularity can indicate ecosystem maturity but not whether a model knows the organization’s private vocabulary or handles its task correctly. Deployment selection should rest on relevant measured outcomes. An externally popular model may still hallucinate acronyms or make costly routing mistakes.
C:Model size alone is not a guarantee of domain knowledge or inference accuracy. A smaller model with appropriate context or retrieval can outperform a larger one on a specialized workflow. Evaluate business terminology directly and consider the cost and operational impact of the chosen architecture.
D:Marketing language is not a validated capability test. It may be aspirational or describe unrelated tasks. Examine actual model outputs against labeled cases and document which errors matter to users. The team needs reproducible evidence rather than a proxy unrelated to the deployed requirement.
Question 56
After a tool times out, an agent continually invokes a planning model and retries the same failing service. The user receives no result, and token charges keep accumulating. What recovery design is best?
- Set a maximum attempt count, use bounded backoff, and terminate with a recoverable failure state when the dependency remains unavailable.
- Continue invoking the model until the natural-language plan sounds final.
- Delete every failure log and return success to suppress costly investigation.
- Increase the number of parallel tool calls without checking service health.
Explanation
Correct Answer
A:A deterministic retry budget prevents an indefinitely failing service from triggering unbounded cost. The orchestrator should distinguish transient and permanent errors, use appropriate backoff, and persist progress for an eventual controlled retry or user escalation. Record the truthful status and avoid repeating any already completed side effects. Escalate on repeated timeouts using a stable failure reason and ensure the client does not mistake a pending job for a completed result.
Incorrect Answers
B:Language-model prose is not an enforceable stopping signal. It can keep generating new plans in response to the same unsuccessful observation. A workflow engine must count attempts and detect no progress rather than relying on the model to decide when to stop spending.
C:Suppressing logs hides the root cause and creates false transaction reporting. The system cannot claim success without verified tool completion. Retain privacy-filtered evidence of failures, stop safely and communicate an actionable error or recovery path to the user.
D:Concurrency can amplify load on an already failing dependency and worsen throttling. More requests do not change the service’s capacity or restore an invalid permission. Profile the error and apply bounded recovery and circuit-breaking before increasing traffic.
Question 57
Model A and Model B have equal overall accuracy on document Q&A, but B has more failures on scanned contracts and tables. Which evaluation supports a defensible release decision?
- Compare only the average accuracy across all files and ignore document types.
- Use separate annotated strata for scans, tables and digital text, reporting factual and omission errors by group.
- Select the model with the highest maximum context window regardless of actual extraction.
- Ask each model which one is better, without reference documents or a rubric.
Explanation
Correct Answer
B:Construct representative held-out subsets with authoritative labels for each document format. Measure exact amounts, table associations, omitted clauses and overall answer faithfulness, then compare confidence intervals and relevant business consequences. A candidate that fails on common scans should not be promoted solely because it performs well on easy digital text. Give scanned and table-heavy examples enough sample weight to expose severe minority-format defects rather than be drowned out by easy pages.
Incorrect Answers
A:Pooled accuracy can conceal concentrated failures in a smaller but high-impact document group. If scans and tables are part of production, the model must be evaluated there. Report performance by format and error severity instead of assuming equal averages imply equal risk.
C:A longer context window may fit more text, but cannot guarantee correct OCR, table structure or factual reasoning. The failure is document-specific and needs direct end-to-end evaluation. Choose based on observed quality and operational constraints rather than a single capability specification.
D:Model self-assessments can be biased toward fluent explanations and do not establish source-grounded correctness. Provide the same annotated documents and task rubric to both systems. Treat their generated preference statements as opinions, not evaluation evidence.
Question 58
A live multilingual voice agent must accept streaming audio and return prompt spoken responses during a conversation. A recommended model has good offline transcription accuracy but only batch audio input. What selection principle applies?
- Choose the model if it supports long text output because text is the final internal representation.
- Prefer whichever model is cheapest per output token without checking audio mode.
- Select by public speech benchmark alone and assume batch inference will behave like live streaming.
- Verify end-to-end real-time audio input/output support, language coverage and conversational latency before deployment.
Explanation
Correct Answer
D:Shortlist deployments that support the required real-time or streaming audio features for the target languages. Test microphone capture, interruptions, partial transcripts, end-to-end latency and quality under representative network conditions. If the model lacks the necessary interface, use an approved alternative or an explicitly engineered speech pipeline rather than calling batch inference realtime. Run the test in real supported language and audio modes with interruptions, not only through a typed transcript surrogate.
Incorrect Answers
A:A model capable of generating text may still lack the audio input or streaming output needed for a live conversation. Long completions do not create incremental acoustic processing. The selection criteria must cover the required modalities and timing of the actual client interaction.
B:Unit cost is important but cannot compensate for an unsupported interactive speech contract. A cheap batch model may return results only after a call ends. Compare candidates only after confirming they can accept and produce the supported audio or streaming paths.
C:An offline recognition benchmark does not test how the application handles turn taking, partial audio, interruptions and real-time responses. A batch-only model may be excellent for archives and unsuitable for the current use case. Measure actual conversational behavior instead of extrapolating from batch accuracy.
Question 59
A customer-support bot generates an external payment URL. An attacker induces it to recommend a lookalike checkout domain, although the amount and merchant name sound plausible. What control should prevent delivery?
- Allow the link whenever its URL contains the word payment.
- Approve the link if the model repeatedly explains that it is legitimate.
- Validate generated payment destinations against trusted allowlists and backend transaction records before presenting actionable links.
- Shorten the link so the user cannot inspect the full hostname.
Explanation
Correct Answer
C:Generate payment links through an authorized backend or verify the domain, transaction ID and merchant identity against an approved allowlist. Reject unrecognized destinations and avoid placing customer secrets in links. Include this in output safety tests and keep payment authorization separate from generated prose, even when the model appears confident. Include links that use Unicode lookalike characters or redirect to an unapproved site, ensuring validation checks the final destination.
Incorrect Answers
A:Keyword presence in a URL provides no assurance about its ownership or relationship to the intended merchant. A fraudulent domain can contain convincing words. The system needs authenticated destination validation, not superficial substring matching on model-generated links.
B:A model can repeat the same invented destination and explanation consistently. Internal agreement does not establish external legitimacy. Check the payment provider or approved merchant records before exposing a potentially harmful URL or offering it as an authorized next step.
D:Hiding the hostname reduces transparency and makes phishing harder for users to detect. A shortened URL can still point to a malicious server. The application must verify trusted destinations before delivery and should show clear, meaningful merchant information where possible.
Question 60
A multinational expense platform must read invoice text and detect anomalous totals. Its first model is strong at OCR but weak at financial anomaly detection. How should the pipeline coordinate specialized components?
- Use the OCR model’s free-form summary as the only source of monetary truth, with no structured validation.
- Extract source-grounded invoice fields with OCR/document understanding, validate amounts, then pass typed records to a suitable anomaly detector.
- Ask the anomaly detector to infer missing invoice text without viewing the original document.
- Send every invoice to both models independently and accept whichever answer is more fluent.
Explanation
Correct Answer
B:Use the document/OCR component to recover vendor, dates, item rows and amounts with references to the source regions. Check numeric totals and confidence before handing a typed schema to the anomaly model. Combine the specialist outputs with explicit status and provenance, routing ambiguous invoices for review rather than silently inventing missing data. Test repeated receipt rows and currency mismatches to confirm the anomaly stage receives correct item-price associations from extraction.
Incorrect Answers
A:Free-form text can omit line items, change currencies or hallucinate totals. A finance workflow needs structured, source-grounded fields and validation before risk scoring. The OCR component should provide extractable evidence rather than an unverifiable summary taken as truth.
C:An anomaly model evaluates patterns in supplied records; it cannot reconstruct unreadable evidence reliably without an appropriate extraction stage. Missing financial facts should be flagged for correction against the invoice. Generating plausible values would corrupt downstream fraud or expense decisions.
D:Choosing by fluency is not a defensible aggregation strategy for financial values. The two models solve different subtasks and their raw prose is not interchangeable. Coordinate them through validated contracts and business checks, preserving evidence for each amount and anomaly signal.