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 6

Question 50

A pricing table admits negative unit prices despite a documented positive-price rule. Which acceptance check is MOST directly related to this scenario?

  1. Orphan inserts fail and approved delete scenarios behave as specified.
  2. Direct SQL inserts with negative prices fail without affecting valid rows.
  3. Reconciled payment totals match control calculations to the cent.
  4. A controlled report benchmark shows lower elapsed time and logical IO.

Explanation

Correct Answer

B:

Direct SQL inserts with negative prices fail without affecting valid rows. This is the decisive observable evidence after implementing use a CHECK constraint expressing the supported business condition. It tests the underlying requirement: Application-layer validation alone can be bypassed by other writers.

Incorrect Answers

A:

Orphan inserts fail and approved delete scenarios behave as specified. However, that result would not establish the required outcome: direct SQL inserts with negative prices fail without affecting valid rows.

C:

Reconciled payment totals match control calculations to the cent. However, that result would not establish the required outcome: direct SQL inserts with negative prices fail without affecting valid rows.

D:

A controlled report benchmark shows lower elapsed time and logical IO. However, that result would not establish the required outcome: direct SQL inserts with negative prices fail without affecting valid rows.

Question 51

Auditors need to query the historical values of invoice rows as they existed last quarter. Which technical property or constraint MOST directly matters here?

  1. External tables abstract remote data but do not automatically remove network or predicate-pushdown costs.
  2. Misaligned indexes can block efficient partition maintenance.
  3. Temporal history captures prior row versions when system versioning is enabled.
  4. Partitioning is most helpful when queries constrain the partition key.

Explanation

Correct Answer

C:

Temporal history captures prior row versions when system versioning is enabled. This explains why the corrective action is to choose a system-versioned temporal table with properly managed history and retention. Confirm the diagnosis when a point-in-time query returns the former invoice values after an update.

Incorrect Answers

A:

External tables abstract remote data but do not automatically remove network or predicate-pushdown costs. The actual technical constraint is that temporal history captures prior row versions when system versioning is enabled.

B:

Misaligned indexes can block efficient partition maintenance. The actual technical constraint is that temporal history captures prior row versions when system versioning is enabled.

D:

Partitioning is most helpful when queries constrain the partition key. The actual technical constraint is that temporal history captures prior row versions when system versioning is enabled.

Question 52

A developer tries to audit deleted rows using only the inserted pseudo-table. Which preventive practice BEST addresses the underlying risk over time?

  1. Minimize trigger side effects and audit dependent trigger paths.
  2. Implement idempotent retry and bounded transaction duration.
  3. Keep procedure signatures under source control.
  4. Protect audit table writes and limit trigger permissions.

Explanation

Correct Answer

D:

Protect audit table writes and limit trigger permissions. This guards against recurrence because a DELETE trigger exposes removed rows via deleted, not inserted. The direct remediation is: Use the deleted pseudo-table correctly for DELETE and before-image values.

Incorrect Answers

A:

Minimize trigger side effects and audit dependent trigger paths. The current task instead requires this action: protect audit table writes and limit trigger permissions.

B:

Implement idempotent retry and bounded transaction duration. The current task instead requires this action: protect audit table writes and limit trigger permissions.

C:

Keep procedure signatures under source control. The current task instead requires this action: protect audit table writes and limit trigger permissions.

Question 53

A compliance team cannot identify who edited a high-value contract row. What should the SQL developer do FIRST to address the specific issue?

  1. Enable supported SQL audit events covering relevant principals and DML operations.
  2. Send audit output to appropriately protected centralized storage with restricted permissions.
  3. Review execution context and grant only required underlying object rights securely.
  4. Evaluate SQL column-level encryption with explicit key and certificate controls.

Explanation

Correct Answer

A:

Enable supported SQL audit events covering relevant principals and DML operations. This targets the primary issue because audit collection adds actor, operation and time evidence but does not itself block changes. Verification: A test UPDATE appears in protected audit storage with correct identity. Prevent recurrence: Retain logs immutably where required and limit audit administrators.

Incorrect Answers

B:

Tamper-resistant off-host retention is stronger evidence than only local logs.

C:

Dynamic SQL may execute under a permission context different from static ownership chains.

D:

Server-side encryption can decrypt inside SQL with authorized key access, unlike client-controlled Always Encrypted.

Question 54

A high-throughput transaction queue suffers from latch contention on a hot disk-based staging table. Which acceptance check is MOST directly related to this scenario?

  1. A point-in-time query returns the former invoice values after an update.
  2. A benchmark improves queue throughput while meeting durability requirements.
  3. Revised queries or indexing achieve the documented performance objective.
  4. High-ID inserts and all dependent joins work in migration tests.

Explanation

Correct Answer

B:

A benchmark improves queue throughput while meeting durability requirements. This is the decisive observable evidence after implementing evaluate memory-optimized tables where the specific SQL engine and workload support them. It tests the underlying requirement: Memory-optimized OLTP can reduce contention but adds feature and durability constraints.

Incorrect Answers

A:

A point-in-time query returns the former invoice values after an update. However, that result would not establish the required outcome: a benchmark improves queue throughput while meeting durability requirements.

C:

That check would verify a different scenario: A developer partitions an orders table by CreatedAt but filters primarily by CustomerId and observes no gain. It is evidence for benchmark partition elimination against actual predicates instead of assuming partitioning is an index replacement, not the stated requirement. For this case, it does not directly prove the requested outcome; the distinguishing issue is memory-optimized OLTP can reduce contention but adds feature and durability constraints. The specifically relevant observable acceptance test is: A benchmark improves queue throughput while meeting durability requirements.

D:

High-ID inserts and all dependent joins work in migration tests. However, that result would not establish the required outcome: a benchmark improves queue throughput while meeting durability requirements.

Question 55

An AI assistant suggests disabling row-level security to make a join work. Which technical property or constraint MOST directly matters here?

  1. AI chat providers and extensions may retain shared content outside the database boundary.
  2. A malicious or compromised MCP server may exfiltrate data or supply unsafe tool behavior.
  3. Generated code can violate least privilege even if it appears syntactically correct.
  4. Prompt instructions influence suggestions but are not mandatory security policies.

Explanation

Correct Answer

C:

Generated code can violate least privilege even if it appears syntactically correct. This explains why the corrective action is to treat generated SQL as untrusted and require security review before execution. Confirm the diagnosis when the final query respects RLS while returning the caller's permitted rows.

Incorrect Answers

A:

AI chat providers and extensions may retain shared content outside the database boundary. The actual technical constraint is that generated code can violate least privilege even if it appears syntactically correct.

B:

A malicious or compromised MCP server may exfiltrate data or supply unsafe tool behavior. The actual technical constraint is that generated code can violate least privilege even if it appears syntactically correct.

D:

Prompt instructions influence suggestions but are not mandatory security policies. The actual technical constraint is that generated code can violate least privilege even if it appears syntactically correct.

Question 56

A deployment runs under a broad shared service principal with unlimited Azure privileges. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Enforce secret masking and log retention policy.
  2. Avoid overwriting locally maintained fields unexpectedly.
  3. Review seed-data changes like schema changes.
  4. Audit assignments and revoke stale principals.

Explanation

Correct Answer

D:

Audit assignments and revoke stale principals. This guards against recurrence because shared overly privileged credentials increase blast radius across systems. The direct remediation is: Use dedicated scoped workload identity with least-privilege resource grants.

Incorrect Answers

A:

Enforce secret masking and log retention policy. The current task instead requires this action: audit assignments and revoke stale principals.

B:

Avoid overwriting locally maintained fields unexpectedly. The current task instead requires this action: audit assignments and revoke stale principals.

C:

Review seed-data changes like schema changes. The current task instead requires this action: audit assignments and revoke stale principals.

Question 57

A service principal can run a procedure but receives SELECT permission errors inside dynamic SQL. Which technical action BEST resolves the primary problem?

  1. Review execution context and grant only required underlying object rights securely.
  2. Grant EXECUTE on the approved procedure and remove broad database roles.
  3. Use targeted audit groups and evaluate performance and retention costs.
  4. Configure workload identity federation or an approved short-lived credential method for supported tooling.

Explanation

Correct Answer

A:

Review execution context and grant only required underlying object rights securely. This targets the primary issue because dynamic SQL may execute under a permission context different from static ownership chains. Verification: The legitimate procedure succeeds while unrelated objects remain inaccessible. Prevent recurrence: Avoid broad database role grants to fix one dynamic query.

Incorrect Answers

B:

Least-privilege object permissions reduce exposed DDL and direct data paths.

C:

High-volume blanket logging can impact throughput and reveal sensitive inputs.

D:

Passwordless CI reduces secret leakage and rotation burden when configured with scoped trust.

Question 58

A developer receives a VECTOR value but needs to inspect its number of dimensions in SQL. Which test result BEST demonstrates that the intended solution is working?

  1. Normalized test vectors have unit norm within floating tolerance.
  2. A known test vector reports the correct dimension property.
  3. The result returns ten or fewer allowed chunks ordered by similarity.
  4. The corrected query executes and returns expected similar records.

Explanation

Correct Answer

B:

A known test vector reports the correct dimension property. This is the decisive observable evidence after implementing use supported VECTORPROPERTY to obtain relevant vector metadata. It tests the underlying requirement: Vector metadata functions describe representation without parsing serialized JSON arrays.

Incorrect Answers

A:

Normalized test vectors have unit norm within floating tolerance. However, that result would not establish the required outcome: a known test vector reports the correct dimension property.

C:

The result returns ten or fewer allowed chunks ordered by similarity. However, that result would not establish the required outcome: a known test vector reports the correct dimension property.

D:

The corrected query executes and returns expected similar records. However, that result would not establish the required outcome: a known test vector reports the correct dimension property.

Question 59

An API fails after a move from local SQL Server to Azure SQL because a fixed connection string remains in source control. Which technical principle BEST explains the relevant design decision?

  1. Syntactic JSON validity alone does not prove a mapped SQL object exists.
  2. DAB entity projection and permissions determine the API data surface.
  3. Configuration must resolve the correct database per environment without leaking secrets.
  4. REST endpoint mapping supplies predictable URLs and HTTP operations.

Explanation

Correct Answer

C:

Configuration must resolve the correct database per environment without leaking secrets. This explains why the corrective action is to parameterize the DAB data source using supported environment variables or secret integration. Confirm the diagnosis when staging resolves its own Azure SQL endpoint and local development still works.

Incorrect Answers

A:

Syntactic JSON validity alone does not prove a mapped SQL object exists. The actual technical constraint is that configuration must resolve the correct database per environment without leaking secrets.

B:

DAB entity projection and permissions determine the API data surface. The actual technical constraint is that configuration must resolve the correct database per environment without leaking secrets.

D:

REST endpoint mapping supplies predictable URLs and HTTP operations. The actual technical constraint is that configuration must resolve the correct database per environment without leaking secrets.

Question 60

An encryption team rotates a column master key but app clients still use outdated metadata. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Document leakage tradeoffs before enabling secure enclaves.
  2. Track principal creation across environments.
  3. Expire elevation and log the migration transaction.
  4. Rehearse key recovery and avoid distributing keys in scripts.

Explanation

Correct Answer

D:

Rehearse key recovery and avoid distributing keys in scripts. This guards against recurrence because column key hierarchy and client metadata must agree for encrypted column access. The direct remediation is: Perform supported key rotation and client configuration changes as a coordinated migration.

Incorrect Answers

A:

Document leakage tradeoffs before enabling secure enclaves. The current task instead requires this action: rehearse key recovery and avoid distributing keys in scripts.

B:

Tracking principal creation across environments would not correct following remediation, what safeguard BEST prevents a repeat of this specific failure. Rehearse key recovery and avoid distributing keys in scripts.

C:

Expire elevation and log the migration transaction. The current task instead requires this action: rehearse key recovery and avoid distributing keys in scripts.

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