Implement knowledge mining and information extraction solutions →mediumMultiple ChoiceObjective-mapped
PII Redaction in Azure AI Search Using Built-in Skill
You need to extract personally identifiable information (PII) from a set of text documents before indexing them in Azure AI Search. The PII must be redacted. Which Azure AI service and configuration should you use?
Quick Answer
The built-in PII detection skill fits this requirement because it runs inside the Azure AI Search indexing pipeline itself, meaning PII gets identified and handled as documents are being processed for the index rather than needing a separate pre-processing step built and maintained outside the search pipeline. The skill recognizes common PII entity types — names, phone numbers, email addresses, and similar personal identifiers — as documents move through indexing, and its redactionMode configuration is what turns detection into actual redaction, replacing each identified entity with a placeholder before the content is stored in the searchable index. This is what satisfies the requirement to redact PII before indexing specifically, rather than after the fact: once content lands in the index, any PII within it has already been stripped out, so there's no window where sensitive raw text sits searchable and unprotected. The general pattern worth recognizing is that Azure AI Search's skillset pipeline can enrich or transform content — detecting language, extracting entities, or in this case redacting PII — as a normal part of indexing, which is why built-in skills are usually the answer whenever a requirement describes content needing modification specifically before it becomes searchable.
⚠ Common exam trap
It's easy for candidates to confuse the general entity recognition skill (which identifies entities but does not redact) with the PII-specific skill (which is designed for redaction), leading them to choose Option A instead of C.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use the built-in PII detection skill in Azure AI Search with redaction mode enabled
Azure AI Search provides a built-in PII detection skill that can automatically identify and redact PII entities (such as names, phone numbers, and email addresses) from text documents during the indexing pipeline. The skill supports a 'redactionMode' configuration that replaces detected PII with a placeholder (e.g., '***'), meeting the requirement to redact PII before indexing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use the entity recognition skill in Azure AI Search and map to a target field
Why it's wrong here
Entity recognition does not redact.
- ✗
Use Azure AI Document Intelligence with a custom model to identify PII fields
Why it's wrong here
Document Intelligence does not have built-in PII redaction.
- ✓
Use the built-in PII detection skill in Azure AI Search with redaction mode enabled
Why this is correct
The PII detection skill can redact detected entities.
- ✗
Use Azure AI Language's key phrase extraction to find PII
Why it's wrong here
Key phrase extraction does not identify PII.
Go deeper
Related to this question
About these practice questions
Courseiva writes every AI-102 question from scratch — 945 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on AI-102
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. You are designing a knowledge mining solution that must handle sensitive customer data. The solution must ensure that personally identifiable information (PII) is not returned in search results. What should you do?
hard- A.Use Azure AI Search with encryption at rest
- B.Implement role-based access control on the search index
- ✓ C.Use a custom skill in the skillset to detect and redact PII before indexing
- D.Configure field mappings to exclude PII fields
Why C: Using a custom skill in the enrichment pipeline allows you to detect and redact PII from documents before they are indexed, ensuring that sensitive data is not stored in the index or returned in search results. Option A is incorrect because encryption at rest protects data at the storage level but does not prevent PII from being returned. Option B is incorrect because role-based access control restricts who can search but does not remove PII from results. Option D is incorrect because field mappings control which fields are imported but do not remove PII content from those fields.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-102 exam.