Lesson 2 of 2 Approaching DP-800 Questions

Telling Similar SQL Features Apart

Many DP-800 questions place two similar features side by side. This lesson collects the most common pairs and the requirement that indicates each one.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish between commonly confused database features.
  • Distinguish between the AI and tooling features used in database solutions.

Commonly confused pairs

The following table lists feature pairs that exam questions often place side by side, with the requirement that indicates each. Use it after studying the modules to check that you can explain every distinction.

RequirementChooseNot
Point-in-time queries of past row versionsTemporal tableLedger table
Proof that data was not tampered withLedger tableTemporal table or auditing
One number series shared by tables, known before insertSEQUENCEIDENTITY
Administrators must never see plaintextAlways EncryptedTDE or Dynamic Data Masking
Hide part of a value from support staffDynamic Data MaskingAlways Encrypted
Users see only their own rowsRow-Level SecurityDynamic Data Masking
Which rows changed since last syncChange TrackingCDC
Old and new values of every changeCDCChange Tracking
Push changes to many consumers in near real timeChange event streamingPolling with Change Tracking
Preview a deployment's changesSqlPackage DeployReport or ScriptPublish
Exact search on a small or filtered setKNN with VECTOR_DISTANCEANN vector index
Fast search over millions of vectorsANN with VECTOR_SEARCH and a vector indexKNN
Exact codes plus meaning in one search boxHybrid search with RRFVector search alone
Fix a plan regression without code changesQuery Store plan forcingClearing the plan cache
Readers blocked by writersRCSI or SNAPSHOTNOLOCK
Scenario questions

Confusable features

Exam skills 1.1.5 · 2.1.3 · 2.4.7 · 2.3.8

Choose the feature each requirement points to.

Log in to try this activity Interactive activities are free with an account.

AI and tooling pairs

The newer AI and tooling features also come in pairs, as the following table shows.

RequirementChooseNot
Call an embedding model by name from T-SQLCREATE EXTERNAL MODEL + AI_GENERATE_EMBEDDINGSHard-coded URLs in every procedure
Call a chat model from T-SQLsp_invoke_external_rest_endpointAI_GENERATE_EMBEDDINGS
Split long text in T-SQLAI_GENERATE_CHUNKSSTRING_SPLIT
Rules for every Copilot chat in a repository.github/copilot-instructions.mdPersonal instructions
Rules only for .sql files.instructions.md with applyToRepository-wide file
Agents use selected tables safelySQL MCP Server (DAB)A generic run-any-SQL MCP tool
APIs over tables without custom codeData API builderA hand-written API
Pattern validation in a constraintREGEXP_LIKELIKE
Similarity of misspelled namesJARO_WINKLER_SIMILARITY or EDIT_DISTANCE_SIMILARITYSOUNDEX or LIKE
Match the pairs

AI and tooling pairs

Exam skills 3.1.2 · 3.3.2 · 3.1.5 · 1.3.4

Match each requirement with the feature that meets it.

Log in to try this activity Interactive activities are free with an account.
Worked example

Two plausible answers

A requirement states that support agents must see only the last four digits of a card number, while the fraud team sees full numbers, with no application changes. One option proposes Always Encrypted; another proposes Dynamic Data Masking with UNMASK for the fraud team. Which is correct?

Dynamic Data Masking with a partial() mask and UNMASK granted to the fraud team. It meets the display requirement without application changes. Always Encrypted protects data from administrators and requires application changes (an enabled driver and parameterized queries), and it cannot show the last four digits to one group and full values to another by itself. If the requirement had said that database administrators must not see card numbers, Always Encrypted would be the answer.

Check yourself

Which feature proves that rows were not altered, even by administrators?

Show answer

Ledger tables with digests stored outside the database.

Exam Tips

Remember for the exam

  • History: temporal; tamper evidence: ledger.
  • Hide from DBAs: Always Encrypted; hide on screen: Dynamic Data Masking; hide rows: RLS.
  • Keys of changed rows: Change Tracking; values: CDC; push: change event streaming.
  • Embeddings: external model functions; chat completions: sp_invoke_external_rest_endpoint.