Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Free Practice Questions for the Microsoft Certified: SQL AI Developer DP-800 Exam (2026 Updated)

At Marks4sure, we are dedicated to providing IT professionals with the most accurate and reliable preparation materials for the Microsoft DP-800 exam. To support your certification journey, we have made a selection of our premium 2026 Microsoft Certified: SQL AI Developer practice questions and answers available completely free. You can take this practice test as many times as you need. Every question includes a detailed, expertly verified explanation to ensure you fully grasp the core security concepts before test day.

Questions 4

You have an Azure SQL database named DB1 that contains two tables named knowledgebase and query_cache. knowledge_base contains support articles and embeddings. query_cache contains chat questions, responses, and embeddings DB1 supports an Al-enabled chat agent.

You need to design a solution that meets the following requirements:

• Serializes the retrieved rows from knowledee_base

• Extracts the answer field from the response

• Extracts the embeddings to store in query_cache

You will call the external large language model (LLM) by using the sp_irwoke_external_re standpoint stored procedure.

Which Transact-SGL commands should you use for each requirement? To answer, drag the appropriate commands to the correct requirements. Each command may be used once, mote than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

DP-800 Question 4

Options:

Buy Now
Questions 5

You have an Azure SQL database named SalesDB on a logical server named sales-sql01.

You have an Azure App Service web app named OrderApi that connects to SalesDB by using SQL authentication.

You enable a user-assigned managed identity named OrderApi-Id for OrderApi.

You need to configure OrderApi to connect to SalesDB by using Microsoft Entra authentication. The managed identity must have read and write permissions to SalesDB.

Which Transact-SQL statements should you run in SalesDB?

Options:

A.

CREATE LOGIN [OrderApi-Id] FROM EXTERNAL PROVIDER;

ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id];

ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

B.

CREATE USER [OrderApi-Id] WITH PASSWORD = ' P@ssw0rd! ' ;

ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id];

ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

C.

CREATE USER [OrderApi-Id] FROM EXTERNAL PROVIDER;

ALTER ROLE db_datareader ADD MEMBER [OrderApi-Id];

ALTER ROLE db_datawriter ADD MEMBER [OrderApi-Id];

D.

CREATE LOGIN [OrderApi-Id] WITH PASSWORD = ' P@ssw0rd! ' ;

ALTER SERVER ROLE sysadmin ADD MEMBER [OrderApi-Id];

Buy Now
Questions 6

You have a SQL database in Microsoft Fabric that contains a table named dbo.Products. dbo.Products contains product catalog data.

You need to create a stored procedure that performs hybrid search. The solution must meet the following requirements:

• Use approximate nearest neighbor (ANN) to retrieve the top 20 candidate products.

• Re-rank only the candidates that also match a full-text query.

• Generate the query embedding.

How should you complete the Transact-SQL code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-800 Question 6

Options:

Buy Now
Questions 7

Vou have a Microsoft Fabric workspace named Workspace1 that contains a SQL database named SalesDB and an API for GraphQL tern named SalesApi.

You have a Microsoft Entra group named SqlUsers.

From Workspace1, you assign permission to SalesApi as shown in the following exhibit.

DP-800 Question 7

The connection to SalesDB has the connectivity option configured as shown in the following exhibit.

DP-800 Question 7

SqlUsers has the Viewer role for Workspace1.

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

DP-800 Question 7

Options:

Buy Now
Questions 8

You have a Microsoft SQL Server 2025 instance that has a managed identity enabled.

You have a database that contains a table named dbo.ManualChunks. dbo.ManualChunks contains product manuals.

A retrieval query already returns the top five matching chunks as nvarchar(max) text.

You need to call an Azure OpenAI REST endpoint for chat completions. The solution must provide the highest level of security.

You write the following Transact-SG1 code.

DP-800 Question 8

What should you insert at line 02?

A)

DP-800 Question 8

B)

DP-800 Question 8

C)

DP-800 Question 8

D)

DP-800 Question 8

E)

DP-800 Question 8

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Buy Now
Questions 9

You need to create a table in the database to store the telemetry data. You have the following Transact-SQL code.

DP-800 Question 9

DP-800 Question 9

Options:

Buy Now
Questions 10

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?

Options:

A.

a computed column that manually compares vector values

B.

a standard nonclustered index on the Fmbeddings (vector (1536)) column

C.

a full-text index on the Fmbeddings (vector (1536)) column

D.

a vector index on the Embedding* (vector (1536)) column

Buy Now
Questions 11

You need to recommend a solution that will resolve the ingestion pipeline failure issues. Which two actions should you recommend? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Options:

A.

Enable snapshot isolation on the database.

B.

Use a trigger to automatically rewrite malformed JSON.

C.

Add foreign key constraints on the table.

D.

Create a unique index on a hash of the payload.

E.

Add a check constraint that validates the JSON structure.

Buy Now
Questions 12

You have a SQL database in Microsoft Fabric that contains a table named dbo.Orders, dbo.Orders has a clustered index, contains three years of data, and is partitioned by a column named OrderDate by month.

You need to remove all the rows for the oldest month. The solution must minimize the impact on other queries that access the data in dbo.orders.

Solution; Identify the partition scheme (or the oldest month, and then run the following Transact-SQL statement.

ALTER TABLE dbo.Orders

DROP PARTITION SCHEME (partition_scheme_name);

Does this meet the goal?

Options:

A.

Yes

B.

No

Buy Now
Questions 13

You have an Azure SQL database that stores sales data and contains tables named Sales and Products . Sales contains three columns named SalesDate , ProductKey , and TotalSale .

Sales is 10 TB and is loaded nightly by using a batch process. Most reporting queries scan large portions of Sales , filter on SalesDate or ProductKey , and use SUM() to aggregate TotalSale .

Products is relatively small and is used primarily for point lookups and joins to Sales .

You need to recommend which indexes to create to optimize the reporting queries. The solution must minimize storage requirements.

Which type of index should you recommend for each table? To answer, drag the appropriate index types to the correct tables. Each index type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

DP-800 Question 13

Options:

Buy Now
Questions 14

You have an Azure SQL database named SalesDB that contains a table named dbo. Articles, dbo.Articles contains two million articles with embeddmgs. The articles are updated frequently throughout the day.

You query the embeddings by using VECTOR_SEARQi

Users report that semantic search results do NOT reflect the updates until the following day.

Vou need to ensure that the embeddings are updated whenever the articles change. The solution must minimize CPU usage on SalesDB

Which embedding maintenance method should you implement?

Options:

A.

Modify the query to use VECTOR.DTSTANCF instead of VECTOR.SEARCK

B.

enable change data capture (COC) on dbo.Articles and use an Azure Functions app to process CLX changes.

C.

Run an hourly Transact-SQL job that regenerates embeddings for all the rows in dbo.Articles.

D.

On dbo.Articles, create a trigger that calls AI GENERATE EMBEDOINGS for each inserted or updated row.

Buy Now
Questions 15

You have an Azure SQL database that supports the OLTP workload of an order-processing application.

During a 10-minute incident window, you run a dynamic management view query and discover the following:

Session 72 is sleeping with open_transaction_count = 1.

Multiple other sessions show blocking_session_id = 72 in sys.dm_exec_requests.

sys.dm_exec_input_buffer(72, NULL) returns only BEGIN TRANSACTION UPDATE Sales.Orders.

Users report that updates to Sales.Orders intermittently time out during the incident window. The timeouts stop only after you manually terminate session 72.

What is a possible cause of the blocking?

Options:

A.

A long-running SELECT statement is blocking writers.

B.

Session 72 caused a deadlock.

C.

An explicit transaction was started but not committed or rolled back.

D.

A lock escalation occurred.

Buy Now
Questions 16

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?

Options:

A.

Export the database schema as a .dacpac file and load the schema into a GitHub Copilot context window.

B.

Add the schema to a GitHub Copilot instruction file.

C.

Use an MCP server

D.

Include the database project in the code repository.

Buy Now
Questions 17

You are creating a table that will store customer profiles.

You have the following Transact-SQL code.

DP-800 Question 17

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection Is worth one point.

DP-800 Question 17

Options:

Buy Now
Questions 18

You need to create a solution that meets the development requirements for retrieving the patient lists.

How should you complete the Transact-SQL code? To answer, select the appropriate options

in the answer area.

NOTE: Each correct selection is worth one point.

DP-800 Question 18

Options:

Buy Now
Exam Code: DP-800
Exam Name: Developing AI-Enabled Database Solutions
Last Update: Sep 8, 2026
Questions: 87

PDF + Testing Engine

$64.99   $185.69

Testing Engine

$49.99   $142.83

PDF (Q&A)

$54.99   $157.11