At Pass4itexam, we believe in smart preparation. That’s why we’ve built a complete guide to help you succeed in the Microsoft DP-800 exam. Whether you’re a first-time test taker or revisiting certification, our expert-curated PDF dumps for DP-800 are your shortcut to confidence and clarity.
This isn’t just a question bank—it’s a full prep system. Our materials reflect real exam objectives, with relevant scenarios and actual exam-style questions. You’ll get to know the format, practice effectively, and reduce test-day anxiety.
What to Expect from Our DP-800 Preparation
1. Straightforward Study Material
Exam-Aligned Content: Every topic we cover is mapped to Microsoft's objectives, so no wasted time.
Easy to Understand: No fluff, no filler—just simplified concepts that actually stick.
2. Real Practice for Real Exams
True-to-Exam Questions: Practice on material that mirrors the real DP-800 exam format.
Instant Feedback: Learn from your mistakes and understand the “why” behind the answers.
3. Smart Strategies That Work
Master time management to reduce pressure during the exam.
Use our proven techniques to handle tricky or unexpected questions.
Learn patterns and question logic to boost your confidence.
4. Always Updated, Always Relevant
90 Days Free Updates: We keep your dumps current, so you’re never studying outdated content.
Based on Real Feedback: We monitor exam changes and adjust quickly.
Your Success Is Our Promise
If you use our DP-800 prep materials and still don’t pass, we’ll refund you—simple as that. No hidden terms. No stress.
We stand behind our products with a full 100% Money-Back Guarantee, because we know our materials deliver results.
Final Thoughts
If you’re serious about passing the Microsoft DP-800 certification, you’re in the right place. Our resources are designed to help you save time, study smarter, and get certified faster.
You have an Azure SQL database That contains a table named dbo.Products, dbo.Products contains three columns named Embedding Category, and Price. The Embedding column is defined as VECTOR(1536).You use Ai_GENERME_EMBEDOINGS and VECTOR_SEARCH to support semanticsearch and apply additional filters on two columns named Category and Price.You plan to change the embedding model from text-embedding-ada-002 to text- embedding-3-smalL Existing rows already contain embeddings in the Embedding column.You need to implement the model change. Applications must be able to use VECTOR_SEARCH without runtime errors.What should you do first?
A. Regenerate embeddings for the existing rows. B. Normalize the vector lengths before storing new embeddings. C. Convert the Embedding column to nvacchar(mex). D. Create a vector index on dbo.Products.Embedding.
Answer: A
Correct option: A. Regenerate embeddings for the existing rows.
Explanation: Changing from text-embedding-ada-002 to text-embedding-3-small changes the embedding space, because each model maps text to vectors differently. Even with the same 1,536 dimensions, vectors from the two models are not comparable, so mixing new query embeddings with old stored embeddings would make VECTOR_SEARCH distances meaningless. The first step is therefore to regenerate embeddings for all existing rows with the new model, for example in batches with AI_GENERATE_EMBEDDINGS. Because the dimensions stay the same, the VECTOR(1536) column remains valid, and applications can keep using VECTOR_SEARCH with Category and Price filters without runtime errors.
Key points: • Different models produce incompatible vector spaces. • All stored embeddings must come from the same model as queries. • Regenerating in batches limits the impact on the database. • The column definition stays valid when dimensions match.
In practice: The developer registers the new external model, re-embeds rows in batches into the Embedding column or a new column that is swapped in, rebuilds any vector index and then switches query embedding generation to the new model.
Why this matters: Consistent embeddings are essential for accurate semantic search after a model change.
Key takeaway: When switching embedding models, regenerate all existing embeddings before using the new model for queries.
Question # 2
You have an Azure SQL database that contains a table named Customer. Customer contains the following columns:NationalIDNumber is unique per customer.InvestigationNotes contains free-form text.You have a stored procedure that performs point lookups by NationalIDNumber and returns InvestigationNotes in the query results without filtering on InvestigationNotes.You need to encrypt both columns by using Always Encrypted and the highest security possible.Which type of Always Encrypted encryption should you use for each column?
A. randomized for NationalIDNumber and deterministic for InvestigationNotes B. randomized for NationalIDNumber and randomized for InvestigationNotes C. deterministic for NationalIDNumber and randomized for InvestigationNotes D. deterministic for NationalIDNumber and deterministic for InvestigationNotes
Answer: C
Correct option: C. deterministic for NationalIDNumber and randomized for InvestigationNotes
Explanation: Always Encrypted offers deterministic and randomized encryption. Randomized encryption is more secure because the same value produces different ciphertext each time, but it does not support equality comparisons. Deterministic encryption produces the same ciphertext for the same value, which enables equality lookups. The stored procedure performs point lookups on NationalIDNumber, so that column needs deterministic encryption; because each value is unique, it reveals almost nothing about repetitions. InvestigationNotes is only returned, never filtered, joined or indexed, so it should use randomized encryption for the highest security.
Key points: • Deterministic encryption supports equality lookups. • Unique values limit what deterministic encryption can reveal. • Randomized encryption provides the strongest protection. • Columns that are only returned do not need deterministic encryption. • A BIN2 collation is required on deterministically encrypted character columns.
In practice: The developer encrypts NationalIDNumber with ENCRYPTION_TYPE = DETERMINISTIC and a BIN2 collation, encrypts InvestigationNotes with RANDOMIZED, and enables Always Encrypted in the application connection string.
Why this matters: Choosing the encryption type per column balances security with the queries the application needs.
Key takeaway: Use deterministic encryption only for columns used in equality lookups and randomized encryption for everything else.
Question # 3
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?
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.
Answer: D
Correct option: D. Ask GitHub Copilot Chat to generate the stored procedure by using schema details only.
Explanation: The company policy prohibits sharing PII, secrets and query result sets with AI services. To write a stored procedure that joins Sales.Orders to Sales.Customers and returns names and email addresses, GitHub Copilot Chat only needs the structure of the tables: table and column names, data types, keys and the relationship between them. Providing schema details, such as CREATE TABLE definitions, lets Copilot generate and review accurate Transact-SQL without seeing any real customer data. Edge cases can be described in words or with clearly synthetic examples, so no PII or secrets leave the environment.
Key points: • Copilot needs schema information, not actual data, to write code. • Table definitions describe columns, types and relationships. • Synthetic examples can illustrate edge cases safely. • No PII, secrets or result sets are shared.
In practice: The developer copies the CREATE TABLE scripts or describes the columns in the chat, asks Copilot to generate the procedure, reviews the code and tests it locally against the database.
Why this matters: Schema-only prompting follows data minimization while still getting useful help from AI tools.
Key takeaway: When using AI coding assistants with sensitive databases, share schema details only, never real data or secrets.
Question # 4
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.
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
Answer: C,D
Correct option: C. Enable change tracking on the dbo. Employee table. D. Enable change tracking at the database level.
Explanation: The new function reacts to row changes using the Azure SQL trigger binding, which is built on SQL change tracking. The binding polls change tracking functions to find rows changed since the last processed version and invokes the function with batches of changes. Change tracking must be enabled at the database level, for example ALTER DATABASE AdventureWorksDB SET CHANGE_TRACKING = ON, and on the monitored table, ALTER TABLE dbo.Employee ENABLE CHANGE_TRACKING. These are the two required database configurations. The other requirements are met by the binding's default app settings, which poll about every second and process at most 100 changes per invocation.
Key points: • The SQL trigger binding relies on change tracking. • Change tracking must be on for the database. • Change tracking must also be on for dbo.Employee. • Default polling and batch settings meet the timing and batch limits.
In practice: The developer enables change tracking on the database with suitable retention and on dbo.Employee, deploys the function with the SQL trigger binding and confirms that changes trigger structured logging within seconds.
Why this matters: Correct database configuration enables reliable, near real-time change processing with Azure Functions.
Key takeaway: Enable change tracking on both the database and the table for the Azure SQL trigger binding.
Question # 5
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 ieferences 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.Mastet NuGet package to the project.Does this meet the goal?
A. Yes B. No
Answer: B
Correct option: B. No
Explanation: The proposed solution adds Microsoft.SqlServer.Dacpacs.Master, which contains the master database model for on-premises SQL Server. The project targets Azure SQL Database, whose system objects differ from SQL Server: Azure exposes some objects that SQL Server lacks and omits some server-level objects. A SQL Server master model therefore does not accurately represent the target platform and can leave references unresolved or cause platform mismatch errors, so the answer is No. The correct package for this project is Microsoft.SqlServer.Dacpacs.Azure.Master, which provides the Azure SQL Database system object model and resolves references correctly during dotnet build.
Key points: • System object packages are specific to each target platform. • The Master package models on-premises SQL Server. • Azure SQL Database has a different set of system objects. • The Azure.Master package matches an Azure SQL target. • Pinning the package version keeps CI builds reproducible. • Using the wrong platform package can also hide errors that would appear in Azure.
In practice: The developer replaces the package reference with Microsoft.SqlServer.Dacpacs.Azure.Master and runs dotnet build in CI to confirm the unresolved references are resolved.
Why this matters: Matching system references to the target platform keeps database builds accurate.
Key takeaway: For projects targeting Azure SQL Database, reference Microsoft.SqlServer.Dacpacs.Azure.Master, not the SQL Server package.
Question # 6
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?
A. the <SOLUTIONDIR>\.vscode\settings.json file that contains a URL of [https://api.githubcopilot.com/mcp/](https://api.githubcopilot.com/mcp/) B. the <SOLUTIONDIR>\.vs\settings.json file that contains the personal access token (PAT) that has the repo scope C. the <SOLUTIONDIR>\.github\mcp.json file that contains the personal access token (PAT) that has the repo scope D. the <SOLUTIONDIR>\.mcp.json file that contains a URL of[https://api.githubcopilot.com/mcp/](https://api.githubcopilot.com/mcp/)
Answer: D
Correct option: D. the <SOLUTIONDIR>\.mcp.json file that contains a URL of [https://api.githubcopilot.com/mcp/](https://api.githubcopilot.com/mcp/)
Explanation: Visual Studio 2022 version 17.14 and later, including Visual Studio 2026, support MCP servers in GitHub Copilot Chat agent mode and read server configurations from defined locations. A .mcp.json file in the solution directory is the standard way to configure servers for a solution, and it can be committed so the team shares the configuration. Pointing it at the hosted GitHub MCP Server URL, https://api.githubcopilot.com/mcp/, as an HTTP server lets Visual Studio handle OAuth: the user signs in with GitHub and authorizes access, and the IDE stores and refreshes the token securely, with no secret written to any file.
Key points: • Visual Studio reads MCP servers from .mcp.json in the solution directory. • The hosted GitHub MCP Server is reached by its HTTP URL. • OAuth sign-in replaces personal access tokens. • The file can be shared through source control.
In practice: The developer creates <SOLUTIONDIR>\.mcp.json with an HTTP server entry for the GitHub MCP Server URL, opens Copilot Chat in agent mode, completes the OAuth sign-in and confirms the GitHub tools are available.
Why this matters: Solution-level MCP configuration with OAuth gives secure, team-wide access to repository tools.
Key takeaway: In Visual Studio, configure the GitHub MCP Server URL in the solution's .mcp.json file to use OAuth.
Question # 7
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: Run the following Transact-SQL statement.DELETE FROM dbo.OrdersWHERE OrderDate < DATEADD(nonth, -36, SYSUTCDATETIME());Does this meet the goal?
A. Yes B. No
Answer: B
Correct option: B. No
Explanation: The proposed DELETE statement does not meet the goal, so the answer is No. DELETE is a fully logged, row-by-row operation: removing a whole month of orders writes log records for every row and index entry, uses significant I/O and CPU and takes many locks that may escalate to a table lock, blocking other queries. The predicate also depends on SYSUTCDATETIME(), so it may remove part of a month or miss part of the oldest month instead of aligning with partition boundaries. Because the table is already partitioned by month, the right approach is a partition-level operation such as TRUNCATE TABLE dbo.Orders WITH (PARTITIONS (n)) or SWITCH PARTITION, which removes the month as a fast metadata operation.
Key points: • DELETE logs every row and can run for a long time. • Many locks can escalate and block other queries. • A time-based predicate does not align with partition boundaries. • Partition truncation or switching minimizes impact.
In practice: The developer replaces the DELETE with a partition truncation for the oldest partition, scheduled during a quiet period, and maintains the partition function for the sliding window.
Why this matters: Choosing partition operations over large deletes protects performance on busy tables.
Key takeaway: Avoid large DELETE statements on partitioned tables; truncate or switch out whole partitions instead.
Question # 8
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 scheme for the oldest month, and then run the following Transact-SQL statement:SQLALTER TABLE dbo.OrdersDROP PARTITION SCHEME {partition_scheme_name};Does this meet the goal?
A. Yes B. No
Answer: B
Correct option: B. No
Explanation: The proposed statement, ALTER TABLE dbo.Orders DROP PARTITION SCHEME {partition_scheme_name}, does not exist in Transact-SQL, so it fails and removes no rows, and the answer is No. A partition scheme maps all partitions of the table to filegroups; there is one scheme for the whole table, not one per month, and dropping a scheme is only possible when nothing uses it. Removing the oldest month efficiently requires working with that month's partition, for example TRUNCATE TABLE dbo.Orders WITH (PARTITIONS (n)) or switching the partition out to a staging table. These metadata operations complete almost instantly with minimal logging and brief locks, so other queries are barely affected.
Key points: • ALTER TABLE has no DROP PARTITION SCHEME clause. • A partition scheme covers the whole table, not one month. • Partition truncation or switching removes a single month. • Metadata operations minimize impact on concurrent queries.
In practice: The developer finds the oldest partition number with $PARTITION, truncates or switches out that partition and then merges the empty boundary with ALTER PARTITION FUNCTION ... MERGE RANGE.
Why this matters: Using partition-level operations is the right way to manage sliding windows of data.
Key takeaway: Remove old months by truncating or switching out their partitions, not by dropping the partition scheme.
Question # 9
You have a GitHub Enterprise subscription.Your team is developing an Azure SQL dataset solution from a locally cloned GitHub repository by using Microsoft Visual Studio Code and GitHub Copilot Chat.A mix of GitHub Copilot instructions is configured at different levels, including organization- wide, repository-wide, agent-specific, and personal.Based on the GitHub Copilot instruction precedence rules, which instructions will take precedence over the others?
A. organization-wide B. agent-specific C. repository-wide D. personal
Answer: D
Correct option: D. personal
Explanation: GitHub Copilot supports custom instructions at several levels, and when several apply, they are combined in a defined priority order. Personal instructions have the highest priority, followed by repository instructions, and organization instructions have the lowest priority. When instructions conflict, Copilot follows the higher-priority one. Personal instructions reflect the explicit preferences of the user who is actually working with Copilot, such as response language or level of detail, so they take precedence over repository-wide and agent-specific guidance stored in the repository and over organization-wide baselines.
Key points: • Instructions from several levels are combined for each request. • Personal instructions have the highest priority. • Repository and agent-specific instructions come next. • Organization instructions provide the lowest-priority baseline. • When instructions do not conflict, Copilot uses guidance from all levels together. • Organization owners can still enforce baseline standards that repositories and individuals build on. • Clear, non-conflicting instructions at each level give the most predictable results.
In practice: Teams put broad standards in organization instructions, project conventions in repository and agent files, and let individuals tailor behavior with personal instructions, knowing those win in conflicts.
Why this matters: Understanding precedence helps teams design instructions that work together predictably.
Key takeaway: In GitHub Copilot, personal instructions take precedence over repository and organization instructions.
Question # 10
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](https://mcr.microsoft.com/azure-databases/data-api-builder:latest) image.The container app has the following configurations:Secrets: mssql-connection-string, dab-config-base64Environment variables:MSSQL_CONNECTION_STRING=secretref:mssql-connection-stringDAB_CONFIG_BASE64=secretref:dab-config-base64Ingress: External on port 5000Users 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?
A. Create a firewall rule that allows a start and end IP address of 0.0.0.0. B. Enable FORCE_LAST_GOOD_PLAN automatic tuning for ProductsDB. C. Create an auto-failover group for ProductsDB. D. Run DBCC CHECKDB on ProductsDB.
Answer: A
Correct option: A. Create a firewall rule that allows a start and end IP address of 0.0.0.0.
Explanation: The DAB container runs correctly, because the /health endpoint responds and the configuration and secrets load, but queries fail with connection errors even though the login and database are correct. This indicates that the Azure SQL logical server's firewall is blocking the container app. Creating a server firewall rule with a start and end IP address of 0.0.0.0, equivalent to allowing Azure services and resources to access the server, permits connections that originate from Azure services such as Container Apps, whose outbound IPs can change. The rule is configured on the logical server, so no changes are needed to the container app or the DAB configuration.
Key points: • Healthy DAB but failed queries point to a network block. • The Azure SQL firewall blocks connections by default. • The 0.0.0.0 rule allows connections from Azure services. • No container or configuration changes are required.
In practice: The administrator adds the firewall rule on the logical server, retests the Products endpoint and, for stronger isolation later, plans a private endpoint with virtual network integration.
Why this matters: Diagnosing which layer fails, application or network, leads quickly to the right fix.
Key takeaway: Allow Azure services with a 0.0.0.0 firewall rule when an Azure-hosted app cannot reach Azure SQL.
Question # 11
You have an Azure SQL database that contains a column named Notes.A security review discovers that Notes contains sensitive data.You need to ensure that the data is protected so that neither the stored values nor the query inputs reveal information about the actual data. The solution must prevent a user from inferring relationships or repetitions in the data based on the encrypted outputWhich should you use?
A. Always Encrypted with secure enclaves B. Always Encrypted with randomized encryption C. row-level security <RLS) D. Always Encrypted with deterministic encryption
Answer: B
Correct option: B. Always Encrypted with randomized encryption
Explanation: Always Encrypted encrypts sensitive data in the client driver, so the database stores only ciphertext and never sees plaintext or keys, and query parameters that target encrypted columns are encrypted too. With randomized encryption, the same value encrypts to different ciphertext each time because a random initialization vector is used. This prevents anyone viewing the encrypted data from detecting repeated values or inferring relationships and patterns, which is exactly what the requirement describes. Randomized encryption is therefore the most secure Always Encrypted option for a sensitive Notes column that does not need equality lookups.
Key points: • Always Encrypted keeps plaintext and keys away from the server. • Query parameters are encrypted by the client driver. • Randomized encryption produces different ciphertext for the same value. • Patterns and repetitions cannot be inferred from the output.
In practice: The developer creates column master and column encryption keys, encrypts Notes with ENCRYPTION_TYPE = RANDOMIZED using the Always Encrypted wizard or PowerShell, and updates applications to use Column Encryption Setting=Enabled.
Why this matters: Randomized encryption gives the strongest protection for sensitive text that is not searched.
Key takeaway: Use Always Encrypted with randomized encryption to prevent inference from encrypted values.
Question # 12
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?
A. Create a personal access token (PAT) that has the repo scope and store the PAT in the .github\mcp.json file as the Authorization header. B. Create a personal access token (PAT) that has the repo scope and store the PAT in the.vscode\mcp.json file as the Authorization header. C. From the Command Palette, enter MCP: add server, select HTTP (HTTP or Server-Sent Events), enter [https://api.githubcopilot.com/mcp/](https://api.githubcopilot.com/mcp/), and then save the configuration to the user settings. D. From the Command Palette, enter MCP: add server, select HTTP (HTTP or Server-Sent Events), enter [https://api.githubcopilot.com/mcp/](https://api.githubcopilot.com/mcp/), and then save the configuration to the workspace settings.
Answer: D
Correct option: D. From the Command Palette, enter MCP: add server, select HTTP (HTTP or Server-Sent Events), enter [https://api.githubcopilot.com/mcp/](https://api.githubcopilot.com/mcp/), and then save the configuration to the workspace settings.
Explanation: The hosted GitHub MCP Server runs at https://api.githubcopilot.com/mcp/, and Visual Studio Code connects to it as a remote HTTP server. When connecting, VS Code supports the OAuth flow natively: the user signs in with GitHub in the browser, and VS Code stores and refreshes the token securely, so no personal access token is needed. Running MCP: Add Server from the Command Palette, choosing HTTP and entering the URL, then saving the configuration to the workspace settings writes it to .vscode/mcp.json in the repository folder. This makes the configuration repository-scoped and shareable with the team.
Key points: • The hosted GitHub MCP Server uses an HTTP endpoint. • VS Code handles OAuth sign-in for the server. • Workspace settings store the configuration in the repository. • No personal access tokens are stored in files.
In practice: The developer adds the server through the Command Palette, saves it to the workspace, commits .vscode/mcp.json and signs in through the OAuth prompt when Copilot first uses the server.
Why this matters: OAuth with workspace-scoped configuration provides secure, shareable access to MCP tools.
Key takeaway: Add the GitHub MCP Server URL as an HTTP server and save it to workspace settings for repository scope with OAuth.
Question # 13
You have a Microsoft SQL Server 2025 instance that contains a database named SalesDB SalesDB supports a Retrieval Augmented Generation (RAG) pattern for internal support tickets. The SQL Server instance runs without any outbound network connectivity.You plan to generate embeddings inside the SQL Server instance and store them in a table for vector similarity queries.You need to ensure that only a database user account named AlApplicationUser can run embedding generation by using the model.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
A. Grant the control permission on SalesDB to AlApplicationUser. B. Create a database audit specification on SalesDB owned by AlApplicationUser. C. Grant the execute permission on the external model project to AlApplicationUser. D. Create an external model project by using ONNX runtime and local paths. E. Create an external model project that points to a Microsoft Foundry REST endpoint.
Answer: C,D
Correct option: C. Grant the execute permission on the external model project to AlApplicationUser. D. Create an external model project by using ONNX runtime and local paths.
Explanation: SQL Server 2025 can generate embeddings inside the database engine with AI_GENERATE_EMBEDDINGS, which uses a model registered with CREATE EXTERNAL MODEL. Because the instance has no outbound network connectivity, the model must run locally: an external model that uses the ONNX runtime with local paths to the model and tokenizer files keeps embedding generation entirely inside the instance. To restrict usage to AIApplicationUser, the EXECUTE permission is granted on the external model object to that user only. Other users cannot call AI_GENERATE_EMBEDDINGS with the model, which follows least privilege.
Key points: • Local ONNX models work without outbound network access. • External models are registered with CREATE EXTERNAL MODEL. • EXECUTE permission on the model controls who can use it. • Granting only to AIApplicationUser enforces least privilege.
In practice: The administrator copies the ONNX model and runtime files to the server, creates the external model with API_FORMAT = 'ONNX Runtime' and local LOCATION paths, and runs GRANT EXECUTE ON EXTERNAL MODEL::ModelName TO AIApplicationUser.
Why this matters: Local models and object-level permissions make secure, in-database AI possible in isolated environments.
Key takeaway: Use a local ONNX external model for offline embedding generation and grant EXECUTE on it only to the required user.
Question # 14
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 responseWhich 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
A. summarizing free-form user input text B. training a custom language model on historical database data C. answering user questions based on company-specific knowledge D. generating marketing slogans based on user sentiment analysis
Answer: C
Correct option: C. answering user questions based on company-specific knowledge
Explanation: Retrieval Augmented Generation retrieves relevant information from a trusted data source at query time and passes it to the language model as context, so the model answers from current facts instead of only its training data. Answering user questions based on company-specific knowledge is the classic RAG use case. Responses are grounded in the latest data in DB1 because retrieval happens against the live database, no retraining or fine-tuning is needed when data changes because knowledge is supplied in each request, and the application can cite the exact rows or documents it retrieved. General-purpose models know nothing about private company data, which makes RAG essential for this scenario.
Key points: • RAG grounds answers in data retrieved at query time. • Changes in the database are reflected immediately. • No model retraining is needed when data changes. • Retrieved sources can be cited for transparency.
In practice: The team implements vector and full-text search in SQL Server 2025 to retrieve relevant rows for each question, adds them to the prompt and returns answers with references to the source records.
Why this matters: RAG lets AI solutions use private, current data accurately without the cost of retraining models.
Key takeaway: RAG is best for answering questions using company-specific, frequently changing knowledge with citations.
Question # 15
You have a Microsoft SQL Server 2025 database that contains a table named products. products contains two columns named description and embedding. embedding is generated from description.You have an application named App1. App1 has a feature that uses the following query.VECTOR_DISTANCE(‘cosine’, @query_vector, embedding)Users report that the feature is slow during peak usage times.You discover that during peak usage times, the semantic search latency increases and CPU utilization spikes.You need to reduce latency and CPU utilization related to the App1 feature.What should you do?
A. Create a vector index on products.embedding and change the query to use VECTOR_NORMALIZE and NORM_TYPE = ‘norm1’. B. Use CONTAINSTABLE against description only and remove the vector search. C. Create a vector index on products.embedding and change the query to use VECTOR_SEARCH and METRIC = ‘cosine’. D. Add a nonclustered index on products.embedding. E. Change embedding to VARBINARY(8000).
Answer: C
Correct option: C. Create a vector index on products.embedding and change the query to use VECTOR_SEARCH and METRIC = ‘cosine’.
Explanation: The feature uses VECTOR_DISTANCE, a scalar function that computes exact distances, so each query calculates the distance for every row in products and then sorts the results. This exact search becomes expensive as the table grows, causing high CPU and latency at peak times. Creating a vector index on products.embedding, such as a DiskANN index with the cosine metric, enables approximate nearest neighbor search. Changing the query to use VECTOR_SEARCH with METRIC = 'cosine' lets SQL Server traverse the index and evaluate only a small fraction of vectors, greatly reducing CPU and latency while keeping cosine semantics.
Key points: • VECTOR_DISTANCE alone performs exhaustive exact search. • A vector index supports approximate nearest neighbor search. • VECTOR_SEARCH uses the index to examine far fewer vectors. • The query metric must match the index metric.
In practice: The developer creates the vector index with METRIC = 'cosine', rewrites the App1 query to use VECTOR_SEARCH with TOP_N for the required number of results and load-tests the feature at peak volumes.
Why this matters: Vector indexes are essential for scalable, low-latency semantic search under load.
Key takeaway: Replace exact VECTOR_DISTANCE scans with a vector index and VECTOR_SEARCH to cut CPU and latency.
Question # 16
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.OrdersWITH (PARTITIONS (partition number));Does this meet the goal?
A. Yes B. No
Answer: A
Correct option: A. Yes
Explanation: TRUNCATE TABLE supports a WITH (PARTITIONS ...) clause that removes all rows from specified partitions while leaving other partitions untouched. After identifying the oldest month's partition number, for example with the $PARTITION function, running TRUNCATE TABLE dbo.Orders WITH (PARTITIONS (n)) removes that month's data. Truncation is a metadata operation that deallocates the partition's pages instead of deleting rows one by one, so it completes almost instantly, generates minimal log activity and holds locks only briefly. Queries on other months continue with negligible interference. Because the table's indexes are aligned with the partition scheme, the operation is supported, and the solution meets the goal.
Key points: • TRUNCATE can target specific partitions. • Deallocating pages is far faster than row-by-row deletion. • Minimal logging and short locks reduce impact on other queries. • Aligned indexes are required and are present here.
In practice: The developer runs SELECT $PARTITION.pf_OrderDate('2023-01-15') to find the partition number, truncates that partition and then optionally merges the now-empty range in the partition function.
Why this matters: Partition truncation makes removing old data fast and low-impact.
Key takeaway: Use TRUNCATE TABLE ... WITH (PARTITIONS (n)) to remove an entire partition with minimal impact.
Question # 17
You have an Azure SQL database named ToDo that contains a table named dbo.ToDo.Your company plans to develop an Azure Functions app to run whenever the rows in dbo.ToDo change. The app will process INSERT, UPDATE, and DELETE events by using the Azure SQL trigger binding.You need to configure ToDo to support the planned app.What should you do?
A. Enable change tracking on ToDo and dbo.ToDo. B. Enable change data capture (CDC) on ToDo and dbo.ToDo. C. On dbo.ToDo, create a Data Manipulation Language (DML) trigger that calls the Azure Functions HTTP endpoint. D. On dbo.ToDo, create a Data Definition Language (DDL) trigger that calls the Azure Functions HTTP endpoint.
Answer: A
Correct option: A. Enable change tracking on ToDo and dbo.ToDo.
Explanation: The Azure SQL trigger binding for Azure Functions is built on SQL change tracking. It polls the change tracking functions to find which rows changed since the last processed version and invokes the function with batches of those changes. Change tracking must therefore be enabled at two levels: on the database, for example ALTER DATABASE ToDo SET CHANGE_TRACKING = ON with a retention period, and on each monitored table, for example ALTER TABLE dbo.ToDo ENABLE CHANGE_TRACKING. The binding then manages its own state tables to track leases and progress, so multiple function instances can share the work.
Key points: • The SQL trigger binding relies on change tracking. • Change tracking must be enabled for the database. • Change tracking must also be enabled for each monitored table. • The binding tracks processed versions in its own state tables.
In practice: The developer enables change tracking on the ToDo database with suitable retention and on dbo.ToDo, deploys the function with the SQL trigger binding and verifies that inserts, updates and deletes invoke the function.
Why this matters: Correct database configuration is the prerequisite for event-driven processing with Azure Functions.
Key takeaway: Enable change tracking on both the database and the table to use the Azure SQL trigger binding.
Question # 18
You have an Azure SQL database that contains tables named dbo.ProduetDocs and dbo.ProductuocsEnbeddings. dbo.ProductOocs contains product documentation and the following columns:• Docld (int)• Title (nvdrchdr(200))• Body (nvarthar(max))• LastHodified (datetime2)The documentation is edited throughout the day. dbo.ProductDocsEabeddings contains the following columns:• Dotid (int)• ChunkOrder (int)• ChunkText (nvarchar(aax))• Embedding (vector(1536))The current embedding pipeline runs once per nightVou need to ensure that embeddings are updated every time the underlying documentation content changes The solution must NOT 'equire a nightly batch process.What should you include in the solution?
A. fixed-size chunking B. a smaller embedding model C. table triggers D. change tracking on dbo.ProductDocs
Answer: D
Correct option: D. change tracking on dbo.ProductDocs
Explanation: Change tracking records which rows in a table were inserted, updated or deleted, along with version numbers, with very little overhead. A process such as an Azure Functions app using the Azure SQL trigger binding, or a polling service, can call CHANGETABLE(CHANGES dbo.ProductDocs, @last_version) to find exactly which documents changed since it last ran. It can then re-chunk only those documents, generate new embeddings and replace their rows in dbo.ProductDocsEmbeddings. Embeddings are refreshed promptly as documentation changes, without waiting for a nightly batch, and the work is proportional to the number of edits.
Key points: • Change tracking identifies changed rows with low overhead. • CHANGETABLE returns changes since a given version. • Only changed documents are re-chunked and re-embedded. • Updates happen continuously instead of in a nightly batch.
In practice: The developer enables change tracking on the database and dbo.ProductDocs, builds a function that processes changes, deletes the old chunks for each changed DocId and inserts new chunks and embeddings.
Why this matters: Incremental processing keeps embeddings current at a manageable cost.
Key takeaway: Enable change tracking so an external process can update embeddings only for changed documents.
Question # 19
You have an Azure SQL database named SalesDB that contains a table named dbo. Articles, dbo.Articles contains two million articles with embeddmgs. The articles are updated frequently throughout the day.You query the embeddings by using VECTOR_SEARQiUsers report that semantic search results do NOT reflect the updates until the following day.Vou need to ensure that the embeddings are updated whenever the articles change. The solution must minimize CPU usage on SalesDBWhich embedding maintenance method should you implement?
A. Modify the query to use VECTOR.DTSTANCF instead of VECTOR.SEARCK B. enable change data capture (COC) on dbo.Articles and use an Azure Functions app to process CLX changes. C. Run an hourly Transact-SQL job that regenerates embeddings for all the rows in dbo.Articles. D. On dbo.Articles, create a trigger that calls AI GENERATE EMBEDOINGS for each inserted or updated row.
Answer: B
Correct option: B. enable change data capture (COC) on dbo.Articles and use an Azure Functions app to process CLX changes.
Explanation: Change data capture reads changes asynchronously from the transaction log and records inserted, updated and deleted rows in change tables, without adding work to the transactions that modify dbo.Articles. An Azure Functions app can process only the changed rows, call the embedding model and write back new embeddings for just those articles. The expensive embedding work runs in the Functions app instead of inside the database engine, and only changed rows are processed, so embeddings stay current throughout the day while CPU usage on SalesDB stays low.
Key points: • CDC captures changes from the transaction log asynchronously. • User transactions are not slowed by embedding generation. • Only changed articles are re-embedded. • Embedding work runs outside the database, reducing database CPU.
In practice: The developer enables CDC on the database and dbo.Articles, builds an Azure Functions app that reads changes regularly, generates embeddings for changed rows and updates the vector column, and monitors latency and throughput.
Why this matters: Offloading incremental embedding updates keeps semantic search fresh without overloading the database.
Key takeaway: Use CDC with an external process such as Azure Functions to refresh embeddings for changed rows efficiently.
Question # 20
Your team is developing an Azure SQL dataset solution from a locally cloned GitHub repository by using Microsoft Visual Studio Code and GitHub Copilot Chat.You need to disable the GitHub Copilot repository-level instructions for yourself without affecting other users.What should you do?
A. From Visual Studio Code, modify your GitHub Copilot Chat user settings. B. Add a - debug flag when you start the GitHub Copilot Chat extension. C. Delete .github/copilot-instruetions.md
Answer: A
Correct option: A. From Visual Studio Code, modify your GitHub Copilot Chat user settings.
Explanation: Repository-level custom instructions are stored in .github/copilot-instructions.md, and GitHub Copilot Chat includes them automatically when the file exists in the workspace. Visual Studio Code provides a setting that controls whether Copilot uses instruction files. Settings can be stored at the user level, in your personal profile, or at the workspace level, inside the repository. Changing the option in your user settings disables the repository instructions for your own Copilot Chat sessions only, while the file stays in the repository and every other developer continues to receive the instructions.
Key points: • Repository instructions live in .github/copilot-instructions.md. • User settings apply only to your own VS Code profile. • Workspace settings can be shared through the repository. • The shared file remains unchanged for the rest of the team.
In practice: The developer opens VS Code user settings, searches for the Copilot instruction files setting and turns it off at the user level, then confirms that Copilot Chat no longer references the repository instructions.
Why this matters: Personal settings let individuals adjust tools without disrupting team-wide conventions.
Key takeaway: Turn off Copilot instruction files in your VS Code user settings to disable them only for yourself.
0 Review for Microsoft DP-800 Exam Dumps