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 17

Question 160

An accounting service must let auditors detect unauthorized alteration of retained ledger data

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

  1. Configure an IDENTITY column with suitable seed and increment while treating values as identifiers, not gapless sequence numbers
  2. Implement a CHECK constraint expressing the permitted numeric or state values
  3. Use ledger-capable tables with digest verification suited to the retention policy
  4. Evaluate an external table and the required external data source and credential configuration

Explanation

Correct Answer

C:

Ledger adds cryptographic evidence for changes, but access governance and external digest retention remain essential.

Incorrect Answers

A:

Identity allocation can leave gaps after failures or caching, so it is inappropriate as a legal no-gap counter.

B:

Database check predicates reject invalid stored values regardless of which client sent the write.

D:

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

Question 161

An event export groups individual values into a single structured JSON array per account

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

  1. The expression returns the expected region code and follows documented behavior on nonmatches
  2. The caller receives the expected SQL error and the deployment marks the operation failed
  3. A forced conversion failure leaves no open transaction or partial rows and propagates the intended error
  4. A group with three items yields exactly a valid three-element array in the expected output format

Explanation

Correct Answer

D:

JSON_ARRAYAGG aggregates scalar or JSON values into an array, reducing custom string assembly.

Incorrect Answers

A:

REGEXP_SUBSTR returns a matched substring while a boolean regex predicate only indicates match existence.

B:

THROW provides structured error propagation that callers can handle and prevents false-success status reporting.

C:

Errors can leave a transaction uncommittable; blindly committing from a catch block is unsafe.

Question 162

An inventory record has a constrained integer state code that should never be outside its approved range

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

  1. Implement a system-versioned temporal table with a period and history table
  2. Implement a CHECK constraint expressing the permitted numeric or state values
  3. Use DATETIMEOFFSET or a documented UTC-instant strategy with explicit time zone handling
  4. Configure an IDENTITY column with suitable seed and increment while treating values as identifiers, not gapless sequence numbers

Explanation

Correct Answer

B:

Database check predicates reject invalid stored values regardless of which client sent the write.

Incorrect Answers

A:

System-versioned temporal tables maintain historical row versions so FOR SYSTEM_TIME queries can reconstruct earlier states.

C:

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

D:

Identity allocation can leave gaps after failures or caching, so it is inappropriate as a legal no-gap counter.

Question 163

A deployment introduces a slower plan for the same SQL text and users report a latency spike

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

  1. Use Query Store to compare plan history and evaluate targeted plan forcing or query correction
  2. Capture and inspect the actual execution plan including row counts, join operators and warnings
  3. Move unrelated work outside the transaction and commit the minimal atomic database unit promptly
  4. Use an evidence-driven diagnostic sequence across client latency, SQL waits, plans and resources

Explanation

Correct Answer

A:

Query Store retains plan and runtime history so regressions can be tied to specific plan choices.

Incorrect Answers

B:

Actual plans reveal runtime statistics and costly operators that estimated plans alone may not expose.

C:

Long transactions hold locks and version state, worsening throughput and blocking.

D:

Latency symptoms may come from blocking, execution plans, throttling or network; one symptom cannot establish root cause.

Question 164

A model endpoint is moved and ingestion errors expose long-lived tokens in application logs

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

  1. Choose semantically useful text fields for embeddings and retain identifiers as filter metadata
  2. Use a model/interface supporting structured output and validate the resulting schema
  3. Use scoped identity, sanitized logging and retry metrics for embedding-service calls
  4. Use a lightweight trigger only to enqueue change identifiers for asynchronous embedding work

Explanation

Correct Answer

C:

Operational logs can reveal sensitive source text or access tokens if not carefully configured.

Incorrect Answers

A:

High-entropy IDs and timestamps add noise to natural-language embeddings; structured filters handle them better.

B:

Structured-output mode can reduce free-form variability but application-side validation remains required.

D:

Synchronous network calls in triggers extend transactions and risk blocking; queueing decouples compute.

Question 165

An assistant times out because the retrieval step sends all candidate documents to the model

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

  1. A deployment review confirms prompts remain in approved processing boundaries and logs retain only permitted data
  2. Injected 429/timeouts cause measured retries and ultimately either success or an explicit safe error
  3. Concurrent order writes stay responsive while the AI step runs independently under a defined consistency contract
  4. Representative queries stay within token budget and still include the labeled answer-bearing chunks

Explanation

Correct Answer

D:

Excess context raises cost, latency and distraction; selective retrieval improves the model's usable evidence.

Incorrect Answers

A:

Cross-boundary model processing can violate residency or contractual restrictions even when SQL itself is secured.

B:

Throttling and transient errors require carefully bounded retry; unbounded retries can exhaust database resources.

C:

External network latency inside a transaction prolongs locks and increases deadlock and timeout exposure.

Question 166

A department needs SQL-level encryption for a single stored field while accepting managed key exposure to the engine

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

  1. Replace broad role membership with custom least-privilege grants for the required objects
  2. Enable transparent data encryption with appropriate protector and recovery-key handling
  3. Constrain MCP tools to allowlisted operations and privileged actions to explicit human authorization
  4. Use a suitable SQL column-level encryption mechanism with explicit key lifecycle

Explanation

Correct Answer

D:

Server-side column encryption is different from Always Encrypted: the engine may decrypt for authorized server operations.

Incorrect Answers

A:

Overprivileged built-in roles broaden the blast radius of compromises and accidental statements.

B:

TDE encrypts database files and backups at rest but does not prevent authorized SQL queries from reading plaintext.

C:

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

Question 167

A developer modifies a stored procedure and wants a focused test of its error branch

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

  1. A clean target receives the approved schema and a drift report matches the expected model
  2. The build resolves referenced objects and fails predictably if an incompatible referenced schema changes
  3. Boundary and injected-failure test cases pass consistently during CI
  4. No unreviewed direct main-branch change is accepted and merged schema builds successfully

Explanation

Correct Answer

C:

Unit tests isolate programmable behavior and catch regression before full integration deployment.

Incorrect Answers

A:

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

B:

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

D:

Branch and pull-request workflow supports review, traceability and controlled merging of schema changes.

Question 168

A finance team requests more computations on Always Encrypted columns than ordinary client-side encryption supports

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

  1. The connection negotiates verified TLS and rejects an invalid server certificate
  2. The specific supported encrypted operation succeeds with an approved enclave configuration without exposing keys in clear to administrators
  3. Two test identities see only their own tenant rows, including queries that omit client-side tenant filters
  4. A permitted identity invokes the model and an unauthorized identity receives an access-denied response

Explanation

Correct Answer

B:

Secure enclaves can permit certain richer operations over encrypted data within an attested protected boundary.

Incorrect Answers

A:

TLS protects data in transit and endpoint verification reduces man-in-the-middle risk.

C:

RLS applies row filters in SQL based on security context, reducing reliance on each client remembering tenant WHERE clauses.

D:

Identity-based model calls reduce secret sprawl and allow endpoint permissions to be scoped and revoked.

Question 169

A billing service must preserve exact two-decimal charges in SQL Server

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

  1. Store monetary calculations in a suitably sized DECIMAL with an explicit scale
  2. Choose a clustered index key appropriate to the prevalent access pattern and insert behavior
  3. Model related entities with graph node and edge tables where graph traversal is required
  4. Implement a system-versioned temporal table with a period and history table

Explanation

Correct Answer

A:

Approximate binary floating-point types cannot represent every decimal currency value exactly; fixed-precision decimal arithmetic avoids that category of rounding error.

Incorrect Answers

B:

The clustered index organizes rowstore table data by key, affecting lookup and page-split costs; it should not be selected solely for uniqueness.

C:

Graph tables represent relationships explicitly and support pattern matching, though ordinary relational joins remain valid for simple cases.

D:

System-versioned temporal tables maintain historical row versions so FOR SYSTEM_TIME queries can reconstruct earlier states.

Question 170

A user requests account details and model context retrieval does not apply database row-level security

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

  1. Handle retryable REST failures with bounded backoff and an explicit failure state
  2. Enforce SQL tenant authorization before building prompts and citations
  3. Check endpoint residency, retention and identity policy before sending SQL-derived model context
  4. Include stable source identifiers and timestamps with grounded context and render traceable citations

Explanation

Correct Answer

B:

Retrieval-augmented prompts must not bypass database access controls through backend service identity.

Incorrect Answers

A:

Throttling and transient errors require carefully bounded retry; unbounded retries can exhaust database resources.

C:

Cross-boundary model processing can violate residency or contractual restrictions even when SQL itself is secured.

D:

Source metadata supports provenance checks and keeps generated statements linked to authorized records.

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