Required Components for RAG with Azure OpenAI
Which THREE components are required to implement a Retrieval-Augmented Generation (RAG) solution with Azure OpenAI Service? (Choose three.)
Quick Answer
A vector database like Azure AI Search is one piece of a RAG pipeline that only works because of what feeds into it: an embedding model, such as text-embedding-ada-002, converts both the incoming user query and the chunks of source documents into dense numerical vectors that represent their meaning, not just their literal words. Those vectors are what the vector database actually stores and searches over — without an embedding step first, there's nothing meaningful for the database to hold, since raw text alone doesn't support similarity search based on semantic meaning. The database's job is to take the query's vector and rapidly find the document vectors most similar to it, which is the retrieval half of Retrieval-Augmented Generation; the retrieved chunks are then injected into the prompt sent to the generation model, which is the third piece completing the pipeline. Each component has a distinct job: the embedding model translates text into a comparable form, the vector database finds the closest matches, and the generation model produces the final answer grounded in what was retrieved. Recognizing that these are three necessary, non-overlapping stages — not interchangeable options — is what a 'which components are required' RAG question is testing.
⚠ Common exam trap
Many exam-takers confuse optional safety or tuning components (like Content Safety or fine-tuning) as mandatory, when the core RAG triad is strictly retrieval (embeddings + vector DB) plus generation (LLM).
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
✓
An embedding model (e.g., text-embedding-ada-002)
An embedding model like text-embedding-ada-002 is essential for converting user queries and document chunks into dense vector representations. These vectors enable semantic similarity search in a vector database, which is the core retrieval step in RAG. Without embeddings, the system cannot match user intent to relevant content.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
An embedding model (e.g., text-embedding-ada-002)
Why this is correct
Embedding models convert documents into vector representations.
- ✗
A fine-tuned model
Why it's wrong here
Fine-tuning is not required for RAG.
- ✓
An Azure OpenAI Service model (LLM)
Why this is correct
The LLM generates responses based on retrieved context.
- ✗
Azure AI Content Safety
Why it's wrong here
Content Safety is optional, not required for RAG.
- ✓
A vector database (e.g., Azure AI Search)
Why this is correct
Vector databases store embeddings and enable similarity search.
Go deeper
Related to this question
About these practice questions
This AI-102 question is part of Courseiva's 945-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on AI-102
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which TWO Azure services can be used together with Azure OpenAI to implement a Retrieval-Augmented Generation (RAG) solution?
easy- A.Azure Blob Storage
- ✓ B.Azure Cosmos DB
- ✓ C.Azure AI Search
- D.Azure SQL Database
- E.Azure Functions
Why B: Azure Cosmos DB is correct because it can serve as a vector database for storing and querying embeddings generated by Azure OpenAI. When combined with Azure AI Search, which provides hybrid search (vector + keyword) and indexing capabilities, it enables a complete RAG pipeline where relevant documents are retrieved and passed as context to the OpenAI model for grounded generation.
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.