Microsoft Developing AI-Enabled Database Solutions (DP-800)
Get full access to the updated question bank and confidently prepare for your exam.
Vendor
Microsoft
Certification
AI & Data
Content
109 Qs
Status
Verified
Updated
23 hours ago
Test the Practice Engine
Experience our interactive testing environment with free demo questions
Premium Bundle
Complete Success Suite
Save $34 Instantly
-
✓Full PDF + Interactive Engine Everything you need to pass
-
✓All Advanced Question Types Drag & Drop, Hotspots, Case Studies
-
✓Priority 24/7 Expert Support Direct line to certification leads
-
✓90 Days Free Priority Updates Stay current as exams change
Success Metric
98.4% Pass Rate
Standard Simulation
Practice Engine
One-Time Payment
-
Web-Based (Zero Install)
-
Real Testing Environment Virtual & Practice Modes
-
Interactive Engine Drag & Drop, Hotspots
-
60 Days Free Updates
Compatible with All Devices
Basic Tier
PDF Study Guide
Digital Access
- ✓ Exam Questions (PDF)
- ✓ Mobile Friendly
- ✓ 60 Days Updates
Verified 22-Question Preview (DP-800)
Verified Community
The CertoMetrics Standard.
Recommend the #1 platform for verified Microsoft certification resources.
Success Network
Help a Colleague Succeed.
Invite a peer to get their own updated DP-800 prep kit.
Exam Overview
The Microsoft DP-800 certification validates your expertise in designing and implementing intelligent database solutions leveraging Azure's powerful AI services. This credential is vital for professionals looking to infuse artificial intelligence and machine learning capabilities directly into their data infrastructure. By mastering topics like Azure Cognitive Search, integrating AI with Azure SQL Database and Cosmos DB, and developing robust ML solutions, you'll gain the skills to build smarter, more responsive applications. Achieving DP-800 demonstrates a critical ability to modernize data platforms, enhance decision-making processes, and unlock new insights from data, significantly boosting your career prospects in the rapidly evolving landscape of AI-driven data management and application development.
Questions
40-60
Passing Score
700/1000
Duration
100 Minutes
Difficulty
Intermediate
Level
Associate
Skills Measured
Career Path
Target Roles
Common Questions
Is the material up to date?
Yes. We update our question bank weekly to match the latest Microsoft standards. You get free updates for 90 days.
What format do I get?
You get instant access to both the **PDF** (for reading) and our **Premium Test Engine** (for exam simulation).
Is there a guarantee?
Absolutely. If you fail the DP-800 exam using our materials, we offer a full money-back guarantee.
When do I get the download?
Instantly. The download link is available in your dashboard immediately after payment is confirmed.
Free Study Guide Samples
Previewing updated DP-800 bank (22 Questions).
You have an Azure SQL database that contains two tables named Sales.Orders and Audit.OrderStatusChanges. Sales.Orders contains three columns named OrderID, Status, and ShippedDate. Status does NOT allow NULL values. ShippedDate allows NULL values.
You have an app named App1. App1 updates orders by using UPDATE statements that can affect multiple rows.
You need to define a trigger that meets the following requirements:
- Rejects any update that marks an order as shipped without a recorded shipped date
- Inserts audit rows only for rows whose status has changed
How should you complete the trigger? 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.
Trigger Logic Explanation
The solution correctly completes the T-SQL trigger to meet both requirements.
Validation Check: The first requirement is to reject any update that marks an order as 'shipped' without a ShippedDate. The trigger logic uses an IF EXISTS block to check for this condition before proceeding. The check is performed on the inserted virtual table, which contains the new row values after the update. The correct WHERE clause is i.Status = 'Shipped' AND i.ShippedDate IS NULL. If any row in the update matches this condition, the THROW statement is executed, raising an error and rolling back the transaction.
Auditing Changes: The second requirement is to insert audit rows only when the Status value has actually changed. The trigger joins the inserted and deleted virtual tables on the primary key (OrderID). The deleted table contains the original values before the update, and the inserted table contains the new values. To filter for only the rows where the status was modified, the WHERE clause must compare the old status with the new status. The correct condition for this is i.Status <> d.Status, which ensures audit records are only created for meaningful changes.
You have an Azure SQL database named DB1 that contains a table named dbo.CustomerInteraction. The dbo.CustomerInteraction table contains the following columns:
- Summary
- TenantId
- Embedding
- PromptText
- LastUpdated
- InteractionId
You have a reporting application named App1. App1 connects to DB1 as each user's Microsoft Entra contained user, sets SESSION_CONTEXT(N'TenantId') to the user's Microsoft Entra tenant ID, and runs queries directly against dbo.CustomerInteraction.
You need to configure access boundaries for DB1. The solution must meet the following requirements:
- Ensure that the users can read only the TenantId, InteractionId, Summary, and LastUpdated columns for rows that match their session tenant.
- Ensure that the access boundaries apply to direct queries against dbo.CustomerInteraction.
- Follow the principle of least privilege.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Correct Option: D, E
✅ Option D (Correct) Reasoning: This creates Row-Level Security (RLS). An inline table-valued predicate function comparing TenantId to SESSION_CONTEXT(N'TenantId'), bound via a security policy, ensures users only see rows matching their tenant when querying dbo.CustomerInteraction directly.✅ Option E (Correct) Reasoning: This creates Column-Level Security (CLS) and follows the principle of least privilege. Granting SELECT only on TenantId, InteractionId, Summary, and LastUpdated prevents users from accessing other columns like PromptText and Embedding.❌ Why the other choices are incorrect:
Option A is incorrect: While a view can enforce both RLS and CLS, the requirement states that access boundaries must apply to direct queries against dbo.CustomerInteraction. A view would require App1 to query the view, not the base table directly.
Option B is incorrect: Dynamic Data Masking only masks sensitive data; it does not prevent users from accessing the column entirely or enforce row-level security. The requirement is to read only specified columns, implying full restriction on others.
Option C is incorrect: Granting SELECT on the entire dbo.CustomerInteraction table violates the principle of least privilege as it gives access to all columns and does not enforce row-level security.
You have an Azure SQL database named ProductsDB.
You deploy Data API builder (DAB) to Azure Container Apps by using the mcr.microsoft.com/azure-databases /data-api-builder:latest image.
The container app has the following configurations:
• Secrets: mssql-connection-string, dab-config-base64
• Environment variables:
• MSSQL_CONNECTION_STRING=secretref:mssql-connection-string
• DAB_CONFIG_BASE64=secretref:dab-config-base64
• Ingress: External on port 5000
Users report that the /health endpoint returns a healthy response, but all requests that query an entity named Products fail and generate a connection error.
You confirm that the SQL login in the connection string is correct and the database exists.
You need to ensure that the container app can establish connections to the Azure SQL logical server without changing the container app deployment settings or the DAB configuration file.
What should you do on the Azure SQL logical server?
Correct Option: C
The connection error indicates a network accessibility issue. Azure SQL Database servers have firewalls that, by default, block external connections. Allowing connections from IP address range 0.0.0.0 to 0.0.0.0 (or enabling 'Allow Azure services and resources to access this server') permits services like Azure Container Apps to connect to the SQL server. This resolves the connection problem without modifying the container app or DAB configuration.
Reference: https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-create-and-configure?view=azuresql
You have an Azure SQL database that contains a table named dbo.SupportTickets. dbo.SupportTickets contains a JSON column named Payload and a datetime column CreatedAt.
You need to generate a report for the last seven days that meets the following requirements:
• Returns exactly one row per customer per day
• For each customer and day, returns the earliest ticket
• Includes the customer ID stored in Payload
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.
Box 1: JSON_VALUE
The JSON_VALUE function is required to extract a single scalar value (the customer ID) from the JSON text stored in the Payload column. The path expression '$.customer.id' specifies which value to retrieve.
Box 2: ROW_NUMBER
To find the earliest ticket for each customer per day, a window function is needed. ROW_NUMBER() assigns a unique, sequential integer to each row within a partition. By partitioning by customer and date (PARTITION BY CAST(t.CreatedAt AS date), JSON_VALUE(...)) and ordering by the creation time (ORDER BY t.CreatedAt ASC), the earliest ticket in each group is guaranteed to receive the number 1.
Box 3: 1
The outer query filters the results from the Common Table Expression (CTE). To select only the earliest ticket for each customer-day group as determined by the ROW_NUMBER function, the query must filter for rows where the calculated rank (rn) is equal to 1.
Reference: https://learn.microsoft.com/en-us/sql/t-sql/functions/row-number-transact-sql?view=sql-server-ver16
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.
Explanation of Selections:
The development requirement is to create a stored procedure that retrieves the names of patients who have had a medical procedure within the last 30 days. This requires querying the Patients table and checking for corresponding records in the Procedures table based on two conditions: a matching PatientId and a recent TransactionDate.
- First Selection: WHERE EXISTS
The EXISTS operator is the correct choice because it is designed to check for the existence of rows in a subquery that match criteria related to the outer query. It returns TRUE if the subquery returns one or more rows. For each patient from the outer query, it efficiently checks if a corresponding recent procedure exists without needing to compile a full list of IDs, which is generally more performant than using IN with a large subquery. - Second Selection: WHERE p.PatientId = pr.PatientId
This clause is essential for creating a correlated subquery. It links each row from the outer query (dbo.Patients AS p) to the rows in the subquery (dbo.Procedures AS pr) on their common key, PatientId. This ensures that the EXISTS check is performed for the correct patient. The HAVING clause is incorrect as it is used to filter results of an aggregation (GROUP BY), which is not being used here.
The combination of these two selections results in a query that correctly and efficiently identifies patients with procedures in the last 30 days.
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.

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?
Correct Option: A
✅ Option A (Correct)
Reasoning: Post-deployment scripts in SDK-style SQL database projects are ideal for managing static reference data. Using IF NOT EXISTS or MERGE logic ensures idempotency, preventing duplicate rows and guaranteeing a consistent outcome even if the pipeline is rerun due to transient failures. This directly addresses the requirement for deploying reference data within a CI/CD process without creating duplicates.
❌ Why the other choices are incorrect:
* Option B is incorrect: Restoring a backup overwrites the entire database, leading to data loss in a production environment. This is not a method for selectively deploying reference data and would negate any new application data.
* Option C is incorrect: GitHub repository secrets are for sensitive configuration values, not for storing large sets of structured reference data. While secrets could pass parameters, they don't provide a mechanism for idempotent data insertion into the database itself.
Reference: https://learn.microsoft.com/en-us/sql/ssdt/develop-database-offline-project-based-development?view=sql-server-ver160
You plan to implement changes to sp_UpdateProcedureForPatient to meet the performance requirements.
You change the stored procedure to run all its code within a transaction.
Which transaction level should you use?
Correct Option: B
The requirement states, "Records accessed by using sp_UpdateProcedureForPatient must NOT be changed by other transactions while the stored procedure runs." This explicitly means preventing dirty reads, non-repeatable reads, and phantom reads. The SERIALIZABLE isolation level achieves this by placing range locks, ensuring that no other transaction can modify or insert data that would affect the current transaction's read set. This guarantees complete data consistency for the duration of the long-running procedure.
A: REPEATABLE READ prevents non-repeatable reads but allows phantom reads, meaning new records could be inserted that would affect subsequent reads. This doesn't meet the full requirement.
C: SNAPSHOT and D: READ COMMITTED SNAPSHOT use row versioning to provide a consistent view but do not prevent other transactions from changing the underlying data. The requirement is that data "must NOT be changed," implying locking, not just reading an older version.
Reference: https://learn.microsoft.com/en-us/sql/relational-databases/sql-server-transaction-locking-and-row-versioning-guide
You have an Azure SQL database named ProductsDB.
You deploy Data API builder (DAB) to Azure Container Apps.
You discover that the container app cannot connect to ProductsDB.
Your development team reports that the container app is unreachable from the internet for integration tests.
You need to update Azure SQL Database and Container Apps to meet the following requirements:
• Ensure that the Azure SQL logical server allows connections from Azure services.
• Ensure that the Container Apps environment accepts inbound requests from the public internet.
What should you configure? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Azure SQL Firewall Rule: 0.0.0.0 to 0.0.0.0.
To allow Azure services, like Azure Container Apps, to connect to an Azure SQL Database server, you must enable the 'Allow Azure services and resources to access this server' setting. This creates a server-level firewall rule with the special IP address range of 0.0.0.0 to 0.0.0.0. This rule allows any authenticated connection originating from within Azure to reach the database server.
Container Apps Ingress: Set ingress to external and target port 5000.
To make the Container App reachable from the public internet for integration tests, its ingress must be configured as 'external'. The default or 'internal' setting restricts access to within the Container App's virtual network. Setting ingress to external and specifying the target port (e.g., 5000) exposes the application's endpoint and directs incoming traffic to the correct port on the running container.
You have an Azure SQL database that contains a table named dbo.Customers. dbo.Customers contains the following columns:
• CustomerId (int)(primary key)
• ProfileJson (nvarchar(max))
You have an application that returns phone numbers in a format of +000 000-000-0000. The phone numbers are stored in ProfileJson.
You need to write a query that returns:
• One row per customer
• A PhoneNUmerals column that contains only the digits
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.
Solution Walkthrough:
The query is constructed in three main parts to achieve the desired outcome of extracting and cleaning phone numbers from a JSON column.
✅ Step 1: JSON_VALUE(c.ProfileJson, '$.contact.phone') matches with -> The first blank in the CTE's SELECT list.
Reasoning: The goal of the Common Table Expression (CTE) is to extract the raw phone number string from the JSON data. `JSON_VALUE` is the correct function to extract a single scalar value (like a string or number) from a JSON string. The path `'$.contact.phone'` correctly targets the phone number value within the JSON structure.
✅ Step 2: REGEXP_REPLACE(p.PhoneRaw, '[^0-9]', '') matches with -> The second blank in the final SELECT list.
Reasoning: This step cleans the raw phone number. The `REGEXP_REPLACE` function is used to find and replace characters based on a regular expression. The pattern `'[^0-9]'` matches any character that is NOT a digit (0 through 9). By replacing these non-digit characters with an empty string (`''`), we effectively strip them from `p.PhoneRaw`, leaving only the numerals as required for the `PhoneNUmerals` column.
✅ Step 3: p.PhoneRaw matches with -> The third blank in the WHERE clause.
Reasoning: The final step is to filter out any customers who do not have a phone number. The `JSON_VALUE` function returns `NULL` if the specified path doesn't exist. Therefore, the `WHERE p.PhoneRaw IS NOT NULL` clause correctly filters the results to include only rows where a phone number was successfully extracted into the `PhoneRaw` column within the CTE.
Reference: https://learn.microsoft.com/en-us/sql/t-sql/functions/json-value-transact-sql?view=sql-server-ver16
You have an Azure SQL database named SalesDB that supports an ecommerce application. SalesDB contains a table named dbo.Orders that has a clustered index on a column named OrderId.
dbo.Orders receives continuous OLTP inserts and updates during business hours.
Your analytics team runs hourly aggregate queries that scan dbo.Orders to calculate revenue trends for recent dates.
You need to improve the performance of the hourly analytics queries without significantly affecting OLTP throughput. The solution must meet the following requirements:
• Support near-real-time (NRT) analytics on the dbo.Orders table.
• Reduce read time when retrieving analytical data from dbo.Orders.
• Support indexing only rows that match a predicate, such as Active = 1.
Which type of index should you use for each requirement? To answer, drag the appropriate index types to the correct requirements. Each index type 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.
Solution Mapping:
✅ A nonclustered columnstore index on an existing rowstore table matches with -> Support NRT analytics on dbo.Orders
Reasoning: A nonclustered columnstore index (NCCI) is the primary feature for Hybrid Transactional/Analytical Processing (HTAP) in Azure SQL. It creates a read-optimized columnar copy of the data, allowing analytical queries to run alongside the OLTP workload on the rowstore table, thus enabling near-real-time (NRT) analytics.
✅ A nonclustered columnstore index on an existing rowstore table matches with -> Reduce read time when retrieving analytical data
Reasoning: Columnstore indexes store data by column and use batch-mode processing and high compression. This structure is highly optimized for the large-scale scans and aggregations typical of analytical queries, dramatically reducing I/O and CPU usage, which in turn reduces read time.
✅ A filtered nonclustered index with a WHERE predicate matches with -> Index only rows that match a predicate
Reasoning: This is the definition of a filtered index. By including a WHERE clause in the index definition (e.g., WHERE Active = 1), the index is created only on the subset of rows that satisfy the condition. This makes the index smaller and more efficient for queries that access that specific data subset.
You have an SDK-style SQL database project named MyDatabaseProject.sqlproj stored in a private GitHub repository. The repository contains the following GitHub Actions workflow.

The repository contains the AZURE_SQL_CONNECTION_STRING secrets.
The target is an Azure SQL database that allows access to Azure services and is configured to support mixed authentication.
The workflow runs successfully.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Premium Solution Locked
Unlock all 109 answers & explanations
You are evaluating the DAB configuration.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Premium Solution Locked
Unlock all 109 answers & explanations
You have an Azure SQL database that contains a table named Table1. Table1 contains 25,000,000 rows of data and a datetime2 column named DateKey. The data in Table1 spans the years 2020 through 2021.
You need to partition the data in Table1 by year. The solution must minimize how long it takes to rebuild or reindex the table.
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.
Premium Solution Locked
Unlock all 109 answers & explanations
You have an Azure SQL database that contains a table named Sales.Orders. Sales.Orders contains the following columns.

Reporting queries frequently repeat logic to calculate the number of days since an order was placed.
You need to create a scalar user-defined function (UDF) that returns the number of days between an input value of @OrderDate and the current date and time.
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.
Premium Solution Locked
Unlock all 109 answers & explanations
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
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: Build the project by running dotnet build -bl -flp:v=diag.
Does this meet the goal?
Premium Solution Locked
Unlock all 109 answers & explanations
You have an Azure SQL database that supports an AI-driven product search API.
You need to identify the top CPU-consuming queries from the last two hours by using Query Store data. The solution must aggregate CPU consumption across executions and return only the top 15 query hashes.
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.
NOTE: Each correct selection is worth one point.
Premium Solution Locked
Unlock all 109 answers & explanations
You need to create a solution that meets the development requirements for retrieving the patient transaction data. The solution must ensure that database developers use the resulting data to join to other tables.
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.
Premium Solution Locked
Unlock all 109 answers & explanations
You are developing an Azure SQL database solution from a locally cloned GitHub repository by using Microsoft Visual Studio Code and GitHub Copilot Chat.
You need to ensure that GitHub Copilot Chat can call the hosted GitHub MCP Server tools by using OAuth. The MCP server configuration must be scoped to the repository.
What should you do in Visual Studio Code?
Premium Solution Locked
Unlock all 109 answers & explanations
You need to recommend a solution for the TransactionProcessing application that meets the security requirements.
What should you include in the recommendation?
Premium Solution Locked
Unlock all 109 answers & explanations
You create an SDK-style SQL database project in Microsoft Visual Studio Code named Database.sqlproj and add the project to a GitHub repository.
You need to configure a GitHub Actions workflow to support the planned changes for DB1.
How should you complete the workflow? To answer, select the appropriate options in the
answer area.
NOTE: Each correct selection is worth one point.
Premium Solution Locked
Unlock all 109 answers & explanations
You have an Azure SQL database named sqldb-ai-prod that stores customer support tickets for a multitenant software as a service (SaaS) application. sqldb-ai-prod contains a table named Tickets. Tickets contains columns named TenantId, TicketId, CustomerEmail, CustomerPhone, and Notes.
You plan to harden data access, since a new support team will use ad hoc reporting tools that connect directly to sqldb-ai-prod.
You need to configure security to meet the following requirements:
• Support agents must see only the rows of their own TenantId column.
• Support agents must see only the domain name portion of the CustomerEmail column.
What should you do for each requirement? To answer, drag the appropriate actions to the correct requirements. Each action 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.
Premium Solution Locked
Unlock all 109 answers & explanations
You are developing an Azure SQL solution by using Microsoft Visual Studio 2026. The solution uses a GitHub repository.
You plan to use GitHub Copilot Chat to access the GitHub repository tools by connecting to the GitHub MCP Server.
You need to configure Visual Studio to support the planned configuration. The solution must rely on OAuth to access the MCP server.
What should you create?
Premium Solution Locked
Unlock all 109 answers & explanations
Full Question Bank Locked
You have reached the end of the free study guide preview. Upgrade now to unlock all 109 questions and the full simulation engine.
Certification Path
Related Certifications
Customer Reviews
Global Community Feedback
David M.
"The practice engine is incredible. It feels exactly like the real testing environment and helped me build so much confidence."
Sarah J.
"The PDF is very well organized and the explanations for the answers are actually helpful, not just random text."
Michael C.
"I was skeptical, but the content is high quality and definitely worth the price. I passed on my first try!"