Question 330 A legal firm's retrieval system indexes contracts classified by client, region, effective date and matter privilege. Contract amendments supersede earlier versions. Which implementation best addresses the stated requirement? Partition or filter retrieval by governed practice-area classification before similarity ranking Require permission-scoped metadata filters before returning vector matches to the model Use the model's confident tone as proof that a retrieved contract is legally valid Track effective dates and replace or exclude stale chunks during each controlled ingestion Explanation Correct Answer D:Version-aware retrieval reduces the risk of relying on an invalid obligation. Incorrect Answers A:Constrained search narrows the semantic candidate set and limits irrelevant clauses. Here, contract amendments supersede earlier versions. B:Post-generation filtering is too late once confidential clauses are in context. Here, contract amendments supersede earlier versions. C:Fluency cannot establish contract effectiveness or client authorization. Here, contract amendments supersede earlier versions.
Question 331 A software engineering assistant combines API reference articles with source-code snippets from many versions of an SDK. A complex question asks about authentication and a separate pagination bug. What should the developer implement for this specific need? Invent method signatures that look stylistically similar to neighboring code examples Retrieve each subtopic independently and synthesize only source-supported integration guidance Tune freshness filters and reranking with labeled current-version code queries Combine exact symbol matching and version filters with semantic candidate search Explanation Correct Answer B:Decomposition avoids letting one matching topic dominate a two-part answer. Incorrect Answers A:Plausible generated syntax is not evidence that an API exists. Here, a complex question asks about authentication and a separate pagination bug. C:Updated API usage is a retrieval and ranking problem, not merely a tone problem. Here, a complex question asks about authentication and a separate pagination bug. D:Near-identical API identifiers cannot be distinguished safely through embeddings alone. Here, a complex question asks about authentication and a separate pagination bug.
Question 332 A fraud investigation assistant coordinates an evidence agent, a transaction analyzer and a human investigator. Compliance needs to see which agent completed each task. Which design choice is most defensible in this scenario? Let one agent infer a supervisor's approval from a positive sentiment in chat Make the workflow honor the denied state and prohibit downstream suspension calls Maintain agent role boundaries and correlated event records for delegated activities Stop unsupported conclusions and route the case to manual investigation with missing-evidence details Explanation Correct Answer C:Per-agent attribution is necessary to reconstruct multi-step investigations. Incorrect Answers A:Natural-language enthusiasm is not a verified approval receipt. Here, compliance needs to see which agent completed each task. B:A human refusal must be enforced as an actual state transition, not merely displayed. Here, compliance needs to see which agent completed each task. D:Explicit insufficient-evidence handling prevents fabricating grounds for a financial action. Here, compliance needs to see which agent completed each task.
Question 333 A multinational pharmaceutical firm runs a GenAI quality-report assistant using data centers and AWS applications. The team wants a migration strategy that avoids an all-at-once cutover. Which next step directly resolves the technical concern? Adopt a staged API contract and event synchronization pattern with reconciliation metrics Copy all restricted laboratory data into an unrestricted cross-Region test account Route sensitive evidence to approved regional storage and model services with explicit residency checks Persist partial workflow state and escalate missing evidence instead of fabricating results Explanation Correct Answer A:Incremental integration reduces operational risk while preserving legacy authority. Incorrect Answers B:A test environment is not a lawful exception to data handling policy. Here, the team wants a migration strategy that avoids an all-at-once cutover. C:Hybrid integration does not exempt the application from data-jurisdiction limits. Here, the team wants a migration strategy that avoids an all-at-once cutover. D:Incomplete upstream records must remain visible to accountable reviewers. Here, the team wants a migration strategy that avoids an all-at-once cutover.
Question 334 A medical practice integrates a Bedrock FM into an authenticated web portal for appointment explanations and document summaries. The backend must invoke an approved model from Lambda. Which approach meets the stated condition without weakening other controls? Use unlimited immediate retries with no timeout whenever an invocation is throttled Correlate gateway, Lambda and Bedrock request identifiers with latency and error categories Apply bounded exponential backoff with jitter and show a recoverable status when limits persist Call the supported Bedrock runtime API through an appropriately scoped AWS SDK client Explanation Correct Answer D:Runtime operations require model-specific permissions, request structure and Region support. Incorrect Answers A:Unbounded retry loops can worsen saturation and create unnecessary cost. Here, the backend must invoke an approved model from Lambda. B:Correlated gateway, Lambda and Bedrock request spans identify the failed boundary, allowing engineers to distinguish a portal error from an inference-service failure. Here, the backend must invoke an approved model from Lambda. C:Controlled retry behavior prevents retry storms and misleading completion claims. Here, the backend must invoke an approved model from Lambda.
Question 335 A startup exposes a Bedrock-powered research application through an Amplify frontend and documented backend APIs. CI must catch a broken output schema before clients receive it. What is the most appropriate production-ready decision? Keep user-scoped conversation state in an authenticated backend with controlled retention Build incremental rendering with accessible loading, interruption and completion states Put long-lived Bedrock credentials in the public Amplify browser bundle Run contract and representative prompt-response tests in the deployment pipeline Explanation Correct Answer D:Automation validates both application structure and AI-specific behavior. Incorrect Answers A:A frontend cache alone cannot guarantee secure cross-device continuity. Here, CI must catch a broken output schema before clients receive it. B:The UI must show partial versus finished answers clearly to avoid misleading users. Here, CI must catch a broken output schema before clients receive it. C:Browser code cannot keep an AWS access key confidential. Here, CI must catch a broken output schema before clients receive it.
Question 336 A retail assistant uses Bedrock to answer shopping questions and must avoid generating regulated medical advice or harmful responses. A product description includes a personally identifying field in a response. Which implementation best addresses the stated requirement? Apply supported sensitive-information filtering and verify required masking behavior Enable supported prompt-attack filters and test malicious instruction examples Configure a Bedrock Guardrails denied-topic policy with an accurate topic definition Disable all guardrails when one legitimate shopping question is mistakenly blocked Explanation Correct Answer A:PII filtering targets private entities, which are different from general denied topics. Incorrect Answers B:Although prompt injection is an instruction-boundary attack distinct from an ordinary product query, this action applies to ‘an input attempts to override the assistant's developer rules’, not ‘a product description includes a personally identifying field in a response’. The more direct answer is Apply supported sensitive-information filtering and verify required masking behavior. C:Topic-based guardrails can filter specified subject matter in supported prompts and responses. Here, a product description includes a personally identifying field in a response. D:For the requirement ‘a product description includes a personally identifying field in a response’, this introduces risk because a single false positive calls for targeted tuning, not removal of every protection; Apply supported sensitive-information filtering and verify required masking behavior preserves the necessary control.
Question 337 A logistics company uses a managed Bedrock model behind API Gateway to process confidential supplier invoices. A new API client attempts to invoke a disallowed model. What should the developer implement for this specific need? Grant all integration clients wildcard Bedrock permissions across every Region Log request IDs, model identifiers, sizes and failure codes without invoice payload content Enforce resource-specific IAM policy and gateway validation for approved model identifiers Use private S3 access and approved network conditions or endpoints Explanation Correct Answer C:Client-provided model IDs should not bypass provider restrictions. Incorrect Answers A:Least privilege requires approved models and processing Regions. Here, a new API client attempts to invoke a disallowed model. B:Minimized telemetry supports troubleshooting while reducing confidential exposure. Here, a new API client attempts to invoke a disallowed model. D:Infrastructure isolation prevents unauthorized transport paths independent of content filters. Here, a new API client attempts to invoke a disallowed model.
Question 338 A clinical software provider must document the data and model lifecycle of a medical-administration assistant for external auditors. The organization wants a standard limitation disclosure. Which design choice is most defensible in this scenario? Delete the model deployment history after each successful audit to reduce storage costs Preserve dataset provenance, approved usage rights and model-version references Retain the cited source identifiers and reviewer correction record for the specific case Publish model and application cards describing intended uses, known limits and review boundaries Explanation Correct Answer D:Documented limitations prevent a generative component from being mistaken for clinical authorization. Incorrect Answers A:Removing lineage prevents later reconstruction of clinical system behavior. Here, the organization wants a standard limitation disclosure. B:Lineage enables investigators to reconstruct which records informed an artifact. Here, the organization wants a standard limitation disclosure. C:A defensible audit trail connects generated content to evidence and accountable review. Here, the organization wants a standard limitation disclosure.
Question 339 A cybersecurity operations assistant uses tools to investigate cloud alerts and draft incident responses for analysts. An investigation requires three tools and the agent skips the second. Which next step directly resolves the technical concern? Measure workflow step coverage and tool success against explicit task expectations Approve the agent solely because its final report is concise and confident Block the release based on security acceptance criteria despite improved speed Evaluate expected tool selection, argument validity and final incident state on labeled tasks Explanation Correct Answer A:Multi-step evaluation reveals missing dependencies obscured by fluent summaries. Incorrect Answers B:Writing style is not evidence of tool accuracy, permission compliance or incident resolution. Here, an investigation requires three tools and the agent skips the second. C:Reliability and security quality should not be traded away for one performance metric. Here, an investigation requires three tools and the agent skips the second. D:Although correct narrative text does not prove that the right service action occurred, this action applies to ‘the team wants to know whether the agent uses tools correctly’, not ‘an investigation requires three tools and the agent skips the second’. The more direct answer is Measure workflow step coverage and tool success against explicit task expectations.
Question 340 A software company updates a Bedrock support prompt and receives more confident but less factual answers. A safety disclaimer disappears after a template refactor. Which approach meets the stated condition without weakening other controls? Version candidate templates and use a reviewed rollback plan for failed experiments Fix a factuality regression by removing citations so errors become less visible Review template inheritance and required output sections under a regression suite Compare pinned prompt and model versions on a fixed set of factual questions Explanation Correct Answer C:Prompt structure can omit critical controlled text when components are rearranged. Incorrect Answers A:Repeatable prompt iteration requires a stable reference state; versioned candidate templates make it possible to restore the approved prompt after a failed experiment. Here, a safety disclaimer disappears after a template refactor. B:Hiding evidence does not improve the underlying accuracy. Here, a safety disclaimer disappears after a template refactor. D:Controlled version tests isolate a behavioral change from shifting sample composition. Here, a safety disclaimer disappears after a template refactor.