🔒 Guided

Pre-launch preview. Authorised access only.

Incorrect code

Guided by A Guide to Cloud
Explore AB-900 AI-901
Guided DP-800 Domain 3
Domain 3 — Module 3 of 7 43%
24 of 28 overall

DP-800 Study Guide

Domain 1: Design and Develop Database Solutions

  • Table Design: Columns, Types, and Indexes Free
  • Constraints: Protecting Your Data Free
  • Specialised Tables and Graph Queries Free
  • JSON in SQL: Store, Query, and Index
  • Programmability: Views, Functions, Procedures, and Triggers
  • Advanced T-SQL: CTEs, Windows, and Correlated Queries
  • Pattern Power: Regular Expressions in T-SQL
  • Fuzzy String Matching: Finding Similar Text
  • AI-Assisted SQL with GitHub Copilot Free
  • MCP: Connecting AI to Your Database

Domain 2: Secure, Optimize, and Deploy Database Solutions

  • Encryption: Always Encrypted and Column-Level
  • Dynamic Data Masking and Row-Level Security
  • Permissions, Auditing, and Passwordless Access
  • Transaction Isolation and Concurrency
  • Query Performance: Plans, DMVs, and Query Store
  • SQL Database Projects: Build and Validate
  • CI/CD Pipelines for SQL Databases
  • Data API Builder: REST and GraphQL from SQL
  • Securing AI and API Endpoints
  • Change Detection: CES, CDC, and Change Tracking
  • Azure Integration and Monitoring

Domain 3: Implement AI Capabilities in Database Solutions

  • External AI Models: Choose, Create, Manage
  • Embeddings: Design, Chunk, and Generate
  • Choose Your Search Strategy
  • Vector Data: Types, Indexes, and Storage
  • Vector Search: Distance, ANN, and ENN
  • Hybrid Search and Reciprocal Rank Fusion
  • RAG with SQL: Prompt, Process, Respond

DP-800 Study Guide

Domain 1: Design and Develop Database Solutions

  • Table Design: Columns, Types, and Indexes Free
  • Constraints: Protecting Your Data Free
  • Specialised Tables and Graph Queries Free
  • JSON in SQL: Store, Query, and Index
  • Programmability: Views, Functions, Procedures, and Triggers
  • Advanced T-SQL: CTEs, Windows, and Correlated Queries
  • Pattern Power: Regular Expressions in T-SQL
  • Fuzzy String Matching: Finding Similar Text
  • AI-Assisted SQL with GitHub Copilot Free
  • MCP: Connecting AI to Your Database

Domain 2: Secure, Optimize, and Deploy Database Solutions

  • Encryption: Always Encrypted and Column-Level
  • Dynamic Data Masking and Row-Level Security
  • Permissions, Auditing, and Passwordless Access
  • Transaction Isolation and Concurrency
  • Query Performance: Plans, DMVs, and Query Store
  • SQL Database Projects: Build and Validate
  • CI/CD Pipelines for SQL Databases
  • Data API Builder: REST and GraphQL from SQL
  • Securing AI and API Endpoints
  • Change Detection: CES, CDC, and Change Tracking
  • Azure Integration and Monitoring

Domain 3: Implement AI Capabilities in Database Solutions

  • External AI Models: Choose, Create, Manage
  • Embeddings: Design, Chunk, and Generate
  • Choose Your Search Strategy
  • Vector Data: Types, Indexes, and Storage
  • Vector Search: Distance, ANN, and ENN
  • Hybrid Search and Reciprocal Rank Fusion
  • RAG with SQL: Prompt, Process, Respond
Domain 3: Implement AI Capabilities in Database Solutions Premium ⏱ ~12 min read

Choose Your Search Strategy

Compare full-text search, semantic vector search, and hybrid search — understand when each excels and how to implement full-text search as a foundation for intelligent queries.

Three ways to search your data

☕ Simple explanation

Imagine searching for a book in a library.

Full-text search is like the card catalog — you look up exact words and get books that contain those words. Search for “machine learning” and you get every book with those exact words. Vector search is like asking a librarian: “I want books about teaching computers to learn from data” — the librarian understands the meaning and finds relevant books even if they never mention “machine learning.” Hybrid search combines both: check the catalog AND ask the librarian, then merge the results.

SQL Server supports three search paradigms: full-text search (keyword-based, inverted index), vector search (semantic similarity using embeddings), and hybrid search (combining both with score fusion). The exam tests your ability to choose the right approach for a given scenario and implement full-text search as a foundation.

The search strategy decision

Three search strategies — choose based on your query patterns
FeatureFull-Text SearchVector SearchHybrid Search
Matches onExact words and word forms (stemming)Semantic meaning (embeddings)Both keywords AND meaning
Query exampleCONTAINS(Description, 'wireless mouse')VECTOR_SEARCH(embedding, @queryVector, 10)Full-text + vector scores fused with RRF
Finds synonyms?Only with thesaurus configYes — automaticallyYes
Handles typos?No (exact match)Somewhat (embedding similarity)Better than either alone
SpeedVery fast (inverted index)Fast (vector index, ANN)Moderate (two indexes)
Setup complexityLow — full-text catalog + indexMedium — embeddings + vector indexHigh — both systems + fusion logic
Best forExact keyword search, known terminologyNatural language queries, semantic similarityProduction search systems needing both precision and recall

Decision guide

ScenarioBest StrategyWhy
Users search by product SKU or exact nameFull-textExact keyword matching is fastest and most precise
Users describe what they want in natural languageVectorSemantic understanding matches intent, not just words
E-commerce search with millions of productsHybridCombines keyword precision with semantic recall
Log analysis searching for error codesFull-textExact pattern matching, no semantic interpretation needed
Customer support finding similar past ticketsVectorTickets with the same issue may use completely different words
Legal document discoveryHybridNeed both exact legal terms AND conceptually similar clauses

Implementing full-text search

Full-text search uses an inverted index — a data structure that maps words to the rows containing them.

Setup

-- Step 1: Create a full-text catalog
CREATE FULLTEXT CATALOG ProductCatalog AS DEFAULT;

-- Step 2: Create a full-text index on the table
CREATE FULLTEXT INDEX ON Products (
    Name LANGUAGE 1033,           -- English
    Description LANGUAGE 1033
)
KEY INDEX PK_Products              -- Must reference a unique index
ON ProductCatalog
WITH (CHANGE_TRACKING AUTO);       -- Auto-update when data changes

Querying with CONTAINS and FREETEXT

-- CONTAINS: precise keyword matching with Boolean operators
SELECT Name, Description
FROM Products
WHERE CONTAINS(Description, '"wireless mouse" AND bluetooth');

-- CONTAINS with proximity
SELECT Name FROM Products
WHERE CONTAINS(Description, 'NEAR((battery, life), 5)');

-- FREETEXT: natural language (less precise, broader results)
SELECT Name, Description
FROM Products
WHERE FREETEXT(Description, 'lightweight portable laptop for travel');

Ranking with CONTAINSTABLE and FREETEXTTABLE

-- Get ranked results with relevance scores
SELECT p.Name, ft.RANK
FROM Products p
INNER JOIN CONTAINSTABLE(Products, Description, '"wireless" OR "bluetooth"') ft
    ON p.ProductId = ft.[KEY]
ORDER BY ft.RANK DESC;
💡 Exam tip: CONTAINS vs FREETEXT

CONTAINS = precise, supports Boolean operators (AND, OR, NOT, NEAR), wildcards, inflectional forms. Use when users know specific terms.

FREETEXT = natural language, automatically stems words and finds related terms. Use when users describe what they want conversationally.

The exam often presents a scenario where one is clearly better than the other based on query precision requirements.

💡 Scenario: Ingrid's document search at Nordic Shield

Nordic Shield Insurance has 3 million claims documents. Claim adjusters need two types of search:

  1. Find all claims mentioning a specific policy number → Full-text search (exact term matching)
  2. Find claims similar to the current claim → Vector search (semantic similarity)

Ingrid implements hybrid search — full-text for known identifiers, vector for conceptual similarity. When an adjuster searches “water damage kitchen renovation,” the system finds claims that match those keywords AND claims about “flood repair” or “plumbing leak restoration” that use different words but mean similar things.

Question

What is the main advantage of vector search over full-text search?

Click or press Enter to reveal answer

Answer

Vector search matches by semantic meaning, not exact words. A search for 'affordable laptop for students' can find products described as 'budget-friendly notebook for college' — even though they share no words in common. Full-text search would miss this because the keywords do not match.

Click to flip back

Question

What is a full-text catalog in SQL Server?

Click or press Enter to reveal answer

Answer

A full-text catalog is a logical container for full-text indexes. It organises indexes and manages the population (building) of the inverted index. Each database can have multiple catalogs, and each table's full-text index belongs to one catalog.

Click to flip back

Question

What is the difference between CONTAINS and FREETEXT?

Click or press Enter to reveal answer

Answer

CONTAINS provides precise keyword matching with Boolean operators (AND, OR, NOT, NEAR) and wildcard support. FREETEXT performs natural language matching — it automatically applies stemming and finds related terms. CONTAINS is for precision, FREETEXT is for recall.

Click to flip back

Knowledge Check

Leo at SearchWave is building product search. Users type queries like 'comfortable shoes for running on trails.' Many relevant products are described with different words like 'cushioned trail runners' or 'off-road athletic footwear.' Which search strategy should Leo implement?

🎬 Video coming soon

Next up: Vector Data: Types, Indexes, and Storage — design your database for vector data with the right data types, indexes, and storage strategies.

← Previous

Embeddings: Design, Chunk, and Generate

Next →

Vector Data: Types, Indexes, and Storage

Guided

I learn, I simplify, I share.

A Guide to Cloud YouTube Feedback

© 2026 Sutheesh. All rights reserved.

Guided is an independent study resource and is not affiliated with, endorsed by, or officially connected to Microsoft. Microsoft, Azure, and related trademarks are property of Microsoft Corporation. Always verify information against Microsoft Learn.