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 43

Question 420

Queries filter millions of product rows by a JSON property and repeatedly scan payloads. Which technical principle BEST explains the relevant design decision?

  1. Parsing nested arrays into typed rows reduces fragile manual string extraction.
  2. Sequence numbers can be consumed even when transactions roll back or cache is lost.
  3. Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers.
  4. Unindexed JSON path predicates can incur expensive row-by-row parsing.

Explanation

Correct Answer

D:

Unindexed JSON path predicates can incur expensive row-by-row parsing. This explains why the corrective action is to evaluate supported JSON index or indexed computed-column path for that SQL platform and version. Confirm the diagnosis when the execution plan uses the chosen path access strategy and returns matching products.

Incorrect Answers

A:

Parsing nested arrays into typed rows reduces fragile manual string extraction. The actual technical constraint is that unindexed JSON path predicates can incur expensive row-by-row parsing.

B:

Sequence numbers can be consumed even when transactions roll back or cache is lost. The actual technical constraint is that unindexed JSON path predicates can incur expensive row-by-row parsing.

C:

Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers. The actual technical constraint is that unindexed JSON path predicates can incur expensive row-by-row parsing.

Question 421

An app embeds user queries with one model but documents with another and similarity search becomes erratic. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Audit query and corpus model IDs on every release.
  2. Alert on per-document cost and failed queue age.
  3. Reject unexpected fields and never trust generated totals without validation.
  4. Handle replay, deletion and watermark recovery.

Explanation

Correct Answer

A:

Audit query and corpus model IDs on every release. This guards against recurrence because vectors from different embedding spaces are not reliably comparable by distance. The direct remediation is: Use compatible embedding model/version for both corpus and query vectors.

Incorrect Answers

B:

Alert on per-document cost and failed queue age. The current task instead requires this action: audit query and corpus model IDs on every release.

C:

Reject unexpected fields and never trust generated totals without validation.

D:

Handle replay, deletion and watermark recovery. The current task instead requires this action: audit query and corpus model IDs on every release.

Question 422

A fraud team seeks a two-hop relationship among accounts, devices and shared addresses. Which technical action BEST resolves the primary problem?

  1. Choose supported shortest-path syntax when needed rather than ordinary MATCH alone.
  2. Use MATCH with explicit edge direction and aliases for the required path.
  3. Prefer a properly correlated NOT EXISTS with matching key conditions.
  4. Make transaction operations idempotent using a stable request ID and uniqueness constraints.

Explanation

Correct Answer

B:

Use MATCH with explicit edge direction and aliases for the required path. This targets the primary issue because reversing graph edge direction can change which relationships match. Verification: Known two-hop links are retrieved without unrelated reverse links. Prevent recurrence: Test graph direction against curated fixtures.

Incorrect Answers

A:

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

C:

NULL in a NOT IN subquery can yield UNKNOWN and unexpectedly filter all rows.

D:

Transient retries can replay committed work even after client-side timeouts.

Question 423

A legal assistant must answer from a restricted set of client-specific contract clauses. Which test result BEST demonstrates that the intended solution is working?

  1. The computed amount matches audited ledger SQL exactly.
  2. A JSON parser reconstructs the intended order IDs and amounts.
  3. A cross-client negative test yields no unauthorized quoted text.
  4. The approved identity receives a 2xx response while an unauthorized one fails.

Explanation

Correct Answer

C:

A cross-client negative test yields no unauthorized quoted text. This is the decisive observable evidence after implementing use tenant-trimmed retrieval with citations and a strict abstention policy. It tests the underlying requirement: RAG is appropriate only if the retriever enforces contractual permissions.

Incorrect Answers

A:

The computed amount matches audited ledger SQL exactly. However, that result would not establish the required outcome: a cross-client negative test yields no unauthorized quoted text.

B:

A JSON parser reconstructs the intended order IDs and amounts. However, that result would not establish the required outcome: a cross-client negative test yields no unauthorized quoted text.

D:

The approved identity receives a 2xx response while an unauthorized one fails. However, that result would not establish the required outcome: a cross-client negative test yields no unauthorized quoted text.

Question 424

A dashboard needs all line item identifiers aggregated into one JSON array per order. Which technical principle BEST explains the relevant design decision?

  1. JSON_VALUE extracts a scalar path, while OPENJSON can shred collections.
  2. LAG references a preceding ordered row without self-joining every record.
  3. An outer reference lets the inner aggregate vary by each row's category.
  4. JSON_ARRAYAGG can collect multiple row values into a JSON array.

Explanation

Correct Answer

D:

JSON_ARRAYAGG can collect multiple row values into a JSON array. This explains why the corrective action is to use JSON_ARRAYAGG grouped by the order identifier where supported. Confirm the diagnosis when an order with three lines produces the correct three-element array.

Incorrect Answers

A:

JSON_VALUE extracts a scalar path, while OPENJSON can shred collections. The actual technical constraint is that JSON_ARRAYAGG can collect multiple row values into a JSON array.

B:

LAG references a preceding ordered row without self-joining every record. The actual technical constraint is that JSON_ARRAYAGG can collect multiple row values into a JSON array.

C:

An outer reference lets the inner aggregate vary by each row's category. The actual technical constraint is that JSON_ARRAYAGG can collect multiple row values into a JSON array.

Question 425

A stored procedure integrates with a DAB endpoint but unit tests pass while the API returns wrong roles. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Keep isolated test credentials and avoid production data.
  2. Run tests in CI with controlled representative fixtures.
  3. Enforce secret masking and log retention policy.
  4. Define drift policy for emergency fixes.

Explanation

Correct Answer

A:

Keep isolated test credentials and avoid production data. This guards against recurrence because cross-system contracts can fail even when individual SQL procedures are correct. The direct remediation is: Add integration tests across database permissions, DAB configuration and HTTP behavior.

Incorrect Answers

B:

Run tests in CI with controlled representative fixtures. The current task instead requires this action: keep isolated test credentials and avoid production data.

C:

Enforce secret masking and log retention policy. The current task instead requires this action: keep isolated test credentials and avoid production data.

D:

Define drift policy for emergency fixes. The current task instead requires this action: keep isolated test credentials and avoid production data.

Question 426

A developer enables broad verbose SQL tracing and production throughput falls sharply. Which technical action BEST resolves the primary problem?

  1. Enable supported SQL audit events covering relevant principals and DML operations.
  2. Use targeted audit groups and evaluate performance and retention costs.
  3. Add an RLS block predicate in addition to any required filter predicate.
  4. Derive tenant identity from verified authentication and tightly controlled session setup.

Explanation

Correct Answer

B:

Use targeted audit groups and evaluate performance and retention costs. This targets the primary issue because high-volume blanket logging can impact throughput and reveal sensitive inputs. Verification: Selected security events are captured with tolerable overhead. Prevent recurrence: Review event scope and sensitive-data redaction periodically.

Incorrect Answers

A:

Audit collection adds actor, operation and time evidence but does not itself block changes.

C:

Read filtering alone does not necessarily stop unauthorized DML that changes row ownership.

D:

This action addresses a different case: An RLS policy uses SESSION_CONTEXT set directly from untrusted request text. For that case, session context is only safe as an authorization input when callers cannot impersonate other tenants. For this case, it does not directly correct the observed problem; the distinguishing issue is high-volume blanket logging can impact throughput and reveal sensitive inputs. The specifically relevant immediate technical action is: Use targeted audit groups and evaluate performance and retention costs.

Question 427

An Azure-hosted worker stores a SQL username and password in its deployment manifest. What observed evidence would BEST confirm successful remediation?

  1. The app reads the intended view but cannot read private financial objects.
  2. The legitimate procedure succeeds while unrelated objects remain inaccessible.
  3. The worker connects with an approved identity and no stored SQL password.
  4. A spoofed request cannot change access to another tenant's rows.

Explanation

Correct Answer

C:

The worker connects with an approved identity and no stored SQL password. This is the decisive observable evidence after implementing use Microsoft Entra-based managed identity authentication where supported. It tests the underlying requirement: Managed identities remove a static SQL password from the deployed application configuration.

Incorrect Answers

A:

The app reads the intended view but cannot read private financial objects. However, that result would not establish the required outcome: the worker connects with an approved identity and no stored SQL password.

B:

The legitimate procedure succeeds while unrelated objects remain inaccessible. However, that result would not establish the required outcome: the worker connects with an approved identity and no stored SQL password.

D:

A spoofed request cannot change access to another tenant's rows. However, that result would not establish the required outcome: the worker connects with an approved identity and no stored SQL password.

Question 428

A directory matches transposed contact first names such as 'Jonh' versus 'John'. What is the MOST relevant technical distinction in this situation?

  1. Levenshtein-style distance measures character edits, not verified real-world identity.
  2. Without coordinated error handling, partial writes can violate business invariants.
  3. Silently suppressed exceptions create false evidence of committed work.
  4. Jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits.

Explanation

Correct Answer

D:

Jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits. This explains why the corrective action is to test JARO_WINKLER_DISTANCE or related supported fuzzy metric against a reference dataset. Confirm the diagnosis when candidate rankings improve for the known transpositions without false merges.

Incorrect Answers

A:

Levenshtein-style distance measures character edits, not verified real-world identity. The actual technical constraint is that jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits.

B:

Without coordinated error handling, partial writes can violate business invariants. The actual technical constraint is that jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits.

C:

Silently suppressed exceptions create false evidence of committed work. The actual technical constraint is that jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits.

Question 429

A system splits legal clauses every fixed 50 characters, separating negation words from conditions. Which ongoing control is MOST relevant after the issue is fixed?

  1. Review boundary cases during chunker changes.
  2. Keep section IDs and overlap rules versioned.
  3. Audit query and corpus model IDs on every release.
  4. Inspect invocation logs and rate limits.

Explanation

Correct Answer

A:

Review boundary cases during chunker changes. This guards against recurrence because splitting within essential context can reverse meaning and reduce retrieval accuracy. The direct remediation is: Use structure-aware chunking and sensible overlap around boundaries.

Incorrect Answers

B:

Keep section IDs and overlap rules versioned. The current task instead requires this action: review boundary cases during chunker changes.

C:

Audit query and corpus model IDs on every release. The current task instead requires this action: review boundary cases during chunker changes.

D:

Inspect invocation logs and rate limits. The current task instead requires this action: review boundary cases during chunker changes.

Question 430

A SQL AI integration needs a managed definition for an approved text embedding endpoint. What is the MOST appropriate immediate corrective approach?

  1. Restrict use through explicit database and endpoint permissions with audit monitoring.
  2. Create an external model object with supported endpoint, model identifiers and secure credential strategy.
  3. Exclude confidential credential fields and embed only approved relevant content.
  4. Choose and test a multimodal-capable external model with documented input support.

Explanation

Correct Answer

B:

Create an external model object with supported endpoint, model identifiers and secure credential strategy. This targets the primary issue because a database model definition binds SQL AI operations to a specific external provider configuration. Verification: An authorized test generates an embedding with the expected size. Prevent recurrence: Version endpoint changes and restrict model creation rights.

Incorrect Answers

A:

Model invocation can export inputs and incur charges, so object privileges matter.

C:

Embedding inputs can expose or encode sensitive data without adding retrieval value.

D:

Text-only models cannot directly interpret image content without a supporting vision pipeline.

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