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 4

Question 30

A REST client needs filtering on a public product type but must never filter private margin columns. Which test result BEST demonstrates that the intended solution is working?

  1. Page requests return stable bounded records without gaps.
  2. A permitted category filter works but margin fields remain inaccessible.
  3. Integration tests pass separately for the selected REST and GraphQL operations.
  4. Staging resolves its own Azure SQL endpoint and local development still works.

Explanation

Correct Answer

B:

A permitted category filter works but margin fields remain inaccessible. This is the decisive observable evidence after implementing configure entity fields, authorization and supported filter behavior to expose only permitted fields. It tests the underlying requirement: DAB entity projection and permissions determine the API data surface.

Incorrect Answers

A:

Page requests return stable bounded records without gaps. However, that result would not establish the required outcome: a permitted category filter works but margin fields remain inaccessible.

C:

Integration tests pass separately for the selected REST and GraphQL operations. However, that result would not establish the required outcome: a permitted category filter works but margin fields remain inaccessible.

D:

Staging resolves its own Azure SQL endpoint and local development still works. However, that result would not establish the required outcome: a permitted category filter works but margin fields remain inaccessible.

Question 31

An API imports several nested line items in one JSON request and must store them as normalized rows. Which technical principle BEST explains the relevant design decision?

  1. Unindexed JSON path predicates can incur expensive row-by-row parsing.
  2. A sequence can allocate numbers independently of one table identity property.
  3. Parsing nested arrays into typed rows reduces fragile manual string extraction.
  4. Application-layer validation alone can be bypassed by other writers.

Explanation

Correct Answer

C:

Parsing nested arrays into typed rows reduces fragile manual string extraction. This explains why the corrective action is to use OPENJSON with a typed WITH schema and transactional parent-child inserts. Confirm the diagnosis when a test payload creates the expected number of items with correct types.

Incorrect Answers

A:

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

B:

A sequence can allocate numbers independently of one table identity property. The actual technical constraint is that parsing nested arrays into typed rows reduces fragile manual string extraction.

D:

Application-layer validation alone can be bypassed by other writers. The actual technical constraint is that parsing nested arrays into typed rows reduces fragile manual string extraction.

Question 32

A maintenance database must analyze both equipment photos and accompanying text in one AI workflow. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Rebenchmark when model versions or language distribution change.
  2. Alert on per-document cost and failed queue age.
  3. Protect queue durability and retry idempotently.
  4. Check supported modalities, retention and safety policy.

Explanation

Correct Answer

D:

Check supported modalities, retention and safety policy. This guards against recurrence because text-only models cannot directly interpret image content without a supporting vision pipeline. The direct remediation is: Choose and test a multimodal-capable external model with documented input support.

Incorrect Answers

A:

Rebenchmark when model versions or language distribution change. The current task instead requires this action: check supported modalities, retention and safety policy.

B:

Alert on per-document cost and failed queue age. The current task instead requires this action: check supported modalities, retention and safety policy.

C:

Protect queue durability and retry idempotently. The current task instead requires this action: check supported modalities, retention and safety policy.

Question 33

A finance report needs a running total of payments by account in posting order. Which technical action BEST resolves the primary problem?

  1. Use SUM(amount) OVER(PARTITION BY AccountId ORDER BY PostedAt ROWS UNBOUNDED PRECEDING).
  2. Include an explicit window ORDER BY with unique tie-breaker columns.
  3. Use supported SQL graph node/edge tables and the MATCH predicate for traversals.
  4. Validate acyclic parent relationships and bound recursion depth.

Explanation

Correct Answer

A:

Use SUM(amount) OVER(PARTITION BY AccountId ORDER BY PostedAt ROWS UNBOUNDED PRECEDING). This targets the primary issue because a window aggregate preserves individual rows while computing an ordered cumulative value. Verification: A sample account's running totals match a manual ledger calculation. Prevent recurrence: Use deterministic tie-breakers in the ORDER BY.

Incorrect Answers

B:

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

C:

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

D:

A cycle can repeatedly regenerate the same nodes in a recursive CTE.

Question 34

A trigger recursively updates the same table, causing repeated changes and a timeout. Which test result BEST demonstrates that the intended solution is working?

  1. Checkout commits within SLO while notifications eventually deliver.
  2. A test UPDATE completes once with expected values and no recursion error.
  3. A filtered test returns only transactions for the specified customer.
  4. Representative joins show improved estimates and correct results.

Explanation

Correct Answer

B:

A test UPDATE completes once with expected values and no recursion error. This is the decisive observable evidence after implementing review recursion configuration and redesign the trigger to avoid uncontrolled self-updates. It tests the underlying requirement: Nested or recursive trigger behavior can cause cycles and unexpected work.

Incorrect Answers

A:

Checkout commits within SLO while notifications eventually deliver. However, that result would not establish the required outcome: a test UPDATE completes once with expected values and no recursion error.

C:

A filtered test returns only transactions for the specified customer. However, that result would not establish the required outcome: a test UPDATE completes once with expected values and no recursion error.

D:

Representative joins show improved estimates and correct results. However, that result would not establish the required outcome: a test UPDATE completes once with expected values and no recursion error.

Question 35

A multi-year sales fact table is always filtered by invoice month and management wants efficient archival. What is the MOST relevant technical distinction in this situation?

  1. Misaligned indexes can block efficient partition maintenance.
  2. Ledger tamper evidence supports verification; it does not prevent every privileged misuse.
  3. Partition elimination can reduce scanned partitions when predicates are sargable.
  4. JSON storage allows flexible attributes without abandoning structured identity and integrity.

Explanation

Correct Answer

C:

Partition elimination can reduce scanned partitions when predicates are sargable. This explains why the corrective action is to evaluate range partitioning with boundary values aligned to retention and typical filters. Confirm the diagnosis when plans show elimination for a month-filtered report and totals remain correct.

Incorrect Answers

A:

Misaligned indexes can block efficient partition maintenance. The actual technical constraint is that partition elimination can reduce scanned partitions when predicates are sargable.

B:

Ledger tamper evidence supports verification; it does not prevent every privileged misuse. The actual technical constraint is that partition elimination can reduce scanned partitions when predicates are sargable.

D:

JSON storage allows flexible attributes without abandoning structured identity and integrity. The actual technical constraint is that partition elimination can reduce scanned partitions when predicates are sargable.

Question 36

A developer partitions an orders table by CreatedAt but filters primarily by CustomerId and observes no gain. Which ongoing control is MOST relevant after the issue is fixed?

  1. Use transactional change control and rehearse rollback.
  2. Separate creation time from event time and validate clock policy.
  3. Use a dedicated serialized legal numbering process if gaplessness is mandatory.
  4. Measure cardinality and maintain customer-selective indexes.

Explanation

Correct Answer

D:

Measure cardinality and maintain customer-selective indexes. This guards against recurrence because partitioning is most helpful when queries constrain the partition key. The direct remediation is: Benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement.

Incorrect Answers

A:

Use transactional change control and rehearse rollback. The current task instead requires this action: measure cardinality and maintain customer-selective indexes.

B:

Separate creation time from event time and validate clock policy.

C:

Use a dedicated serialized legal numbering process if gaplessness is mandatory.

Question 37

A product owner wants email fields masked only for report consumers but intact in the database. What is the MOST appropriate immediate corrective approach?

  1. Configure a suitable masking function on the email column and scope UNMASK.
  2. Replace excessive privileges with minimum SELECT and no UNMASK entitlement.
  3. Use Always Encrypted with keys managed outside the database and supported client drivers.
  4. Redesign the query or use an explicitly supported encryption/enclave pattern with documented tradeoffs.

Explanation

Correct Answer

A:

Configure a suitable masking function on the email column and scope UNMASK. This targets the primary issue because dynamic masking is evaluated at query output rather than permanently altering storage. Verification: Two test principals receive appropriately different display values. Prevent recurrence: Verify exports and application caches do not persist unmasked values.

Incorrect Answers

B:

Replacing excessive privileges with minimum SELECT and no UNMASK entitlement would not correct a product owner wants email fields masked only for report consumers but intact in the database. Configure a suitable masking function on the email column and scope UNMASK.

C:

Always Encrypted protects configured column values from the SQL engine during normal processing.

D:

Randomized encryption does not support general plaintext pattern matching inside the engine.

Question 38

An audit design expects sequence values to be gapless after transaction rollback. What observed evidence would BEST confirm successful remediation?

  1. A high-watermark test verifies continued unique allocation within supported limits.
  2. Rollback tests demonstrate permitted gaps without violating key uniqueness.
  3. New monthly rows land in the intended partition after the split.
  4. Reconciled payment totals match control calculations to the cent.

Explanation

Correct Answer

B:

Rollback tests demonstrate permitted gaps without violating key uniqueness. This is the decisive observable evidence after implementing revise the design to tolerate gaps rather than using sequence numbers as legal receipt counters. It tests the underlying requirement: Sequence numbers can be consumed even when transactions roll back or cache is lost.

Incorrect Answers

A:

A high-watermark test verifies continued unique allocation within supported limits. However, that result would not establish the required outcome: rollback tests demonstrate permitted gaps without violating key uniqueness.

C:

New monthly rows land in the intended partition after the split. However, that result would not establish the required outcome: rollback tests demonstrate permitted gaps without violating key uniqueness.

D:

Reconciled payment totals match control calculations to the cent. However, that result would not establish the required outcome: rollback tests demonstrate permitted gaps without violating key uniqueness.

Question 39

A schema migration changes a CHECK constraint but nobody tests invalid inserts. What is the MOST relevant technical distinction in this situation?

  1. Cross-system contracts can fail even when individual SQL procedures are correct.
  2. Repeatable deployments must not assume reference rows are absent.
  3. Schema compilation alone does not prove business rules are correct.
  4. Version control enables traceable schema diffs and rollback planning.

Explanation

Correct Answer

C:

Schema compilation alone does not prove business rules are correct. This explains why the corrective action is to add SQL unit tests for accepted and rejected data cases before deployment. Confirm the diagnosis when automated tests reject negative amounts and accept valid boundary values.

Incorrect Answers

A:

Cross-system contracts can fail even when individual SQL procedures are correct. The actual technical constraint is that schema compilation alone does not prove business rules are correct.

B:

Repeatable deployments must not assume reference rows are absent. The actual technical constraint is that schema compilation alone does not prove business rules are correct.

D:

Version control enables traceable schema diffs and rollback planning. The actual technical constraint is that schema compilation alone does not prove business rules are correct.

Question 40

A product catalog stores optional nested specifications that vary by category but still needs relational constraints. Which ongoing control is MOST relevant after the issue is fixed?

  1. Reject unknown fields and bound payload size before committing.
  2. Measure cardinality and maintain customer-selective indexes.
  3. Audit index alignment after every schema release.
  4. Document a schema contract and version changes to payload format.

Explanation

Correct Answer

D:

Document a schema contract and version changes to payload format. This guards against recurrence because JSON storage allows flexible attributes without abandoning structured identity and integrity. The direct remediation is: Store appropriate semi-structured attributes in a validated JSON column alongside relational keys.

Incorrect Answers

A:

Reject unknown fields and bound payload size before committing. The current task instead requires this action: document a schema contract and version changes to payload format.

B:

Measure cardinality and maintain customer-selective indexes. The current task instead requires this action: document a schema contract and version changes to payload format.

C:

Audit index alignment after every schema release. The current task instead requires this action: document a schema contract and version changes to payload format.

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