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 81

Question 800

A pricing table admits negative unit prices despite a documented positive-price rule. Which implementation decision BEST addresses this requirement?

  1. Define and test a FOREIGN KEY and explicitly select appropriate delete behavior.
  2. Choose a system-versioned temporal table with properly managed history and retention.
  3. Benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement.
  4. Use a CHECK constraint expressing the supported business condition.

Explanation

Correct Answer

D:

Use a CHECK constraint expressing the supported business condition. This targets the primary issue because application-layer validation alone can be bypassed by other writers. Verification: Direct SQL inserts with negative prices fail without affecting valid rows. Prevent recurrence: Retest constraints after bulk imports and schema changes.

Incorrect Answers

A:

Referential integrity prevents orphan children unless cascade or other actions are deliberately configured.

B:

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

C:

Partitioning is most helpful when queries constrain the partition key.

Question 801

Auditors need to query the historical values of invoice rows as they existed last quarter. Which measurable outcome BEST verifies that the requirement is satisfied?

  1. A point-in-time query returns the former invoice values after an update.
  2. A restricted test query retrieves only authorized external records with acceptable latency.
  3. A test payload creates the expected number of items with correct types.
  4. Orphan inserts fail and approved delete scenarios behave as specified.

Explanation

Correct Answer

A:

A point-in-time query returns the former invoice values after an update. This is the decisive observable evidence after implementing choose a system-versioned temporal table with properly managed history and retention. It tests the underlying requirement: Temporal history captures prior row versions when system versioning is enabled.

Incorrect Answers

B:

A restricted test query retrieves only authorized external records with acceptable latency. However, that result would not establish the required outcome: a point-in-time query returns the former invoice values after an update.

C:

A test payload creates the expected number of items with correct types. However, that result would not establish the required outcome: a point-in-time query returns the former invoice values after an update.

D:

Orphan inserts fail and approved delete scenarios behave as specified. However, that result would not establish the required outcome: a point-in-time query returns the former invoice values after an update.

Question 802

A developer tries to audit deleted rows using only the inserted pseudo-table. Which technical reason BEST explains the proposed correction?

  1. Nested or recursive trigger behavior can cause cycles and unexpected work.
  2. A DELETE trigger exposes removed rows via deleted, not inserted.
  3. A scalar function produces one value for each call but may affect query optimization.
  4. T-SQL UDFs have restrictions on side effects and cannot be arbitrary transactional commands.

Explanation

Correct Answer

B:

A DELETE trigger exposes removed rows via deleted, not inserted. This explains why the corrective action is to use the deleted pseudo-table correctly for DELETE and before-image values. Confirm the diagnosis when the audit records exact old values in multirow deletion tests.

Incorrect Answers

A:

Nested or recursive trigger behavior can cause cycles and unexpected work. The actual technical constraint is that a DELETE trigger exposes removed rows via deleted, not inserted.

C:

A scalar function produces one value for each call but may affect query optimization. The actual technical constraint is that a DELETE trigger exposes removed rows via deleted, not inserted.

D:

T-SQL UDFs have restrictions on side effects and cannot be arbitrary transactional commands. The actual technical constraint is that a DELETE trigger exposes removed rows via deleted, not inserted.

Question 803

A compliance team cannot identify who edited a high-value contract row. What maintenance or governance control BEST reduces recurrence of this problem?

  1. Use monitored retention and independent security custody.
  2. Scope endpoint permissions and monitor request consumption.
  3. Retain logs immutably where required and limit audit administrators.
  4. Prevent arbitrary tenant context spoofing and test privileged access.

Explanation

Correct Answer

C:

Retain logs immutably where required and limit audit administrators. This guards against recurrence because audit collection adds actor, operation and time evidence but does not itself block changes. The direct remediation is: Enable supported SQL audit events covering relevant principals and DML operations.

Incorrect Answers

A:

Use monitored retention and independent security custody. The current task instead requires this action: retain logs immutably where required and limit audit administrators.

B:

Scope endpoint permissions and monitor request consumption. The current task instead requires this action: retain logs immutably where required and limit audit administrators.

D:

Prevent arbitrary tenant context spoofing and test privileged access. The current task instead requires this action: retain logs immutably where required and limit audit administrators.

Question 804

A high-throughput transaction queue suffers from latch contention on a hot disk-based staging table. Which implementation decision BEST addresses this requirement?

  1. Choose a system-versioned temporal table with properly managed history and retention.
  2. Evaluate supported JSON index or indexed computed-column path for that SQL platform and version.
  3. Design a useful composite rowstore index with leading keys matching the filters and inspect the execution plan.
  4. Evaluate memory-optimized tables where the specific SQL engine and workload support them.

Explanation

Correct Answer

D:

Evaluate memory-optimized tables where the specific SQL engine and workload support them. This targets the primary issue because memory-optimized OLTP can reduce contention but adds feature and durability constraints. Verification: A benchmark improves queue throughput while meeting durability requirements. Prevent recurrence: Check memory capacity and unsupported features before migration.

Incorrect Answers

A:

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

B:

Evaluate supported JSON index or indexed computed-column path for that SQL platform and version. The relevant technical condition instead is that evaluate memory-optimized tables where the specific SQL engine and workload support them.

C:

A missing selective access path forces large table or clustered-index scans.

Question 805

An AI assistant suggests disabling row-level security to make a join work. Which acceptance check is MOST directly related to this scenario?

  1. The final query respects RLS while returning the caller's permitted rows.
  2. A security review finds no production secrets in prompt logs or history.
  3. Generated examples show placeholders and approved secret references.
  4. An approved SQL workspace exposes supported Copilot features for a licensed tester.

Explanation

Correct Answer

A:

The final query respects RLS while returning the caller's permitted rows. This is the decisive observable evidence after implementing treat generated SQL as untrusted and require security review before execution. It tests the underlying requirement: Generated code can violate least privilege even if it appears syntactically correct.

Incorrect Answers

B:

A security review finds no production secrets in prompt logs or history. However, that result would not establish the required outcome: the final query respects RLS while returning the caller's permitted rows.

C:

Generated examples show placeholders and approved secret references. However, that result would not establish the required outcome: the final query respects RLS while returning the caller's permitted rows.

D:

An approved SQL workspace exposes supported Copilot features for a licensed tester. However, that result would not establish the required outcome: the final query respects RLS while returning the caller's permitted rows.

Question 806

A deployment runs under a broad shared service principal with unlimited Azure privileges. Which technical property or constraint MOST directly matters here?

  1. CI log readers and artifact retention can expose credentials.
  2. Shared overly privileged credentials increase blast radius across systems.
  3. Existing data can prevent otherwise valid stricter schema changes.
  4. Path ownership helps route high-impact DDL for accountable review.

Explanation

Correct Answer

B:

Shared overly privileged credentials increase blast radius across systems. This explains why the corrective action is to use dedicated scoped workload identity with least-privilege resource grants. Confirm the diagnosis when the pipeline reaches only its intended staging database and resource group.

Incorrect Answers

A:

CI log readers and artifact retention can expose credentials. The actual technical constraint is that shared overly privileged credentials increase blast radius across systems.

C:

Existing data can prevent otherwise valid stricter schema changes. The actual technical constraint is that shared overly privileged credentials increase blast radius across systems.

D:

Path ownership helps route high-impact DDL for accountable review. The actual technical constraint is that shared overly privileged credentials increase blast radius across systems.

Question 807

A service principal can run a procedure but receives SELECT permission errors inside dynamic SQL. Which preventive practice BEST addresses the underlying risk over time?

  1. Review grants after schema migrations.
  2. Separate key custodianship and audit key usage.
  3. Avoid broad database role grants to fix one dynamic query.
  4. Document leakage tradeoffs before enabling secure enclaves.

Explanation

Correct Answer

C:

Avoid broad database role grants to fix one dynamic query. This guards against recurrence because dynamic SQL may execute under a permission context different from static ownership chains. The direct remediation is: Review execution context and grant only required underlying object rights securely.

Incorrect Answers

A:

Reviewing grants after schema migrations addresses a different database behavior; the relevant distinction is that avoid broad database role grants to fix one dynamic query.

B:

Separate key custodianship and audit key usage. The current task instead requires this action: avoid broad database role grants to fix one dynamic query.

D:

Document leakage tradeoffs before enabling secure enclaves. The current task instead requires this action: avoid broad database role grants to fix one dynamic query.

Question 808

A developer receives a VECTOR value but needs to inspect its number of dimensions in SQL. What should the SQL developer do FIRST to address the specific issue?

  1. Use VECTOR_NORMALIZE where supported before the intended comparison workflow.
  2. Enforce authorization in every retrieval branch before fusion and presentation.
  3. Deduplicate candidates by stable source ID and apply a documented fusion strategy.
  4. Use supported VECTORPROPERTY to obtain relevant vector metadata.

Explanation

Correct Answer

D:

Use supported VECTORPROPERTY to obtain relevant vector metadata. This targets the primary issue because vector metadata functions describe representation without parsing serialized JSON arrays. Verification: A known test vector reports the correct dimension property. Prevent recurrence: Validate runtime-specific function availability.

Incorrect Answers

A:

Normalizing vector length separates direction from magnitude for suitable similarity metrics.

B:

Enforcing authorization in every retrieval branch before fusion and presentation would not correct a developer receives a VECTOR value but needs to inspect its number of dimensions in SQL. Use supported VECTORPROPERTY to obtain relevant vector metadata.

C:

Independent retrieval branches can produce overlapping hits and uncalibrated scores.

Question 809

An API fails after a move from local SQL Server to Azure SQL because a fixed connection string remains in source control. Which acceptance check is MOST directly related to this scenario?

  1. Staging resolves its own Azure SQL endpoint and local development still works.
  2. A staging start resolves each declared source without runtime errors.
  3. Health checks succeed and authorized REST queries work after rollout.
  4. Container-based smoke tests connect securely to the intended Azure SQL database.

Explanation

Correct Answer

A:

Staging resolves its own Azure SQL endpoint and local development still works. This is the decisive observable evidence after implementing parameterize the DAB data source using supported environment variables or secret integration. It tests the underlying requirement: Configuration must resolve the correct database per environment without leaking secrets.

Incorrect Answers

B:

A staging start resolves each declared source without runtime errors. However, that result would not establish the required outcome: staging resolves its own Azure SQL endpoint and local development still works.

C:

Health checks succeed and authorized REST queries work after rollout. However, that result would not establish the required outcome: staging resolves its own Azure SQL endpoint and local development still works.

D:

Container-based smoke tests connect securely to the intended Azure SQL database. However, that result would not establish the required outcome: staging resolves its own Azure SQL endpoint and local development still works.

Question 810

An encryption team rotates a column master key but app clients still use outdated metadata. Which technical property or constraint MOST directly matters here?

  1. Randomized encryption does not support general plaintext pattern matching inside the engine.
  2. Column key hierarchy and client metadata must agree for encrypted column access.
  3. DDM changes what unauthorized queries display; it is not data encryption.
  4. Dynamic masking is evaluated at query output rather than permanently altering storage.

Explanation

Correct Answer

B:

Column key hierarchy and client metadata must agree for encrypted column access. This explains why the corrective action is to perform supported key rotation and client configuration changes as a coordinated migration. Confirm the diagnosis when authorized clients read/write after rotation and revoked keys no longer work.

Incorrect Answers

A:

Randomized encryption does not support general plaintext pattern matching inside the engine. The actual technical constraint is that column key hierarchy and client metadata must agree for encrypted column access.

C:

DDM changes what unauthorized queries display; it is not data encryption. The actual technical constraint is that column key hierarchy and client metadata must agree for encrypted column access.

D:

Dynamic masking is evaluated at query output rather than permanently altering storage. The actual technical constraint is that column key hierarchy and client metadata must agree for encrypted column access.

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