AI-102 Implement generative AI solutions Practice Question
You are building a customer support chatbot using Azure OpenAI Service. The chatbot must only answer questions related to the company's products and policies. It should refuse to answer off-topic questions. You need to implement this restriction effectively. What should you do?
⚠ Common exam trap
Microsoft often tests the misconception that a system message or fine-tuning alone can reliably enforce content restrictions, when in practice RAG provides a grounded, data-driven boundary that prevents off-topic responses by design.
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
✓
Implement Retrieval Augmented Generation (RAG) with your product and policy data
Retrieval Augmented Generation (RAG) grounds the model's responses in your specific product and policy data by retrieving relevant documents from a vector database (e.g., Azure Cognitive Search) and injecting them into the prompt. This ensures the chatbot can only answer questions that have matching context in your data, and it naturally refuses off-topic queries because no relevant documents are retrieved, allowing the system to return a default refusal message. RAG provides a dynamic, data-driven boundary without modifying the underlying model.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Implement Retrieval Augmented Generation (RAG) with your product and policy data
Why this is correct
RAG grounds the model in your data, ensuring answers are only from that data.
- ✗
Fine-tune the model on a dataset of product-related conversations
Why it's wrong here
Fine-tuning can help but may still generate off-topic responses; RAG is more reliable.
- ✗
Use a system message that instructs the model to stay on topic
Why it's wrong here
System messages are guidelines and may not be strictly followed.
- ✗
Set the temperature parameter to 0 to reduce randomness
Why it's wrong here
Temperature does not enforce topic restrictions.
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.