Configuring PII Detection for Azure Foundry Agents

AI-103 By islever Editorial Last updated

Short answer

C Personally identifiable information (PII) Detection prevents Agent1 from revealing customer data stored in storage1.

Question

Case Study
This is a case study. Case studies are not timed separately from other exam sections. You can use as much exam time as you would like to complete each case study. However, there might be additional case studies or other exam sections. Manage your time to ensure that you can complete all the exam sections in the time provided. Pay attention to the Exam Progress at the top of the screen so you have sufficient time to complete any exam sections that follow this case study.
To answer the case study questions, you will bed to reference information that is provided in the case. Case studies and associated questions might contain exhibits or other resources that provide more information about the scenario described in the case. Information provided in an individual question does not apply to the other questions in the case study.
A Review Screen will appear at the end of this case study. From the Review Screen, you can review and change your answers before you move to the next exam section. After you leave this case study, you will NOT be able to return to it.
To start the case study
To display the first question in this case study, select the “Next” button. To the left of the question, a menu provides links to information such as business requirements, the existing environment, and problem statements. Please read through all this information before answering any questions. When you are ready to answer a question, select the “Question” button to return to the question.
Overview
Company Information
Contoso, Ltd is a multinational retail company that builds, deploys, and manages generative AI and agent-based solutions by using Microsoft Foundry.
Existing Environment
Identity Environment
Contoso uses Microsoft Entra ID for identity management, authentication, and authorization capabilities that enable agents to access organizational resources and services.
Contoso recently formed a new AI engineering team named Agent1Dev Team to optimize and maintain existing AI solutions.
The team collaborates with solution architects, DevOps engineers, and security engineers to design, implement. monitor, and secure AI applications.
Contoso also has a team named Agent1Test Team that is responsible for validating AI solutions before the solution deployments.
Generative Environment
Contoso has a Microsoft Foundry deployment that contains two projects named Project1 and Project2.
Project1
Project1 contains a customer support agent named Agent1 that assists customers with product inquiries and troubleshooting requests.
Agent1 has the following configurations:
Agent1 uses a base model deployment.
A safety evaluation pipeline is NOT enabled.
Tool invocation approval workflows are NOT enabled.
Conversation memory constraints are NOT configured.
Agent1 interacts with customers by using digital support channels and answers general questions about Contoso products.
Project1 is deployed to an Azure region located in the European Union (EU).
Agent1Dev Team will use Project1 to optimize and maintain Agent1.
Project2
Project2 contains a deployed video generation model. The marketing department at Contoso has access to Project2 and plans to use the model to develop a video creation solution.
Development of the solution is incomplete.
Data Environment
Contoso stores product-related information in Azure resources that support AI applications.
The Azure environment contains an Azure Blob Storage account named storage1 that stores product detail sheets for all the Contoso products.
The product sheets include specifications, feature descriptions, and product support information that Agent1 can use to answer customer questions. The product sheets are stored in the PDF format.
Problem Statements
Contoso identifies the following issues:
Agent1 has only general knowledge of the Contoso products.
A recent chat interaction with Agent1 was analyzed for sentiment. The results of the analysis have NOT been processed yet.
Agent1 does NOT use the detailed product information in the product sheets stored in storage1 when responding to customer questions.
The finance department at Contoso reports that vendor invoices must be reviewed manually to ensure that the invoices match the terms defined in the vendor contracts. The invoices contain tables, logos, and varied layouts that make the documents difficult to process consistently.
Requirements
Planned Changes
Contoso plans to implement the following changes:
Implement a solution for Project1 that analyzes the vendor invoices by evaluating both the visual layout and the textual content of the invoices, so that the invoice details can be verified against the vendor contract terms.
Update the base model deployment used by Agent1 and standardize the model version to ensure continuity and consistent responses.
Enable Agent1 to retrieve and use the detailed product information from the product sheets stored in storage1.
Implement an indexing solution for the product sheets that Agent1 can use to answer customer questions.
Complete the development of the video creation solution.
Technical Requirements
Contoso identifies the following technical requirements:
The model deployment used by Agent1 must support scalable, high-throughput generative AI workloads and dynamically scale to handle variable customer support traffic, without requiring reserved throughput capacity.
The product sheets must be processed by using an indexing pipeline that enables semantic and vector search, so that Agent1 can retrieve the relevant product information.
Responses generated by using the product sheet information must be relevant, complete, and accurate.
Agent1 must be able to use the product sheets to answer natural language questions about product details.
The model version used by Agent1 must remain consistent to ensure stable responses.
The data processed by the model must remain within the EU.
Security and Compliance Requirements
Contoso identifies the following security and compliance requirements:
API keys must NOT be used to access Foundry-deployed models.
Access to the Azure resources must follow the principle of least privilege.
The developers at Contoso must authenticate to Microsoft Foundry resources by using Microsoft Entra authentication.
Access to Project1 must be assigned to the members of Agent1Dev Team by using a security group named SC_Agent1_Dev.
Access to Project1 must be assigned to the members of Agent1Test Team by using a security group named SC_Agent1_Test.
Agent1 must never reveal customer information, even if a document that contains customer data is added erroneously to the product sheet repository in storage1.
The product sheets might contain images that include embedded text. Agent1 must be protected from malicious instructions potentially hidden within the images.
Business Requirements
Contoso identifies the following business requirements:
Users that interact with Agent1 must have a personalized experience in future interactions, including the ability for Agent1 to retain conversation context and recall relevant information from previous interactions.
Agent1 must answer questions only about the products sold by Contoso.
You need to configure Agent1 to meet the security and compliance requirements.
What should you use?
  1. self-harm content filtering
  2. prompt shields
  3. Personally identifiable information (PII) Detection Correct Answer
  4. violence content filtering

Key Takeaways

Distinguishes between preventing prompt injection (Prompt Shields) and preventing data leakage (PII Detection).

Learn how to configure Personally Identifiable Information (PII) Detection in Microsoft Foundry to prevent agents from leaking sensitive customer data.

Common mistake: Choosing Prompt Shields (B) because it handles indirect injection from image text, but failing to realize it does not redact sensitive PII data.

Expert Analysis

The question asks for a configuration to meet specific security and compliance requirements for Agent1. The critical requirement states: "Agent1 must never reveal customer information, even if a document that contains customer data is added erroneously to the product sheet repository in storage1." This is a data leakage prevention scenario involving Personally Identifiable Information (PII).

Option C, Personally identifiable information (PII) Detection, is the correct answer. PII detection services scan content for sensitive personal data (such as names, email addresses, or credit card numbers) and can redact or block this information before it is processed or returned by the AI model. This directly addresses the risk of revealing customer data found in erroneous documents.

While Option B, Prompt Shields, is a strong distractor because it protects against prompt injection attacks (including indirect injection from embedded text in images), its primary function is to prevent malicious instructions from hijacking the agent's behavior, not to prevent the leakage of sensitive data like customer identities. The comments reflect a split opinion between B and C. However, the explicit constraint "must never reveal customer information" points squarely to PII handling. Prompt shields do not inherently redact PII; they filter harmful prompts. Therefore, PII detection is the necessary control for data privacy compliance.

Options A and D are irrelevant as they deal with self-harm and violence content filtering, which does not address the data leakage issue described.

Exam Strategy

When analyzing security requirements, map the specific threat vector to the exact service capability. If the concern is 'hijacking' or 'malicious instructions', think Prompt Shields. If the concern is 'leaking', 'revealing', or 'privacy' of specific data types like PII, think PII Detection or Content Safety filters. Never assume one tool solves all security problems.

Frequently Asked Questions

Does Prompt Shields protect against PII leakage?

No. Prompt Shields primarily defend against direct and indirect prompt injection attacks where malicious instructions attempt to manipulate the model. It does not specifically detect or redact Personally Identifiable Information.

What is the difference between PII Detection and Content Filtering?

PII Detection identifies and handles sensitive personal data (like names or IDs) to ensure privacy compliance. Content Filtering typically blocks harmful categories like hate speech, sexual content, or violence.

More AI-103 FAQ →

Community Votes

B
62%
C
38%

62% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.

Discussion 16 contributions

Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.

From public community threads 16

  1. seesee1 👍 4 Answered B
    The requirement in question is: "The product sheets might contain images that include embedded text. Agent1 must be protected from malicious instructions potentially hidden within the images." This describes an indirect prompt injection attack - malicious instructions embedded in content (in this case, text hidden inside images) that could hijack the agent's behavior when it processes that document. Microsoft Foundry's Prompt Shields (part of Azure AI Content Safety) is purpose-built to detect and block both direct and indirect prompt injection attempts, including those embedded in documents/images ingested by an agent, before they reach the model.
  2. CharlieMike 👍 4 Answered C
    I think it is C due to the security/compliance requirement
  3. RPC112 👍 3 Answered C
    Personally Identifiable Information (PII) Detection The requirement"must never reveal customer information" is a hard compliance requirement. Prompt Shields solve the hidden-instructions problem, but they do not directly prevent disclosure of customer data. [learn.microsoft.com], [learn.microsoft.com] The latest AI‑103 discussion sites and explanations for this exact case study also mark PII Detection as the correct answer
  4. Srikantha 👍 3 Answered B
    Prompt Shields detect both direct prompt injection (jailbreaks) and indirect prompt injection attacks. Indirect prompt injection occurs when external sources (such as product documents or OCR-extracted text from embedded images) contain hidden adversarial instructions intended to hijack or manipulate the model's behavior.
  5. Vasent 👍 3 Answered C
    Since the case-study question mentions the requirement of NOT including any Customer information, so Agent1 must have the configuration setting of any "Personally identifiable Information" to be identified.
Show 11 more comments
  1. AdrienBnhm 👍 2 Answered B
    it a question of malicious instruction set injection. The best answer here is B : "Prompt shield". See the documentation here : https://learn.microsoft.com/en-us/azure/foundry/openai/concepts/content-filter-prompt-shields "Agent1 must never reveal customer information, even if a document that contains customer data is added erroneously to the product sheet repository in storage1. The product sheets might contain images that include embedded text. Agent1 must be protected from malicious instructions potentially hidden within the images."
  2. momo53 👍 2 Answered C
    Answer C. From what I understand, the requirements here mention protection against text in images, which is not addressed by Prompt Shields (which protects only from user prompts & document prompt). To protect from text in images, it must uses Azure Content Safety image moderation module. Sources: - "Securing Azure AI Applications: Against Prompt Injection | Part - 2" in Tech Community - "Azure AI Content Safety documentation" in MS Learn (Quickstarts part)
  3. RICHARDALEX007 👍 2 Answered B
    The requirement is that the agent must never reveal customer information even if a document with customer data is mistakenly added to the repository. PII detection is the control that identifies and redacts personal data in content. Prompt shields (B) defend against injection, not data leakage; self-harm (A) and violence (D) filtering address harmful content categories, not customer-data exposure.
  4. cloudera 👍 2
    It's C. The technical requirement directly links to PII: Agent1 must never reveal customer information, even if it is added to storage1 by mistake. Protection of PII is not optional; it is non-negotiable for every organisation — except perhaps a dodgy one.
  5. cayenne06 👍 2 Answered B
    I think it's B due to :"The product sheets might contain images that include embedded text. Agent1 must be protected from malicious instructions potentially hidden within the images."
  6. cayenne06 👍 2 Answered B
    I think it's C due to :"The product sheets might contain images that include embedded text. Agent1 must be protected from malicious instructions potentially hidden within the images."
  7. a5f05ea 👍 2
    It should be B & C both, because for malicious text embedded in images prompt shields are used. For loss of user data PII detection. So this should be a multi answer question.
  8. profitchannel 👍 2
    customer information ist not nescessarily PII. that's why i think it is B.
  9. cloudera 👍 1
    It's C. The technical requirement directly links to PII: Agent1 must never reveal customer information, even if it is added to storage1 by mistake. Protection of PII is not optional; it is non-negotiable for every organisation — except perhaps a dodgy one. Thanks me :)
  10. batmanx 👍 1 Answered B
    Feature PII Detection Prompt Shields Detects personal data ✔ Yes ✔ Yes (indirectly) Prevents data leakage ❌ No ✔ Yes Blocks prompt injection ❌ No ✔ Yes Protects against malicious image text ❌ No ✔ Yes Meets Contoso’s compliance requirements ❌ No ✔ Yes
  11. Barbara Chen 👍 1 Answered C
    answer: C because it requested Agent1 to protect client information from Blob storage1. Why is not B: Prompt Shields is used for prompt not blob storage.

Reader comments & corrections

No reader corrections yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Practice All AI-103 Questions

Access 88 questions with complete answers and detailed explanations.

View Full AI-103 Practice Test →

← Back to AI-103 Study Guide