Microsoft certification · Exam DP-800

Free Microsoft DP-800 Practice MCQs Page 2

Developing AI-Enabled Database Solutions

Free DP 800 practice questions, each with the answer and an explanation. No sign-up needed.

Topic · 23 of 77 questions freeTopic 2, Misc. Questions Types
Question 11 Choose 1
You have an Azure SQL database that contains a table named Rooms. Rooms was created by using the following transact-SQL statement.

You discover that some records in the Rooms table contain NULL values for the Owner field. You need to ensure that all future records have a value for the Owner field. What should you add?
Question 12 Choose 1
You have an SDK-style SQL database project stored in a Git repository. The project targets an Azure SQL database.
The CI build fails with unresolved reference errors when the project references system objects.
You need to update the SQL database project to ensure that dotnet build validates successfully by including the correct system objects in the database model for Azure SQL Database.
Solution: Add the Microsoft.SqlServer.Dacpacs.Azure.Master NuGet package to the project.
Does this meet the goal?
Question 13 Choose 1
You have a SQL database in Microsoft Fabric that contains the following functions:
β€’ A multi-statement table-valued function (TVF) named sales.mstvf_orderStatus() that returns order status information
β€’ A scalar user-defined function (UOF) named dbo.ufn_GetlaxMultiplier(^rax/Wt money,
gStateCode char(2)) that returns a numeric multiplier used in tax calculations Reporting queries frequently join Sales.Β«istvf_OrderStatus() to a table named Sales.SalesOrderHeader and return large result sets. A performance review shows that the queries produce inconsistent execution plans.
During a code review, a developer discovers that the following Transact-SQL statement produced an error.

Question 14 Choose 1
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?

Question 15
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 16 Choose 1
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?
Question 17
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.

Question 18 Choose 1
Vou have a SQL database in Microsoft Fabric that contains a nvarchar(max) column named MessageText. An ID is always contained within the first paragraph of MessageText. You need to write a Transact SQL query that uses REGEXP_SUBSTR to extract the ID from MessageText.
What should you include in the query?
Question 19
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 20 Choose 1
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

Practice Like It's Exam Day

Get exam-ready with a timed DP 800 Developing AI-Enabled Database Solutions mock exam designed to match the official exam's question format, question count, and time limit.

Take Developing AI-Enabled Database Solutions Mock Exam
  • Build Exam Endurance Stay focused and perform confidently under exam conditions.
  • Improve Time Management Practice pacing yourself to finish within the time limit.
  • Fresh Questions Every Attempt Experience randomized questions from our extensive question bank.
  • Unlimited Practice Attempts Retake mock exams and improve your score at your own pace.