Mitigating Prompt Injection in Multimodal AI with Foundry
Note: This section contains one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem. You must determine whether the solution meets the stated goals. More than one solution in the set might solve the problem. It is also possible that none of the solutions in the set solve the problem. After you answer a question in this section, you will NOT be able to return. As a result, these questions do not appear on the Review Screen. You have a multimodal AI generative model that accepts image uploads and uses extracted image text to generate responses. You discover that users can upload unsafe images and embed hidden instructions into images to manipulate the model. You need to implement controls to mitigate the risk. Solution: You configure a prompt shield for documents. Does this meet the goal?
Community Insight
The exam tests the distinction between visual content moderation and semantic prompt protection; the trap is assuming image moderation covers hidden text-based injections.
This question tests the application of Azure AI Content Safety features to mitigate indirect prompt injection attacks in multimodal generative models. The correct answer identifies that Prompt Shields for Documents is the specific control required to detect malicious instructions embedded in image-extracted text.
Many candidates vote 'No' (B) because they believe Image Moderation is also required to fully meet safety goals, overlooking that Prompt Shields specifically addresses the injection vector described.
Community Discussion (13 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The scenario describes an indirect prompt injection attack where hidden instructions are embedded within uploaded images. When the model extracts text from these images (via OCR or multimodal processing), that text acts as a prompt. Prompt Shields for Documents is explicitly designed to scan external content, including text extracted from images, for malicious intent and jailbreak patterns before it reaches the LLM. Therefore, configuring this shield directly mitigates the risk of manipulation via embedded instructions.Why the Other Options Are Wrong
Option B ('No') is incorrect because while Image Moderation is useful for blocking unsafe visual content (e.g., violence, nudity), it does not analyze the semantic meaning of text hidden inside images. The primary threat described is manipulation via instructions, not visual harm. Since the solution provided (Prompt Shields) directly addresses the injection mechanism, it meets the stated goal of mitigating the manipulation risk.Community Comment Notes
Several users initially voted 'No', arguing that Image Moderation was also needed to handle "unsafe images." However, as Srikantha noted, "To mitigate both risks, you must use... Image Moderation... [and] Prompt Shields," implying that if only one is configured, it might be incomplete. Conversely, AzureGeek79 correctly pointed out that the question focuses on the injection aspect: "There is not a single answer... b) You configure image moderation..." but acknowledged that for the specific injection threat, Prompt Shields is the key. VimalChauhan clarified that Prompt Shields for Documents protects against indirect injection from "Images containing..." text, confirming its applicability here.Official Reference
Exam Strategy
Focus on the specific type of security threat described. If the threat is 'malicious instructions' or 'jailbreaking' coming from untrusted data (like documents or image text), choose Prompt Shields. If the threat is 'inappropriate visual content', choose Image Moderation. Do not assume you need multiple controls unless the question asks for a comprehensive solution to distinct problems.
Frequently Asked Questions
Why isn't Image Moderation the correct answer for hidden instructions?
Image Moderation scans pixels for inappropriate visuals (violence, nudity). It cannot read or analyze text hidden inside an image for semantic malicious intent.
Can Prompt Shields for Documents analyze images directly?
Yes, when text is extracted from images (via OCR or multimodal processing), Prompt Shields treats that text as document input and scans it for injection patterns.
Related Analysis
Practice All AI-103 Questions
Access 88 questions with complete answers and detailed explanations.
View Full AI-103 Practice Test →