Microsoft Azure AI Engineer Associate AI-102 Practice Question
You are developing a chat-based customer-support application that uses the Azure OpenAI GPT-4o model deployed in the East US region. Corporate policy mandates that no user message or model response containing sexual content with a severity score of 2 may be shown to either end users or agents.
You decide to add a content-moderation step by calling Azure AI Content Safety immediately after receiving the user message and before returning the model completion.
Which Content Safety REST operation should you call, and which response field must you inspect to implement this requirement?
Call the Text Analyze operation (POST /contentsafety/text:analyze) and check the categorySeverity.sexual value in the response.
Call Content Moderator's Screen operation (POST /contentmoderator/moderate/v1.0/ProcessText/Screen) and verify the Terms array for sexual terms.
Call Content Moderator's Review API to submit the text and reject messages labeled Adult after manual review.
Call the Image Analyze operation (POST /contentsafety/image:analyze) and check the contentFilter.sexual score in the response.
Azure AI Content Safety provides the Text Analyze operation (POST /contentsafety/text:analyze) for inspecting text. The response returns, for each harmful content category, a severity field whose value ranges from 0 to 2. By examining categorySeverity.sexual, your code can block any request or response whose severity is 2, satisfying the corporate policy. The Image Analyze operation is for images, not text, while the Content Moderator screen or review operations belong to the older Content Moderator service and do not return the required severity scores.
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.
What is the Azure AI Content Safety Text Analyze operation?
Open an interactive chat with Bash
Why is categorySeverity.sexual used in this scenario?
Open an interactive chat with Bash
What is the difference between Azure AI Content Safety and Content Moderator?
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 .