DP-800 Premium File
- 101 Questions & Answers
- Last Update: Nov 12, 2026
An MCP endpoint can execute arbitrary SQL statements from a language-model-generated tool call
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Model-generated tool calls are untrusted and can misuse granted database permissions unless the tool boundary enforces policy.
RLS filter predicates address row visibility while block predicates can stop invalid INSERT/UPDATE operations.
RLS applies row filters in SQL based on security context, reducing reliance on each client remembering tenant WHERE clauses.
Masking is a presentation control; filtering, permissions, and inference risks remain if users can query too freely.
An assistant presents an answer as certain even when retrieved rows do not contain enough information
Which SQL design or implementation decision most directly addresses this requirement?
RAG context can be missing or ambiguous; the model must not fill unsupported gaps with invented facts.
Source metadata supports provenance checks and keeps generated statements linked to authorized records.
Data minimization reduces privacy exposure, inference risk and token costs without impairing the specific answer.
LLMs are not authoritative for arithmetic or source-of-truth values; database computations should remain deterministic.
A legal archive must retrieve documents containing a precise statute reference rather than conceptual matches
Which SQL design or implementation decision most directly addresses this requirement?
Lexical retrieval is suited to exact symbols and keywords, while semantic vectors may miss exact identifiers.
RRF combines positional rankings and avoids directly adding incompatible score scales.
Distance calculation requires aligned dimensions and semantics, and metric choice affects ordering.
Index membership can make data discoverable; search permission cannot be inferred from index design.
A leaderboard wants equal revenue values to share a rank and later positions to skip numbers
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
RANK assigns tied rows the same rank and leaves gaps; DENSE_RANK does not leave gaps.
LAG retrieves a preceding row from a window without a self-join, respecting the defined partition and order.
JSON_ARRAYAGG aggregates scalar or JSON values into an array, reducing custom string assembly.
JSON_OBJECT produces correctly structured JSON property/value pairs and avoids manual quoting errors.
Two long-running reporting queries hold locks that delay short user updates
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Blocking is caused by incompatible locks; addressing the head blocker is different from killing every waiting request.
Improving estimates, ordering or indexing can reduce tempdb spills and prevent large grants from crowding other queries.
Snapshot transactions read a consistent row version as of transaction start without dirty reads, but writes may conflict.
Optimistic versioned isolation can reject overlapping writes, requiring idempotent retry or conflict resolution.
A cleanup job needs rows for which there is no matching current child record
Which SQL design or implementation decision most directly addresses this requirement?
NOT EXISTS handles absence checks without the nullable-operand pitfalls that can affect NOT IN.
Graph MATCH expresses edge relationships in a pattern rather than merely comparing flat key columns.
THROW provides structured error propagation that callers can handle and prevents false-success status reporting.
A ROWS frame specifies exactly which neighboring rows contribute, whereas default RANGE behavior may include peer rows.
A query gathers customer records for model context and sends full personal details when only totals are required
Which SQL design or implementation decision most directly addresses this requirement?
Data minimization reduces privacy exposure, inference risk and token costs without impairing the specific answer.
Retrieval-augmented prompts must not bypass database access controls through backend service identity.
Structured JSON preserves named fields and reduces ambiguity compared with ad hoc delimited text.
RAG supplies relevant external context at answer time, reducing dependence on stale model memory but not guaranteeing truth.
A high-volume model task is delivered at least once but the vector table must contain one current version per document
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Idempotent update/upsert logic prevents duplicate business vectors during retries and parallel workers.
Operational logs can reveal sensitive source text or access tokens if not carefully configured.
Chunk size and overlap trade off retrieval specificity and lost context; arbitrary whole-file chunks are often weak.
Embedding freshness requires detecting source changes and re-embedding only changed meaningful content.
An embedding worker retries after a timeout and adds a duplicate vector row for the same source version
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Idempotent update/upsert logic prevents duplicate business vectors during retries and parallel workers.
CES integrates supported SQL changes into event consumers; exact guarantees and availability must be checked.
Model hosting and batch generation must align on dimensions, security boundaries and quotas.
Different embedding models or versions need not share vector space; mixing vectors can destroy distance relevance.
An order entry workflow must validate multiple inputs and atomically update several tables
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Procedures encapsulate executable database workflows and accept parameters, but caller permissions and atomicity remain design concerns.
Uncontrolled trigger nesting can cause excess DML, recursion failures, and transactional contention.
TVPs provide typed relational input for multirow procedure operations without ad hoc concatenated SQL.
Multistatement TVFs can introduce estimation and optimization limitations, so an inline form is preferred when expressive enough.
A new FK will fail unless existing orphan data is reconciled before publish
Which SQL design or implementation decision most directly addresses this requirement?
Data and schema changes must be sequenced so new constraints do not break on preexisting invalid rows.
Automated schema comparisons may propose destructive changes that need explicit approval and migration planning.
Backward-compatible intermediate schema lets mixed app versions operate safely until a later cleanup.
Schema rollback can be unsafe after new writes; recoverability must be designed before a high-risk change.
Please check your mailbox for a message from support@examlabs.com and follow the directions.