Microsoft Azure AI Engineer Associate AI-102 Practice Question
You have deployed gpt-35-turbo on Azure OpenAI Service to generate answers for your company's employee portal. Certain internal project code names (for example, "Apollo" and "Zeus") must never appear in either the prompt or the model's response, even if a user explicitly requests them. You need a repeatable, centrally managed solution that will automatically block these terms without requiring changes in every client application. Which approach should you use?
Call the text moderation endpoint after each completion and discard any response that contains a forbidden term.
Configure stop sequences with the forbidden words so the model immediately ends generation when they appear.
Add a system message to every request that instructs the model never to reveal the forbidden code names.
Create a custom text blocklist in Azure AI Content Safety and attach it to a content-filter policy that is assigned to the gpt-35-turbo deployment.
Azure AI Content Safety lets you create text blocklists that contain words or phrases to prohibit. After you create a custom blocklist, you attach it to a content-filter policy (RAI policy) and assign that policy to the gpt-35-turbo deployment. The filter then scans both the user prompt and the model completion and blocks any request or response that contains a listed term, regardless of which client sends the request. In-prompt instructions rely on the model's compliance and can fail, stop-sequence settings do not filter the prompt itself, and moderation endpoint calls must be added to every client individually, so they do not satisfy the requirement for a centrally managed solution.
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 Azure AI Content Safety?
Open an interactive chat with Bash
How does a content-filter policy work in Azure?
Open an interactive chat with Bash
Why are custom blocklists more effective than in-prompt instructions or stop sequences?
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 .