Exam Information
Free practice questions with explanations
Microsoft DP-800 Practice Questions
Answer a question to see the correct answer and the explanation, or click Show answer. Newest questions first.
- Questions
- 10
- Answered
- 0
- Correct
- 0
- Score
- -
-
1 Question 1 Single choice Design and develop database solutions
A logistics company stores shipment events in a SQL Server 2025 table with a clustered primary key on EventID. Analysts run frequent queries that filter by ShipmentID and EventTime and return the latest event per shipment. The table has 400 million rows and grows by 15 million rows per day. The team wants to reduce the cost of range scans while keeping the existing clustered primary key unchanged because other applications depend on it. Which action best meets these requirements?
Correct Answer: BExplanationA nonclustered index keyed on (ShipmentID, EventTime) with included columns supports seeks for both filter predicates and covers the query output, while leaving the clustered primary key on EventID untouched as required. Replacing the clustered key violates the stated dependency on EventID. A clustered columnstore index is designed for analytical scans and does not give efficient point or narrow range seeks for this pattern. A UNIQUE constraint on EventTime is incorrect because event times are not unique across shipments and the constraint would not provide the needed access path.
-
2 Question 2 Single choice Implement AI capabilities in database solutions
A healthcare publisher stores 2 million clinical articles in a SQL database and wants semantic search over article bodies, which are often 20,000 words long. Embeddings are generated with an external model that accepts a limited token input per call. Recall tests show that embeddings of whole articles miss relevant passages buried in the middle. The team must keep storage manageable and retrieve the specific passage that matches a question. Which design best meets these requirements?
Correct Answer: AExplanationChunking the articles into segments that respect the model's input limit, with some overlap so passages spanning a boundary are not lost, and storing a chunk-level embedding that links back to the parent article lets the search return the specific matching passage. Truncation discards the body text that holds the relevant content. Title-and-abstract embeddings fail the requirement to match passages in the body. Averaging paragraph vectors blurs individual passages together, which is exactly the recall problem the team already observed.
-
3 Question 3 Single choice Secure, optimize, and deploy database solutions
A payments application running on Azure SQL Database must let its web tier read and write a sales table without any stored secrets. Microsoft Entra ID is the identity provider, and the security team forbids SQL authentication for application accounts. The web tier runs on an Azure App Service instance with a system-assigned managed identity. During deployment, the database engineer is told to grant the App Service identity the minimum rights needed. Which action should the engineer take?
Correct Answer: BExplanationAzure SQL Database supports contained users created FROM EXTERNAL PROVIDER for Microsoft Entra principals, including managed identities, which enables passwordless access with a token and no stored secret. Granting only the object permissions the app needs satisfies least privilege. A SQL login with a Key Vault secret still uses SQL authentication with a password, which the policy forbids. Membership in db_owner grants far more than required. A server-level login mapped to a shared group uses shared credentials and violates least privilege and the passwordless requirement.
-
4 Question 4 Single choice Design and develop database solutions
A retailer runs a SQL Server 2022 database where the Orders table has a column named Attributes that holds JSON documents. Each document contains a customer tier and a list of promotion codes. A nightly job must report, for each tier, the number of orders that contain the promotion code WINTER24. The DBA wants to avoid changing the application that writes the JSON and to keep the query efficient on 80 million rows. Which approach is the BEST choice?
Correct Answer: CExplanationUsing OPENJSON with CROSS APPLY shreds the promotion array into rows so the code can be compared exactly, and a persisted, indexed computed column on JSON_VALUE for the tier keeps grouping efficient without changing the writer application. LIKE on raw JSON text can match unintended substrings and cannot reliably target array elements. Migrating to relational tables would require application changes the DBA wants to avoid. A full-text index on JSON text is not the mechanism for exact array element matching and is not a JSON index.
-
5 Question 5 Single choice Secure, optimize, and deploy database solutions
An insurance company's claims table contains a Notes column with free-text adjuster comments. The compliance team requires that adjusters in the Regional team see only claims from their own region, and that support staff never see claim amounts in clear text even though they can see claim identifiers. Both controls must be enforced in the database regardless of which application connects. Which combination of features should the database engineer implement?
Correct Answer: BExplanationRow-Level Security implemented with an inline table-valued predicate function and a security policy restricts rows by region for every connection, while Dynamic Data Masking hides the amount values from support staff without changing stored data. Always Encrypted would require client-side key access and would not be needed merely to mask values from database users. Applying RLS to a column and masking the region column misuses both features. Auditing records activity but does not enforce visibility, and column-level denial would block identifiers only if the columns were separated, which is not what the requirement describes.
-
6 Question 6 Single choice Implement AI capabilities in database solutions
A media company stores product descriptions in a table with 30 million rows and wants to keep embeddings synchronized whenever a description is inserted or updated. The embedding service is a model hosted outside the database and is rate-limited to 200 calls per minute. Updates can arrive in bursts of 50,000 rows during catalogue imports. The team wants embedding generation to be decoupled from the write transaction so imports are not slowed, and any failed calls should be retried without losing changes. Which maintenance method is the MOST appropriate?
Correct Answer: AExplanationChange Tracking records which rows changed without blocking the write, and a scheduled or queued process can read those changes in batches, retry failures, and throttle calls to stay within the rate limit. A synchronous trigger would hold the transaction open for every external call, slowing imports and failing on rate limits. A computed column calling an external model at query time is not a supported or sensible pattern and would repeat calls on every read. Full-text index population does not generate vector embeddings from an external model.
-
7 Question 7 Single choice Design and develop database solutions
A bank's data engineering team must retain every change to customer address records for seven years and let auditors query the state of a record as of any past date using standard T-SQL, without writing custom history tables. The current table is heavily updated by the online banking application and must not have its primary key changed. Which design best meets the requirement?
Correct Answer: BExplanationA system-versioned temporal table automatically maintains a history table and supports FOR SYSTEM_TIME queries for point-in-time reads using standard T-SQL, and its history retention period can be set to seven years. A custom trigger-based audit table requires custom querying logic the team wants to avoid. Change Data Capture is designed for downstream data movement and its change tables are not the intended point-in-time query interface. Ledger tables guarantee tamper evidence but do not provide a simple as-of query over the address state in the way the requirement describes.
-
8 Question 8 Single choice Secure, optimize, and deploy database solutions
A SaaS vendor reports that a reporting query runs in 2 seconds on the test server but takes over 90 seconds in production, although both databases have the same schema and indexes. Query Store is enabled in production and shows two plans for the query, with the slow plan having a much higher average CPU and a different cardinality estimate. The production database was restored from a backup whose statistics were last updated six weeks ago, and the table has had large bulk loads since. The team wants the most targeted fix that does not affect other queries. Which action should they take FIRST?
Correct Answer: AExplanationQuery Store identifies a specific faster plan for this query, and forcing that plan is a targeted action that affects only this query and can be reverted, which fits the requirement to avoid side effects on other queries. Updating statistics is a sound longer-term remedy, but the question asks for the action to take first to limit scope; forcing the known-good plan resolves the regression immediately. Adding RECOMPILE to every reporting query affects many queries and adds compilation cost. Rebuilding all indexes is broad, time-consuming, and does not directly target the stale cardinality issue.
-
9 Question 9 Multiple choice Design and develop database solutions
A manufacturing company is designing a SQL database for sensor readings arriving at 40,000 rows per second. The readings table will be queried mainly with aggregate analytics across many devices, and inserts must not be blocked by reads. The company also needs to age out data by month without a costly DELETE. Which TWO design choices best meet these requirements? (Choose two.)
Correct Answer: A, CExplanationA clustered columnstore index compresses data and speeds large aggregations, and partitioning by month with the index aligned to that scheme lets old partitions be switched out or truncated instead of deleted row by row. A clustered index on DeviceID alone does not suit the high-volume time-ordered inserts and does not address aging. Snapshot isolation helps readers avoid blocking but the table still lacks an efficient analytics layout and aging mechanism. Separate tables with a UNION ALL view can work but are a manual approach that the question's partitioning requirement is meant to avoid and it does not use partition switching the same way.
-
10 Question 10 Multiple choice Implement AI capabilities in database solutions
A legal-tech firm stores contract clauses and wants users to search by exact clause numbers, by meaning, and across both at once. Clause numbers must match exactly, and the search must return results ranked by a combined relevance score. The team plans to use Microsoft Entra-secured access to the database and to choose index types carefully. Which TWO actions are appropriate for this design? (Choose two.)
Correct Answer: A, BExplanationA full-text index supports exact term matching such as clause numbers through CONTAINS, and a vector column with a vector index supports semantic retrieval through VECTOR_SEARCH, which together cover both search modes. Removing the full-text index would lose exact matching, which embeddings handle poorly for identifiers. Using vector distance for exact clause numbers is the wrong tool for precise matching. A hybrid combination is a valid goal, but the question asks for the two foundational actions and option E is a ranking technique that presumes both indexes already exist, so the two base components are the correct selections.
These are 10 of the 97 questions in the full DP-800 pack.
Get All 97 QuestionsGet all 97 questions & answers
Full access options for Microsoft DP-800
Self-study
PDF Version
- 97 actual exam questions
- Compatible with all devices
- Printable PDF format
- No download limits
- 90 days free updates
- 24/7 customer support
Best value
Bundle Pack
- Discounted PDF + online access
- 97 actual exam questions
- Both PDF and online practice test
- Free 90 days updates
- No download or practice limits
- 24/7 customer support
Exam simulation
Online Practice Test
- 97 actual exam questions
- Actual exam environment
- 90 days free updates
- Browser-based software
- 24/7 customer support
100% Money Back Guarantee
Your success comes first
At DumpsProvider, we give you a 100% money back guarantee on all of our exam dumps. For us, your success is the #1 priority and we are more than confident that our exam material will help you pass the DP-800 Exam (Developing AI-Enabled Database Solutions) on your very first attempt.
In a rare case, if you fail your exam, we will refund your amount without asking a single question.