AI-102 Implement generative AI solutions Practice Question
You are developing a generative AI application using Azure OpenAI. The application must log all prompts and completions for auditing, but sensitive data such as personal health information (PHI) must be redacted before logging. Which approach should you use?
⚠ Common exam trap
The trap here is assuming that Azure OpenAI diagnostic logs or storage encryption automatically redact PHI, when redaction must be performed explicitly before logging.
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 Azure AI Language's PII detection to identify and redact PHI in prompts and completions before writing to your logging store.
To audit prompts and completions while protecting PHI, integrate Azure AI Language PII detection into your logging pipeline. Redact sensitive entities before persisting logs. This satisfies auditing requirements and compliance mandates, whereas relying on diagnostic logs or storage encryption alone would leave PHI exposed.
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 Azure AI Language's PII detection to identify and redact PHI in prompts and completions before writing to your logging store.
Why this is correct
Azure AI Language provides PII detection that can identify and redact personal health information and other sensitive data. By calling this service on prompts and completions before logging, you ensure that only redacted text is stored. This meets auditing needs while protecting sensitive data.
- ✗
Enable Azure OpenAI diagnostic settings to send logs to Azure Monitor, and rely on built-in PHI redaction.
Why it's wrong here
Azure OpenAI diagnostic logs do not automatically redact PHI. They capture prompt and completion text as-is, which could expose sensitive data. Relying on built-in redaction would violate compliance requirements. Additional processing is needed to identify and redact PHI before logs are stored.
- ✗
Configure Azure OpenAI to not log prompts and completions, and instead log only token counts and model names.
Why it's wrong here
This approach avoids logging sensitive data but fails the auditing requirement to log all prompts and completions. Auditors need to review the actual content. Completely omitting content logs does not satisfy the need to audit what was asked and answered.
- ✗
Store logs in an Azure Storage account with encryption at rest and enable soft delete.
Why it's wrong here
Encryption at rest and soft delete protect data from unauthorized access and accidental deletion, but they do not redact PHI. The logs would still contain sensitive information in plaintext for anyone with access. Compliance requires redaction before storage, not just secure storage.
Go deeper
Related to this question
About these practice questions
This AI-102 question is part of Courseiva's 761-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Microsoft exam blueprint
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.