Pre-Winter 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 / 9
Total 87 questions

Developing AI-Enabled Database Solutions Questions and Answers

Question 1

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.

Question # 1

Options:

Question 2

You have an Azure SQL database named SalesDB that contains tables named Sales.Orders and Sales.OrderLines. Both tables contain sales data

You have a Retrieval Augmented Generation (RAG) service that queries SalesDB to retrieve order details and passes the results to a large language model (ILM) as JSON text. The following is a sample of the JSON.

Question # 2

You need to return one 1SON document per order that includes the order header fields and an array of related order lines. The LIM must receive a single JSON array of orders, where each order contains a lines property that is a JSON array of line Items.

Which transact-SQL commands should you use to produce the required JSON shape from the relational tables? To answer, drag the appropriate commands to the correct operations. Each command may be used once, more than once, or not at all. Vou may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Question # 2

Options:

Question 3

You have an Azure SQL database that supports an OLTP application.

You need to write Transact-SQL code that returns blocking chain details. The output must return only sessions that ate blocked or are blocking other sessions.

How should you complete the 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 # 3

Options:

Question 4

You have an Azure container app named app1-contoso-001 that hosts a Data API builder (DAB) container in front of an Azure SQL database.

You add an entity named Todo that uses a source named dbo.todos.

Which URL pattern should clients use to access the Todo REST endpoint?

Options:

A.

https://appl-contoso-001.azurestaticapps.net/data-api/graphq1/Todo

B.

https://appl-contoso-001.azurestaticapps.net/api/Todo

C.

https://appl-contoso-001.azurestaticapps.net/data-api/Todo

D.

https://appl-contoso-001.azurestaticapps.net/data-api/api/Todo

Question 5

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?

Options:

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.

Question 6

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 7

You have an Azure SQL database that contains a table named knowledgebase, knowledgebase stores human resources (HR) policy documents and contains columns named title, content, category, and embedding.

You have an application named App1. App1 queries two relational tables named employee_pnofiles and benefits_enrollnent that contain HR data. App1 hosts a chatbot that calls a large language model (LLM) directly.

Users report that the chatbot answers general HR questions correctly but provides outdated or incorrect answers when policies change. The chatbot also fails to answer questions that reference internal policy documents by title or category.

You need to recommend a Retrieval Augmented Generation (RAG) solution to resolve the chatbot issues. What should you recommend? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 7

Options:

Question 8

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?

Options:

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.

Question 9

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.

Question # 9

Options:

Question 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

Question 11

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

Question # 11

Question # 11

Options:

Question 12

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 # 12

Options:

Question 13

You are creating a table that will store customer profiles.

You have the following Transact-SQL code.

Question # 13

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 # 13

Options:

Question 14

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 15

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 16

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 17

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 # 17

Options:

Question 18

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.

Page: 1 / 9
Total 87 questions