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 29

Question 280

A REST client needs filtering on a public product type but must never filter private margin columns. Which technical principle BEST explains the relevant design decision?

  1. Unbounded result sets waste bandwidth and can overload SQL and API memory.
  2. DAB generates endpoints from explicit configuration rather than automatically exposing every table.
  3. DAB can surface declared stored procedures without granting arbitrary query execution.
  4. DAB entity projection and permissions determine the API data surface.

Explanation

Correct Answer

D:

DAB entity projection and permissions determine the API data surface. This explains why the corrective action is to configure entity fields, authorization and supported filter behavior to expose only permitted fields. Confirm the diagnosis when a permitted category filter works but margin fields remain inaccessible.

Incorrect Answers

A:

Unbounded result sets waste bandwidth and can overload SQL and API memory. The actual technical constraint is that DAB entity projection and permissions determine the API data surface.

B:

DAB generates endpoints from explicit configuration rather than automatically exposing every table. The actual technical constraint is that DAB entity projection and permissions determine the API data surface.

C:

DAB can surface declared stored procedures without granting arbitrary query execution. The actual technical constraint is that DAB entity projection and permissions determine the API data surface.

Question 281

An API imports several nested line items in one JSON request and must store them as normalized rows. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Reject unknown fields and bound payload size before committing.
  2. Benchmark maintenance overhead and verify deployment-specific feature support.
  3. Protect digests independently and audit administrative access.
  4. Track business-key changes and uniqueness collation policy.

Explanation

Correct Answer

A:

Reject unknown fields and bound payload size before committing. This guards against recurrence because parsing nested arrays into typed rows reduces fragile manual string extraction. The direct remediation is: Use OPENJSON with a typed WITH schema and transactional parent-child inserts.

Incorrect Answers

B:

Benchmark maintenance overhead and verify deployment-specific feature support. The current task instead requires this action: reject unknown fields and bound payload size before committing.

C:

Protect digests independently and audit administrative access. The current task instead requires this action: reject unknown fields and bound payload size before committing.

D:

Track business-key changes and uniqueness collation policy. The current task instead requires this action: reject unknown fields and bound payload size before committing.

Question 282

A maintenance database must analyze both equipment photos and accompanying text in one AI workflow. Which technical action BEST resolves the primary problem?

  1. Evaluate multilingual compact and large models on representative language and latency benchmarks.
  2. Choose and test a multimodal-capable external model with documented input support.
  3. Restrict use through explicit database and endpoint permissions with audit monitoring.
  4. Use bounded exponential backoff, batching where supported and idempotent writes.

Explanation

Correct Answer

B:

Choose and test a multimodal-capable external model with documented input support. This targets the primary issue because text-only models cannot directly interpret image content without a supporting vision pipeline. Verification: A labeled photo-and-text set yields correct asset annotations. Prevent recurrence: Check supported modalities, retention and safety policy.

Incorrect Answers

A:

A larger model is not automatically the best fit for cost, speed or multilingual accuracy.

C:

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

D:

External model quotas and transient errors require controlled retry behavior.

Question 283

A finance report needs a running total of payments by account in posting order. Which test result BEST demonstrates that the intended solution is working?

  1. Repeated execution assigns stable row numbers to equal-time events.
  2. Queries find related entities after a validated data migration.
  3. A sample account's running totals match a manual ledger calculation.
  4. The same request ID produces one ledger effect across repeated calls.

Explanation

Correct Answer

C:

A sample account's running totals match a manual ledger calculation. This is the decisive observable evidence after implementing use SUM(amount) OVER(PARTITION BY AccountId ORDER BY PostedAt ROWS UNBOUNDED PRECEDING). It tests the underlying requirement: A window aggregate preserves individual rows while computing an ordered cumulative value.

Incorrect Answers

A:

Repeated execution assigns stable row numbers to equal-time events. However, that result would not establish the required outcome: a sample account's running totals match a manual ledger calculation.

B:

Queries find related entities after a validated data migration. However, that result would not establish the required outcome: a sample account's running totals match a manual ledger calculation.

D:

The same request ID produces one ledger effect across repeated calls. However, that result would not establish the required outcome: a sample account's running totals match a manual ledger calculation.

Question 284

A trigger recursively updates the same table, causing repeated changes and a timeout. Which technical principle BEST explains the relevant design decision?

  1. Synchronous trigger work participates in the calling transaction and can increase latency.
  2. Per-row scalar function calls may create expensive repeated execution on some workloads.
  3. Aggregate views are not generally directly updatable like simple single-table projections.
  4. Nested or recursive trigger behavior can cause cycles and unexpected work.

Explanation

Correct Answer

D:

Nested or recursive trigger behavior can cause cycles and unexpected work. This explains why the corrective action is to review recursion configuration and redesign the trigger to avoid uncontrolled self-updates. Confirm the diagnosis when a test UPDATE completes once with expected values and no recursion error.

Incorrect Answers

A:

Synchronous trigger work participates in the calling transaction and can increase latency. The actual technical constraint is that nested or recursive trigger behavior can cause cycles and unexpected work.

B:

Per-row scalar function calls may create expensive repeated execution on some workloads. The actual technical constraint is that nested or recursive trigger behavior can cause cycles and unexpected work.

C:

Aggregate views are not generally directly updatable like simple single-table projections. The actual technical constraint is that nested or recursive trigger behavior can cause cycles and unexpected work.

Question 285

A multi-year sales fact table is always filtered by invoice month and management wants efficient archival. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Keep statistics and partition maintenance procedures current.
  2. Audit index alignment after every schema release.
  3. Protect history access and plan retention and schema migration.
  4. Validate client parameter types and index-size effects before deployment.

Explanation

Correct Answer

A:

Keep statistics and partition maintenance procedures current. This guards against recurrence because partition elimination can reduce scanned partitions when predicates are sargable. The direct remediation is: Evaluate range partitioning with boundary values aligned to retention and typical filters.

Incorrect Answers

B:

Audit index alignment after every schema release. The current task instead requires this action: keep statistics and partition maintenance procedures current.

C:

Protect history access and plan retention and schema migration. The current task instead requires this action: keep statistics and partition maintenance procedures current.

D:

Validate client parameter types and index-size effects before deployment. The current task instead requires this action: keep statistics and partition maintenance procedures current.

Question 286

A developer partitions an orders table by CreatedAt but filters primarily by CustomerId and observes no gain. Which technical action BEST resolves the primary problem?

  1. Use compatible staging tables and ALTER TABLE SWITCH after checking alignment and constraints.
  2. Benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement.
  3. Use OPENJSON with a typed WITH schema and transactional parent-child inserts.
  4. Configure a suitable DEFAULT constraint with a UTC expression when required by the schema.

Explanation

Correct Answer

B:

Benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement. This targets the primary issue because partitioning is most helpful when queries constrain the partition key. Verification: Revised queries or indexing achieve the documented performance objective. Prevent recurrence: Measure cardinality and maintain customer-selective indexes.

Incorrect Answers

A:

Using compatible staging tables and ALTER TABLE SWITCH after checking alignment and constraints addresses a different database behavior; the relevant distinction is that benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement.

C:

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

D:

A default supplies a value on omission, not a guarantee against explicit bad values.

Question 287

A product owner wants email fields masked only for report consumers but intact in the database. What observed evidence would BEST confirm successful remediation?

  1. A role-based test demonstrates restricted account values are masked.
  2. Model calls and retrieval calls each succeed only with required scopes.
  3. Two test principals receive appropriately different display values.
  4. Approved procedures decrypt the target values and unauthorized roles cannot open keys.

Explanation

Correct Answer

C:

Two test principals receive appropriately different display values. This is the decisive observable evidence after implementing configure a suitable masking function on the email column and scope UNMASK. It tests the underlying requirement: Dynamic masking is evaluated at query output rather than permanently altering storage.

Incorrect Answers

A:

A role-based test demonstrates restricted account values are masked. However, that result would not establish the required outcome: two test principals receive appropriately different display values.

B:

Model calls and retrieval calls each succeed only with required scopes. However, that result would not establish the required outcome: two test principals receive appropriately different display values.

D:

Approved procedures decrypt the target values and unauthorized roles cannot open keys. However, that result would not establish the required outcome: two test principals receive appropriately different display values.

Question 288

An audit design expects sequence values to be gapless after transaction rollback. What is the MOST relevant technical distinction in this situation?

  1. Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers.
  2. Parsing nested arrays into typed rows reduces fragile manual string extraction.
  3. Referential integrity prevents orphan children unless cascade or other actions are deliberately configured.
  4. Sequence numbers can be consumed even when transactions roll back or cache is lost.

Explanation

Correct Answer

D:

Sequence numbers can be consumed even when transactions roll back or cache is lost. This explains why the corrective action is to revise the design to tolerate gaps rather than using sequence numbers as legal receipt counters. Confirm the diagnosis when rollback tests demonstrate permitted gaps without violating key uniqueness.

Incorrect Answers

A:

Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers. The actual technical constraint is that sequence numbers can be consumed even when transactions roll back or cache is lost.

B:

Parsing nested arrays into typed rows reduces fragile manual string extraction. The actual technical constraint is that sequence numbers can be consumed even when transactions roll back or cache is lost.

C:

Referential integrity prevents orphan children unless cascade or other actions are deliberately configured. The actual technical constraint is that sequence numbers can be consumed even when transactions roll back or cache is lost.

Question 289

A schema migration changes a CHECK constraint but nobody tests invalid inserts. Which ongoing control is MOST relevant after the issue is fixed?

  1. Run tests in CI with controlled representative fixtures.
  2. Keep isolated test credentials and avoid production data.
  3. Forbid reliance on developer-local absolute paths.
  4. Rotate exposed secrets and enable precommit scanning.

Explanation

Correct Answer

A:

Run tests in CI with controlled representative fixtures. This guards against recurrence because schema compilation alone does not prove business rules are correct. The direct remediation is: Add SQL unit tests for accepted and rejected data cases before deployment.

Incorrect Answers

B:

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

C:

Forbid reliance on developer-local absolute paths. The current task instead requires this action: run tests in CI with controlled representative fixtures.

D:

Rotate exposed secrets and enable precommit scanning. The current task instead requires this action: run tests in CI with controlled representative fixtures.

Question 290

A product catalog stores optional nested specifications that vary by category but still needs relational constraints. What is the MOST appropriate immediate corrective approach?

  1. Use OPENJSON with a typed WITH schema and transactional parent-child inserts.
  2. Store appropriate semi-structured attributes in a validated JSON column alongside relational keys.
  3. Benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement.
  4. Align the relevant indexes and partition scheme where switching operations require it.

Explanation

Correct Answer

B:

Store appropriate semi-structured attributes in a validated JSON column alongside relational keys. This targets the primary issue because JSON storage allows flexible attributes without abandoning structured identity and integrity. Verification: Sample records validate JSON paths while required keys remain enforced. Prevent recurrence: Document a schema contract and version changes to payload format.

Incorrect Answers

A:

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

C:

Partitioning is most helpful when queries constrain the partition key.

D:

Aligning the relevant indexes and partition scheme where switching operations require it would not correct a product catalog stores optional nested specifications that vary by category but still needs relational constraints. Store appropriate semi-structured attributes in a validated JSON column alongside relational keys.

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