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 77

Question 760

A database codebase needs AI suggestions to follow project transaction and migration rules

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

  1. Store reviewed repository-specific instructions in a GitHub Copilot instruction file
  2. Replace raw sensitive values with sanitized schema and sample fixtures before invoking the AI tool
  3. Require parameterized execution and test generated SQL for injection vulnerabilities
  4. Enable appropriate audit logging of AI tool calls, principal, target and result without storing secrets

Explanation

Correct Answer

A:

Instruction files can guide generated suggestions toward local style and safety expectations, but must still be reviewed.

Incorrect Answers

B:

AI-assisted code generation does not waive data classification, retention and exposure restrictions.

C:

Generated SQL must meet normal secure-coding requirements; a model does not sanitize input automatically.

D:

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

Question 761

A trading workflow uses a small hot lookup table with high concurrent write traffic

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. Build a selective nonclustered index with appropriate key and INCLUDE columns for the critical query
  3. Evaluate a memory-optimized table with the correct durability and index choices
  4. Configure an IDENTITY column with suitable seed and increment while treating values as identifiers, not gapless sequence numbers

Explanation

Correct Answer

C:

In-Memory OLTP reduces certain latch and lock bottlenecks but has feature and capacity constraints that require workload testing.

Incorrect Answers

A:

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

B:

Covering indexes can avoid residual lookups while keeping included attributes out of the search-key ordering.

D:

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

Question 762

A search report needs to identify how many times a compliance term occurs in an incident field

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

  1. Use REGEXP_COUNT with an appropriate pattern and collation assumptions
  2. Use REGEXP_SUBSTR with a defined regex to extract the matching segment
  3. Use RANK OVER the ranking order rather than ROW_NUMBER or DENSE_RANK
  4. Use JSON_QUERY for JSON objects or arrays rather than a scalar-extraction function

Explanation

Correct Answer

A:

REGEXP_COUNT returns the number of matches, unlike a boolean REGEXP_LIKE or substring extraction.

Incorrect Answers

B:

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

C:

RANK assigns tied rows the same rank and leaves gaps; DENSE_RANK does not leave gaps.

D:

JSON_QUERY returns a JSON fragment such as an array/object while JSON_VALUE returns a scalar.

Question 763

A supervisor report must return departments with no active staff this quarter

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

  1. A sample array yields one typed row per element and invalid types are handled as designed
  2. The rolling calculation matches manually totaled windows including duplicate timestamps
  3. A fixture with NULL child keys still identifies only the expected unmatched departments
  4. Tied sample scores produce ranks 1,2,2,3 and not rank 4 for the next group

Explanation

Correct Answer

C:

NOT EXISTS handles absence checks without the nullable-operand pitfalls that can affect NOT IN.

Incorrect Answers

A:

OPENJSON shreds objects or arrays into rows and typed columns when a schema is supplied.

B:

A ROWS frame specifies exactly which neighboring rows contribute, whereas default RANGE behavior may include peer rows.

D:

DENSE_RANK retains equal ranks for ties while the next distinct value advances by one.

Question 764

A sales team needs a correlated per-parent subquery that returns several ordered child rows

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

  1. Use CROSS APPLY or OUTER APPLY with a correlated TOP expression as required by parent retention
  2. Use ROW_NUMBER partitioned by the entity and ordered by descending event time with a tie-breaker
  3. Define a window aggregate with an explicit ROWS frame and ordered partition
  4. Use REGEXP_REPLACE with a carefully tested pattern and replacement string

Explanation

Correct Answer

A:

APPLY evaluates a right-side table expression per outer row and OUTER APPLY retains parents with no matches.

Incorrect Answers

B:

Window numbering can select one row per logical partition while a deterministic secondary sort resolves equal timestamps.

C:

A ROWS frame specifies exactly which neighboring rows contribute, whereas default RANGE behavior may include peer rows.

D:

Regular-expression replacement handles matching text patterns and should be tested for unintended matches.

Question 765

A lightweight embedding worker must know which SQL records changed since its last checkpoint

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

  1. Evaluate change event streaming on the supported platform and validate its delivery contract
  2. Use an approved model deployment and embedding batch workflow with authenticated requests
  3. Use SQL Change Tracking with persisted synchronization versions for embedding refresh
  4. Version embedding generation and rebuild or separate incompatible embedding sets

Explanation

Correct Answer

C:

Change Tracking identifies changed rows efficiently but does not preserve full change history or unlimited retention.

Incorrect Answers

A:

CES integrates supported SQL changes into event consumers; exact guarantees and availability must be checked.

B:

Model hosting and batch generation must align on dimensions, security boundaries and quotas.

D:

Different embedding models or versions need not share vector space; mixing vectors can destroy distance relevance.

Question 766

A support assistant must retrieve similar content only from the current fiscal year

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

  1. Deduplicate by stable document/chunk identity while fusing retrieval rankings
  2. Combine structured SQL predicates with vector retrieval using the supported filter strategy
  3. Persist document IDs, chunk offsets and source version metadata with each vector
  4. Use reciprocal rank fusion with documented rank constants and deduplication

Explanation

Correct Answer

B:

Semantic relevance does not replace mandatory structured filters such as date, category or tenant.

Incorrect Answers

A:

Duplicate candidates require a deliberate aggregation policy to prevent artificial rank inflation.

C:

Provenance identifiers are needed for source citation, authorization and update/delete handling.

D:

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

Question 767

A database designer must store fixed-dimension embeddings from one approved model

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

  1. Use a supported VECTOR type with a fixed dimension matching the embedding model
  2. Use reciprocal rank fusion with documented rank constants and deduplication
  3. Restrict indexed/searchable columns and enforce permissions independently of relevance
  4. Introduce tested diversity or deduplication rules after tenant-filtered candidate retrieval

Explanation

Correct Answer

A:

SQL vector storage enforces or expects a known dimension and model compatibility for meaningful distance calculations.

Incorrect Answers

B:

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

C:

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

D:

Near-duplicate chunks can crowd top-K slots and lower answer coverage even with accurate vector ranking.

Question 768

A staging environment is used for AI code generation and users want to include live identity records

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

  1. A data scan detects no real customer identifiers while migration and query tests still pass
  2. An attempted ALTER or DROP is denied while required SELECT queries continue to work
  3. A restarted workload connects using its assigned principal and no SQL password is present in deployment secrets
  4. Old key access can be revoked after authorized clients read all migrated protected records

Explanation

Correct Answer

A:

Nonproduction environments should not inherit production exposure merely for test convenience.

Incorrect Answers

B:

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

C:

Managed identity supplies short-lived identity-based credentials without a long-lived application password.

D:

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

Question 769

A SQL workload reports intermittent latency with high wait durations but normal CPU averages

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

  1. Measure workload saturation and choose an appropriate database service tier or compute configuration
  2. Use an evidence-driven diagnostic sequence across client latency, SQL waits, plans and resources
  3. Move unrelated work outside the transaction and commit the minimal atomic database unit promptly
  4. Use appropriate dynamic management views to identify waits, blockers and resource pressure

Explanation

Correct Answer

D:

DMVs expose current and cumulative SQL diagnostics that help distinguish contention from capacity or query-plan issues.

Incorrect Answers

A:

CPU, concurrency and IO constraints drive sizing decisions; indiscriminate upgrades may not solve a poor plan.

B:

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

C:

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

Question 770

A SQL query normalizes vectors during every search though stored vectors never change

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

  1. Deduplicate by stable document/chunk identity while fusing retrieval rankings
  2. Combine lexical and semantic retrieval in a hybrid search pipeline
  3. Persist document IDs, chunk offsets and source version metadata with each vector
  4. Precompute stable vector normalization or compatible index state where supported

Explanation

Correct Answer

D:

Repeated per-query transformation wastes compute when the model and representation are stable.

Incorrect Answers

A:

Duplicate candidates require a deliberate aggregation policy to prevent artificial rank inflation.

B:

Hybrid retrieval can leverage exact-term precision and vector semantic recall if results are merged sensibly.

C:

Provenance identifiers are needed for source citation, authorization and update/delete handling.

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