AI-200 — Microsoft Azure AI Cloud Developer Associate Cheat Sheet
Compact AI-200 Cheat sheet for Azure AI service selection, RAG patterns, security, deployment, and troubleshooting.
Use the tables for a quick pre-exam check. Expand a topic’s notes for explanations, examples, and additional distinctions.
Scope and study context
Focus less on memorizing product names and more on answering: Which Azure AI service fits the requirement, how is it secured, how is it deployed, and how do you evaluate and troubleshoot it?
The goal is not to replace hands-on Azure work. The goal is to help you quickly recognize the major design choices, implementation patterns, traps, and troubleshooting signals that commonly appear in Azure AI developer scenarios.
| Item | Details |
|---|---|
| Vendor/provider | Microsoft |
| Official exam title | Microsoft Azure AI Cloud Developer Associate (AI-200) |
| Official exam code | AI-200 |
| Review focus | Azure AI application development, service selection, integration, security, responsible AI, deployment, and operational readiness |
| Practice connection | Best used with original practice questions, topic drills, mock exams, and detailed explanations |
- Scan the decision tables first. AI developer exams often test whether you choose the right Azure AI service and integration pattern.
- Review the traps. Many misses come from confusing similar services, authentication methods, indexing concepts, or generative AI terms.
- Practice immediately after each section. Use topic drills to confirm that you can apply the idea under exam-style wording.
- Read explanations even for correct answers. Detailed explanations help you notice distractors, missing requirements, and better service choices.
- Finish with mixed mock exams. The real challenge is switching contexts quickly across AI Search, Azure OpenAI, Language, Vision, Speech, Document Intelligence, security, and deployment scenarios.
High-Yield Exam Map
| Area | What to know for AI-200-style scenarios |
|---|---|
| Azure AI service selection | Choose between Azure OpenAI, Azure AI Search, Azure AI Document Intelligence, Azure AI Language, Azure AI Vision, Azure AI Speech, Translator, Content Safety, Azure Machine Learning, and app hosting services. |
| Generative AI development | Chat completions, embeddings, model deployments, prompt structure, tools/function calling, token management, response grounding, and evaluation. |
| Retrieval-augmented generation | Chunking, embeddings, vector indexes, hybrid search, semantic ranking, citations, access filtering, freshness, and hallucination reduction. |
| Knowledge mining | Azure AI Search indexes, indexers, data sources, skillsets, enrichment pipelines, custom skills, and semantic/vector search. |
| Natural language, speech, vision, documents | Select prebuilt vs custom models; distinguish OCR, form extraction, image analysis, transcription, translation, classification, and entity extraction. |
| Security and governance | Microsoft Entra ID, managed identities, keys, Key Vault, RBAC, private networking, content filters, responsible AI controls, logging, and data protection. |
| Deployment and operations | App Service, Azure Functions, Container Apps, AKS, API Management, queues, monitoring, retries, throttling, testing, and CI/CD. |
Azure AI Service Selection Matrix
| Requirement | Prefer | Why | Watch for |
|---|---|---|---|
| Build a chat, summarization, reasoning, or code-assist feature | Azure OpenAI Service or model deployments through Azure AI development tooling | Managed access to large language models with Azure security and deployment controls | The model name is not enough; apps call a deployment. Region and model availability matter. |
| Build, test, evaluate, and manage generative AI apps | Azure AI Foundry tooling | Project-based development, prompt workflows, evaluations, deployments, and model catalog workflows | Do not confuse design-time project tooling with the runtime app architecture. |
| Ground an LLM on enterprise documents | Azure AI Search + embeddings + Azure OpenAI | Supports keyword, vector, hybrid, semantic ranking, metadata filters, and citations | Retrieval does not guarantee correctness; still evaluate groundedness and safety. |
| Search structured and unstructured enterprise content | Azure AI Search | Indexes documents, supports filters, scoring, semantic ranking, vector search, and enrichment | Index schema, analyzer choice, vector dimensions, and metadata fields are exam-relevant. |
| Extract fields from invoices, receipts, IDs, tax forms, or custom forms | Azure AI Document Intelligence | Prebuilt and custom document extraction models | Use Document Intelligence for field extraction, not generic OCR-only scenarios. |
| OCR text from images or simple documents | Azure AI Vision Read/OCR or Document Intelligence | Vision handles image OCR; Document Intelligence handles document-centric extraction | If the scenario needs key-value pairs/tables/forms, choose Document Intelligence. |
| Analyze images for captions, tags, objects, or visual features | Azure AI Vision | Prebuilt image analysis capabilities | Do not choose Document Intelligence for general image tagging. |
| Classify images with custom labels | Custom Vision / custom image model workflow | Train image classification or object detection from labeled images | Use only when prebuilt Vision features are insufficient. |
| Detect language, sentiment, key phrases, entities, or PII | Azure AI Language | Prebuilt NLP APIs | Use custom Language models when domain-specific labels, intents, or entities are needed. |
| Build intent recognition for a chatbot | Conversational Language Understanding | Maps user utterances to intents and entities | CLU identifies intent; it does not automatically complete business workflows. |
| Create FAQ-style question answering over curated content | Custom question answering | Best for controlled knowledge bases and FAQ-style responses | For broad document retrieval plus generation, prefer RAG with Azure AI Search and an LLM. |
| Translate text between languages | Translator | Purpose-built machine translation | Do not use speech translation unless audio is involved. |
| Transcribe or synthesize speech | Azure AI Speech | Speech-to-text, text-to-speech, speech translation, custom speech scenarios | Batch vs real-time and custom model requirements are common decision points. |
| Detect harmful, unsafe, or policy-violating content | Azure AI Content Safety plus model content filters | Safety classification for text/images and layered protection for generative AI apps | Safety filters reduce risk; they are not a substitute for app authorization or validation. |
| Train, register, deploy, and monitor custom ML models | Azure Machine Learning | Full ML lifecycle for custom models, pipelines, endpoints, and MLOps | Do not choose Azure ML when a prebuilt Azure AI service satisfies the requirement. |
| Expose AI functionality through an API | App Service, Azure Functions, Container Apps, AKS + API Management | Hosts app logic and protects/standardizes APIs | The AI service is not usually the entire application boundary. |
| Trigger AI processing from uploaded files/events | Event Grid, Service Bus, Storage Queue, Azure Functions | Event-driven ingestion and asynchronous processing | Use queues for buffering, retries, and decoupling long-running AI tasks. |
Notes and examples
Service selection quick table
| Requirement | Usually consider | Watch for |
|---|---|---|
| Generate or summarize natural language | Azure OpenAI | Need grounding, safety controls, token management, and evaluation |
| Answer questions over private documents | Azure OpenAI + Azure AI Search | RAG is usually preferred over fine-tuning for knowledge-grounded answers |
| Search documents by meaning | Azure AI Search vector search | Requires embeddings and a vector field in the index |
| Search documents with keywords and filters | Azure AI Search lexical search | Requires well-designed fields, analyzers, filters, and scoring |
| Combine keyword, vector, and semantic relevance | Azure AI Search hybrid/semantic approaches | Know the role of each retrieval method |
| Extract text and fields from forms | Azure AI Document Intelligence | Choose prebuilt vs custom model based on document type |
| Extract printed or handwritten text from images | Azure AI Vision OCR or Document Intelligence | Choose based on image/document structure and downstream field extraction |
| Analyze image content | Azure AI Vision | Custom vision is for domain-specific classification/detection needs |
| Convert speech to text | Azure AI Speech | Consider language, latency, diarization, and audio quality requirements |
| Convert text to speech | Azure AI Speech | Consider voice, language, output format, and application channel |
| Translate text | Azure AI Translator | Do not confuse translation with summarization or sentiment analysis |
| Analyze sentiment or key phrases | Azure AI Language | Use prebuilt NLP unless custom classification/extraction is required |
| Build a chatbot interface | Azure Bot Service or app framework integrated with AI services | Bot channel and conversation state are separate from model reasoning |
| Detect or moderate harmful content | Azure AI Content Safety / safety features | Safety is not the same as correctness or grounding |
| Store secrets | Azure Key Vault | Prefer managed identity over hard-coded secrets |
| App-to-service authentication without secrets | Managed identity + RBAC where supported | Keys are simpler but weaker operationally |
Core Azure AI Terms
| Term | Meaning | Exam distinction |
|---|---|---|
| Azure AI services resource | Azure resource used to access one or more cognitive services APIs | Multi-service resources simplify management but not every scenario uses one shared endpoint. |
| Azure OpenAI resource | Azure resource for deploying and calling OpenAI models through Azure | You deploy a model before an app can call it. |
| Model | The base AI capability, such as a chat model or embedding model | Model availability is not the same as deployment availability. |
| Deployment | Named runtime instance of a model in an Azure OpenAI resource | In many SDK calls, the model parameter is the deployment name. |
| Endpoint | Network address used by applications to call a service | May be public, restricted by firewall, or private through Private Link. |
| Key | Shared secret for API access | Simpler but weaker operational model than managed identity. Store in Key Vault when used. |
| Managed identity | Microsoft Entra identity assigned to an Azure workload | Preferred for Azure-hosted apps calling Azure services without secrets. |
| RBAC | Role-based access control through Microsoft Entra ID | Separate management-plane permissions from data-plane permissions. |
| Index | Searchable structure in Azure AI Search | Requires a schema, fields, analyzers, and optionally vector fields. |
| Indexer | Crawler that loads data from a supported source into an index | Runs on schedule or demand; does not run at query time. |
| Skillset | Enrichment pipeline for Azure AI Search indexing | Applies OCR, extraction, translation, custom skills, or projections during indexing. |
| Embedding | Numeric vector representation of text/images | Query and document embeddings must be generated with compatible models and dimensions. |
| Chunk | Segment of a document indexed for retrieval | Bad chunking causes weak grounding even with a strong model. |
| Semantic ranking | Language-aware ranking layer in Azure AI Search | Often combined with keyword/vector retrieval for better relevance. |
| Content filter | Safety control applied to model inputs/outputs | Not an authorization system and not a full business policy engine. |
Generative AI Development Reference
Chat Completion Anatomy
| Component | Purpose | Common trap |
|---|---|---|
| System instruction | Sets assistant behavior, constraints, tone, and task rules | It is not a security boundary. Always validate inputs, outputs, and tool calls. |
| User message | End-user request | User content may contain prompt injection attempts. |
| Assistant message | Prior model response | Long histories consume tokens and may preserve bad context. |
| Tool/function definition | Describes callable app functions | The model suggests calls; your code authorizes and executes them. |
| Retrieved context | External data inserted into the prompt | Must be relevant, access-controlled, and cited when required. |
| Response format | Controls structured output, such as JSON | Validate schema after generation; do not assume perfect formatting. |
| Temperature/top-p | Controls randomness | Lower values usually suit extraction, classification, and deterministic business tasks. |
| Max tokens | Caps response length | Too low truncates answers; too high can increase latency and cost. |
Notes and examples
Azure OpenAI SDK Pattern
Use Microsoft Entra ID or managed identity where possible for production workloads. API keys are common in simple examples but should be protected.
from azure.identity import DefaultAzureCredential, get_bearer_token_provider
from openai import AzureOpenAI
token_provider = get_bearer_token_provider(
DefaultAzureCredential(),
"https://cognitiveservices.azure.com/.default"
)
client = AzureOpenAI(
azure_endpoint="https://<resource-name>.openai.azure.com/",
azure_ad_token_provider=token_provider,
api_version="<api-version>"
)
response = client.chat.completions.create(
model="<deployment-name>",
messages=[
{"role": "system", "content": "Answer using the provided policy excerpt only."},
{"role": "user", "content": "What is the refund window?"}
],
temperature=0.2
)
print(response.choices[0].message.content)
High-yield detail: in Azure OpenAI calls, model="<deployment-name>" commonly refers to the Azure deployment name, not just the base model family.
Model Choice Decision Points
| Need | Prefer | Notes |
|---|---|---|
| General chat, summarization, reasoning, extraction | Chat/completion model | Choose based on required quality, latency, cost, context length, and region availability. |
| Enterprise RAG | Chat model + embedding model + Azure AI Search | The chat model generates; the embedding model retrieves. |
| Similarity search | Embedding model | Store embeddings in a vector index; do not ask embeddings to generate answers. |
| Deterministic classification/extraction | Lower temperature, schema validation, possibly Azure AI Language or Document Intelligence | For standard NLP/document tasks, prebuilt services may be more reliable and simpler. |
| Multimodal reasoning | Model/service that supports the required input type | Verify whether the scenario needs image, text, audio, or document-native processing. |
| High-volume automation | Smaller/faster model where acceptable, caching, batching, queueing | Avoid using the largest model by default. |
| Regulated or sensitive workflow | Private networking, managed identity, logging strategy, human review, content safety | Security and governance often decide the architecture. |
Retrieval-Augmented Generation Reference
RAG Flow
flowchart LR
A[Source documents] --> B[Extract text and metadata]
B --> C[Chunk documents]
C --> D[Generate embeddings]
D --> E[Index in Azure AI Search]
U[User question] --> V[Embed query]
V --> W[Vector / hybrid retrieval]
W --> X[Rank, filter, and trim]
X --> Y[Prompt with retrieved context]
Y --> Z[Generate grounded answer with citations]
Z --> Q[Evaluate, log, and monitor]
Notes and examples
RAG Design Matrix
| Design choice | Use when | Exam cues | Traps |
|---|---|---|---|
| Keyword search | Exact terms, IDs, names, codes, or structured phrases matter | “Find documents containing…” | Poor semantic recall for paraphrased questions. |
| Vector search | Users ask semantically similar but differently worded questions | “Natural language questions over documents” | Vector dimensions must match the embedding model. |
| Hybrid search | Need both exact matching and semantic recall | “Best relevance over enterprise content” | Requires tuning scoring, filters, and ranking. |
| Semantic ranking | Need improved natural-language relevance and captions/answers | “Improve result quality without retraining” | It ranks retrieved candidates; it does not replace indexing. |
| Metadata filtering | Need access control, departments, dates, regions, document types | “Only show documents user can access” | Filter fields must exist and be populated in the index. |
| Security trimming | Results must respect user permissions | “User-specific document access” | Do not rely on the LLM to hide unauthorized text after retrieval. |
| Chunk overlap | Concepts span boundaries between chunks | “Answers miss context at page breaks” | Too much overlap increases index size and duplicate retrieval. |
| Citations | Users need traceability | “Answer with sources” | Citations require source metadata captured during ingestion. |
| Freshness | Data changes often | “New documents must appear quickly” | Scheduled indexers may not meet near-real-time needs; consider push/event ingestion. |
| Human review | High-impact or risky outputs | “Approval required before action” | Content filters alone may be insufficient. |
Minimal Search Index Fields for RAG
| Field | Purpose | Search configuration |
|---|---|---|
id | Stable unique key | Key field |
content | Chunk text passed to the model | Searchable |
contentVector | Embedding for vector search | Vector field with matching dimensions |
title | Human-friendly source label | Searchable/filterable as needed |
sourceUri | Citation link or storage reference | Retrievable |
pageNumber / section | Citation precision | Filterable/retrievable |
lastModified | Freshness filtering/sorting | Filterable/sortable |
acl / groups | Security trimming | Filterable |
documentType | Filter by policy, manual, contract, etc. | Filterable/facetable |
Vector/Hybrid Search SDK Shape
from azure.search.documents import SearchClient
from azure.search.documents.models import VectorizedQuery
from azure.identity import DefaultAzureCredential
search_client = SearchClient(
endpoint="https://<search-service>.search.windows.net",
index_name="<index-name>",
credential=DefaultAzureCredential()
)
vector_query = VectorizedQuery(
vector=query_embedding,
k_nearest_neighbors=5,
fields="contentVector"
)
results = search_client.search(
search_text="refund policy for annual subscriptions",
vector_queries=[vector_query],
filter="documentType eq 'policy'",
select=["title", "content", "sourceUri", "pageNumber"],
top=5
)
Use this pattern to remember the separation between query embedding, vector retrieval, metadata filtering, and prompt construction.
Azure AI Search and Knowledge Mining
| Component | Role | When to use | Common issue |
|---|---|---|---|
| Data source | Connection to supported content store | Pull data from Azure Storage, databases, or other supported sources | Permissions and private networking can block indexers. |
| Indexer | Moves data into an index | Scheduled or on-demand indexing | It does not continuously reflect changes unless scheduled or triggered. |
| Skillset | Enriches content during indexing | OCR, entity extraction, key phrases, translation, custom enrichment | Skills run at ingestion time, not at query time. |
| Custom Web API skill | Calls your custom enrichment logic | Domain-specific extraction, normalization, classification | Must handle scaling, failures, and expected schema. |
| Index projection | Maps enriched content into target index structures | Parent-child or chunked indexing patterns | Incorrect mapping leads to missing fields. |
| Analyzer | Tokenization and text processing | Language-specific search behavior, stemming, tokenization | Analyzer choice affects matching and cannot always be casually changed later. |
| Synonym map | Expands equivalent terms | Industry acronyms, product aliases | Synonyms help keyword search but do not replace semantic/vector search. |
| Semantic configuration | Defines prioritized fields for semantic ranking | Better captions/reranking for natural-language queries | Needs meaningful title/content fields. |
| Vector profile/configuration | Enables vector search | Embedding-based retrieval | Embedding dimensions and vector field config must align. |
Notes and examples
Knowledge Mining vs RAG
| Scenario | Better answer |
|---|---|
| “Extract entities and key phrases from documents into a searchable index” | Azure AI Search skillset with enrichment |
| “Ask natural-language questions and generate answers from indexed documents” | RAG using Azure AI Search plus Azure OpenAI |
| “Search documents with filters, facets, and relevance scoring” | Azure AI Search |
| “Summarize search results into a conversational response” | Azure AI Search retrieval followed by generative model response |
| “Apply OCR before indexing scanned PDFs” | Azure AI Search skillset with OCR, or Document Intelligence depending on extraction needs |
Language, Speech, Vision, and Document Services
Azure AI Language
| Requirement | Choose | Notes |
|---|---|---|
| Sentiment and opinion mining | Sentiment analysis | Identifies positive/negative/neutral sentiment and opinions where supported. |
| Extract names, places, organizations, dates | Named entity recognition | Use custom NER for domain-specific entities. |
| Detect sensitive personal data | PII detection | Combine with app policy for redaction, storage, and auditing. |
| Extract important terms | Key phrase extraction | Useful for tagging and indexing. |
| Identify language | Language detection | Often used before translation or language-specific processing. |
| Classify text into custom categories | Custom text classification | Requires labeled examples and training/evaluation. |
| Extract domain-specific entities | Custom named entity recognition | Use when prebuilt NER misses business-specific labels. |
| Detect user intent and entities in conversations | Conversational Language Understanding | Good for bot commands and routing. |
| FAQ-style answers from curated sources | Custom question answering | Best for controlled knowledge base scenarios. |
Notes and examples
Azure AI Speech and Translator
| Requirement | Choose | Key distinction |
|---|---|---|
| Convert microphone or audio files to text | Speech-to-text | Real-time vs batch transcription matters. |
| Convert text to spoken audio | Text-to-speech | Voice, language, and style requirements drive selection. |
| Translate text | Translator | Text input/output. |
| Translate spoken audio | Speech translation | Audio input with translation output. |
| Improve recognition for domain vocabulary | Custom Speech | Use when baseline transcription struggles with accents, terms, or environment. |
| Build voice-enabled app | Speech SDK + app host | The SDK handles audio interaction; your app handles business logic. |
Azure AI Vision and Document Intelligence
| Requirement | Choose | Avoid this mistake |
|---|---|---|
| Read text from an image | Azure AI Vision OCR/Read | Do not build a custom model for basic OCR. |
| Extract fields from forms | Azure AI Document Intelligence | OCR alone does not produce structured fields reliably. |
| Extract tables from documents | Document Intelligence | Tables require document-aware layout extraction. |
| Use prebuilt invoice/receipt/ID extraction | Document Intelligence prebuilt model | Do not train custom if a prebuilt model satisfies the form type. |
| Extract from a custom business form | Document Intelligence custom model | Needs representative labeled samples and evaluation. |
| Classify document types before extraction | Document classifier / routing pattern | Route to the right extraction model. |
| Generate image tags/captions | Azure AI Vision image analysis | Document Intelligence is document-centric, not image-scene analysis. |
| Detect custom objects in images | Custom Vision or custom vision model workflow | Requires labeled images and model training. |
Azure AI Language review
| Capability | Use when | Do not confuse with |
|---|---|---|
| Sentiment analysis | Need positive, neutral, negative, or opinion signals | Intent recognition or topic classification |
| Key phrase extraction | Need important terms from text | Full summarization |
| Named entity recognition | Need people, places, organizations, dates, quantities | Custom business field extraction |
| Entity linking | Need entities connected to known knowledge sources | Simple keyword extraction |
| Language detection | Need to identify text language | Translation |
| Text summarization | Need shorter representation of content | Sentiment analysis |
| Conversational language understanding | Need intents/entities from user utterances | Open-ended generative chat |
| Custom text classification | Need domain-specific categories | Prebuilt sentiment or key phrases |
| Custom named entity recognition | Need domain-specific entities | General NER |
Language service decision rules
- Use prebuilt capabilities when the requirement matches standard NLP tasks.
- Use custom classification or extraction when labels/entities are domain-specific.
- Use Azure OpenAI when the requirement is open-ended generation, reasoning over context, or flexible summarization.
- Use AI Search + Azure OpenAI when answers must be grounded in a large private corpus.
- For production extraction, plan for evaluation data, confidence thresholds, review queues, and error handling.
Prebuilt vs custom decision
| Scenario | Better fit | Why |
|---|---|---|
| Standard invoices, receipts, IDs, tax-like forms, or common documents | Prebuilt model if available | Faster implementation and less training effort |
| Company-specific forms with consistent layout | Custom extraction model | Learns fields from representative samples |
| Multiple document types | Classifier plus extraction models | Route documents before extraction |
| Need layout, tables, and text structure | Layout capability | Useful before downstream processing |
| Need high accuracy for business processing | Extraction plus validation workflow | Human review may be needed for low confidence |
Document extraction workflow
- Receive document from an approved source.
- Validate file type, size, and quality.
- Select prebuilt, custom, or layout model.
- Extract fields, tables, and confidence values.
- Validate required fields and business rules.
- Send low-confidence or high-risk cases to review.
- Store extracted data with source traceability.
- Monitor accuracy by document type and version.
Document Intelligence traps
- Do not choose generic OCR when the requirement asks for named fields from forms.
- Do not assume one custom model works for unrelated document layouts.
- Do not ignore confidence scores.
- Do not train on ideal samples only; include realistic variation.
- Do not skip downstream validation just because extraction succeeded.
Speech review
| Requirement | Capability | Review point |
|---|---|---|
| Convert audio to text | Speech-to-text | Consider language, audio quality, noise, and real-time vs batch |
| Convert text to audio | Text-to-speech | Consider voice, style, format, and latency |
| Translate spoken input | Speech translation | Different from text translation after transcription |
| Build voice-enabled app | Speech SDK + application logic | Speech recognition is not the conversation brain |
| Improve domain vocabulary | Custom speech-related configuration where appropriate | Useful for specialized names and terms |
Speech traps
- Speech-to-text produces transcripts; it does not automatically summarize or classify unless combined with another service.
- Background noise and microphone quality affect recognition.
- Real-time scenarios prioritize latency; batch scenarios can prioritize completeness.
- Text-to-speech voice selection affects user experience but not text correctness.
- Translation, transcription, and conversational understanding are separate tasks.
Prompting, Tools, and Agentic Patterns
| Pattern | Use when | Implementation reminder |
|---|---|---|
| Direct prompt | Simple transformation, drafting, summarization, or classification | Keep instructions explicit and constrain output format. |
| Few-shot prompt | Need consistent style or labels | Include representative examples; avoid excessive token use. |
| RAG prompt | Need answers grounded in private/current data | Retrieve first, then generate using context and citation instructions. |
| Tool/function calling | The model needs live data or actions | Validate arguments, authorize user, execute tool in app code, then return result to model. |
| Planner/agent loop | Multi-step tasks with tool use | Add iteration limits, logging, timeout, safety checks, and human approval for risky actions. |
| Structured output | Downstream system expects JSON or schema | Validate and retry/repair; never blindly trust generated JSON. |
| Prompt template | Reusable prompt with variables | Treat retrieved/user content as data, not instructions. |
| Guardrail prompt | Reduce unsafe behavior | Helpful but insufficient without content filters, authorization, and validation. |
Notes and examples
Tool Calling Control Points
| Step | Control |
|---|---|
| Tool definition | Expose only required functions and arguments. |
| User request | Authenticate user and check authorization before tool execution. |
| Model-proposed tool call | Validate name, arguments, types, ranges, and policy constraints. |
| Tool execution | Use least-privilege identity and handle timeouts/retries. |
| Tool result | Remove secrets and unnecessary data before sending back to the model. |
| Final response | Check safety, correctness, citation, and formatting requirements. |
Security, Identity, and Governance
Authentication and Authorization Choices
| Option | Best use | Exam distinction |
|---|---|---|
| API key | Simple local testing or services that require key-based access | Store in Key Vault; rotate; avoid embedding in code or client apps. |
| Microsoft Entra ID | Enterprise authentication and RBAC | Preferred for production when supported. |
| Managed identity | Azure-hosted app calling Azure services | Avoids secrets; assign least-privilege roles. |
| Service principal | CI/CD or non-Azure workload automation | Protect credentials; scope permissions tightly. |
| SAS token | Limited delegated access to storage objects | Time-bound and permission-scoped; not an identity replacement. |
| Key Vault | Secret, key, and certificate management | App identity needs permission to retrieve secrets. |
Notes and examples
RBAC and Access Boundaries
| Boundary | What it controls | Common trap |
|---|---|---|
| Azure management plane | Create/update/delete resources | Contributor on a resource does not always grant data-plane read/write. |
| Data plane | Use the service endpoint, indexes, models, or documents | Requires service-specific roles or keys. |
| Search index access | Query or modify indexes/documents | Separate query access from index administration. |
| Storage access | Read/write source documents | Indexers and apps need appropriate storage permissions. |
| Model deployment access | Invoke deployed models | Users/apps may need data-plane permission even if they can view the resource. |
| Application authorization | Which user can perform business action | Do not delegate this decision to the model. |
Network Isolation Checklist
| Requirement | Control |
|---|---|
| Keep traffic off public internet where supported | Private Endpoint / Private Link |
| Restrict public access | Disable or limit public network access and configure firewalls |
| Allow specific Azure services or networks | Service firewall rules and network integration |
| Resolve private endpoints correctly | Private DNS zone configuration |
| Secure app-to-service calls | Managed identity plus private endpoint where supported |
| Protect inbound app APIs | API Management, authentication, authorization, WAF where appropriate |
| Log security-relevant events | Azure Monitor, diagnostics, app logs, and audit trails |
Responsible AI and Safety Controls
| Concern | Practical control |
|---|---|
| Harmful content | Azure AI Content Safety, model content filters, blocked categories, review workflow |
| Hallucination | RAG grounding, citations, retrieval evaluation, refusal behavior when context is insufficient |
| Prompt injection | Treat retrieved/user text as untrusted, separate instructions from data, validate tool calls |
| Data leakage | Access filtering before retrieval, output redaction, least privilege, private networking |
| Bias or unfairness | Representative test sets, human review, metric tracking, documented limitations |
| Overreliance | Confidence indicators, citations, escalation paths, user education |
| Unsafe actions | Human-in-the-loop approval, allowlisted tools, transaction limits, audit logs |
| Privacy | Minimize collected data, redact where appropriate, control logs and retention |
Authentication and authorization
| Requirement | Preferred pattern | Watch for |
|---|---|---|
| Azure-hosted app calls Azure service | Managed identity where supported | Avoid hard-coded keys |
| Store service secrets | Azure Key Vault | Rotate secrets and restrict access |
| Grant app access to resource | RBAC or service-specific access control | Assign least privilege |
| User-specific data access | User auth + authorization + security trimming | Do not let the model decide access rights |
| Network isolation | Private endpoints, firewall rules, virtual network integration where applicable | Confirm service support and app routing |
| Protect data in transit | HTTPS/TLS | Do not send sensitive data to unapproved endpoints |
| Protect logs | Redaction, retention, role restrictions | Logs can leak prompts, documents, and outputs |
Key security reminders
- Prefer Microsoft Entra ID and managed identities over static keys when supported.
- If keys are used, store them securely and rotate them.
- Keep secrets out of code, prompts, config files, and logs.
- Apply least privilege to data stores, search indexes, AI services, and monitoring systems.
- Treat prompts and model outputs as data that may contain sensitive information.
- Implement tenant isolation and document-level access checks for multi-user RAG apps.
- Validate all model-suggested actions before execution.
Deployment Architecture Patterns
| Pattern | Use when | Azure services commonly involved |
|---|---|---|
| Synchronous AI API | User waits for response | App Service / Container Apps / AKS, Azure OpenAI, Azure AI Search, API Management |
| Event-driven document ingestion | Files arrive asynchronously | Blob Storage, Event Grid, Azure Functions, Azure AI Search, Document Intelligence |
| Long-running batch processing | Large document sets or audio transcription | Queue/Service Bus, Functions/Container Apps, durable workflow pattern, Storage |
| Chat application with RAG | Conversational answers over enterprise data | Web app, Azure OpenAI, Azure AI Search, storage, identity provider |
| Bot interface | Teams/web chat integration | Azure Bot Service, CLU/Language, Azure OpenAI, backend APIs |
| Custom ML endpoint | Model trained outside prebuilt AI services | Azure Machine Learning endpoint, app host, monitoring |
| Enterprise API facade | Standardized access to AI backend | API Management, managed identity, rate limiting, logging, backend services |
| Private enterprise deployment | Sensitive data and restricted access | Private Endpoints, VNet integration, managed identity, Key Vault, diagnostics |
Notes and examples
Hosting Service Selection
| Need | Prefer | Notes |
|---|---|---|
| Simple web API or web app | Azure App Service | Good default for managed hosting. |
| Lightweight event handler | Azure Functions | Good for triggers, ingestion, and glue logic. |
| Containerized microservice without Kubernetes overhead | Azure Container Apps | Good for scalable container workloads and background workers. |
| Full Kubernetes control | AKS | Use when orchestration requirements justify complexity. |
| Workflow orchestration with connectors | Logic Apps | Good for integration-heavy business workflows. |
| Durable stateful orchestration | Durable Functions pattern | Good for fan-out/fan-in and long-running workflows. |
Monitoring, Evaluation, and Optimization
What to Log and Monitor
| Signal | Why it matters |
|---|---|
| Request count, latency, failure rate | Basic reliability and user experience |
| HTTP status codes | Diagnose auth, throttling, quota, and service errors |
| Token usage | Cost, latency, and prompt optimization |
| Model deployment used | Compare quality, regressions, and routing decisions |
| Prompt/template version | Reproduce failures and evaluate changes |
| Retrieval query and document IDs | Debug grounding and citation issues |
| Safety filter outcomes | Monitor blocked content and false positives/negatives |
| Tool calls and results | Audit actions and diagnose agent behavior |
| User feedback | Build evaluation datasets and prioritize fixes |
| Indexer status | Detect ingestion failures and stale search data |
Notes and examples
Evaluation Metrics by Scenario
| Scenario | Evaluate |
|---|---|
| RAG answer generation | Groundedness, relevance, citation correctness, answer completeness, refusal when context is insufficient |
| Search retrieval | Precision, recall, top-k relevance, filter correctness, freshness |
| Classification | Accuracy, precision/recall, confusion matrix, threshold behavior |
| Extraction | Field-level accuracy, missing fields, table accuracy, format validity |
| Chat assistant | Task success, safety, latency, escalation rate, user satisfaction |
| Speech transcription | Word error patterns, domain vocabulary recognition, speaker/audio conditions |
| Document extraction | Model confidence, field accuracy, page/layout handling, exception routing |
Optimization Levers
| Problem | First levers to try |
|---|---|
| High latency | Smaller/faster model, shorter prompts, fewer retrieved chunks, caching, streaming responses, async processing |
| High cost | Token reduction, response length limits, model selection, cache repeated answers, batch offline tasks |
| Poor grounding | Improve chunking, add metadata, hybrid search, semantic ranking, better prompt constraints |
| Poor extraction | Use purpose-built service, add examples, validate schema, choose custom model when prebuilt fails |
| Frequent throttling | Backoff/retry, queue requests, smooth traffic, request capacity planning |
| Inconsistent output | Lower temperature, structured output, validation/retry, clearer instructions |
| Stale answers | More frequent indexing, event-driven ingestion, freshness filters |
Troubleshooting Reference
| Symptom | Likely cause | Check |
|---|---|---|
| 401 Unauthorized | Missing/invalid credential | Endpoint, key/token, managed identity configuration |
| 403 Forbidden | Authenticated but not authorized | RBAC role, data-plane permission, storage/search permissions |
| 404 deployment not found | Wrong Azure OpenAI deployment name or endpoint | Resource endpoint, deployment name, region, API version |
| 429 throttling | Too many requests or capacity pressure | Retry-after handling, exponential backoff, queueing, traffic smoothing |
| 5xx service errors | Transient platform/backend issue | Retry with backoff, circuit breaker, monitor service health |
| Vector search returns no results | Wrong field, missing vectors, dimension mismatch, bad embeddings | Index schema, embedding model, vector field config, indexed documents |
| Answers hallucinate | Weak retrieval, prompt allows unsupported claims, no refusal rule | Retrieved chunks, citations, system instruction, evaluation set |
| Correct document not retrieved | Chunking/indexing/query mismatch | Chunk size, metadata filters, hybrid search, analyzers, synonyms |
| Citations are wrong | Source metadata not stored or chunk mapping incorrect | sourceUri, page/section fields, projection logic |
| Indexer fails | Data source permissions, unsupported file, skill error, mapping issue | Indexer execution history and skillset outputs |
| Private endpoint connection fails | DNS or network routing issue | Private DNS zone, VNet links, firewall, public access setting |
| Document fields missing | Prebuilt model mismatch or custom model undertrained | Document type, sample quality, confidence scores |
| CLU predicts wrong intent | Overlapping intents or weak utterance examples | Training data balance, labels, examples, thresholds |
| Speech transcription poor | Audio quality, noise, vocabulary, accent, wrong language | Audio preprocessing, custom speech, language config |
| Output JSON invalid | Model not constrained or schema too complex | Structured output, validation, repair/retry logic |
| Tool call unsafe or incorrect | Model over-selected tool or bad arguments | Tool allowlist, argument validation, user authorization |
Common Exam Traps
- Choosing Azure Machine Learning when a prebuilt Azure AI service already solves the task.
- Choosing OCR when the requirement is structured form or table extraction; use Document Intelligence.
- Treating a system prompt as a security control. It is guidance, not enforcement.
- Letting the LLM decide whether a user is authorized to see retrieved content. Filter before retrieval or before prompt assembly.
- Forgetting that Azure OpenAI apps call a deployment name, not just a model family.
- Assuming embeddings generate answers. Embeddings support similarity search; a generative model writes the answer.
- Ignoring metadata fields needed for filters, citations, freshness, and access control.
- Using only vector search when exact IDs, codes, or names are important; consider hybrid search.
- Assuming indexers run continuously. Understand scheduled, on-demand, and event-driven ingestion patterns.
- Sending secrets, raw credentials, or excessive retrieved data into prompts.
- Confusing management-plane RBAC with data-plane permissions.
- Skipping retries and backoff for throttling and transient service failures.
- Choosing the largest model automatically instead of balancing quality, latency, and cost.
- Treating content filters as a full responsible AI program. They are one layer.
Scenario Answer Checklist
When you see an AI-200 scenario, identify:
- Input type: text, image, document, audio, structured data, or mixed.
- Task type: generate, retrieve, classify, extract, translate, transcribe, moderate, or train.
- Data source: static, frequently updated, private, user-specific, or public.
- Best service: prebuilt Azure AI service, Azure OpenAI, Azure AI Search, Azure ML, or a combination.
- Security model: managed identity, RBAC, Key Vault, private endpoint, access trimming.
- Runtime pattern: synchronous API, async queue, batch job, bot, web app, or containerized service.
- Quality controls: evaluation set, citations, validation, thresholds, human review.
- Operations: logging, monitoring, retries, throttling, cost/latency optimization.
- Responsible AI controls: content safety, privacy, fairness, transparency, escalation.
High-yield domain map
| Area | What to know quickly | Common exam-style decision |
|---|---|---|
| Azure AI service selection | Match the requirement to the correct managed service | “Which service should be used for text extraction, translation, search, chat, speech, or image analysis?” |
| Azure OpenAI and generative AI | Prompts, deployments, tokens, embeddings, RAG, grounding, safety | “How should an app generate accurate responses using enterprise data?” |
| Azure AI Search | Indexes, indexers, data sources, skillsets, vector search, semantic ranking | “How should documents be prepared, indexed, and retrieved for an AI app?” |
| Language services | Sentiment, key phrases, entity recognition, summarization, custom text classification | “Which prebuilt or custom NLP capability fits the requirement?” |
| Vision services | Image analysis, OCR, object detection, custom vision scenarios | “Is prebuilt image analysis enough, or is custom training needed?” |
| Speech services | Speech-to-text, text-to-speech, translation, speaker-related scenarios | “Which speech capability supports the user interaction?” |
| Document Intelligence | Structured extraction from forms, invoices, receipts, contracts, custom documents | “How do you extract fields from semi-structured or structured documents?” |
| Bot and conversational apps | Channels, state, orchestration, authentication, handoff | “How should the user-facing AI interaction be implemented?” |
| Security and access | Microsoft Entra ID, managed identities, keys, Key Vault, RBAC, private networking | “How should an app securely call an AI service?” |
| Responsible AI | Safety, content filtering, transparency, evaluation, human review | “How do you reduce risk from harmful, biased, or ungrounded output?” |
| Monitoring and operations | Logging, metrics, alerts, tracing, cost and latency review | “How do you diagnose failures or poor model responses?” |
Azure OpenAI review
Core concepts to recognize
| Concept | Quick meaning | Candidate trap |
|---|---|---|
| Model | The underlying capability family | Do not assume the model name alone controls app behavior; prompt, data, parameters, and retrieval matter |
| Deployment | Azure-hosted deployment of a selected model | Apps call a deployment name, not just a generic model label |
| Prompt | Instructions and context sent to the model | Vague prompts cause inconsistent output |
| System message | High-priority behavioral instruction | Do not put policy-critical instructions only in user text |
| Temperature | Controls randomness | Higher is not “better”; use lower values for deterministic business answers |
| Max tokens | Limits generated output | Too low truncates answers; too high may increase cost/latency |
| Embedding | Numeric representation of semantic meaning | Used for similarity search, clustering, and retrieval |
| RAG | Retrieval-augmented generation | Preferred for grounding answers in changing enterprise content |
| Fine-tuning | Adjusting model behavior using training examples | Not a replacement for retrieving current facts |
| Content filter | Safety layer for harmful content categories | Does not guarantee factual accuracy |
| Function/tool calling | Model selects structured calls to external tools | App still validates inputs, authorizes actions, and handles errors |
Notes and examples
RAG decision path
flowchart TD
A[User asks a question] --> B{Need private or current knowledge?}
B -- No --> C[Prompt model with instructions]
B -- Yes --> D[Retrieve relevant content]
D --> E[Use Azure AI Search or another retrieval layer]
E --> F[Add retrieved passages to prompt]
F --> G[Generate grounded answer]
G --> H{Need citations or auditability?}
H -- Yes --> I[Return sources and confidence cues]
H -- No --> J[Return concise answer]
RAG implementation checklist
| Step | Key review point | Common mistake |
|---|---|---|
| Ingest data | Pull content from approved sources | Indexing stale, duplicate, or unauthorized data |
| Chunk documents | Split into meaningful sections | Chunks too small lose context; chunks too large reduce retrieval precision |
| Generate embeddings | Use consistent embedding model and dimensions | Mixing incompatible embeddings in one vector field |
| Build index | Include text, metadata, vector fields, filters | Forgetting metadata needed for security trimming or filtering |
| Retrieve | Use keyword, vector, semantic, or hybrid retrieval | Assuming vector search always beats keyword search |
| Ground prompt | Provide relevant snippets and instructions | Passing too much irrelevant context to the model |
| Generate answer | Ask for concise, sourced, bounded responses | Letting the model answer beyond supplied evidence |
| Evaluate | Test accuracy, citation quality, latency, cost, safety | Testing only happy-path questions |
Prompt design review
Strong prompts usually include:
- Role or task: “You are an assistant that answers from provided policy excerpts.”
- Boundaries: “If the answer is not in the provided context, say you do not know.”
- Output format: JSON, table, bullet list, short paragraph, or classification label.
- Grounding rules: Use only retrieved content when required.
- Safety rules: Avoid restricted content, unsafe advice, or sensitive data exposure.
- Examples: Few-shot examples for formatting or classification consistency.
Weak prompts often:
- Ask for broad expertise without source boundaries.
- Mix several tasks without ordering them.
- Fail to specify output format.
- Trust the model to infer compliance, privacy, or security rules.
- Include user-controlled content in a way that enables prompt injection.
Generative AI traps
| Trap | Why it matters |
|---|---|
| “Fine-tune the model so it knows company documents” | Fine-tuning changes behavior; RAG is usually the pattern for private, current knowledge |
| “Use a higher temperature for more accurate answers” | Higher temperature increases variation; it does not improve factuality |
| “Content filtering proves the answer is correct” | Safety filtering and factual grounding are different controls |
| “Put all documents into the prompt” | Token limits, cost, latency, and relevance suffer |
| “The model should enforce authorization” | Authorization must be implemented by the application and data layer |
| “Embeddings are encrypted text” | Embeddings are vector representations, not a replacement for data protection |
| “Vector search requires no metadata” | Metadata is critical for filters, permissions, freshness, and source display |
Azure AI Search review
Core objects
| Object | Purpose | Review note |
|---|---|---|
| Data source | Defines where source data comes from | Often paired with an indexer |
| Index | Searchable structure containing fields | Field design affects filtering, sorting, scoring, faceting, and retrieval |
| Indexer | Crawls data and populates index | Useful for supported data sources and scheduled updates |
| Skillset | Enrichment pipeline during indexing | Can extract text, entities, key phrases, or custom enrichments |
| Field | Searchable, filterable, sortable, facetable, retrievable attributes | Attributes must match query requirements |
| Analyzer | Controls tokenization for text search | Important for language-specific or custom search behavior |
| Vector field | Stores embedding vectors | Dimensions must match embedding output |
| Semantic ranking | Improves ranking using semantic understanding | Not the same thing as vector search |
| Synonym map | Expands equivalent terms | Helps lexical search, not a substitute for embeddings |
Notes and examples
Search pattern comparison
| Pattern | Best for | Limitation |
|---|---|---|
| Keyword search | Exact terms, filters, known terminology | Misses semantically similar wording |
| Vector search | Meaning-based similarity | May retrieve semantically related but contextually wrong chunks |
| Semantic ranking | Improving relevance and captions/answers | Depends on candidate results and supported configuration |
| Hybrid search | Combining lexical and vector strengths | Requires tuning and evaluation |
| Filtered search | Tenant, department, date, access control, product | Filters must be represented as fields |
| Faceted search | User-driven narrowing | Fields must be facetable |
AI Search implementation traps
- Mark fields correctly for searchable, filterable, sortable, facetable, and retrievable behavior.
- Do not expect to filter on a field that was not configured for filtering.
- Do not expose documents from unauthorized tenants; implement security trimming.
- Do not assume indexers support every source or transformation requirement.
- Use skillsets when enrichment is needed during indexing.
- Validate chunking and retrieval quality with realistic user questions.
- Monitor index freshness if source documents change frequently.
- Use metadata such as source URI, title, document type, timestamp, tenant, department, and permissions.
Vision and OCR review
| Requirement | Likely approach | Key distinction |
|---|---|---|
| Describe image content | Azure AI Vision image analysis | General image understanding |
| Read text from images | OCR capability | Text extraction, not structured field extraction |
| Detect objects in images | Vision object detection or custom model | Use custom when domain-specific objects are needed |
| Classify specialized images | Custom vision-style approach | Requires labeled training data |
| Extract fields from invoices, receipts, IDs, or forms | Azure AI Document Intelligence | Structured document extraction |
| Process scanned documents | Document Intelligence or OCR depending on structure | Decide whether fields/tables/layout matter |
Vision traps
- OCR extracts text; it does not automatically understand business meaning.
- Object detection locates objects; classification labels an image.
- Custom models require representative labeled data.
- Image quality, resolution, orientation, and handwriting affect accuracy.
- If the requirement includes tables, key-value pairs, or form fields, consider Document Intelligence instead of generic OCR.
Bot and conversational app review
| Concept | What to know | Common trap |
|---|---|---|
| Channel | Where users interact, such as web chat or collaboration tools | Channel configuration is separate from AI reasoning |
| Conversation state | Stored context across turns | Do not rely only on model memory for durable state |
| Dialog/orchestration | Controls conversation flow | Generative output still needs app-level control for business processes |
| Authentication | Identifies user | Needed before accessing private data |
| Authorization | Determines what data/actions user can access | Must be enforced outside the model |
| Handoff | Escalation to human or another workflow | Important for low confidence or high-risk cases |
Notes and examples
Conversational design rules
- Use the model for natural language understanding and generation, not for unchecked business authority.
- Store durable state in application storage where required.
- Validate user identity before retrieving private data.
- Apply security trimming before retrieved content reaches the prompt.
- Use structured tool/function calls for actions such as ticket creation, lookup, or transaction submission.
- Log enough context to troubleshoot without exposing sensitive information unnecessarily.
Responsible AI review
| Risk | Control |
|---|---|
| Hallucinated answers | Grounding, citations, refusal rules, evaluation |
| Harmful content | Content filters, safety classifiers, escalation paths |
| Biased or unfair output | Diverse test cases, monitoring, human review |
| Privacy leakage | Data minimization, redaction, access control |
| Prompt injection | Input isolation, instruction hierarchy, retrieval sanitization |
| Overreliance | Confidence cues, source links, human approval for high-risk cases |
| Poor transparency | Explain limitations and show sources where appropriate |
| Unsafe automation | Require approval for sensitive actions |
Responsible AI traps
- Safety filtering is not a complete responsible AI program.
- Grounded generation can still produce wrong synthesis if retrieval is poor.
- Human review should be targeted to risk, uncertainty, or business impact.
- Evaluation should include adversarial, ambiguous, and out-of-scope prompts.
- Prompt injection can come from users, documents, web pages, or tool outputs.
- Do not expose chain-of-thought-style hidden reasoning; provide concise explanations or sources instead.
Application integration review
Common architecture patterns
| Pattern | When used | Key implementation concern |
|---|---|---|
| Direct API call from backend | Simple app-to-AI service integration | Secure credentials and handle retries |
| Serverless processing | Event-driven document/audio/image processing | Manage timeout, scaling, and idempotency |
| Web app with chat backend | Interactive generative AI experience | Session state, auth, retrieval, streaming |
| RAG pipeline | Private knowledge Q&A | Ingestion, chunking, embeddings, index quality |
| Batch enrichment | Large-scale document processing | Throughput, retry, cost, monitoring |
| Tool-using agent | Model calls app functions | Validate tool input/output and permissions |
| Human-in-the-loop workflow | High-risk or low-confidence decisions | Queue design, audit trail, reviewer UI |
Notes and examples
API and SDK reminders
- Know whether the scenario is asking for management-plane work, such as provisioning resources, or data-plane work, such as calling a model or analyzing a document.
- Handle transient failures with retries and backoff.
- Use regional endpoints and deployment names correctly.
- Do not expose service keys in client-side code.
- Validate request size, supported file formats, and rate/throughput limits in design scenarios.
- Use structured outputs when downstream systems need reliable parsing.
- Log correlation IDs and request metadata for troubleshooting.
Deployment and operations review
| Concern | What to review |
|---|---|
| Environment separation | Dev/test/prod resources, separate keys, separate indexes, safe rollout |
| Configuration | Endpoints, deployment names, model versions, index names, thresholds |
| Observability | Metrics, logs, traces, alerts, failure rates, latency |
| Quality evaluation | Golden datasets, regression tests, prompt/version comparisons |
| Cost control | Token usage, batch size, index size, unnecessary retrieval, logging volume |
| Latency | Model choice, streaming, caching, retrieval time, network path |
| Resilience | Retries, fallback messages, circuit breakers, graceful degradation |
| Compliance support | Audit logs, access records, retention, data handling controls |
Notes and examples
Troubleshooting signals
| Symptom | Likely area to inspect |
|---|---|
| Answers are fluent but wrong | Retrieval quality, prompt grounding, source freshness |
| Answers omit known documents | Indexing, chunking, filters, permissions, vector generation |
| Search results ignore filters | Field configuration or query construction |
| Model output is truncated | Token limits or output configuration |
| Responses vary too much | Temperature, prompt specificity, missing examples |
| App returns unauthorized errors | Identity, RBAC, service permissions, endpoint configuration |
| Works locally but not in Azure | Managed identity, firewall, private endpoint, app settings |
| High latency | Retrieval pipeline, model selection, response length, network path |
| High cost | Excessive context, large outputs, repeated calls, inefficient indexing |
| Poor document extraction | Wrong model, document quality, unsupported layout, insufficient training data |
High-yield comparison: RAG vs fine-tuning vs prompt engineering
| Need | Prompt engineering | RAG | Fine-tuning |
|---|---|---|---|
| Improve formatting | Strong | Moderate | Possible but often unnecessary |
| Enforce response style | Strong | Moderate | Strong for repeated style patterns |
| Use current private data | Weak | Strong | Weak |
| Cite source documents | Weak | Strong | Weak |
| Reduce hallucinations over enterprise content | Moderate | Strong | Limited |
| Teach domain-specific behavior | Moderate | Moderate | Strong when examples are stable |
| Avoid retraining when documents change | Strong | Strong | Weak |
| Add business rules | Moderate | Strong when combined with app logic | Moderate |
| Best first step for most apps | Yes | Yes when knowledge grounding is required | No, only when justified |
High-yield comparison: Azure AI Search vs database search
| Requirement | Azure AI Search | Traditional database query |
|---|---|---|
| Full-text search | Strong | Limited or add-on dependent |
| Relevance ranking | Strong | Usually not the primary design |
| Vector similarity | Strong when configured | Not always native |
| Facets and search UX | Strong | Requires custom implementation |
| Transaction processing | Not primary purpose | Strong |
| Relational joins | Not primary purpose | Strong |
| RAG retrieval | Strong fit | Possible but often less specialized |
| Filtering by metadata | Strong if fields are configured | Strong |
| Frequent transactional updates | Consider carefully | Strong |
Common candidate mistakes
Service choice mistakes
- Choosing Azure OpenAI for every text problem, even when a prebuilt Language capability is simpler.
- Choosing generic OCR when the scenario requires structured field extraction from forms.
- Choosing fine-tuning when the requirement is current private knowledge.
- Choosing Speech services for conversation intelligence without adding language understanding or generative logic.
- Choosing AI Search when the task is transactional database lookup rather than relevance-based search.
Notes and examples
Architecture mistakes
- Putting service keys in browser or mobile client code.
- Forgetting managed identity and least privilege.
- Building RAG without document-level authorization.
- Treating embeddings as a database replacement.
- Ignoring index field attributes needed for filters and facets.
- Sending too much irrelevant context to the model.
- Skipping human review for high-impact automated decisions.
Exam-reading mistakes
- Missing qualifiers like prebuilt, custom, real-time, batch, private data, least privilege, low latency, or structured output.
- Answering for the most advanced technology instead of the simplest service that satisfies the requirement.
- Confusing safety, security, and correctness.
- Ignoring whether the task is ingestion, retrieval, generation, deployment, or monitoring.
- Overlooking that the app, not the model, must enforce identity, authorization, and business rules.
Fast decision rules
Use these quick rules when you are stuck between similar answers:
- Need enterprise Q&A over documents? Use RAG: Azure AI Search for retrieval plus Azure OpenAI for generation.
- Need current facts? Retrieve them; do not rely on model training.
- Need private data access control? Authenticate the user and security-trim before prompting.
- Need structured form fields? Use Document Intelligence, not just OCR.
- Need sentiment, entities, or key phrases? Use Azure AI Language prebuilt features unless the labels are custom.
- Need image labels or object detection? Use Vision capabilities; use custom only for domain-specific recognition.
- Need speech input or output? Use Speech services; combine with Language or Azure OpenAI for understanding and response generation.
- Need secure app-to-service access? Prefer managed identity and RBAC where supported.
- Need safer generative output? Combine grounding, safety filters, evaluation, and human review.
- Need reliable downstream automation? Use structured outputs and validate before action.
Practice priorities for AI-200
Use IT Mastery practice to convert this review into exam readiness. Prioritize original practice questions in this order:
| Priority | Topic drill | What to prove |
|---|---|---|
| 1 | Service selection | You can choose the right Azure AI service from scenario clues |
| 2 | Azure OpenAI basics | You understand deployments, prompts, tokens, parameters, and safety |
| 3 | RAG and AI Search | You can design ingestion, indexing, embeddings, retrieval, and grounding |
| 4 | Security | You can pick managed identity, Key Vault, RBAC, and least-privilege patterns |
| 5 | Document Intelligence | You can distinguish OCR, layout, prebuilt extraction, and custom models |
| 6 | Language, Vision, Speech | You can map requirements to prebuilt and custom AI capabilities |
| 7 | Responsible AI | You can identify controls for hallucination, harm, privacy, and human review |
| 8 | Monitoring and troubleshooting | You can diagnose latency, wrong answers, auth errors, stale indexes, and cost issues |
| 9 | Mixed mock exams | You can switch topics quickly under time pressure |
| 10 | Detailed explanations | You can explain why distractors are wrong, not just why the answer is right |
Final pre-practice checklist
Before starting a mock exam, make sure you can answer these without notes:
- Which service extracts structured fields from invoices or forms?
- Which pattern supports private document Q&A with source grounding?
- Why is RAG usually different from fine-tuning?
- What is the role of embeddings in vector search?
- What index field settings are needed for filtering, sorting, faceting, and retrieval?
- How do you prevent users from seeing unauthorized documents in a chatbot?
- When should you use prebuilt Language capabilities instead of Azure OpenAI?
- What is the difference between OCR and Document Intelligence extraction?
- How should an Azure-hosted app authenticate to AI services securely?
- What controls reduce hallucination, harmful output, and prompt injection?
- What should you inspect when answers are wrong but fluent?
- What should you inspect when an app works locally but fails after deployment?