Microsoft Azure AI Engineer Associate AI-102 Practice Question
Your team is deploying an Azure OpenAI-powered public chatbot. The business requires that any user prompt or model response containing harassing language or sexual content be automatically detected and blocked. The solution must work across multiple languages and must not involve custom model training. Which Azure capability should you implement?
Add a system message instructing the model to refuse any inappropriate content.
Fine-tune the GPT-4 model with a labeled dataset that classifies harassment and sexual content.
Call Azure AI Content Safety text analysis to evaluate prompts and completions and apply blocking rules based on the returned severity scores.
Enable the profanity filter in Azure Translator on all incoming and outgoing text.
Azure AI Content Safety provides pre-built text moderation that classifies harassment, sexual content, violence and self-harm across many languages. It can be called before a prompt is sent to the model and again on the model's reply, returning severity scores that you can use to block or allow the text without retraining. Fine-tuning GPT-4 would be time-consuming, expensive and cannot guarantee consistent filtering. The Translator profanity filter only masks certain profane words during translation and does not cover sexual or harassing content generally. Relying solely on a system message is not deterministic or auditable for policy compliance, so it does not meet the requirement.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
How does Azure AI Content Safety evaluate text for inappropriate content?
Open an interactive chat with Bash
Why is fine-tuning the GPT-4 model not recommended in this case?
Open an interactive chat with Bash
What limitations does the Azure Translator profanity filter have in content moderation?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Plan and manage an Azure AI solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .