McAfee Secure

Exam Code: DP-800

Exam Name: Developing AI-Enabled Database Solutions

Certification Provider: Microsoft

Corresponding Certification: Microsoft Certified: SQL AI Developer Associate

Microsoft DP-800 Questions & Answers

Study with Up-To-Date REAL Exam Questions and Answers from the ACTUAL Test

101 Questions & Answers with Testing Engine

"Developing AI-Enabled Database Solutions Exam", also known as DP-800 exam, is a Microsoft certification exam.

Pass your tests with the always up-to-date DP-800 Exam Engine. Your DP-800 training materials keep you at the head of the pack!

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Was: $137.49
Now: $124.99

Microsoft DP-800 Practice Test 25

Question 240

A rolling retention process must remove the oldest table partition with minimal data movement. What maintenance or governance control BEST reduces recurrence of this problem?

  1. Pre-create boundaries and monitor data skew.
  2. Keep precision/scale decisions in schema review and financial regression tests.
  3. Avoid replacing lookup-heavy OLTP rowstore access without workload tests.
  4. Use transactional change control and rehearse rollback.

Explanation

Correct Answer

D:

Use transactional change control and rehearse rollback. This guards against recurrence because metadata-based partition switching requires strict schema and partition alignment. The direct remediation is: Use compatible staging tables and ALTER TABLE SWITCH after checking alignment and constraints.

Incorrect Answers

A:

Pre-create boundaries and monitor data skew. The current task instead requires this action: use transactional change control and rehearse rollback.

B:

Keep precision/scale decisions in schema review and financial regression tests.

C:

Avoid replacing lookup-heavy OLTP rowstore access without workload tests. The current task instead requires this action: use transactional change control and rehearse rollback.

Question 241

An analyst wants the latest event per sensor without deleting older events. Which implementation decision BEST addresses this requirement?

  1. Use ROW_NUMBER() OVER(PARTITION BY SensorId ORDER BY EventTime DESC, EventId DESC) and filter rn=1.
  2. Include an explicit window ORDER BY with unique tie-breaker columns.
  3. Test JARO_WINKLER_DISTANCE or related supported fuzzy metric against a reference dataset.
  4. Choose supported shortest-path syntax when needed rather than ordinary MATCH alone.

Explanation

Correct Answer

A:

Use ROW_NUMBER() OVER(PARTITION BY SensorId ORDER BY EventTime DESC, EventId DESC) and filter rn=1. This targets the primary issue because ranking functions identify one top row per group with an explicit order. Verification: The query returns one expected latest event for each sensor. Prevent recurrence: Include a stable tie-breaker and monitor late events.

Incorrect Answers

B:

Window ranking order is defined by its OVER clause, not the outer result sort.

C:

Jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits.

D:

A path existence predicate does not necessarily compute minimal hop count.

Question 242

A batch transaction updates thousands of rows in one lock-intensive statement with escalating contention. Which measurable outcome BEST verifies that the requirement is satisfied?

  1. A concurrent workload no longer produces avoidable deadlock victims.
  2. Batch tests preserve atomic business requirements with lower p95 waits.
  3. A peak replay meets throughput and latency targets within budget.
  4. Simultaneous sale tests yield at most the available stock quantity.

Explanation

Correct Answer

B:

Batch tests preserve atomic business requirements with lower p95 waits. This is the decisive observable evidence after implementing process safe bounded batches or adjust indexes and isolation as measured. It tests the underlying requirement: Large transactions increase lock duration, log pressure and potential escalation.

Incorrect Answers

A:

A concurrent workload no longer produces avoidable deadlock victims. However, that result would not establish the required outcome: batch tests preserve atomic business requirements with lower p95 waits.

C:

A peak replay meets throughput and latency targets within budget. However, that result would not establish the required outcome: batch tests preserve atomic business requirements with lower p95 waits.

D:

Simultaneous sale tests yield at most the available stock quantity. However, that result would not establish the required outcome: batch tests preserve atomic business requirements with lower p95 waits.

Question 243

A SQL application must summarize customer orders but presently concatenates column values into ambiguous text. Which technical reason BEST explains the proposed correction?

  1. Data minimization reduces prompt exposure and cost without losing relevant context.
  2. The stored procedure enables outbound HTTP but requires correct permissions, endpoint reachability and payload formatting.
  3. Structured JSON preserves field boundaries and escaping for downstream model prompts.
  4. Numeric reconciliation is a structured calculation, not a reason to hallucinate an answer from documents.

Explanation

Correct Answer

C:

Structured JSON preserves field boundaries and escaping for downstream model prompts. This explains why the corrective action is to serialize selected relational fields with FOR JSON or appropriate JSON_OBJECT support. Confirm the diagnosis when a JSON parser reconstructs the intended order IDs and amounts.

Incorrect Answers

A:

Data minimization reduces prompt exposure and cost without losing relevant context. The actual technical constraint is that structured JSON preserves field boundaries and escaping for downstream model prompts.

B:

The stored procedure enables outbound HTTP but requires correct permissions, endpoint reachability and payload formatting. The actual technical constraint is that structured JSON preserves field boundaries and escaping for downstream model prompts.

D:

Numeric reconciliation is a structured calculation, not a reason to hallucinate an answer from documents. The actual technical constraint is that structured JSON preserves field boundaries and escaping for downstream model prompts.

Question 244

An application enables SERIALIZABLE for every read and sees growing lock contention. What maintenance or governance control BEST reduces recurrence of this problem?

  1. Use explicit retry or user merge flow on conflicts.
  2. Keep transactions short and test snapshot version-store impact.
  3. Alert on sustained blockers and uncommitted transactions.
  4. Document isolation assumptions in critical transaction code.

Explanation

Correct Answer

D:

Document isolation assumptions in critical transaction code. This guards against recurrence because serializable range protection can reduce throughput and increase blocking. The direct remediation is: Choose the lowest isolation that meets correctness and benchmark concurrency behavior.

Incorrect Answers

A:

Use explicit retry or user merge flow on conflicts. The current task instead requires this action: document isolation assumptions in critical transaction code.

B:

Keep transactions short and test snapshot version-store impact. The current task instead requires this action: document isolation assumptions in critical transaction code.

C:

Alert on sustained blockers and uncommitted transactions. The current task instead requires this action: document isolation assumptions in critical transaction code.

Question 245

A team chooses an ANN index solely by query latency without checking write costs. What should the SQL developer do FIRST to address the specific issue?

  1. Compare index build time, insert cost, storage and recall alongside query latency.
  2. Benchmark supported ANN index tuning and rebuild/retraining options against exact KNN results.
  3. Use RRF to reward documents ranking highly across multiple candidate lists.
  4. Compute ranks within each result list before applying reciprocal-rank contributions.

Explanation

Correct Answer

A:

Compare index build time, insert cost, storage and recall alongside query latency. This targets the primary issue because index choice affects ingestion and maintenance as well as retrieval speed. Verification: A representative mixed read/write load meets agreed SLOs. Prevent recurrence: Use version-specific supported index documentation.

Incorrect Answers

B:

Approximate structures trade memory, speed and recall depending on data and configuration.

C:

Using RRF to reward documents ranking highly across multiple candidate lists would not correct a team chooses an ANN index solely by query latency without checking write costs. Compare index build time, insert cost, storage and recall alongside query latency.

D:

RRF operates on list positions and is distinct from raw score interpolation.

Question 246

An inventory query compares each item's price to its category's average price. Which acceptance check is MOST directly related to this scenario?

  1. Suppliers with no invoice are returned correctly with null-containing test data.
  2. An item is flagged only when above its own category average.
  3. Injected errors leave balances unchanged and propagate a useful error.
  4. Labeled positive/negative pairs meet acceptable precision and recall.

Explanation

Correct Answer

B:

An item is flagged only when above its own category average. This is the decisive observable evidence after implementing use a correlated aggregate subquery or window function scoped by category. It tests the underlying requirement: An outer reference lets the inner aggregate vary by each row's category.

Incorrect Answers

A:

Suppliers with no invoice are returned correctly with null-containing test data. However, that result would not establish the required outcome: an item is flagged only when above its own category average.

C:

Injected errors leave balances unchanged and propagate a useful error. However, that result would not establish the required outcome: an item is flagged only when above its own category average.

D:

Labeled positive/negative pairs meet acceptable precision and recall. However, that result would not establish the required outcome: an item is flagged only when above its own category average.

Question 247

A read-only reporting view must be exposed to partners without direct table edit access. Which technical property or constraint MOST directly matters here?

  1. DAB can surface declared stored procedures without granting arbitrary query execution.
  2. Configuration must resolve the correct database per environment without leaking secrets.
  3. Mapping a view can create a governed projection with narrower permissions than base tables.
  4. API endpoint changes can break consumers even if the underlying database remains healthy.

Explanation

Correct Answer

C:

Mapping a view can create a governed projection with narrower permissions than base tables. This explains why the corrective action is to map the database view as a DAB entity and restrict permitted operations. Confirm the diagnosis when partners read approved columns and cannot modify base tables.

Incorrect Answers

A:

DAB can surface declared stored procedures without granting arbitrary query execution. The actual technical constraint is that mapping a view can create a governed projection with narrower permissions than base tables.

B:

Configuration must resolve the correct database per environment without leaking secrets. The actual technical constraint is that mapping a view can create a governed projection with narrower permissions than base tables.

D:

API endpoint changes can break consumers even if the underlying database remains healthy. The actual technical constraint is that mapping a view can create a governed projection with narrower permissions than base tables.

Question 248

A developer assumes SQL graph MATCH automatically finds shortest paths in every query. Which preventive practice BEST addresses the underlying risk over time?

  1. Enforce ownership and governance over graph writes.
  2. Use XACT_STATE appropriately before commit or rollback.
  3. Record retry policy and distinguish transient from permanent errors.
  4. Guard against cyclic paths and unsupported graph features.

Explanation

Correct Answer

D:

Guard against cyclic paths and unsupported graph features. This guards against recurrence because a path existence predicate does not necessarily compute minimal hop count. The direct remediation is: Choose supported shortest-path syntax when needed rather than ordinary MATCH alone.

Incorrect Answers

A:

Enforce ownership and governance over graph writes. The current task instead requires this action: guard against cyclic paths and unsupported graph features.

B:

Use XACT_STATE appropriately before commit or rollback. The current task instead requires this action: guard against cyclic paths and unsupported graph features.

C:

Record retry policy and distinguish transient from permanent errors. The current task instead requires this action: guard against cyclic paths and unsupported graph features.

Question 249

A SQL Server catalog needs inflection-aware keyword search in support articles. What should the SQL developer do FIRST to address the specific issue?

  1. Configure a full-text catalog/index and query with CONTAINS or FREETEXT as appropriate.
  2. Use a suitable CONTAINS phrase predicate for literal phrase intent.
  3. Use indexed lexical/full-text or exact filter matching appropriate to the identifier.
  4. Use native VECTOR(1536) where supported and compare associated index strategies.

Explanation

Correct Answer

A:

Configure a full-text catalog/index and query with CONTAINS or FREETEXT as appropriate. This targets the primary issue because full-text indexes support linguistic tokenization and retrieval beyond simple LIKE scanning. Verification: Known phrase and inflection tests return expected articles. Prevent recurrence: Maintain population monitoring and language-specific word breakers.

Incorrect Answers

B:

FREETEXT expands linguistic meaning and is not equivalent to exact phrase matching.

C:

Embedding similarity can confuse near-looking product codes that must match exactly.

D:

Native vector types validate dimensions and avoid repeated parsing of text arrays.

Question 250

A compliance team needs cryptographically verifiable evidence that ledger entries were not silently altered. Which acceptance check is MOST directly related to this scenario?

  1. A point-in-time query returns the former invoice values after an update.
  2. Verification detects a controlled tampering attempt against the ledger history.
  3. Sample records validate JSON paths while required keys remain enforced.
  4. Concurrent inserts receive nonconflicting sequence-generated identifiers.

Explanation

Correct Answer

B:

Verification detects a controlled tampering attempt against the ledger history. This is the decisive observable evidence after implementing assess SQL ledger tables with digest storage and verification controls. It tests the underlying requirement: Ledger tamper evidence supports verification; it does not prevent every privileged misuse.

Incorrect Answers

A:

A point-in-time query returns the former invoice values after an update. However, that result would not establish the required outcome: verification detects a controlled tampering attempt against the ledger history.

C:

Sample records validate JSON paths while required keys remain enforced. However, that result would not establish the required outcome: verification detects a controlled tampering attempt against the ledger history.

D:

Concurrent inserts receive nonconflicting sequence-generated identifiers. However, that result would not establish the required outcome: verification detects a controlled tampering attempt against the ledger history.

Developing AI-Enabled Database Solutions (DP-800) Practice Tests