Pre-Summer Sale Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

Microsoft DP-800 Developing AI-Enabled Database Solutions Exam Practice Test

Page: 1 / 6
Total 61 questions

Developing AI-Enabled Database Solutions Questions and Answers

Question 1

You are creating a table that will store customer profiles.

You have the following Transact-SQL code.

Question # 1

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

Question # 1

Options:

Question 2

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

Question # 2

Question # 2

Options:

Question 3

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

Question 4

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

Options:

A.

vehicleLocation

B.

incidentDescrlption

C.

incidentType

D.

SeverityScore

Question 5

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.

Question # 5

Options:

Question 6

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.

Question 7

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.

Question 8

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

Options:

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()).

Question 9

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.

Question # 9

Options:

Question 10

You have an Azure SQL database named AdventureWorksDB that contains a table named dbo.Employee.

You have a C# Azure Functions app that uses an HTTP-triggered function with an Azure SQL input binding to query dbo.Employee.

You are adding a second function that will react to row changes in dbo.Employee and write structured logs.

You need to configure AdventureWorksDB and the app to meet the following requirements:

• Changes to dbo.Employee must trigger the new function within five seconds.

• Each invocation must processes no more than 100 changes.

Which two database configurations should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

Options:

A.

Create an AFTER trigger on dbo.Employee for Data Manipulation Language (DML).

B.

SetSql Trigger MaxBatchSize to 100.

C.

Enable change tracking on the dbo. Employee table.

D.

Enable change tracking at the database level.

E.

Set Sql_Trigger_PollingIntervalMs to 5000.

F.

Enable change data capture (CDC) for dbo.Employee table changes

Question 11

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

TRUNCATE TABIE dbo.Orders

WITH (PARTITIONS (partition number));

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 12

You have a database named DB1. The schema is stored in a GitHub repository as an SDK style SQL database project.

You use a feature branch workflow to deploy changes to DB1

You need to update the local feature branch with the latest changes to main, and then create a pull request to merge the feature branch into main for review.

How should you complete the GitHub CLI script? 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.

Question # 12

Options:

Question 13

You have a SQL database in Microsoft Fabric that contains a column named Payload. pay load stores customer data in JSON documents that have the following format.

Question # 13

Data analysis shows that some customers have subaddressing in their email address, for example, user1+promo@contoso.com.

You need to return a normalized email value that removes the subaddressing, for example, user! + promo@contoso.com must be normalized to userl@contoso.com.

Which Transact SQL expression should you use?

Options:

A.

REGEXP_REPLACE(JSON_VALUE(Payload, ' $.customer_email ' ), ' \+.*$ ' , ' ' )

B.

REGEXP_SUBSTR(JSON_VALUE(Payload, ' $.customer_email ' ), ' ^[^+]+@.*$ ' )

C.

REGEXP_REPLACE(JSON_VALUE(Payload, ' $.customer_email ' ), ' \+.*@ ' , ' @ ' )

D.

REGEXP_REPLACE(JSON_VALUE(Payload, ' $.customer_email ' ), ' \+.* ' , ' ' )

Question 14

You have an Azure subscription. The subscription contains an Azure SQL database named SalesDB and an Azure App Service app named sales-api. sales-api uses virtual network integration to a subnet named vnet-prod/subnet-app and reads from SalesDB

You need to configure authentication and network access to meet the following requirements:

• Ensure that sales-api connects to SalesDB by using passwordless authentication.

• Ensure that all the database traffic remains within the subscription.

The solution must minimize administrative effort

What should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 14

Options:

Question 15

You have an Azure SQL database that contains the following tables and columns.

Question # 15

Embeddings in the NotesEnbeddings and DescriptionEabeddings tables have been generated from values in the Description and notes columns of the Articles table by using different chunk sizes.

You need to perform approximate nearest neighbor (ANN) queries across both embedding tables. The solution must minimize the impact of using different chunk sizes.

What should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 15

Options:

Question 16

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?

Options:

A.

ALTER TRIGGER

B.

ALTER DATABASE

C.

ALTER SERVER AUDIT SPECIFICATION

D.

DISABLE TRIGGER

E.

ALTER DATABASE AUDIT SPECIFICATION

Question 17

You have an Azure SQL database that stores order data. A reporting query aggregates monthly revenue per customer runs frequently.

You need to reduce how long it takes to retrieve the calculated values. The solution must NOT alter any underlying table structure. What should you do?

Options:

A.

Create a view by using ORDER BY without TOP. and then create a unique clustered index on the view.

B.

Create a view without using with SCHEMABHIDING, and then create a nonclustered index on the view.

C.

Create a view by using GROUP BV. and then create a unique clustered index on the view.

D.

Create a view by using WITH SCHEHABINDING, include COUNT_BIG(*). and then create a unique clustered index on the view.

Question 18

You need to design a generative Al solution that uses a Microsoft SOL Server 2025 database named DB1 as a data source. The solution must generate responses that meet the following requirements:

• Ait ' grounded In the latest transactional and reference data stored in D61

• Do NOT require retraining or fine-tuning the language model when the data changes

• Can include citations or references to the source data used in the response

Which scenario is the best use case for implementing a Retrieval Augmented Generation (RAG) pattern? More than one answer choice may achieve the goal. Select the BEST answer

Options:

A.

summarizing free-form user input text

B.

training a custom language model on historical database data

C.

answering user questions based on company-specific knowledge

D.

generating marketing slogans based on user sentiment analysis

Page: 1 / 6
Total 61 questions