Microsoft certification · Exam DP-800

DP-800 Mock Exam

Developing AI-Enabled Database Solutions

Free DP-800 questions on Topic 1: Contoso Case Study, each with the answer and an explanation.

20 questions · 34 minutes · free, no sign-up

Topic 1: Contoso Case Study questions

1–2 of 2 free
Question 1 Choose 1
You need to recommend a solution for the development team to retrieve the live metadata. The solution must meet the development requirements. What should you include in the recommendation?
Show answerHide answer

Correct answer: C Use an MCP server

Explanation

Explanation:

This question tests how development teams using GitHub Copilot (typically in Visual Studio Code) can give the AI assistant accurate, up-to-date knowledge of a database’s structure. The key requirement is live metadata—current tables, columns, relationships, indexes, and related objects—rather than a static or outdated snapshot. Model Context Protocol (MCP) is the standardized mechanism that lets Copilot invoke external tools to query database metadata in real time. Other approaches rely on exported files or repository contents that quickly become stale.

✅ Correct Option:

C. Use an MCP server
An MCP server exposes tools that GitHub Copilot can call to retrieve the current database schema, objects, and related metadata on demand. This satisfies the need for live information because the assistant queries the actual connected database (or a governed endpoint such as SQL MCP Server built on Data API builder) instead of relying on previously supplied static content. The approach aligns with the DP-800 skills for configuring MCP tool options and connecting to MCP endpoints for Microsoft SQL Server and Fabric Lakehouse environments.

❌ Incorrect options:

A. Export the database schema as a .dacpac file and load the schema into a GitHub Copilot context window.
A .dacpac is a static package that reflects the schema only at the moment it was exported. Once loaded into the context window it becomes fixed; any later database changes are invisible to Copilot. It therefore fails the live-metadata requirement.

B. Add the schema to a GitHub Copilot instruction file.
Instruction files (for example, copilot-instructions.md) supply permanent guidance or sample text. They are static documents and cannot refresh themselves when the underlying database schema changes, so they do not provide live metadata.

D. Include the database project in the code repository.
A database project in the repository gives Copilot access to the source definitions that exist in source control. Those definitions represent a point-in-time version of the schema and are not automatically synchronized with the live database, so they do not meet the live-metadata requirement.

🔧 Reference:
→ Connect to MCP Server Endpoints for SQL Server and Fabric Lakehouse — Official Microsoft Learn unit explaining how MCP servers supply live database metadata to AI assistants such as GitHub Copilot.

→ SQL MCP Server documentation — Microsoft documentation on using Model Context Protocol to enable secure, real-time interaction between AI agents and SQL databases.
Question 2 Choose 1
You need to enable similarity search to provide the analysts with the ability to retrieve the most relevant health summary reports. The solution must minimize latency. What should you include in the solution?
Show answerHide answer

Correct answer: D a vector index on the Embedding* (vector (1536)) column

Explanation

Explanation:

This question tests the ability to enable similarity search over vector embeddings while minimizing latency. The key is choosing an index type built specifically for approximate nearest neighbor (ANN) searches on high-dimensional vector columns. SQL Server 2025 and Azure SQL support native vector indexes designed for this exact workload, whereas traditional indexes cannot efficiently process vector distance calculations.

✔️ Correct Option:

D. a vector index on the Embedding (vector (1536)) column
A vector index enables approximate nearest neighbor (ANN) search, which returns the most similar embeddings without scanning every row. Microsoft documentation states that vector indexes work with VECTOR_SEARCH to identify similar embeddings efficiently, and the query optimizer automatically selects the ANN index strategy when available. This directly satisfies both the similarity search requirement and the latency minimization goal.

❌ Incorrect Options:

A. a computed column that manually compares vector values
A computed column performs row-by-row calculations at query time, forcing a full table scan for every similarity comparison. This approach cannot scale and adds significant latency as the dataset grows. It also does not leverage any indexing mechanism optimized for vector distance operations.

B. a standard nonclustered index on the Fmbeddings (vector (1536)) column
Standard B-tree indexes are designed for equality and range comparisons on scalar values, not for calculating distances between high-dimensional vectors. A nonclustered index on a vector column cannot accelerate similarity search and may not even be supported for the vector data type in this context.

C. a full-text index on the Fmbeddings (vector (1536)) column
Full-text indexes are built for keyword-based searches over character data, not semantic similarity between embeddings. They cannot interpret vector distance metrics or perform ANN search. Full-text indexes apply to columns like varchar or nvarchar, not the vector data type.

🔧 Reference:
→ CREATE VECTOR INDEX (Transact-SQL) — Confirms vector indexes are created for similarity search on vector columns and work with VECTOR_SEARCH for efficient ANN queries.

→ Implement vector data types and vector search — Explains the vector data type and how vector search enables semantic similarity scenarios in SQL Server.

That's the last free question in Topic 1: Contoso Case Study

You've seen the free 30% (2 of 9 questions). Full access unlocks every question and full-length DP-800 mock exams (60 questions, 100 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the DP-800 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real DP-800 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full DP-800 mock exam
  • 60questions per mock
  • 100 mintime limit
  • 87questions in the bank
  • Newmock on every attempt