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
Related questions
A Step Functions workflow calls two different Bedrock models sequentially: first extracts entities and then drafts a final response. The extracted entities are sometimes missing key constraints needed for correct downstream policy logic. What control is most appropriate?
View question →
A multi-modal application uses a Bedrock foundation model to generate answers from images. The requirement is to minimize unsafe content while preserving helpfulness. Which approach best aligns with production-grade safety controls?
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 →
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 →
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 ingest documents into a vector store and periodically re-embed them. After an embedding model version change, retrieval recall drops for certain categories even though the documents are unchanged. What is the best first hypothesis and next action?
View question →