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 54

Question 530

A REST client needs filtering on a public product type but must never filter private margin columns. Which preventive practice BEST addresses the underlying risk over time?

  1. Use consistent ordering and monitor costly filters.
  2. Audit API surface after schema changes.
  3. Block accidental production connection strings in repository review.
  4. Automate image and configuration validation in CI.

Explanation

Correct Answer

B:

Audit API surface after schema changes. This guards against recurrence because DAB entity projection and permissions determine the API data surface. The direct remediation is: Configure entity fields, authorization and supported filter behavior to expose only permitted fields.

Incorrect Answers

A:

Use consistent ordering and monitor costly filters. The current task instead requires this action: audit API surface after schema changes.

C:

Block accidental production connection strings in repository review. The current task instead requires this action: audit API surface after schema changes.

D:

Automate image and configuration validation in CI. The current task instead requires this action: audit API surface after schema changes.

Question 531

An API imports several nested line items in one JSON request and must store them as normalized rows. What should the SQL developer do FIRST to address the specific issue?

  1. Evaluate supported JSON index or indexed computed-column path for that SQL platform and version.
  2. Assess SQL ledger tables with digest storage and verification controls.
  3. Use OPENJSON with a typed WITH schema and transactional parent-child inserts.
  4. Enforce an appropriate UNIQUE constraint on the business order key after cleaning duplicates.

Explanation

Correct Answer

C:

Use OPENJSON with a typed WITH schema and transactional parent-child inserts. This targets the primary issue because parsing nested arrays into typed rows reduces fragile manual string extraction. Verification: A test payload creates the expected number of items with correct types. Prevent recurrence: Reject unknown fields and bound payload size before committing.

Incorrect Answers

A:

Evaluate supported JSON index or indexed computed-column path for that SQL platform and version. The relevant technical condition instead is that use OPENJSON with a typed WITH schema and transactional parent-child inserts.

B:

Ledger tamper evidence supports verification; it does not prevent every privileged misuse.

D:

This action addresses a different case: An order system accepts duplicate order numbers and downstream reconciliation double-counts orders. For that case, a surrogate primary key alone does not protect a separate business identifier. For this case, it does not directly correct the observed problem; the distinguishing issue is parsing nested arrays into typed rows reduces fragile manual string extraction. The specifically relevant immediate technical action is: Use OPENJSON with a typed WITH schema and transactional parent-child inserts.

Question 532

A maintenance database must analyze both equipment photos and accompanying text in one AI workflow. Which test result BEST demonstrates that the intended solution is working?

  1. Blind tests meet per-language quality and p95 response targets.
  2. Clause queries retrieve the specific correct paragraph rather than the entire contract.
  3. Stock changes do not regenerate descriptive vectors yet filters use current quantities.
  4. A labeled photo-and-text set yields correct asset annotations.

Explanation

Correct Answer

D:

A labeled photo-and-text set yields correct asset annotations. This is the decisive observable evidence after implementing choose and test a multimodal-capable external model with documented input support. It tests the underlying requirement: Text-only models cannot directly interpret image content without a supporting vision pipeline.

Incorrect Answers

A:

Blind tests meet per-language quality and p95 response targets. However, that result would not establish the required outcome: a labeled photo-and-text set yields correct asset annotations.

B:

Clause queries retrieve the specific correct paragraph rather than the entire contract. However, that result would not establish the required outcome: a labeled photo-and-text set yields correct asset annotations.

C:

Stock changes do not regenerate descriptive vectors yet filters use current quantities. However, that result would not establish the required outcome: a labeled photo-and-text set yields correct asset annotations.

Question 533

A finance report needs a running total of payments by account in posting order. Which technical principle BEST explains the relevant design decision?

  1. A window aggregate preserves individual rows while computing an ordered cumulative value.
  2. Window ranking order is defined by its OVER clause, not the outer result sort.
  3. JSON_OBJECT constructs a JSON object from typed expressions instead of fragile string concatenation.
  4. Regex replacement can transform all matching substrings without fixed positions.

Explanation

Correct Answer

A:

A window aggregate preserves individual rows while computing an ordered cumulative value. This explains why the corrective action is to use SUM(amount) OVER(PARTITION BY AccountId ORDER BY PostedAt ROWS UNBOUNDED PRECEDING). Confirm the diagnosis when a sample account's running totals match a manual ledger calculation.

Incorrect Answers

B:

Window ranking order is defined by its OVER clause, not the outer result sort. The actual technical constraint is that a window aggregate preserves individual rows while computing an ordered cumulative value.

C:

JSON_OBJECT constructs a JSON object from typed expressions instead of fragile string concatenation. The actual technical constraint is that a window aggregate preserves individual rows while computing an ordered cumulative value.

D:

Regex replacement can transform all matching substrings without fixed positions. The actual technical constraint is that a window aggregate preserves individual rows while computing an ordered cumulative value.

Question 534

A trigger recursively updates the same table, causing repeated changes and a timeout. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Implement transactional outbox or supported change notifications.
  2. Minimize trigger side effects and audit dependent trigger paths.
  3. Control grants on base tables and treat the view as an interface contract.
  4. Specify null, rounding and deterministic behavior explicitly.

Explanation

Correct Answer

B:

Minimize trigger side effects and audit dependent trigger paths. This guards against recurrence because nested or recursive trigger behavior can cause cycles and unexpected work. The direct remediation is: Review recursion configuration and redesign the trigger to avoid uncontrolled self-updates.

Incorrect Answers

A:

Implement transactional outbox or supported change notifications. The current task instead requires this action: minimize trigger side effects and audit dependent trigger paths.

C:

Control grants on base tables and treat the view as an interface contract.

D:

Specify null, rounding and deterministic behavior explicitly. The current task instead requires this action: minimize trigger side effects and audit dependent trigger paths.

Question 535

A multi-year sales fact table is always filtered by invoice month and management wants efficient archival. Which technical action BEST resolves the primary problem?

  1. Align the relevant indexes and partition scheme where switching operations require it.
  2. Evaluate sp_sequence_get_range when available to reserve a set of sequence values.
  3. Evaluate range partitioning with boundary values aligned to retention and typical filters.
  4. Choose a system-versioned temporal table with properly managed history and retention.

Explanation

Correct Answer

C:

Evaluate range partitioning with boundary values aligned to retention and typical filters. This targets the primary issue because partition elimination can reduce scanned partitions when predicates are sargable. Verification: Plans show elimination for a month-filtered report and totals remain correct. Prevent recurrence: Keep statistics and partition maintenance procedures current.

Incorrect Answers

A:

Aligning the relevant indexes and partition scheme where switching operations require it addresses a different database behavior; the relevant distinction is that evaluate range partitioning with boundary values aligned to retention and typical filters.

B:

Bulk reservation reduces repeated allocation calls but values remain consumable and nontransactional.

D:

Temporal history captures prior row versions when system versioning is enabled.

Question 536

A developer partitions an orders table by CreatedAt but filters primarily by CustomerId and observes no gain. Which test result BEST demonstrates that the intended solution is working?

  1. A tested switch moves the intended range without orphaning rows.
  2. The execution plan uses the chosen path access strategy and returns matching products.
  3. High-ID inserts and all dependent joins work in migration tests.
  4. Revised queries or indexing achieve the documented performance objective.

Explanation

Correct Answer

D:

Revised queries or indexing achieve the documented performance objective. This is the decisive observable evidence after implementing benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement. It tests the underlying requirement: Partitioning is most helpful when queries constrain the partition key.

Incorrect Answers

A:

That check would verify a different scenario: A rolling retention process must remove the oldest table partition with minimal data movement. It is evidence for use compatible staging tables and ALTER TABLE SWITCH after checking alignment and constraints, not the stated requirement. For this case, it does not directly prove the requested outcome; the distinguishing issue is partitioning is most helpful when queries constrain the partition key. The specifically relevant observable acceptance test is: Revised queries or indexing achieve the documented performance objective.

B:

That check would verify a different scenario: Queries filter millions of product rows by a JSON property and repeatedly scan payloads. It is evidence for evaluate supported JSON index or indexed computed-column path for that SQL platform and version, not the stated requirement. For this case, it does not directly prove the requested outcome; the distinguishing issue is partitioning is most helpful when queries constrain the partition key. The specifically relevant observable acceptance test is: Revised queries or indexing achieve the documented performance objective.

C:

That check would verify a different scenario: An application expects a 64-bit vendor identifier but its SQL key column is INT and may overflow. It is evidence for select BIGINT after modeling value range, foreign keys and migration effects, not the stated requirement. For this case, it does not directly prove the requested outcome; the distinguishing issue is partitioning is most helpful when queries constrain the partition key. The specifically relevant observable acceptance test is: Revised queries or indexing achieve the documented performance objective.

Question 537

A product owner wants email fields masked only for report consumers but intact in the database. Which technical principle BEST explains the relevant design decision?

  1. Dynamic masking is evaluated at query output rather than permanently altering storage.
  2. High-privilege identities can typically view underlying unmasked values.
  3. Read filtering alone does not necessarily stop unauthorized DML that changes row ownership.
  4. Session context is only safe as an authorization input when callers cannot impersonate other tenants.

Explanation

Correct Answer

A:

Dynamic masking is evaluated at query output rather than permanently altering storage. This explains why the corrective action is to configure a suitable masking function on the email column and scope UNMASK. Confirm the diagnosis when two test principals receive appropriately different display values.

Incorrect Answers

B:

High-privilege identities can typically view underlying unmasked values. The actual technical constraint is that dynamic masking is evaluated at query output rather than permanently altering storage.

C:

Read filtering alone does not necessarily stop unauthorized DML that changes row ownership. The actual technical constraint is that dynamic masking is evaluated at query output rather than permanently altering storage.

D:

Session context is only safe as an authorization input when callers cannot impersonate other tenants. The actual technical constraint is that dynamic masking is evaluated at query output rather than permanently altering storage.

Question 538

An audit design expects sequence values to be gapless after transaction rollback. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Alert before exhaustion and avoid cycling keys with retained history.
  2. Use a dedicated serialized legal numbering process if gaplessness is mandatory.
  3. Track business-key changes and uniqueness collation policy.
  4. Validate client parameter types and index-size effects before deployment.

Explanation

Correct Answer

B:

Use a dedicated serialized legal numbering process if gaplessness is mandatory. This guards against recurrence because sequence numbers can be consumed even when transactions roll back or cache is lost. The direct remediation is: Revise the design to tolerate gaps rather than using sequence numbers as legal receipt counters.

Incorrect Answers

A:

Alert before exhaustion and avoid cycling keys with retained history.

C:

Track business-key changes and uniqueness collation policy. The current task instead requires this action: use a dedicated serialized legal numbering process if gaplessness is mandatory.

D:

Validate client parameter types and index-size effects before deployment. The current task instead requires this action: use a dedicated serialized legal numbering process if gaplessness is mandatory.

Question 539

A schema migration changes a CHECK constraint but nobody tests invalid inserts. What is the MOST appropriate immediate corrective approach?

  1. Add integration tests across database permissions, DAB configuration and HTTP behavior.
  2. Bind deployment environment, endpoint and credentials to explicit approved pipeline controls.
  3. Add SQL unit tests for accepted and rejected data cases before deployment.
  4. Enforce protected branches and required pull-request approvals.

Explanation

Correct Answer

C:

Add SQL unit tests for accepted and rejected data cases before deployment. This targets the primary issue because schema compilation alone does not prove business rules are correct. Verification: Automated tests reject negative amounts and accept valid boundary values. Prevent recurrence: Run tests in CI with controlled representative fixtures.

Incorrect Answers

A:

Cross-system contracts can fail even when individual SQL procedures are correct.

B:

Bind deployment environment, endpoint and credentials to explicit approved pipeline controls. The relevant technical condition instead is that add SQL unit tests for accepted and rejected data cases before deployment.

D:

Branch policies are governance controls that prevent unreviewed deployment inputs.

Question 540

A product catalog stores optional nested specifications that vary by category but still needs relational constraints. What observed evidence would BEST confirm successful remediation?

  1. A test payload creates the expected number of items with correct types.
  2. The representative query reads fewer pages and retains correct ordered rows.
  3. Reconciled payment totals match control calculations to the cent.
  4. Sample records validate JSON paths while required keys remain enforced.

Explanation

Correct Answer

D:

Sample records validate JSON paths while required keys remain enforced. This is the decisive observable evidence after implementing store appropriate semi-structured attributes in a validated JSON column alongside relational keys. It tests the underlying requirement: JSON storage allows flexible attributes without abandoning structured identity and integrity.

Incorrect Answers

A:

A test payload creates the expected number of items with correct types. However, that result would not establish the required outcome: sample records validate JSON paths while required keys remain enforced.

B:

The representative query reads fewer pages and retains correct ordered rows. However, that result would not establish the required outcome: sample records validate JSON paths while required keys remain enforced.

C:

Reconciled payment totals match control calculations to the cent. However, that result would not establish the required outcome: sample records validate JSON paths while required keys remain enforced.

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