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

Question #11 (Topic: Topic 1, Design and develop database solutions )
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 the 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.
Answer: B
Question #12 (Topic: Topic 1, Design and develop database solutions )
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 process 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.
A. Create an AFTER trigger on dbo.Employee for Data Manipulation Language (DML). B. Set Sql_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.
Answer: CD
Question #13 (Topic: Topic 1, Design and develop database solutions )
DRAG DROP
You have a Microsoft SQL Server 2025 database that contains a table named dbo.CustomerMessages. dbo.CustomerMessages contains two columns named MessageID (int) and MessageRaw (nvarchar(max)).
MessageRaw can contain a phone number in multiple formats, and some rows do NOT contain a phone number.

You need to write a single SELECT query that meets the following requirements:
The query must return MessageID, RawNumber, DigitsOnly, and PhoneStatus.
RawNumber must contain the first substring that matches a phone-number pattern, or NULL if no match exists.

DigitsOnly must remove all non-digit characters from RawNumber, or return NULL.
PhoneStatus must return valid when a phone number exists in MessageRaw, otherwise return Missing.

How should you complete the Transact-SQL query? 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.
Answer:
Question #14 (Topic: Topic 1, Design and develop database solutions )
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?
A. a foreign key B. a check constraint C. a nonclustered index D. a unique constraint
Answer: B
Question #15 (Topic: Topic 1, Design and develop database solutions )
DRAG DROP
You have a SQL database in Microsoft Fabric that contains a table named WebSite.Logs. WebSite.Logs stores application telemetry data. WebSite.Logs contains a nvarchar (max) column named log that stores JSON documents.

You have a daily report that filters by the $.severity JSON property and returns LogId, LogDateTime, and log. The report frequently causes full table scans.
You need to modify WebSite.Logs to support efficient filtering by $.severity and avoid key lookups for the columns returned by the report.

How should you complete the Transact-SQL code to avoid full table scans? 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.
Answer:
Download Exam
Page: 3 / 21
Total 101 questions