mediumMultiple ChoiceObjective-mapped
AI-102 Practice Question: The AI engineer at a global e-commerce company…
You are the AI engineer at a global e-commerce company that allows users to upload product images and descriptions. You use Azure Content Moderator to automatically moderate images for adult and racy content, and text for profanity and personal data. Recently, you noticed that some product descriptions containing profanity in French are not being flagged. Your Content Moderator text moderation API call includes the language parameter set to 'eng'. The profanity list appears to be English-only. You have a requirement to support French and Spanish in addition to English. You also need to ensure that false positives for legitimate product descriptions are minimized. You cannot use a custom term list because the profanity terms are dynamic. What should you do?
⚠ Common exam trap
Test-takers frequently think disabling the language parameter or creating separate calls will enable multi-language support, but they overlook that the API's default behavior is English-only unless 'auto-detect' is explicitly specified, and that custom term lists are not allowed per the scenario's constraints.
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
✓
Set the language parameter to 'auto-detect' in the text moderation API request.
Setting the language parameter to 'auto-detect' allows the Azure Content Moderator text moderation API to automatically identify the language of the input text and apply the corresponding built-in profanity list (including French and Spanish). This meets the requirement to support multiple languages without using a custom term list, and it minimizes false positives by using the appropriate language-specific moderation model rather than a generic English-only list.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Disable the language parameter so that the API defaults to all languages.
Why it's wrong here
Disabling the language parameter may cause the API to only use English models, missing non-English profanity.
- ✗
Create separate API calls for each language and specify the language code in the request.
Why it's wrong here
This would require multiple calls and still may not detect all languages correctly if the wrong code is sent.
- ✓
Set the language parameter to 'auto-detect' in the text moderation API request.
Why this is correct
Auto-detect enables Content Moderator to identify the language and apply the correct profanity detection model, supporting multiple languages dynamically.
- ✗
Add French and Spanish profanity terms to a custom term list and use the list in the API call.
Why it's wrong here
Custom term lists are static and the requirement states terms are dynamic, so this would not capture new profanity.
Go deeper
Related to this question
About these practice questions
One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
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.