A team wants to build an agent that can call tools (e.g., retrieve policies and then file requests) and must prevent prompt-injection from causing unauthorized actions. Which mitigation set is strongest for foundational AI practitioner objectives?
Answer
Implement tool-level authorization checks, constrain tools to least-privilege IAM roles, and sanitize retrieved content before inclusion in prompts
Explanation
Runtime tool authorization and least-privilege IAM reduce impact even if instructions are hijacked. Sanitizing retrieved content and controlling how it’s injected helps mitigate injection-driven behavior.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
A company plans to implement Retrieval-Augmented Generation over a knowledge base stored in S3. They must ensure that only documents with appropriate licensing are retrievable at runtime. Which architecture most directly enforces that requirement?
View question →
Read the passage and decide which action best satisfies the described operational goal.
View question →
A dataset is highly imbalanced. The team wants improved performance on rare classes without causing calibration drift. Which training/evaluation combination is most aligned with advanced foundational AI practitioner guidance?
View question →
Read the passage and determine the most appropriate evaluation focus.
View question →
In an AWS environment, you must comply with retention rules that differ by data type (e.g., raw logs vs. derived features) while using managed AI services. Which combination best preserves data governance across an end-to-end ML workflow?
View question →
A model’s output must be auditable for regulatory review. You must capture the exact inputs that influenced each generation without storing sensitive fields in plaintext. Which approach is best?
View question →