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 31

Question 300

A pricing table admits negative unit prices despite a documented positive-price rule. Which technical reason BEST explains the proposed correction?

  1. Referential integrity prevents orphan children unless cascade or other actions are deliberately configured.
  2. A sequence can allocate numbers independently of one table identity property.
  3. Metadata-based partition switching requires strict schema and partition alignment.
  4. Application-layer validation alone can be bypassed by other writers.

Explanation

Correct Answer

D:

Application-layer validation alone can be bypassed by other writers. This explains why the corrective action is to use a CHECK constraint expressing the supported business condition. Confirm the diagnosis when direct SQL inserts with negative prices fail without affecting valid rows.

Incorrect Answers

A:

Referential integrity prevents orphan children unless cascade or other actions are deliberately configured. The actual technical constraint is that application-layer validation alone can be bypassed by other writers.

B:

A sequence can allocate numbers independently of one table identity property. The actual technical constraint is that application-layer validation alone can be bypassed by other writers.

C:

Metadata-based partition switching requires strict schema and partition alignment. The actual technical constraint is that application-layer validation alone can be bypassed by other writers.

Question 301

Auditors need to query the historical values of invoice rows as they existed last quarter. Which preventive practice BEST addresses the underlying risk over time?

  1. Protect history access and plan retention and schema migration.
  2. Monitor source availability and credential rotation.
  3. Alert before exhaustion and avoid cycling keys with retained history.
  4. Keep statistics and partition maintenance procedures current.

Explanation

Correct Answer

A:

Protect history access and plan retention and schema migration. This guards against recurrence because temporal history captures prior row versions when system versioning is enabled. The direct remediation is: Choose a system-versioned temporal table with properly managed history and retention.

Incorrect Answers

B:

Monitor source availability and credential rotation. The current task instead requires this action: protect history access and plan retention and schema migration.

C:

Alert before exhaustion and avoid cycling keys with retained history.

D:

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

Question 302

A developer tries to audit deleted rows using only the inserted pseudo-table. What should the SQL developer do FIRST to address the specific issue?

  1. Review recursion configuration and redesign the trigger to avoid uncontrolled self-updates.
  2. Use the deleted pseudo-table correctly for DELETE and before-image values.
  3. Review dependency effects and change the schema-bound view deliberately before modifying underlying objects.
  4. Inspect the function execution mode and consider set-based expressions or eligible scalar UDF inlining.

Explanation

Correct Answer

B:

Use the deleted pseudo-table correctly for DELETE and before-image values. This targets the primary issue because a DELETE trigger exposes removed rows via deleted, not inserted. Verification: The audit records exact old values in multirow deletion tests. Prevent recurrence: Protect audit table writes and limit trigger permissions.

Incorrect Answers

A:

Nested or recursive trigger behavior can cause cycles and unexpected work.

C:

Reviewing dependency effects and change the schema-bound view deliberately before modifying underlying objects would not correct a developer tries to audit deleted rows using only the inserted pseudo-table. Use the deleted pseudo-table correctly for DELETE and before-image values.

D:

Per-row scalar function calls may create expensive repeated execution on some workloads.

Question 303

A compliance team cannot identify who edited a high-value contract row. Which acceptance check is MOST directly related to this scenario?

  1. A simulated service administrator cannot erase the retained central record.
  2. The identity creates an approved test object but cannot alter production schemas.
  3. A test UPDATE appears in protected audit storage with correct identity.
  4. Anonymous calls fail while authorized SQL workloads succeed.

Explanation

Correct Answer

C:

A test UPDATE appears in protected audit storage with correct identity. This is the decisive observable evidence after implementing enable supported SQL audit events covering relevant principals and DML operations. It tests the underlying requirement: Audit collection adds actor, operation and time evidence but does not itself block changes.

Incorrect Answers

A:

A simulated service administrator cannot erase the retained central record. However, that result would not establish the required outcome: a test UPDATE appears in protected audit storage with correct identity.

B:

The identity creates an approved test object but cannot alter production schemas. However, that result would not establish the required outcome: a test UPDATE appears in protected audit storage with correct identity.

D:

Anonymous calls fail while authorized SQL workloads succeed. However, that result would not establish the required outcome: a test UPDATE appears in protected audit storage with correct identity.

Question 304

A high-throughput transaction queue suffers from latch contention on a hot disk-based staging table. Which technical property or constraint MOST directly matters here?

  1. Temporal history captures prior row versions when system versioning is enabled.
  2. A default supplies a value on omission, not a guarantee against explicit bad values.
  3. Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers.
  4. Memory-optimized OLTP can reduce contention but adds feature and durability constraints.

Explanation

Correct Answer

D:

Memory-optimized OLTP can reduce contention but adds feature and durability constraints. This explains why the corrective action is to evaluate memory-optimized tables where the specific SQL engine and workload support them. Confirm the diagnosis when a benchmark improves queue throughput while meeting durability requirements.

Incorrect Answers

A:

Temporal history captures prior row versions when system versioning is enabled. The actual technical constraint is that memory-optimized OLTP can reduce contention but adds feature and durability constraints.

B:

A default supplies a value on omission, not a guarantee against explicit bad values. The actual technical constraint is that memory-optimized OLTP can reduce contention but adds feature and durability constraints.

C:

Finite ranges exhaust and enabling CYCLE without safety checks may repeat identifiers. The actual technical constraint is that memory-optimized OLTP can reduce contention but adds feature and durability constraints.

Question 305

An AI assistant suggests disabling row-level security to make a join work. Which preventive practice BEST addresses the underlying risk over time?

  1. Protect branches with required security code review.
  2. Use pre-send secret scanning and developer training.
  3. Record feature enablement and organizational restrictions.
  4. Scan instruction files during pull-request review.

Explanation

Correct Answer

A:

Protect branches with required security code review. This guards against recurrence because generated code can violate least privilege even if it appears syntactically correct. The direct remediation is: Treat generated SQL as untrusted and require security review before execution.

Incorrect Answers

B:

Use pre-send secret scanning and developer training. The current task instead requires this action: protect branches with required security code review.

C:

Record feature enablement and organizational restrictions. The current task instead requires this action: protect branches with required security code review.

D:

Scan instruction files during pull-request review. The current task instead requires this action: protect branches with required security code review.

Question 306

A deployment runs under a broad shared service principal with unlimited Azure privileges. What should the SQL developer do FIRST to address the specific issue?

  1. Redact secrets from diagnostics and use structured error codes.
  2. Use dedicated scoped workload identity with least-privilege resource grants.
  3. Capture the intended schema in a SQL Database Project and build a DACPAC model.
  4. Enforce protected branches and required pull-request approvals.

Explanation

Correct Answer

B:

Use dedicated scoped workload identity with least-privilege resource grants. This targets the primary issue because shared overly privileged credentials increase blast radius across systems. Verification: The pipeline reaches only its intended staging database and resource group. Prevent recurrence: Audit assignments and revoke stale principals.

Incorrect Answers

A:

Redact secrets from diagnostics and use structured error codes. The relevant technical condition instead is that use dedicated scoped workload identity with least-privilege resource grants.

C:

A declarative project can validate database object definitions before deployment.

D:

Branch policies are governance controls that prevent unreviewed deployment inputs.

Question 307

A service principal can run a procedure but receives SELECT permission errors inside dynamic SQL. Which acceptance check is MOST directly related to this scenario?

  1. The API executes the report but cannot drop objects or select unrelated tables.
  2. Model calls and retrieval calls each succeed only with required scopes.
  3. The legitimate procedure succeeds while unrelated objects remain inaccessible.
  4. An export returns only rows permitted to its assigned role.

Explanation

Correct Answer

C:

The legitimate procedure succeeds while unrelated objects remain inaccessible. This is the decisive observable evidence after implementing review execution context and grant only required underlying object rights securely. It tests the underlying requirement: Dynamic SQL may execute under a permission context different from static ownership chains.

Incorrect Answers

A:

The API executes the report but cannot drop objects or select unrelated tables. However, that result would not establish the required outcome: the legitimate procedure succeeds while unrelated objects remain inaccessible.

B:

Model calls and retrieval calls each succeed only with required scopes. However, that result would not establish the required outcome: the legitimate procedure succeeds while unrelated objects remain inaccessible.

D:

An export returns only rows permitted to its assigned role. However, that result would not establish the required outcome: the legitimate procedure succeeds while unrelated objects remain inaccessible.

Question 308

A developer receives a VECTOR value but needs to inspect its number of dimensions in SQL. Which technical principle BEST explains the relevant design decision?

  1. Normalizing vector length separates direction from magnitude for suitable similarity metrics.
  2. Approximate structures trade memory, speed and recall depending on data and configuration.
  3. Distance semantics affect neighbor ordering and recall.
  4. Vector metadata functions describe representation without parsing serialized JSON arrays.

Explanation

Correct Answer

D:

Vector metadata functions describe representation without parsing serialized JSON arrays. This explains why the corrective action is to use supported VECTORPROPERTY to obtain relevant vector metadata. Confirm the diagnosis when a known test vector reports the correct dimension property.

Incorrect Answers

A:

Normalizing vector length separates direction from magnitude for suitable similarity metrics. The actual technical constraint is that vector metadata functions describe representation without parsing serialized JSON arrays.

B:

Approximate structures trade memory, speed and recall depending on data and configuration. The actual technical constraint is that vector metadata functions describe representation without parsing serialized JSON arrays.

C:

Distance semantics affect neighbor ordering and recall. The actual technical constraint is that vector metadata functions describe representation without parsing serialized JSON arrays.

Question 309

An API fails after a move from local SQL Server to Azure SQL because a fixed connection string remains in source control. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Block accidental production connection strings in repository review.
  2. Keep config schema and object references versioned together.
  3. Monitor connection failures and restrict ingress.
  4. Keep deployment artifacts and change history.

Explanation

Correct Answer

A:

Block accidental production connection strings in repository review. This guards against recurrence because configuration must resolve the correct database per environment without leaking secrets. The direct remediation is: Parameterize the DAB data source using supported environment variables or secret integration.

Incorrect Answers

B:

Keep config schema and object references versioned together. The current task instead requires this action: block accidental production connection strings in repository review.

C:

Monitor connection failures and restrict ingress. The current task instead requires this action: block accidental production connection strings in repository review.

D:

Keep deployment artifacts and change history. The current task instead requires this action: block accidental production connection strings in repository review.

Question 310

An encryption team rotates a column master key but app clients still use outdated metadata. Which technical action BEST resolves the primary problem?

  1. Redesign the query or use an explicitly supported encryption/enclave pattern with documented tradeoffs.
  2. Perform supported key rotation and client configuration changes as a coordinated migration.
  3. Use targeted audit groups and evaluate performance and retention costs.
  4. Implement an appropriate RLS security predicate tied to trusted tenant context.

Explanation

Correct Answer

B:

Perform supported key rotation and client configuration changes as a coordinated migration. This targets the primary issue because column key hierarchy and client metadata must agree for encrypted column access. Verification: Authorized clients read/write after rotation and revoked keys no longer work. Prevent recurrence: Rehearse key recovery and avoid distributing keys in scripts.

Incorrect Answers

A:

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

C:

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

D:

RLS enforces row filtering in the database rather than relying on every query to remember a filter.

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