A regulated workload requires that model outputs never reveal sensitive customer attributes. You can choose between prompt-only instructions, content filtering, or a combination of both with pre/post-processing. What is the best practice?

Answer

Use a guardrail that performs input/output checks and redacts or blocks disallowed content, complemented by application-layer validation

Explanation

Prompt instructions alone are not sufficient for robust policy enforcement. Layered controls—guardrails plus application-layer validation/redaction—provide stronger guarantees in both directions (input and output).

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

A team uses the Bedrock Knowledge Bases feature. They notice that answers sometimes cite the wrong document despite relevant retrieval being present. What is the most likely root cause and remediation?

View question →

A company uses Amazon Bedrock Agents to build a customer-support bot. The bot must call proprietary tools (internal REST APIs) and also cite specific retrieved documents for compliance. Which combination best satisfies both secure tool invocation and traceable evidence?

View question →

A customer wants to deploy an LLM-powered service in multiple AWS accounts. They must ensure that model invocation, data access, and logging comply with strict separation of duties. Which AWS-side design best meets this requirement?

View question →

A team deploys an Amazon SageMaker endpoint for text classification. The model is producing occasional underconfident predictions for rare classes after a data drift event. Which action is most appropriate to diagnose and mitigate the issue?

View question →

You need to reduce hallucinations in a multi-step workflow that uses Bedrock and an orchestration layer (e.g., Step Functions). Which control strategy is most aligned with an AI Practitioner foundational approach?

View question →

You are implementing a RAG system using Amazon OpenSearch Service and Bedrock embeddings. The retrieved context quality is high in offline tests, but online responses degrade when queries contain ambiguous pronouns (e.g., “it,” “that”). What is the most effective technical lever?

View question →

QuestionBack to list