DP-800 Premium File
- 101 Questions & Answers
- Last Update: Nov 12, 2026
A SQL project migration is deployed but the application begins failing and rollback scripts delete newly entered records
Which SQL design or implementation decision most directly addresses this requirement?
Schema rollback can be unsafe after new writes; recoverability must be designed before a high-risk change.
SDK-style project definitions simplify consistent tooling and package references while preserving project build semantics.
Postdeployment scripts handle targeted data initialization but must avoid duplicate or destructive repeated effects.
Backward-compatible intermediate schema lets mixed app versions operate safely until a later cleanup.
An application needs a stable SELECT interface without exposing underlying table complexity
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Views centralize a logical query definition without storing an independent copy of rows by default.
An explicit transaction and consistent failure policy enforce atomicity across multiple statements.
Scalar functions return one value and can encapsulate reusable calculation logic, but implementation choice may affect plan quality.
Procedures encapsulate executable database workflows and accept parameters, but caller permissions and atomicity remain design concerns.
A metadata-only AI workflow runs with credentials that can drop production tables
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Least privilege reduces the impact of prompt injection, mistaken tool calls and credential disclosure.
Model choice affects capability and governance, and prompts must stay within the approved service boundary.
Model Context Protocol tools amplify backend permissions and should be least-privilege for AI workflows.
AI-tool access should follow user authorization and workspace boundaries rather than tool availability alone.
A query repeatedly performs key lookups after seeking a narrow nonclustered index
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Covering indexes can avoid residual lookups while keeping included attributes out of the search-key ordering.
Referential constraints ensure stored relationships point to permitted parent keys and avoid orphan records.
Identity allocation can leave gaps after failures or caching, so it is inappropriate as a legal no-gap counter.
A default supplies a value when the insert omits the column; it does not override explicit invalid inputs or validate all states.
An employee chain report needs to constrain recursion depth and detect invalid cycles
Which SQL design or implementation decision most directly addresses this requirement?
Recursive CTEs need termination and data-integrity safeguards; a recursion cap is a protective limit, not a substitute for valid hierarchy rules.
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.
OPENJSON shreds objects or arrays into rows and typed columns when a schema is supplied.
An invoice table stores totals with binary float and cents sometimes differ after aggregation
Which SQL design or implementation decision most directly addresses this requirement?
Approximate binary floating-point types cannot represent every decimal currency value exactly; fixed-precision decimal arithmetic avoids that category of rounding error.
Partition elimination can narrow scans and partition switching can simplify retention when indexes align.
Covering indexes can avoid residual lookups while keeping included attributes out of the search-key ordering.
Partition switching has schema and index-alignment prerequisites; an incompatible index can block the metadata operation.
A developer assumes an endpoint's anonymous role is safe because the database itself has a password
Which SQL design or implementation decision most directly addresses this requirement?
Application identity, API entity permissions and SQL authorization must jointly prevent overbroad access.
Logic Apps orchestrate heterogeneous connectors and retries more directly than embedding cross-service calls in a SQL trigger.
DAB can expose approved programmable objects while caller identity and database permissions enforce access.
CDC records changes from the transaction log for downstream consumption, but latency and retention need management.
A name-matching report needs an edit-cost measure between two similar labels
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Edit distance measures changes required to transform a string and must not be confused with semantic meaning.
JSON membership testing asks whether a value is contained in the target JSON expression rather than extracting one scalar only.
Recursive CTEs need termination and data-integrity safeguards; a recursion cap is a protective limit, not a substitute for valid hierarchy rules.
Graph MATCH expresses edge relationships in a pattern rather than merely comparing flat key columns.
A financial report computes a rolling seven-day total for each account
Which SQL design or implementation decision most directly addresses this requirement?
A ROWS frame specifies exactly which neighboring rows contribute, whereas default RANGE behavior may include peer rows.
Graph MATCH expresses edge relationships in a pattern rather than merely comparing flat key columns.
JSON_ARRAYAGG aggregates scalar or JSON values into an array, reducing custom string assembly.
REGEXP_LIKE evaluates a regex match, including anchors that constrain the whole input rather than just a substring.
An order dashboard wants the latest purchase per customer without losing other customers
Which SQL design or implementation decision most directly addresses this requirement?
Window numbering can select one row per logical partition while a deterministic secondary sort resolves equal timestamps.
A ROWS frame specifies exactly which neighboring rows contribute, whereas default RANGE behavior may include peer rows.
Jaro-Winkler style similarity rewards matching character patterns and helps with transpositions but cannot prove identity.
JSON membership testing asks whether a value is contained in the target JSON expression rather than extracting one scalar only.
A deployment pipeline needs dependencies to be explicit before changing referenced objects
Which SQL design or implementation decision most directly addresses this requirement?
Schema binding prevents incompatible changes to referenced object definitions until the dependency is handled.
Stored procedure execution can reduce direct table grants but still needs review of ownership, dynamic SQL, and execution context.
Multistatement TVFs can introduce estimation and optimization limitations, so an inline form is preferred when expressive enough.
NOCOUNT suppresses DONEINPROC row-count chatter without changing @@ROWCOUNT semantics.
Please check your mailbox for a message from support@examlabs.com and follow the directions.