Skip to content

Domain 1: Design and develop database solutions (35-40%) โ€‹

โ† Overview ยท Domain 2 โ†’

Why This Domain Matters

This is one of the two highest-weighted sections. The exam expects you to be strong at traditional SQL engineering first, then layer in AI-assisted development without compromising security or maintainability.


1.1 Design and implement database objects โ€‹

Table design signals โ€‹

TopicWhat to know for the exam
Data types and sizingPick the smallest correct type, especially for keys, money, and text-heavy columns.
IndexesUnderstand clustered vs nonclustered, filtered indexes, included columns, and when columnstore fits analytics workloads.
Specialized tablesKnow when to use in-memory, temporal, external, ledger, and graph tables.
ConstraintsExpect PRIMARY KEY, FOREIGN KEY, UNIQUE, CHECK, and DEFAULT questions tied to integrity.
PartitioningUse for large tables with predictable access patterns and maintenance needs.

Specialized table quick map โ€‹

FeatureBest forCommon exam signal
Temporal tablesRow history and point-in-time queries"Need audit history of changes"
Ledger tablesTamper-evident records"Need cryptographic proof of integrity"
Graph tablesRelationship-heavy patterns"Many-to-many traversal" or "social/network traversal"
External tablesQuerying outside core storage"Data lives in external source or lakehouse"
In-memory OLTPExtreme low-latency transactional workloads"Hot path writes" or "reduce latch contention"

Exam Trap

If the requirement is simply "keep historical versions", think temporal first.
If the requirement is "prove nobody tampered with records", think ledger.


1.2 Implement programmability objects โ€‹

  • Views are for abstraction, reuse, and controlled data exposure.
  • Scalar functions are simple but can hurt performance if overused row-by-row.
  • Table-valued functions are often better for composability inside queries.
  • Stored procedures are still the default for operational logic, parameterization, and controlled execution.
  • Triggers are powerful but easy to abuse. Prefer them for precise event-driven database behavior, not broad business workflows.

Stored procedure vs trigger โ€‹

NeedPrefer
Explicitly called data operationStored procedure
Automatically react to insert/update/deleteTrigger
Expose consistent app-facing write APIStored procedure
Capture every row change event at sourceTrigger

1.3 Write advanced T-SQL code โ€‹

Core patterns to know โ€‹

  • CTEs for readable staged logic, recursive queries, and query decomposition.
  • Window functions such as ROW_NUMBER, RANK, LAG, LEAD, and running aggregates.
  • JSON functions for shaping and parsing semi-structured data.
  • Regular expressions and fuzzy matching for text cleanup, search, and approximate matching.
  • Graph queries with MATCH for node-edge traversal scenarios.
  • Correlated queries when outer-row context changes inner evaluation.
  • Error handling with TRY...CATCH, transaction boundaries, and defensive logic.

JSON mental model โ€‹

TaskTypical SQL feature
Extract one value from JSONJSON_VALUE
Extract object/array fragmentsJSON_QUERY
Turn JSON into rowsOPENJSON
Build JSON outputJSON_OBJECT, JSON_ARRAY, aggregates

TIP

DP-800 repeatedly blends structured and semi-structured data. If a scenario mentions application payloads, model prompts, or API responses, expect JSON shaping to matter.


1.4 Design and implement SQL solutions by using AI-assisted tools โ€‹

This is one of the most distinctive parts of DP-800.

What Microsoft expects here โ€‹

  • Enable and use GitHub Copilot or Copilot in Fabric
  • Understand the security implications of AI-assisted tooling
  • Configure model options and MCP tools
  • Create instruction files to shape Copilot behavior
  • Connect to MCP endpoints such as SQL Server or Fabric lakehouse

Practical interpretation โ€‹

CapabilityWhy it matters
Instruction filesKeep generated SQL aligned with naming, migration, testing, and safety rules.
MCP connectivityLets the assistant use live schema/tool context instead of guessing.
Model/tool optionsAffect latency, capability, and risk surface.
Security reviewAI-generated SQL can still leak data, over-permission access, or suggest unsafe changes.

AI-Assisted Tooling Trap

The correct answer is rarely "let Copilot decide and run unrestricted changes."
Microsoft explicitly expects you to reason about security impact, guardrails, and reviewability.

Good operating model โ€‹

  1. Use Copilot for acceleration, not blind execution.
  2. Keep schema definitions and reference data in source control.
  3. Use instruction files to constrain code generation.
  4. Prefer least-privilege access for tools and MCP endpoints.
  5. Review generated SQL for correctness, locking behavior, and security.

Fast Recall โ€‹

  • Temporal = history
  • Ledger = tamper evidence
  • Columnstore = analytics/compression
  • Window functions = ranking, offsets, running totals
  • JSON = bridge between app payloads and SQL
  • Instruction files + MCP = safer, context-aware AI-assisted SQL work

โ† Overview ยท Domain 2 โ†’

Happy Studying! ๐Ÿš€ โ€ข Privacy-friendly analytics โ€” no cookies, no personal data
Privacy Policy โ€ข AI Disclaimer โ€ข Report an issue