McAfee-Secured Website

Exam Code: DP-800

Exam Name: Developing AI-Enabled Database Solutions

Certification Provider: Microsoft

Corresponding Certification: Microsoft Certified: SQL AI Developer Associate

100% Microsoft DP-800 Guaranteed Success With Testking Training Materials

Get Real DP-800 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

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 32

Question 310

A multitenant SaaS database must return only the caller's organization's rows. What observable outcome proves the recommendation worked?

  1. Anonymous and cross-role requests are denied while authorized queries return only allowed records.
  2. Inference attempts no longer expose sensitive results to unauthorized principals.
  3. Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.
  4. The spill disappears or decreases and the query meets latency targets without new regressions.

Explanation

Correct Answer

C:

Database RLS applies row filters and block predicates centrally; it still needs secure session context. The observation “Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses” directly confirms the chosen action worked for this situation: A multitenant SaaS database must return only the caller's organization's rows.

Incorrect Answers

A:

TLS encrypts transport but does not establish user authorization or row-level entitlements. This observation would not establish that the required result occurred for A multitenant SaaS database must return only the caller's organization's rows. The confirming test is: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

B:

DDM is a display feature, not a complete security boundary against statistical inference. This observation would not establish that the required result occurred for A multitenant SaaS database must return only the caller's organization's rows. The confirming test is: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

D:

Tempdb spills indicate memory/workload mismatch and should be diagnosed from actual plans. This observation would not establish that the required result occurred for A multitenant SaaS database must return only the caller's organization's rows. The confirming test is: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

Question 311

A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. Which design choice BEST addresses the root issue?

  1. Require verified identities, authorization on the endpoint and source objects, and least-privilege access.
  2. Use supported column-level encryption with governed key access and explicit decryption rights.
  3. Rewrite predicates to sargable range conditions where semantics are preserved.
  4. Implement Row-Level Security with a vetted predicate bound to authoritative tenant context.

Explanation

Correct Answer

D:

Database RLS applies row filters and block predicates centrally; it still needs secure session context. For the described situation—A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries—the targeted fix is Implement Row-Level Security with a vetted predicate bound to authoritative tenant context. A successful test should show: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

Incorrect Answers

A:

TLS encrypts transport but does not establish user authorization or row-level entitlements. But that technique does not solve the stated problem—A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. The needed intervention is Implement Row-Level Security with a vetted predicate bound to authoritative tenant context.

B:

SQL column encryption differs from Always Encrypted in the location of decryption and key trust boundary. But that technique does not solve the stated problem—A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. The needed intervention is Implement Row-Level Security with a vetted predicate bound to authoritative tenant context.

C:

Applying functions to indexed columns often prevents efficient predicate seek pushdown. But that technique does not solve the stated problem—A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. The needed intervention is Implement Row-Level Security with a vetted predicate bound to authoritative tenant context.

Question 312

A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. Which result would provide the strongest acceptance evidence?

  1. Repository scans find no secret and deployment uses an authorized scoped identity.
  2. Attempts to spoof tenant context fail to reveal another organization's rows.
  3. The blocker and blocked session chain are identified with actionable wait evidence.
  4. Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

Explanation

Correct Answer

D:

Database RLS applies row filters and block predicates centrally; it still needs secure session context. The observation “Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses” directly confirms the chosen action worked for this situation: A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries.

Incorrect Answers

A:

Source control is not a secure secret store; leaked SQL credentials require revocation and rotation. This observation would not establish that the required result occurred for A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. The confirming test is: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

B:

RLS depends on a trustworthy predicate and context; user-controlled context can undermine isolation. This observation would not establish that the required result occurred for A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. The confirming test is: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

C:

DMVs expose current session/wait state; Query Store primarily provides historical query performance. This observation would not establish that the required result occurred for A shared Orders table stores a TenantID and a new API endpoint forgot tenant filters in two queries. The confirming test is: Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.

Question 313

An API account needs to SELECT a view but must not alter the underlying salary table. What should the database team change FIRST for this workload?

  1. Restrict MCP tool surfaces to approved operations, read-only roles, and audited access.
  2. Use environment-specific identities, secret isolation, and least-privilege policies.
  3. Configure DAB GraphQL entities and relationships with supported keys and permissions.
  4. Grant least-privilege SELECT on the approved object and remove broad roles.

Explanation

Correct Answer

D:

Object-level GRANT/DENY provides granular access without conferring database-wide administration. For the described situation—An API account needs to SELECT a view but must not alter the underlying salary table—the targeted fix is Grant least-privilege SELECT on the approved object and remove broad roles. A successful test should show: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

Incorrect Answers

A:

MCP is an action gateway; server-side permissions and tool allowlists are necessary even with trusted prompts. But that technique does not solve the stated problem—An API account needs to SELECT a view but must not alter the underlying salary table. The needed intervention is Grant least-privilege SELECT on the approved object and remove broad roles.

B:

Environment isolation reduces accidental exposure and lateral movement from lower-trust development systems. But that technique does not solve the stated problem—An API account needs to SELECT a view but must not alter the underlying salary table. The needed intervention is Grant least-privilege SELECT on the approved object and remove broad roles.

C:

GraphQL relationships expose linked data through a defined schema, not arbitrary cross-database joins. But that technique does not solve the stated problem—An API account needs to SELECT a view but must not alter the underlying salary table. The needed intervention is Grant least-privilege SELECT on the approved object and remove broad roles.

Question 314

An API account needs to SELECT a view but must not alter the underlying salary table. Which acceptance check should accompany the remediation?

  1. Model calls succeed using scoped identity and no raw key appears in SQL source or logs.
  2. Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.
  3. Inference attempts no longer expose sensitive results to unauthorized principals.
  4. The spill disappears or decreases and the query meets latency targets without new regressions.

Explanation

Correct Answer

B:

Object-level GRANT/DENY provides granular access without conferring database-wide administration. The observation “Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied” directly confirms the chosen action worked for this situation: An API account needs to SELECT a view but must not alter the underlying salary table.

Incorrect Answers

A:

Protecting external model endpoints requires identity, credential boundaries, and least-privilege authorization. This observation would not establish that the required result occurred for An API account needs to SELECT a view but must not alter the underlying salary table. The confirming test is: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

C:

DDM is a display feature, not a complete security boundary against statistical inference. This observation would not establish that the required result occurred for An API account needs to SELECT a view but must not alter the underlying salary table. The confirming test is: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

D:

Tempdb spills indicate memory/workload mismatch and should be diagnosed from actual plans. This observation would not establish that the required result occurred for An API account needs to SELECT a view but must not alter the underlying salary table. The confirming test is: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

Question 315

A report writer receives db_owner just to read a summary and security review flags excessive access. Which implementation most directly satisfies the stated requirement?

  1. Grant least-privilege SELECT on the approved object and remove broad roles.
  2. Use an approved managed identity or scoped credential mechanism supported by the model endpoint.
  3. Constrain network access using supported private endpoints and firewall or network policy.
  4. Configure the supported pagination and filtering mechanisms with stable ordering.

Explanation

Correct Answer

A:

Object-level GRANT/DENY provides granular access without conferring database-wide administration. For the described situation—A report writer receives db_owner just to read a summary and security review flags excessive access—the targeted fix is Grant least-privilege SELECT on the approved object and remove broad roles. A successful test should show: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

Incorrect Answers

B:

Protecting external model endpoints requires identity, credential boundaries, and least-privilege authorization. But that technique does not solve the stated problem—A report writer receives db_owner just to read a summary and security review flags excessive access. The needed intervention is Grant least-privilege SELECT on the approved object and remove broad roles.

C:

Network isolation limits reachability but complements rather than replaces SQL authentication and grants. But that technique does not solve the stated problem—A report writer receives db_owner just to read a summary and security review flags excessive access. The needed intervention is Grant least-privilege SELECT on the approved object and remove broad roles.

D:

API pagination and predicates reduce overfetching; unsupported query fields must be controlled. But that technique does not solve the stated problem—A report writer receives db_owner just to read a summary and security review flags excessive access. The needed intervention is Grant least-privilege SELECT on the approved object and remove broad roles.

Question 316

A report writer receives db_owner just to read a summary and security review flags excessive access. What measurement or test best demonstrates that the requirement is satisfied?

  1. Network and server-side observations show ciphertext while the authorized client can decrypt.
  2. Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.
  3. The workload connects without a stored SQL secret and denied operations remain blocked.
  4. Repeated deployment yields the same final reference rows without duplicates.

Explanation

Correct Answer

B:

Object-level GRANT/DENY provides granular access without conferring database-wide administration. The observation “Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied” directly confirms the chosen action worked for this situation: A report writer receives db_owner just to read a summary and security review flags excessive access.

Incorrect Answers

A:

Always Encrypted keeps protected data encrypted from the SQL engine when client drivers manage keys. This observation would not establish that the required result occurred for A report writer receives db_owner just to read a summary and security review flags excessive access. The confirming test is: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

C:

Managed identity enables token-based passwordless workload authentication, subject to identity and SQL grants. This observation would not establish that the required result occurred for A report writer receives db_owner just to read a summary and security review flags excessive access. The confirming test is: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

D:

Idempotency makes repeated migration runs safe under retries and partial failures. This observation would not establish that the required result occurred for A report writer receives db_owner just to read a summary and security review flags excessive access. The confirming test is: Read-only queries succeed while UPDATE, DELETE and unauthorized table reads are denied.

Question 317

An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. What is the most defensible next technical action?

  1. Assign the event processor only approved rows, secrets, and external endpoint scopes.
  2. Grant least-privilege SELECT on the approved object and remove broad roles.
  3. Configure Data API builder with approved entities, connection policy, and REST endpoints.
  4. Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

Explanation

Correct Answer

D:

Managed identity enables token-based passwordless workload authentication, subject to identity and SQL grants. For the described situation—An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings—the targeted fix is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions. A successful test should show: The workload connects without a stored SQL secret and denied operations remain blocked.

Incorrect Answers

A:

Asynchronous pipelines require the same identity and data-governance controls as interactive APIs. But that technique does not solve the stated problem—An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. The needed intervention is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

B:

Object-level GRANT/DENY provides granular access without conferring database-wide administration. But that technique does not solve the stated problem—An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. The needed intervention is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

C:

Data API builder maps SQL objects to HTTP endpoints according to its explicit configuration and policy. But that technique does not solve the stated problem—An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. The needed intervention is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

Question 318

An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. Which result distinguishes a successful implementation from a cosmetic change?

  1. Security tests for each principal reveal only intended data regardless of object ownership.
  2. Model calls succeed using scoped identity and no raw key appears in SQL source or logs.
  3. The workload connects without a stored SQL secret and denied operations remain blocked.
  4. The pipeline rejects a logically incorrect procedure despite a successful schema build.

Explanation

Correct Answer

C:

Managed identity enables token-based passwordless workload authentication, subject to identity and SQL grants. The observation “The workload connects without a stored SQL secret and denied operations remain blocked” directly confirms the chosen action worked for this situation: An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings.

Incorrect Answers

A:

SQL permissions and ownership chains affect effective access; dynamic SQL may require separate authorization. This observation would not establish that the required result occurred for An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. The confirming test is: The workload connects without a stored SQL secret and denied operations remain blocked.

B:

Protecting external model endpoints requires identity, credential boundaries, and least-privilege authorization. This observation would not establish that the required result occurred for An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. The confirming test is: The workload connects without a stored SQL secret and denied operations remain blocked.

D:

Build validation checks syntax/schema dependencies; tests verify behavior and interactions. This observation would not establish that the required result occurred for An unattended Azure Function must connect to Azure SQL without keeping a rotating SQL password in app settings. The confirming test is: The workload connects without a stored SQL secret and denied operations remain blocked.

Question 319

A cloud workload must authenticate using its own Azure identity to query a database. Which solution is the most appropriate for the scenario?

  1. Use an approved managed identity or scoped credential mechanism supported by the model endpoint.
  2. Restrict MCP tool surfaces to approved operations, read-only roles, and audited access.
  3. Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.
  4. Apply query depth, pagination and allowed filter policies supported by the API layer.

Explanation

Correct Answer

C:

Managed identity enables token-based passwordless workload authentication, subject to identity and SQL grants. For the described situation—A cloud workload must authenticate using its own Azure identity to query a database—the targeted fix is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions. A successful test should show: The workload connects without a stored SQL secret and denied operations remain blocked.

Incorrect Answers

A:

Protecting external model endpoints requires identity, credential boundaries, and least-privilege authorization. But that technique does not solve the stated problem—A cloud workload must authenticate using its own Azure identity to query a database. The needed intervention is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

B:

MCP is an action gateway; server-side permissions and tool allowlists are necessary even with trusted prompts. But that technique does not solve the stated problem—A cloud workload must authenticate using its own Azure identity to query a database. The needed intervention is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

D:

GraphQL and REST query surfaces require limits to prevent accidental overfetch and resource exhaustion. But that technique does not solve the stated problem—A cloud workload must authenticate using its own Azure identity to query a database. The needed intervention is Use Managed Identity with Microsoft Entra authentication and least-privilege SQL principal permissions.

Question 320

A cloud workload must authenticate using its own Azure identity to query a database. What should a technical reviewer verify before approving completion?

  1. Cross-tenant SELECT and DML tests cannot access another tenant's records even without application WHERE clauses.
  2. Permission audits show the app can perform intended reads but cannot change unrelated tables.
  3. The workload connects without a stored SQL secret and denied operations remain blocked.
  4. A replay of change tables reconstructs expected mutations including relevant old and new values.

Explanation

Correct Answer

C:

Managed identity enables token-based passwordless workload authentication, subject to identity and SQL grants. The observation “The workload connects without a stored SQL secret and denied operations remain blocked” directly confirms the chosen action worked for this situation: A cloud workload must authenticate using its own Azure identity to query a database.

Incorrect Answers

A:

Database RLS applies row filters and block predicates centrally; it still needs secure session context. This observation would not establish that the required result occurred for A cloud workload must authenticate using its own Azure identity to query a database. The confirming test is: The workload connects without a stored SQL secret and denied operations remain blocked.

B:

Least privilege limits damage from compromised application identities and unintended queries. This observation would not establish that the required result occurred for A cloud workload must authenticate using its own Azure identity to query a database. The confirming test is: The workload connects without a stored SQL secret and denied operations remain blocked.

D:

CDC records change data for replay, unlike simple change tracking versions. This observation would not establish that the required result occurred for A cloud workload must authenticate using its own Azure identity to query a database. The confirming test is: The workload connects without a stored SQL secret and denied operations remain blocked.

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