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

Easiest Solution 2 Pass Your Certification Exams

DP-800 Microsoft Developing AI-Enabled Database Solutions Free Practice Exam Questions (2026 Updated)

Prepare effectively for your Microsoft DP-800 Developing AI-Enabled Database Solutions certification with our extensive collection of free, high-quality practice questions. Each question is designed to mirror the actual exam format and objectives, complete with comprehensive answers and detailed explanations. Our materials are regularly updated for 2026, ensuring you have the most current resources to build confidence and succeed on your first attempt.

Page: 1 / 1
Total 87 questions

You have an Azure SQL database that contains a table named Sales.Orders. Sales.Orders contains the following columns.

Reporting queries frequently repeat logic to calculate the number of days since an order was placed.

You need to create a scalar user-defined function (UDF) that returns the number of days between an input value of @OrderDate and the current date and time.

How should you complete the Transact-SQL code? To answer, drag the appropriate values to the correct targets. Each value 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.

You have a Microsoft SQL Server 2025 database that contains a table named products. products contains two columns named description and embedding. embedding is generated from description.

You have an application named App1. App1 has a feature that uses the following query.

VECTOR_DISTANCE(‘cosine’, @query_vector, embedding)

Users report that the feature is slow during peak usage times.

You discover that during peak usage times, the semantic search latency increases and CPU utilization spikes.

You need to reduce latency and CPU utilization related to the App1 feature.

What should you do?

A.

Create a vector index on products.embedding and change the query to use VECTOR_NORMALIZE and NORM_TYPE = ‘norm1’.

B.

Use CONTAINSTABLE against description only and remove the vector search.

C.

Create a vector index on products.embedding and change the query to use VECTOR_SEARCH and METRIC = ‘cosine’.

D.

Add a nonclustered index on products.embedding.

E.

Change embedding to VARBINARY(8000).

You have an Azure SQL database that contains a table named dbo.orders, dbo.orders contains a column named createDate that stores order creation dates.

You need to create a stored procedure that filters Orders by CreateDate for a single calendar day. The solution must be SARGable.

How should you complete the Transact-SQL code? To answer, drag the appropriate values to the correct targets. Each value 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.

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?

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.

You are creating a table that will store customer profiles.

You have the following Transact-SQL code.

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

You need to meet the development requirements for the FeedbackJson column

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

NOTE: Each correct selection is worth one point.

You need to meet the database performance requirements for maintenance data

How should you complete the Transact-SQL code? To answer, drag the appropriate values to the correct targets. Each value 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.

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?

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.

You need to recommend a solution to lesolve the slow dashboard query issue. What should you recommend?

A.

Create a clustered index on Lastupdatedutc.

B.

On Fleetid, create a nonclustered index that includes Lastupdatedutc. inginestatus, and BatteryHealth.

C.

On Lastupdatedutc. create a nonclustered index that includes Fleetid.

D.

On Fleetid, create a filtered index where lastupdatedutc > DATEADD(DAV, -7, SYSuTCOATETIME()).

You have a database that contains production data. The schema is stored in a Git repository as an SDK-style SQL database project and contains the following reference data.

Name

Data type

RefID

int, identity

Code

nvarchar(10)

CreatedDate

datetime2

Description

nvarchar(255)

A deployment pipeline can be rerun automatically when a transient failure occurs.

You need to deploy the reference data as part of the same CI/CD process. Rerunning the pipeline must produce the same outcome and must NOT create duplicate rows.

What should you do?

A.

Add a post-deployment script that inserts reference rows by using IF NOT EXISTS or MERGE logic.

B.

Restore a backup after each deployment.

C.

Store the reference values in GitHub repository secrets.

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 for the oldest month, and then run the following Transact-SQL statement:

SQL

ALTER TABLE dbo.Orders

DROP PARTITION SCHEME {partition_scheme_name};

Does this meet the goal?

A.

Yes

B.

No

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.

Your development team uses GitHub Copilot Chat in Microsoft SQL Server Management Studio (SSMS) to generate and run Transact-SQL queries against an Azure SQL database named DB1 DB1 contains tables that store sensitive customer data.

You need to ensure that any Transact SQL queries that run from GitHub Copilot Chat In SSMS are restricted by the same permissions as the developer ' s database login.

What prevents the GitHub Copilot Chat-run queries from accessing data beyond the developer ' s access?

A.

GitHub Copilot Chat runs queries in a read-only sandbox that is isolated from production database permissions.

B.

GitHub Copilot Chat runs queries by using the developer ' s database identity and permissions.

C.

GitHub Copilot Chat filters query results on (he client side to remove rows the developer is unauthorized to see.

D.

GitHub Copilot Chat uses different row-level security (RLS) policies than the developer.

You have an Azure SQL database That contains database-level Data Definition Language (DDL) triggers, including a trigger named ddl_Audit.

You need to prevent ddl_Audit from firing during the next deployment. The trigger object must remain in place.

Which Transact-SQL statement should you use?

A.

ALTER TRIGGER

B.

ALTER DATABASE

C.

ALTER SERVER AUDIT SPECIFICATION

D.

DISABLE TRIGGER

E.

ALTER DATABASE AUDIT SPECIFICATION

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.

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.

You need to generate embeddings to resolve the issues identified by the analysts. Which column should you use?

A.

vehicleLocation

B.

incidentDescrlption

C.

incidentType

D.

SeverityScore

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

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.

Page: 1 / 1
Total 87 questions
Copyright © 2014-2026 Solution2Pass. All Rights Reserved