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 93

Question 920

Queries filter millions of product rows by a JSON property and repeatedly scan payloads. What should the SQL developer do FIRST to address the specific issue?

  1. Use OPENJSON with a typed WITH schema and transactional parent-child inserts.
  2. Use a shared SQL SEQUENCE with NEXT VALUE FOR in supported database environments.
  3. Evaluate range partitioning with boundary values aligned to retention and typical filters.
  4. Evaluate supported JSON index or indexed computed-column path for that SQL platform and version.

Explanation

Correct Answer

D:

Evaluate supported JSON index or indexed computed-column path for that SQL platform and version. This targets the primary issue because unindexed JSON path predicates can incur expensive row-by-row parsing. Verification: The execution plan uses the chosen path access strategy and returns matching products. Prevent recurrence: Benchmark maintenance overhead and verify deployment-specific feature support.

Incorrect Answers

A:

Parsing nested arrays into typed rows reduces fragile manual string extraction.

B:

A sequence can allocate numbers independently of one table identity property.

C:

Partition elimination can reduce scanned partitions when predicates are sargable.

Question 921

An app embeds user queries with one model but documents with another and similarity search becomes erratic. Which acceptance check is MOST directly related to this scenario?

  1. A gold query set ranks known relevant chunks consistently after alignment.
  2. A throttled test recovers without duplicate vector records or budget spikes.
  3. A sampled retrieval retains the complete exclusion condition.
  4. An updated row results in one current embedding after retries.

Explanation

Correct Answer

A:

A gold query set ranks known relevant chunks consistently after alignment. This is the decisive observable evidence after implementing use compatible embedding model/version for both corpus and query vectors. It tests the underlying requirement: Vectors from different embedding spaces are not reliably comparable by distance.

Incorrect Answers

B:

A throttled test recovers without duplicate vector records or budget spikes. However, that result would not establish the required outcome: a gold query set ranks known relevant chunks consistently after alignment.

C:

A sampled retrieval retains the complete exclusion condition. However, that result would not establish the required outcome: a gold query set ranks known relevant chunks consistently after alignment.

D:

An updated row results in one current embedding after retries. However, that result would not establish the required outcome: a gold query set ranks known relevant chunks consistently after alignment.

Question 922

A fraud team seeks a two-hop relationship among accounts, devices and shared addresses. Which technical property or constraint MOST directly matters here?

  1. A path existence predicate does not necessarily compute minimal hop count.
  2. Reversing graph edge direction can change which relationships match.
  3. EXISTS is a semijoin-style test of matching rows without duplicating the outer customer.
  4. A regex predicate evaluates pattern matching rather than fixed substring equality.

Explanation

Correct Answer

B:

Reversing graph edge direction can change which relationships match. This explains why the corrective action is to use MATCH with explicit edge direction and aliases for the required path. Confirm the diagnosis when known two-hop links are retrieved without unrelated reverse links.

Incorrect Answers

A:

A path existence predicate does not necessarily compute minimal hop count. The actual technical constraint is that reversing graph edge direction can change which relationships match.

C:

EXISTS is a semijoin-style test of matching rows without duplicating the outer customer. The actual technical constraint is that reversing graph edge direction can change which relationships match.

D:

A regex predicate evaluates pattern matching rather than fixed substring equality. The actual technical constraint is that reversing graph edge direction can change which relationships match.

Question 923

A legal assistant must answer from a restricted set of client-specific contract clauses. Which preventive practice BEST addresses the underlying risk over time?

  1. Keep business arithmetic outside uncontrolled model generation.
  2. Rotate permissions and avoid hardcoded bearer tokens.
  3. Audit access metadata and citation validity.
  4. Restrict execute permission and log outbound destination.

Explanation

Correct Answer

C:

Audit access metadata and citation validity. This guards against recurrence because RAG is appropriate only if the retriever enforces contractual permissions. The direct remediation is: Use tenant-trimmed retrieval with citations and a strict abstention policy.

Incorrect Answers

A:

Keep business arithmetic outside uncontrolled model generation. The current task instead requires this action: audit access metadata and citation validity.

B:

Rotate permissions and avoid hardcoded bearer tokens. The current task instead requires this action: audit access metadata and citation validity.

D:

Restrict execute permission and log outbound destination. The current task instead requires this action: audit access metadata and citation validity.

Question 924

A dashboard needs all line item identifiers aggregated into one JSON array per order. Which technical action BEST resolves the primary problem?

  1. Use JSON_VALUE on an appropriate scalar path and validate path existence and types.
  2. Use CATCH to log safely and rethrow meaningful failures rather than masking them.
  3. Use TRY/CATCH with an explicit transaction, rollback, and THROW for failure handling.
  4. Use JSON_ARRAYAGG grouped by the order identifier where supported.

Explanation

Correct Answer

D:

Use JSON_ARRAYAGG grouped by the order identifier where supported. This targets the primary issue because JSON_ARRAYAGG can collect multiple row values into a JSON array. Verification: An order with three lines produces the correct three-element array. Prevent recurrence: Specify ordering when supported and required by consumers.

Incorrect Answers

A:

JSON_VALUE extracts a scalar path, while OPENJSON can shred collections.

B:

Using CATCH to log safely and rethrow meaningful failures rather than masking them addresses a different database behavior; the relevant distinction is that use JSON_ARRAYAGG grouped by the order identifier where supported.

C:

Without coordinated error handling, partial writes can violate business invariants.

Question 925

A stored procedure integrates with a DAB endpoint but unit tests pass while the API returns wrong roles. Which test result BEST demonstrates that the intended solution is working?

  1. Authorized and denied endpoint tests match the intended policy.
  2. Automated tests reject negative amounts and accept valid boundary values.
  3. The project build and staging publish identify unsupported constructs before production.
  4. A test branch shows reviewed object changes with commit history.

Explanation

Correct Answer

A:

Authorized and denied endpoint tests match the intended policy. This is the decisive observable evidence after implementing add integration tests across database permissions, DAB configuration and HTTP behavior. It tests the underlying requirement: Cross-system contracts can fail even when individual SQL procedures are correct.

Incorrect Answers

B:

Automated tests reject negative amounts and accept valid boundary values. However, that result would not establish the required outcome: authorized and denied endpoint tests match the intended policy.

C:

The project build and staging publish identify unsupported constructs before production. However, that result would not establish the required outcome: authorized and denied endpoint tests match the intended policy.

D:

A test branch shows reviewed object changes with commit history. However, that result would not establish the required outcome: authorized and denied endpoint tests match the intended policy.

Question 926

A developer enables broad verbose SQL tracing and production throughput falls sharply. Which technical principle BEST explains the relevant design decision?

  1. Audit collection adds actor, operation and time evidence but does not itself block changes.
  2. High-volume blanket logging can impact throughput and reveal sensitive inputs.
  3. Managed identities remove a static SQL password from the deployed application configuration.
  4. Always Encrypted protects configured column values from the SQL engine during normal processing.

Explanation

Correct Answer

B:

High-volume blanket logging can impact throughput and reveal sensitive inputs. This explains why the corrective action is to use targeted audit groups and evaluate performance and retention costs. Confirm the diagnosis when selected security events are captured with tolerable overhead.

Incorrect Answers

A:

Auditing collection adds actor, operation and time evidence but does not itself block changes concerns a different mechanism; the relevant technical point is that high-volume blanket logging can impact throughput and reveal sensitive inputs.

C:

Managed identities remove a static SQL password from the deployed application configuration. The actual technical constraint is that high-volume blanket logging can impact throughput and reveal sensitive inputs.

D:

Always Encrypted protects configured column values from the SQL engine during normal processing. The actual technical constraint is that high-volume blanket logging can impact throughput and reveal sensitive inputs.

Question 927

An Azure-hosted worker stores a SQL username and password in its deployment manifest. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Track principal creation across environments.
  2. Monitor service-principal grants and run negative authorization tests.
  3. Scope identity permissions and review token failures.
  4. Rate-limit expensive query shapes and monitor access logs.

Explanation

Correct Answer

C:

Scope identity permissions and review token failures. This guards against recurrence because managed identities remove a static SQL password from the deployed application configuration. The direct remediation is: Use Microsoft Entra-based managed identity authentication where supported.

Incorrect Answers

A:

Tracking principal creation across environments would not correct following remediation, what safeguard BEST prevents a repeat of this specific failure. Scope identity permissions and review token failures.

B:

Monitor service-principal grants and run negative authorization tests. The current task instead requires this action: scope identity permissions and review token failures.

D:

Rate-limit expensive query shapes and monitor access logs. The current task instead requires this action: scope identity permissions and review token failures.

Question 928

A directory matches transposed contact first names such as 'Jonh' versus 'John'. Which technical action BEST resolves the primary problem?

  1. Evaluate EDIT_DISTANCE to quantify edit operations before human review.
  2. Use supported SQL graph node/edge tables and the MATCH predicate for traversals.
  3. Use a nonrecursive CTE as a named query expression in the next SELECT.
  4. Test JARO_WINKLER_DISTANCE or related supported fuzzy metric against a reference dataset.

Explanation

Correct Answer

D:

Test JARO_WINKLER_DISTANCE or related supported fuzzy metric against a reference dataset. This targets the primary issue because jaro-Winkler-style measures can treat transpositions and prefixes differently from raw edits. Verification: Candidate rankings improve for the known transpositions without false merges. Prevent recurrence: Do not use name similarity to bypass authentication.

Incorrect Answers

A:

Evaluate EDIT_DISTANCE to quantify edit operations before human review. The relevant technical condition instead is that test JARO_WINKLER_DISTANCE or related supported fuzzy metric against a reference dataset.

B:

Graph relationships support path queries but still need guarded edge permissions.

C:

A CTE improves query readability but is not automatically materialized into a persistent table.

Question 929

A system splits legal clauses every fixed 50 characters, separating negation words from conditions. Which test result BEST demonstrates that the intended solution is working?

  1. A sampled retrieval retains the complete exclusion condition.
  2. Clause queries retrieve the specific correct paragraph rather than the entire contract.
  3. A labeled photo-and-text set yields correct asset annotations.
  4. Sample calls produce valid JSON schema instances or explicit errors.

Explanation

Correct Answer

A:

A sampled retrieval retains the complete exclusion condition. This is the decisive observable evidence after implementing use structure-aware chunking and sensible overlap around boundaries. It tests the underlying requirement: Splitting within essential context can reverse meaning and reduce retrieval accuracy.

Incorrect Answers

B:

Clause queries retrieve the specific correct paragraph rather than the entire contract. However, that result would not establish the required outcome: a sampled retrieval retains the complete exclusion condition.

C:

A labeled photo-and-text set yields correct asset annotations. However, that result would not establish the required outcome: a sampled retrieval retains the complete exclusion condition.

D:

Sample calls produce valid JSON schema instances or explicit errors. However, that result would not establish the required outcome: a sampled retrieval retains the complete exclusion condition.

Question 930

A SQL AI integration needs a managed definition for an approved text embedding endpoint. Which technical principle BEST explains the relevant design decision?

  1. Model invocation can export inputs and incur charges, so object privileges matter.
  2. A database model definition binds SQL AI operations to a specific external provider configuration.
  3. A larger model is not automatically the best fit for cost, speed or multilingual accuracy.
  4. Configure CDC to refresh rows after source data changes without defining an external model object.

Explanation

Correct Answer

B:

A database model definition binds SQL AI operations to a specific external provider configuration. This explains why the corrective action is to create an external model object with supported endpoint, model identifiers and secure credential strategy. Confirm the diagnosis when an authorized test generates an embedding with the expected size.

Incorrect Answers

A:

Modeling invocation can export inputs and incur charges, so object privileges matter concerns a different mechanism; the relevant technical point is that a database model definition binds SQL AI operations to a specific external provider configuration.

C:

A larger model is not automatically the best fit for cost, speed or multilingual accuracy. The actual technical constraint is that a database model definition binds SQL AI operations to a specific external provider configuration.

D:

CDC identifies changed data but does not create the authenticated model configuration that SQL AI operations need to call the approved endpoint.

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