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 20

Question 190

A GraphQL endpoint permits nested queries that return customer records from unauthorized tenants. Which acceptance check is MOST directly related to this scenario?

  1. An anonymous request is denied and an approved role sees only permitted fields.
  2. Cross-tenant nested queries return no unauthorized records in negative tests.
  3. Model calls and retrieval calls each succeed only with required scopes.
  4. The verified pipeline deploys to staging but fails from an untrusted branch.

Explanation

Correct Answer

B:

Cross-tenant nested queries return no unauthorized records in negative tests. This is the decisive observable evidence after implementing enforce tenant-aware authorization, bounded query complexity and back-end SQL row security. It tests the underlying requirement: GraphQL relationship traversal can increase data exposure if access is too broad.

Incorrect Answers

A:

An anonymous request is denied and an approved role sees only permitted fields. However, that result would not establish the required outcome: cross-tenant nested queries return no unauthorized records in negative tests.

C:

Model calls and retrieval calls each succeed only with required scopes. However, that result would not establish the required outcome: cross-tenant nested queries return no unauthorized records in negative tests.

D:

The verified pipeline deploys to staging but fails from an untrusted branch. However, that result would not establish the required outcome: cross-tenant nested queries return no unauthorized records in negative tests.

Question 191

A GraphQL query must return a customer's orders and related items without manual N+1 calls. Which technical property or constraint MOST directly matters here?

  1. DAB can surface declared stored procedures without granting arbitrary query execution.
  2. REST endpoint mapping supplies predictable URLs and HTTP operations.
  3. Correct GraphQL relationship metadata enables nested retrieval of related records.
  4. Configuration must resolve the correct database per environment without leaking secrets.

Explanation

Correct Answer

C:

Correct GraphQL relationship metadata enables nested retrieval of related records. This explains why the corrective action is to configure DAB entity relationships with matching source/target keys. Confirm the diagnosis when the customer fixture returns exactly its own order items.

Incorrect Answers

A:

DAB can surface declared stored procedures without granting arbitrary query execution. The actual technical constraint is that correct GraphQL relationship metadata enables nested retrieval of related records.

B:

REST endpoint mapping supplies predictable URLs and HTTP operations. The actual technical constraint is that correct GraphQL relationship metadata enables nested retrieval of related records.

D:

Configuration must resolve the correct database per environment without leaking secrets. The actual technical constraint is that correct GraphQL relationship metadata enables nested retrieval of related records.

Question 192

A model-serving endpoint is reachable publicly with no strong caller authentication. Which preventive practice BEST addresses the underlying risk over time?

  1. Review grants separately when components are replaced.
  2. Test every write operation and auditing requirements.
  3. Do not use masking as the sole defense for highly sensitive fields.
  4. Add rate limiting and request audit trails.

Explanation

Correct Answer

D:

Add rate limiting and request audit trails. This guards against recurrence because an open endpoint may expose inputs, outputs or costly compute to unauthorized callers. The direct remediation is: Require approved identity authentication and network controls for the inference endpoint.

Incorrect Answers

A:

Review grants separately when components are replaced. The current task instead requires this action: add rate limiting and request audit trails.

B:

Test every write operation and auditing requirements. The current task instead requires this action: add rate limiting and request audit trails.

C:

Do not use masking as the sole defense for highly sensitive fields.

Question 193

A developer publishes a production DACPAC using staging variables and connects to the wrong database. What should the SQL developer do FIRST to address the specific issue?

  1. Bind deployment environment, endpoint and credentials to explicit approved pipeline controls.
  2. Build/publish the reviewed SQL Database Project to the intended target with verification.
  3. Use dedicated scoped workload identity with least-privilege resource grants.
  4. Review migration impact, data retention and dependent object behavior before approval.

Explanation

Correct Answer

A:

Bind deployment environment, endpoint and credentials to explicit approved pipeline controls. This targets the primary issue because mis-targeted deployments can damage production regardless of SQL correctness. Verification: Preflight reports match the authorized database identity and schema. Prevent recurrence: Require environment approvals and target validation.

Incorrect Answers

B:

Changing project source alone does not apply DDL to the deployed database.

C:

Using dedicated scoped workload identity with least-privilege resource grants would not correct a developer publishes a production DACPAC using staging variables and connects to the wrong database. Bind deployment environment, endpoint and credentials to explicit approved pipeline controls.

D:

Reviewing migration impact, data retention and dependent object behavior before approval would not correct a developer publishes a production DACPAC using staging variables and connects to the wrong database. Bind deployment environment, endpoint and credentials to explicit approved pipeline controls.

Question 194

New shipments lack a creation timestamp whenever one integration omits the field. Which acceptance check is MOST directly related to this scenario?

  1. Orphan inserts fail and approved delete scenarios behave as specified.
  2. An insert omitting the field records an acceptable UTC creation time.
  3. Revised queries or indexing achieve the documented performance objective.
  4. A maintenance rehearsal successfully switches a partition with required constraints.

Explanation

Correct Answer

B:

An insert omitting the field records an acceptable UTC creation time. This is the decisive observable evidence after implementing configure a suitable DEFAULT constraint with a UTC expression when required by the schema. It tests the underlying requirement: A default supplies a value on omission, not a guarantee against explicit bad values.

Incorrect Answers

A:

Orphan inserts fail and approved delete scenarios behave as specified. However, that result would not establish the required outcome: an insert omitting the field records an acceptable UTC creation time.

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 a default supplies a value on omission, not a guarantee against explicit bad values. The specifically relevant observable acceptance test is: An insert omitting the field records an acceptable UTC creation time.

D:

A maintenance rehearsal successfully switches a partition with required constraints. However, that result would not establish the required outcome: an insert omitting the field records an acceptable UTC creation time.

Question 195

A model sometimes produces markdown instead of the requested JSON object for an automated workflow. Which technical property or constraint MOST directly matters here?

  1. Language model fluency does not establish numerical correctness.
  2. An authorization error occurs before model inference can produce valid content.
  3. Generated output is not guaranteed to follow instructions unless independently checked.
  4. JSON encoding preserves numeric representation better than locale-dependent concatenation.

Explanation

Correct Answer

C:

Generated output is not guaranteed to follow instructions unless independently checked. This explains why the corrective action is to validate structured model output against a strict schema and reject invalid responses. Confirm the diagnosis when malformed output is quarantined and valid output produces typed records.

Incorrect Answers

A:

Language model fluency does not establish numerical correctness. The actual technical constraint is that generated output is not guaranteed to follow instructions unless independently checked.

B:

An authorization error occurs before model inference can produce valid content. The actual technical constraint is that generated output is not guaranteed to follow instructions unless independently checked.

D:

JSON encoding preserves numeric representation better than locale-dependent concatenation. The actual technical constraint is that generated output is not guaranteed to follow instructions unless independently checked.

Question 196

A teammate ships malformed DAB JSON with a misspelled source object name. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Block accidental production connection strings in repository review.
  2. Review view changes and role grants together.
  3. Keep deployment artifacts and change history.
  4. Keep config schema and object references versioned together.

Explanation

Correct Answer

D:

Keep config schema and object references versioned together. This guards against recurrence because syntactic JSON validity alone does not prove a mapped SQL object exists. The direct remediation is: Run dab validate and a connection smoke test before publishing.

Incorrect Answers

A:

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

B:

Review view changes and role grants together. The current task instead requires this action: keep config schema and object references versioned together.

C:

Keep deployment artifacts and change history. The current task instead requires this action: keep config schema and object references versioned together.

Question 197

A team adds two retrieval methods but simply concatenates results and duplicates many documents. Which technical action BEST resolves the primary problem?

  1. Deduplicate candidates by stable source ID and apply a documented fusion strategy.
  2. Combine full-text/lexical matching with semantic vector retrieval before ranking.
  3. Use RRF to reward documents ranking highly across multiple candidate lists.
  4. Compare index build time, insert cost, storage and recall alongside query latency.

Explanation

Correct Answer

A:

Deduplicate candidates by stable source ID and apply a documented fusion strategy. This targets the primary issue because independent retrieval branches can produce overlapping hits and uncalibrated scores. Verification: Results contain one entry per source passage in a stable ranking. Prevent recurrence: Record contribution of each retrieval branch for diagnostics.

Incorrect Answers

B:

Combine full-text/lexical matching with semantic vector retrieval before ranking. The relevant technical condition instead is that deduplicate candidates by stable source ID and apply a documented fusion strategy.

C:

Using RRF to reward documents ranking highly across multiple candidate lists addresses a different database behavior; the relevant distinction is that deduplicate candidates by stable source ID and apply a documented fusion strategy.

D:

Index choice affects ingestion and maintenance as well as retrieval speed.

Question 198

An employee should be prevented from inserting a row assigned to a different department. Which test result BEST demonstrates that the intended solution is working?

  1. A spoofed request cannot change access to another tenant's rows.
  2. A mismatched department INSERT or UPDATE fails under the test role.
  3. Secret scans pass and deployments resolve approved credentials securely.
  4. A forged admin header fails while valid signed identities receive correct rights.

Explanation

Correct Answer

B:

A mismatched department INSERT or UPDATE fails under the test role. This is the decisive observable evidence after implementing add an RLS block predicate in addition to any required filter predicate. It tests the underlying requirement: Read filtering alone does not necessarily stop unauthorized DML that changes row ownership.

Incorrect Answers

A:

A spoofed request cannot change access to another tenant's rows. However, that result would not establish the required outcome: a mismatched department INSERT or UPDATE fails under the test role.

C:

Secret scans pass and deployments resolve approved credentials securely. However, that result would not establish the required outcome: a mismatched department INSERT or UPDATE fails under the test role.

D:

A forged admin header fails while valid signed identities receive correct rights. However, that result would not establish the required outcome: a mismatched department INSERT or UPDATE fails under the test role.

Question 199

A DBA enables RLS but bulk export uses a high privilege or bypass identity. Which technical principle BEST explains the relevant design decision?

  1. Session context is only safe as an authorization input when callers cannot impersonate other tenants.
  2. Repository history retains secrets even after a visible commit is removed.
  3. Security enforcement must be tested with the exact executing principal.
  4. Managed identities remove a static SQL password from the deployed application configuration.

Explanation

Correct Answer

C:

Security enforcement must be tested with the exact executing principal. This explains why the corrective action is to verify RLS behavior under every service principal and prohibit unnecessary bypass roles. Confirm the diagnosis when an export returns only rows permitted to its assigned role.

Incorrect Answers

A:

Session context is only safe as an authorization input when callers cannot impersonate other tenants. The actual technical constraint is that security enforcement must be tested with the exact executing principal.

B:

Repository history retains secrets even after a visible commit is removed. The actual technical constraint is that security enforcement must be tested with the exact executing principal.

D:

Managed identities remove a static SQL password from the deployed application configuration. The actual technical constraint is that security enforcement must be tested with the exact executing principal.

Question 200

A model endpoint returns a JSON envelope but the application saves the entire envelope as the business answer. Following remediation, what safeguard BEST prevents a repeat of this specific failure?

  1. Implement safe fallback or manual review.
  2. Audit outbound data scope and access context.
  3. Test corpus freshness and unauthorized access.
  4. Version and validate provider schemas.

Explanation

Correct Answer

D:

Version and validate provider schemas. This guards against recurrence because HTTP response metadata and generated text are different parts of the payload. The direct remediation is: Parse the supported response schema and extract the correct generated content field.

Incorrect Answers

A:

Implement safe fallback or manual review. The current task instead requires this action: version and validate provider schemas.

B:

Audit outbound data scope and access context. The current task instead requires this action: version and validate provider schemas.

C:

Test corpus freshness and unauthorized access. The current task instead requires this action: version and validate provider schemas.

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