Microsoft DP-800 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: DP-800
  • Exam Name/Title: Developing AI-Enabled Database Solutions
  • Certification Provider: Microsoft
  • Corresponding Certification: Microsoft Certified: SQL AI Developer
  • Exam Questions: 101
  • Updated On: Oct 27, 2026
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.
Correct Answer:

Explanation:
* pull_request
* build Database.sqlproj -c Release
The correct configuration is pull_request with dotnet build Database.sqlproj -c Release.
Fabrikam requires every pull request targeting production to be validated before merging, and all deployments must use the Release configuration.
Technical breakdown:
1. pull_request trigger: Executes the GitHub Actions workflow when a pull request targets the main branch.
This allows SQL project validation before changes are merged.
2. dotnet build: Compiles the SDK-style SQL database project, validates its database schema model, and produces a .dacpac deployment artifact.
3. -c Release: Explicitly selects the Release build configuration, satisfying Fabrikam ' s deployment configuration requirement.
4. Branch protection: Configure GitHub branch protection rules to make successful validation a required status check before merging. The workflow alone does not enforce this restriction.
5. Incorrect alternatives: push runs after changes are pushed, while merge is not a valid GitHub Actions event.
dotnet pack packages projects, and dotnet publish is not the appropriate SQL project validation command.
Microsoft identifies dotnet build as the supported compilation method for SDK-style SQL projects.
Completed GitHub Actions workflow
name: Validate SQL Project
on:
pull_request:
branches: [ " main " ]
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Step 1
run: dotnet build Database.sqlproj -c Release
DP-800 Official Study Guide Reference:
Main topic: Secure, optimize, and deploy database solutions.
Subtopic: Implement CI/CD by using SQL Database Projects.
Specific examination objectives:
* Create, build, and validate database models by using SQL Database Projects, including SDK-style models.
* Manage branching, pull requests, and conflict resolution.
* Design and implement controls for deployment pipelines.
You have a GitHub Actions workflow that builds and deploys an Azure SQL database. The schema is stored in a GitHub repository as an SDK-style SQL database project.
Following a code review, you discover that you need to generate a report that shows whether the production schema has diverged from the model in source control.
Which action should you add to the pipeline?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
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?
Correct Answer: C Vote an answer
You need to generate embeddings to resolve the issues identified by the analysts. Which column should you use?
Correct Answer: A Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
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.
Correct Answer:

Explanation:
JSON_VALUE(f.FeedbackJson, ' $.text ' ) AS FeedbackText
CONTAINS(FeedbackJson, @Keyword)
SimilarityScore
These three selections are the correct way to complete the query because they align exactly with the stated requirements for the FeedbackJson column.
First, to extract the customer feedback text from the JSON document, the correct expression is JSON_VALUE (f.FeedbackJson, ' $.text ' ) AS FeedbackText. Microsoft documents that JSON_VALUE is used to extract a scalar value from JSON, while JSON_QUERY is used for returning an object or array. Since $.text is the textual feedback string, JSON_VALUE is the correct function.
Second, to filter rows where the JSON text contains a keyword, the best choice is CONTAINS(FeedbackJson,
@Keyword). The scenario explicitly states that FeedbackJson already has a full-text index, and Microsoft documents that CONTAINS is the full-text predicate used in the WHERE clause to search full-text indexed character data. That makes it more appropriate than using EDIT_DISTANCE for keyword filtering.
Third, to order the results by similarity score, highest first, the correct item is SimilarityScore in the ORDER BY clause, which would be paired with DESC in the query. This matches the requirement to sort by the computed fuzzy similarity value. The DP-800 study guide specifically includes writing queries that use fuzzy string matching functions such as EDIT_DISTANCE, which supports the earlier computed SimilarityScore expression in the query.
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 output Which should you use?
Correct Answer: A Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
You need to recommend a solution to lesolve the slow dashboard query issue. What should you recommend?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
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.
Correct Answer:

Explanation:

The correct recommendation is to retrieve grounding data from knowledge_base and, at inference time, generate query embeddings and run a vector similarity search.
The chatbot currently answers some general HR questions but fails when policies change and when users ask about internal policy documents by title or category. That is exactly the kind of problem RAG is meant to solve: ground the LLM in the organization's proprietary content instead of relying on the model's training data or unrelated transactional tables. Microsoft's RAG guidance states that RAG extends LLMs by grounding responses in your own content and that, for agentic retrieval, knowledge bases unify knowledge sources for retrieval.
So the grounding data should come from knowledge_base, because that table stores the HR policy documents and already includes fields like title, content, category, and embedding. Those are the fields directly tied to the missing and outdated policy answers. By contrast:
employee_profiles and benefits_enrollment are operational HR tables, not the authoritative store for policy- document grounding.
PDF exports of the policies would be inferior to querying the indexed/structured knowledge base already prepared for retrieval.
The LLM training data is specifically the wrong source when the issue is outdated internal content.
For the retrieval step, Microsoft's guidance says to use embeddings for vector queries and notes that vector similarity search matches concepts, not exact terms. This is especially important because users ask about policy documents by title or category and also phrase questions in ways that might not exactly match document wording. Generating a query embedding and then running a vector similarity search is the appropriate retrieval step in a RAG pipeline.
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?
Correct Answer: C Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10