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

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

Demo: 18 questions
Total 61 questions

Developing AI-Enabled Database Solutions Questions and Answers

Question 1

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 2

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

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

Options:

Question 6

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.

Options:

Question 7

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 8

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.

Options:

Question 9

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 10

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

You have a GitHub Actions workflow that already runs dotnet build and produces a database artifact.

You need to add a deployment step that publishes the dacpac file to an Azure SQL database by using the secrets stored in GitHub repository secrets

What should you include in the workflow?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 11

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

You have an application that calls a stored procedure named dbo.usp_tresteOrder to insert rows into dbo.Orders.

When an insert fails, the application receives inconsistent error details.

You need to implement error handling to ensure that any failures inside the procedure abort the transaction and return a consistent error to the caller.

How should you complete the stored procedure? To answer, drag the appropriate values to the correct targets, tach 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.

Options:

Question 12

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.

Options:

Question 13

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 14

You have a GitHub Codespaces environment that has GitHub Copilot Chat installed and is connected to a SQL database in Microsoft Fabric named DB1 DB1 contains tables named Sales.Orders and Sales.Customers.

You use GitHub Copilot Chat in the context of DB1 .

A company policy prohibits sharing customer Personally Identifiable Information (Pll), secrets, and query result sets with any Al service.

You need to use GitHub Copilot Chat to write and review Transact-SQL code for a new stored procedure that will join Sales.Orders to sales .Customers and return customer names and email addresses. The solution must NOT share the actual data in the tables with GitHub Copilot Chat.

What should you do?

Options:

A.

From Sales.Customers, paste several rows that include email addresses into a chat, so that GitHub Copilot Chat can infer edge cases.

B.

Run a select statement that returns customer names and email addresses and provide the result set to GitHub Copilot Chat so that GitHub Copilot Chat can generate the stored procedure.

C.

Provide the database connection string to GitHub Copilot Chat so that GitHub Copilot Chat can validate the stored procedure.

D.

Ask GitHub Copilot Chat to generate the stored procedure by using schema details only.

Question 15

You have an Azure SQL table that contains the following data.

You need to retrieve data to be used as context for a large language model (LLM). The solution must minimize token usage.

Which formal should you use to send the data to the LLM?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 16

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.

Options:

Question 17

You have a SQL database in Microsoft Fabric named Sales BD that contains a table named dbo.Products. You need to modify SalesBD to meet the following requirements:

• Create a vector index on the appropriate column.

• Use a supplied natural language query vector.

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.

Options:

Question 18

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

Demo: 18 questions
Total 61 questions