Pass Microsoft DP-800 Exam in First Attempt Easily
Real Microsoft DP-800 Exam Questions, Accurate & Verified Answers As Experienced in the Actual Test!

Verified by experts

DP-800 Premium File

  • 101 Questions & Answers
  • Last Update: Nov 12, 2026
$69.99 $76.99

Developing AI-Enabled Database Solutions DP-800 Practice Test 35

Question 340

A new FK will fail unless existing orphan data is reconciled before publish

Which SQL design or implementation decision most directly addresses this requirement?

  1. Introduce a tested predeployment data remediation with explicit rollback criteria
  2. Inspect the deployment plan and block unapproved data-loss operations
  3. Use an expand-and-contract compatible schema migration with a staged backfill
  4. Prepare tested backward-compatible rollback or forward-fix procedures and protect data backups

Explanation

Correct Answer

A:

Data and schema changes must be sequenced so new constraints do not break on preexisting invalid rows.

Incorrect Answers

B:

Automated schema comparisons may propose destructive changes that need explicit approval and migration planning.

C:

Backward-compatible intermediate schema lets mixed app versions operate safely until a later cleanup.

D:

Schema rollback can be unsafe after new writes; recoverability must be designed before a high-risk change.

Question 341

A project must change customer-managed Always Encrypted keys without losing access to existing rows

Which SQL design or implementation decision most directly addresses this requirement?

  1. Prefer appropriate Microsoft Entra identities and mapped least-privilege database principals
  2. Apply identity authorization and network access as complementary model endpoint controls
  3. Route auditing to protected centralized storage with access controls and appropriate retention
  4. Plan Always Encrypted key rotation and re-encryption with a controlled client and validation workflow

Explanation

Correct Answer

D:

Column-master and column-encryption key lifecycle must be managed carefully to prevent decryption outages.

Incorrect Answers

A:

Centralized identity management reduces shared-secret exposure and improves attribution and revocation.

B:

Network restrictions limit reachability while scoped credentials decide who can invoke supported operations.

C:

Separating audit custody from operational administrators reduces the risk of tampering and premature deletion.

Question 342

A REST endpoint returns every million-row record in one response and times out

Which SQL design or implementation decision most directly addresses this requirement?

  1. Configure DAB pagination and documented continuation behavior for the entity
  2. Use change data capture when row-level historical change details are required and supported
  3. Configure Azure Monitor alert rules on appropriate metrics/log queries and an action group
  4. Use Change Tracking with a safely managed synchronization version

Explanation

Correct Answer

A:

Pagination bounds response size and limits database work per request, while stable ordering is essential.

Incorrect Answers

B:

CDC records changes from the transaction log for downstream consumption, but latency and retention need management.

C:

Actionable alerts require measurable thresholds, destinations and noise controls rather than generic dashboards alone.

D:

Change Tracking reports which rows changed since a version without storing a full sequence of each column change.

Question 343

A release process needs a repeatable versioned package representing the expected SQL schema

Which SQL design or implementation decision most directly addresses this requirement?

  1. Configure appropriate SQL project references and validate external dependencies
  2. Separate environment configuration and connection authentication from the versioned SQL model
  3. Build and deploy a reviewed DACPAC from the SQL Database Project
  4. Build and validate the SQL Database Project on every relevant pull request

Explanation

Correct Answer

C:

A DACPAC packages the declarative database model used by supported deployment tools.

Incorrect Answers

A:

Project references inform build-time symbol resolution and make schema dependencies explicit.

B:

A consistent schema artifact should be promoted while environment-specific values are provided securely at deployment.

D:

Compilation catches many missing symbols and invalid references before a DACPAC is deployed.

Question 344

A team needs reusable SELECT logic that can be composed in a larger SQL query

Which SQL design or implementation decision most directly addresses this requirement?

  1. Wrap the related writes in BEGIN TRANSACTION with TRY/CATCH and appropriate rollback
  2. Use an INSTEAD OF trigger only when deliberate view-write translation is required
  3. Keep the calculation in a side-effect-free SQL function consistent with UDF restrictions
  4. Use a view or table-valued function when a relation must participate in JOIN operations

Explanation

Correct Answer

D:

Views and TVFs are relational query sources; stored procedures are invoked with EXEC and do not act as arbitrary table expressions.

Incorrect Answers

A:

An explicit transaction and consistent failure policy enforce atomicity across multiple statements.

B:

INSTEAD OF triggers replace the original DML action and must implement the full intended persistence behavior.

C:

T-SQL user-defined functions have side-effect and statement restrictions that differ from stored procedures.

Question 345

A retrieved database description attempts to change the assistant's system instructions

Which SQL design or implementation decision most directly addresses this requirement?

  1. Verify and configure required Copilot in Fabric tenant, capacity and role prerequisites
  2. Supply vetted schema metadata through a governed read-only tool rather than invent names
  3. Treat retrieved database contents as untrusted data and restrict tools independently of their text
  4. Enable appropriate audit logging of AI tool calls, principal, target and result without storing secrets

Explanation

Correct Answer

C:

Prompt injection in tool output must not grant new authority or override the application trust boundary.

Incorrect Answers

A:

Copilot features depend on administrative eligibility and workspace settings rather than appearing automatically for every user.

B:

Grounded schema context helps prevent nonexistent objects but still requires verification of generated SQL.

D:

Traceable AI-assisted operations support accountability while logs require access and retention controls.

Question 346

A reporting role requires partial email addresses for troubleshooting without changing underlying records

After the team applies the intended design, which observation would most directly verify that the specific requirement was met?

  1. Repeating encryption for the same plaintext does not produce a stable equality pattern, and authorized clients can decrypt
  2. Prompt-injection test requests fail to perform prohibited SQL changes and are recorded for review
  3. A cross-tenant write is rejected and a same-tenant write succeeds for the same application principal
  4. A test support role sees masked data while an appropriate unmasked role sees the original value

Explanation

Correct Answer

D:

Dynamic Data Masking changes query presentation for covered low-privilege principals but is not cryptographic encryption.

Incorrect Answers

A:

Randomized encryption gives stronger pattern protection at the cost of limiting server-side comparisons.

B:

Model-generated tool calls are untrusted and can misuse granted database permissions unless the tool boundary enforces policy.

C:

RLS filter predicates address row visibility while block predicates can stop invalid INSERT/UPDATE operations.

Question 347

A new customer signup requires a default creation timestamp when the client omits one

After the team applies the intended design, which observation would most directly verify that the specific requirement was met?

  1. Attempts to store NULL for a required column fail while optional NULL attributes remain valid
  2. An INSERT omitting the field persists the specified default and an explicit valid value is respected
  3. Inserts and reads of representative multilingual strings round-trip without replacement characters
  4. A representative query returns identical results and shows a range seek with fewer reads

Explanation

Correct Answer

B:

A default supplies a value when the insert omits the column; it does not override explicit invalid inputs or validate all states.

Incorrect Answers

A:

Nullability is a core schema invariant and should not be delegated solely to an API form.

C:

Unicode-capable character types retain characters outside a single legacy code page and require appropriate length planning.

D:

Avoiding functions on the indexed search column can let the optimizer use an index seek.

Question 348

A partitioned sales table has secondary indexes that prevent fast partition switching

After the team applies the intended design, which observation would most directly verify that the specific requirement was met?

  1. Representative active-only queries use the filtered index with less IO than a full-table scan
  2. The same event displays a consistent instant after conversion between several regional offsets
  3. A test switch moves exactly the intended partition after index alignment with consistent row counts
  4. A permitted cross-source SELECT returns expected rows and failure handling is verified for an unavailable source

Explanation

Correct Answer

C:

Partition switching has schema and index-alignment prerequisites; an incompatible index can block the metadata operation.

Incorrect Answers

A:

A predicate-limited index has fewer rows to maintain and can serve a matching selective WHERE clause.

B:

Persisting an offset or normalized instant helps prevent ambiguity that occurs with unqualified local DATETIME values.

D:

External tables expose remote data through SQL metadata, but performance, supported formats and security depend on the source.

Question 349

A SQL workload must retrieve approximate nearest matches from a supported vector index

Which SQL design or implementation decision most directly addresses this requirement?

  1. Evaluate VECTOR_SEARCH with a compatible indexed vector column where supported
  2. Restrict indexed/searchable columns and enforce permissions independently of relevance
  3. Use reciprocal rank fusion with documented rank constants and deduplication
  4. Filter by authorization as early as supported in retrieval and never expose unauthorized candidates

Explanation

Correct Answer

A:

Indexed vector search can avoid an exhaustive scan at the cost of approximate recall and feature constraints.

Incorrect Answers

B:

Index membership can make data discoverable; search permission cannot be inferred from index design.

C:

RRF combines positional rankings and avoids directly adding incompatible score scales.

D:

Late filtering after global top-K can leak unauthorized results or starve legitimate tenant matches.

Question 350

A BI workload needs a narrow read surface without direct SELECT on base tables

After the team applies the intended design, which observation would most directly verify that the specific requirement was met?

  1. Unit tests compare scalar outputs to known boundary values and query plans avoid unacceptable per-row cost
  2. JOINing the function to a caller produces the expected rows with a stable execution plan
  3. Successful calls update all required tables and forced errors leave no partial transaction
  4. A test principal can query approved columns through the view but cannot query the base table directly

Explanation

Correct Answer

D:

Views can serve as a restricted interface but must be combined with appropriate permissions and row filtering.

Incorrect Answers

A:

Scalar functions return one value and can encapsulate reusable calculation logic, but implementation choice may affect plan quality.

B:

Inline TVFs return tabular results and can be optimized into the calling query, unlike a procedure result set.

C:

Procedures encapsulate executable database workflows and accept parameters, but caller permissions and atomicity remain design concerns.

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

SPECIAL OFFER: GET 10% OFF
This is ONE TIME OFFER

You save
10%

Enter Your Email Address to Receive Your 10% Off Discount Code

SPECIAL OFFER: GET 10% OFF

You save
10%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@examlabs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your email address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports