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 23

Question 220

A team stores model API keys directly in a version-controlled SQL Database Project. Which preventive practice BEST addresses the underlying risk over time?

  1. Review grants separately when components are replaced.
  2. Rotate signing keys and validate audiences and issuers.
  3. Monitor service-principal grants and run negative authorization tests.
  4. Rotate any exposed keys and protect repository history.

Explanation

Correct Answer

D:

Rotate any exposed keys and protect repository history. This guards against recurrence because repository history retains secrets even after a visible commit is removed. The direct remediation is: Remove keys and use deployment-time secret references or supported managed identity.

Incorrect Answers

A:

Review grants separately when components are replaced. The current task instead requires this action: rotate any exposed keys and protect repository history.

B:

Rotate signing keys and validate audiences and issuers. The current task instead requires this action: rotate any exposed keys and protect repository history.

C:

Monitor service-principal grants and run negative authorization tests. The current task instead requires this action: rotate any exposed keys and protect repository history.

Question 221

A database's tempdb files are unevenly configured and allocations bottleneck workloads. What should the SQL developer do FIRST to address the specific issue?

  1. Evaluate tempdb file sizing and allocation configuration appropriate to SQL engine/version.
  2. Benchmark MAXDOP and cost threshold changes using actual plans and instance guidance.
  3. Require an expected rowversion predicate and verify rows affected before confirming success.
  4. Investigate parameter sensitivity, statistics and alternative plan strategies.

Explanation

Correct Answer

A:

Evaluate tempdb file sizing and allocation configuration appropriate to SQL engine/version. This targets the primary issue because tempdb contention can impede transient sorting, hashing and version-store activity. Verification: Observed allocation waits decline after an approved configuration change. Prevent recurrence: Monitor file growth and free capacity over time.

Incorrect Answers

B:

Benchmark MAXDOP and cost threshold changes using actual plans and instance guidance. The relevant technical condition instead is that evaluate tempdb file sizing and allocation configuration appropriate to SQL engine/version.

C:

Optimistic concurrency only works if conflicts are detected, not silently overwritten.

D:

A poor cardinality estimate can induce unsuitable joins and memory grants.

Question 222

A long-running report holds locks and causes order inserts to wait. Which acceptance check is MOST directly related to this scenario?

  1. The blocking chain is eliminated and update throughput recovers.
  2. Inserts complete within SLA while report results remain correct.
  3. A forced or corrected plan improves tested workload without wrong results.
  4. Top CPU queries correlate with observed workload and waits.

Explanation

Correct Answer

B:

Inserts complete within SLA while report results remain correct. This is the decisive observable evidence after implementing review transaction duration, isolation and available row-versioning options. It tests the underlying requirement: Lock duration and scope influence writer blocking under concurrency.

Incorrect Answers

A:

The blocking chain is eliminated and update throughput recovers. However, that result would not establish the required outcome: inserts complete within SLA while report results remain correct.

C:

A forced or corrected plan improves tested workload without wrong results. However, that result would not establish the required outcome: inserts complete within SLA while report results remain correct.

D:

Top CPU queries correlate with observed workload and waits. However, that result would not establish the required outcome: inserts complete within SLA while report results remain correct.

Question 223

Two SQL transactions update customer and invoice rows in opposite order and deadlock. Which technical property or constraint MOST directly matters here?

  1. Lock waits are not resolved merely by allocating faster compute.
  2. Resource limits can create bottlenecks independent of query syntax.
  3. Opposite lock acquisition sequences can form a cyclic wait.
  4. Optimistic concurrency only works if conflicts are detected, not silently overwritten.

Explanation

Correct Answer

C:

Opposite lock acquisition sequences can form a cyclic wait. This explains why the corrective action is to standardize resource update order and review deadlock graph evidence. Confirm the diagnosis when a concurrent workload no longer produces avoidable deadlock victims.

Incorrect Answers

A:

Lock waits are not resolved merely by allocating faster compute. The actual technical constraint is that opposite lock acquisition sequences can form a cyclic wait.

B:

Resource limits can create bottlenecks independent of query syntax. The actual technical constraint is that opposite lock acquisition sequences can form a cyclic wait.

D:

Optimistic concurrency only works if conflicts are detected, not silently overwritten. The actual technical constraint is that opposite lock acquisition sequences can form a cyclic wait.

Question 224

A team stores SQL object scripts in a shared folder without change history. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Automate object inventory comparisons in CI.
  2. Define drift policy for emergency fixes.
  3. Verify administrators cannot silently bypass controls.
  4. Require branch protection and code review for production.

Explanation

Correct Answer

D:

Require branch protection and code review for production. This guards against recurrence because version control enables traceable schema diffs and rollback planning. The direct remediation is: Put the SQL Database Project into a protected Git repository.

Incorrect Answers

A:

Automate object inventory comparisons in CI. The current task instead requires this action: require branch protection and code review for production.

B:

Define drift policy for emergency fixes. The current task instead requires this action: require branch protection and code review for production.

C:

Verify administrators cannot silently bypass controls. The current task instead requires this action: require branch protection and code review for production.

Question 225

An Azure SQL AI workflow calls an external model endpoint using a hardcoded bearer token. Which technical action BEST resolves the primary problem?

  1. Use a supported managed identity or securely retrieved credential mechanism for the endpoint.
  2. Configure distinct least-privilege grants on model and search resources.
  3. Perform supported key rotation and client configuration changes as a coordinated migration.
  4. Enable supported SQL audit events covering relevant principals and DML operations.

Explanation

Correct Answer

A:

Use a supported managed identity or securely retrieved credential mechanism for the endpoint. This targets the primary issue because embedding static credentials in SQL code can expose model access and billing. Verification: A rotated identity continues working without credentials in scripts. Prevent recurrence: Scope endpoint permissions and monitor request consumption.

Incorrect Answers

B:

Identity permission at one Azure service does not imply access to adjacent resources.

C:

Column key hierarchy and client metadata must agree for encrypted column access.

D:

Audit collection adds actor, operation and time evidence but does not itself block changes.

Question 226

A CI job needs database access without storing a long-lived password or SQL login. Which test result BEST demonstrates that the intended solution is working?

  1. The app reads the intended view but cannot read private financial objects.
  2. The verified pipeline deploys to staging but fails from an untrusted branch.
  3. The legitimate procedure succeeds while unrelated objects remain inaccessible.
  4. A simulated service administrator cannot erase the retained central record.

Explanation

Correct Answer

B:

The verified pipeline deploys to staging but fails from an untrusted branch. This is the decisive observable evidence after implementing configure workload identity federation or an approved short-lived credential method for supported tooling. It tests the underlying requirement: Passwordless CI reduces secret leakage and rotation burden when configured with scoped trust.

Incorrect Answers

A:

The app reads the intended view but cannot read private financial objects. However, that result would not establish the required outcome: the verified pipeline deploys to staging but fails from an untrusted branch.

C:

The legitimate procedure succeeds while unrelated objects remain inaccessible. However, that result would not establish the required outcome: the verified pipeline deploys to staging but fails from an untrusted branch.

D:

A simulated service administrator cannot erase the retained central record. However, that result would not establish the required outcome: the verified pipeline deploys to staging but fails from an untrusted branch.

Question 227

A database index build exceeds disk budget due to storing many large embedding vectors. Which technical principle BEST explains the relevant design decision?

  1. Vector type size limits depend on base type and platform capabilities.
  2. RRF combines ordinal ranks rather than assuming score scales match.
  3. Embedding storage and ANN index structures grow with vector size and document count.
  4. Embedding similarity can confuse near-looking product codes that must match exactly.

Explanation

Correct Answer

C:

Embedding storage and ANN index structures grow with vector size and document count. This explains why the corrective action is to estimate corpus cardinality, dimension size and vector-index maintenance overhead. Confirm the diagnosis when capacity forecast and staging index build fit the agreed budget.

Incorrect Answers

A:

Vector type size limits depend on base type and platform capabilities. The actual technical constraint is that embedding storage and ANN index structures grow with vector size and document count.

B:

RRF combines ordinal ranks rather than assuming score scales match. The actual technical constraint is that embedding storage and ANN index structures grow with vector size and document count.

D:

Embedding similarity can confuse near-looking product codes that must match exactly. The actual technical constraint is that embedding storage and ANN index structures grow with vector size and document count.

Question 228

A support query embedding must retrieve ten closest allowed document chunks stored in SQL. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Test sorting after any metric change.
  2. Use fallback exact retrieval for critical queries when warranted.
  3. Record contribution of each retrieval branch for diagnostics.
  4. Enforce tenant filters before exposing chunks to a model.

Explanation

Correct Answer

D:

Enforce tenant filters before exposing chunks to a model. This guards against recurrence because vector search ranks stored embeddings by distance but must honor source permissions. The direct remediation is: Compute compatible query vector and use supported VECTOR_SEARCH or exact top-k distance query with authorization filters.

Incorrect Answers

A:

Test sorting after any metric change. The current task instead requires this action: enforce tenant filters before exposing chunks to a model.

B:

Use fallback exact retrieval for critical queries when warranted. The current task instead requires this action: enforce tenant filters before exposing chunks to a model.

C:

Record contribution of each retrieval branch for diagnostics. The current task instead requires this action: enforce tenant filters before exposing chunks to a model.

Question 229

A developer pastes a production connection string and database password into an external AI assistant. Which technical action BEST resolves the primary problem?

  1. Remove and rotate exposed secrets; use approved enterprise AI surfaces and sanitized prompts.
  2. Review the generated diff, run it in an isolated test database, and require approval.
  3. Reject the endpoint until source, TLS identity and tool effects are reviewed.
  4. Review Fabric capacity eligibility and tenant Copilot admin controls before testing.

Explanation

Correct Answer

A:

Remove and rotate exposed secrets; use approved enterprise AI surfaces and sanitized prompts. This targets the primary issue because AI chat providers and extensions may retain shared content outside the database boundary. Verification: A security review finds no production secrets in prompt logs or history. Prevent recurrence: Use pre-send secret scanning and developer training.

Incorrect Answers

B:

Reviewing the generated diff, run it in an isolated test database, and require approval addresses a different database behavior; the relevant distinction is that remove and rotate exposed secrets; use approved enterprise AI surfaces and sanitized prompts.

C:

A malicious or compromised MCP server may exfiltrate data or supply unsafe tool behavior.

D:

Copilot in Fabric availability can depend on region, capacity and tenant policies.

Question 230

A multilingual document's chunker ignores headings and merges unrelated languages. Which test result BEST demonstrates that the intended solution is working?

  1. Clause queries retrieve the specific correct paragraph rather than the entire contract.
  2. Queries in each language return correctly scoped labeled passages.
  3. Known user phrases recover the correct article chunk.
  4. A throttled test recovers without duplicate vector records or budget spikes.

Explanation

Correct Answer

B:

Queries in each language return correctly scoped labeled passages. This is the decisive observable evidence after implementing use heading-aware and language-aware chunk boundaries with source metadata. It tests the underlying requirement: Mixed-language chunks can confuse similarity and citation mapping.

Incorrect Answers

A:

Clause queries retrieve the specific correct paragraph rather than the entire contract. However, that result would not establish the required outcome: queries in each language return correctly scoped labeled passages.

C:

Known user phrases recover the correct article chunk. However, that result would not establish the required outcome: queries in each language return correctly scoped labeled passages.

D:

A throttled test recovers without duplicate vector records or budget spikes. However, that result would not establish the required outcome: queries in each language return correctly scoped labeled passages.

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