DP-800 Premium File
- 101 Questions & Answers
- Last Update: Nov 12, 2026
A SQL workload's throughput drops after reducing a database compute tier to save cost
Which SQL design or implementation decision most directly addresses this requirement?
Saving compute cost is not safe if CPU, IO or memory limits violate service-level objectives.
A deadlock is a cycle in lock dependencies, not merely long blocking; SQL chooses a victim transaction.
Efficient row identification can shorten lock holding; excess indexes can slow writes and require balanced tuning.
Versioned read-committed isolation reduces reader/writer blocking but changes consistency semantics and tempdb/version-store demand.
New orders should begin in a pending status without every client supplying that field
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
A default supplies a value when the insert omits the column; it does not override explicit invalid inputs or validate all states.
Nullability is a core schema invariant and should not be delegated solely to an API form.
Unicode-capable character types retain characters outside a single legacy code page and require appropriate length planning.
Partition switching has schema and index-alignment prerequisites; an incompatible index can block the metadata operation.
A query gathers customer records for model context and sends full personal details when only totals are required
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Data minimization reduces privacy exposure, inference risk and token costs without impairing the specific answer.
Model APIs return structured envelopes with status and content fields, which must not be forwarded blindly.
Fluency is not a reliability metric; RAG performance depends on retrieval, prompt assembly and model behavior.
Source metadata supports provenance checks and keeps generated statements linked to authorized records.
Product rows change often and a vector index becomes stale because embeddings were created only at initial load
Which SQL design or implementation decision most directly addresses this requirement?
Embedding freshness requires detecting source changes and re-embedding only changed meaningful content.
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.
Excess overlap duplicates tokens and vectors; insufficient overlap may split a needed answer across boundaries.
A migration tool imports preassigned order IDs and needs an automatic value for later inserts
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Identity allocation can leave gaps after failures or caching, so it is inappropriate as a legal no-gap counter.
Partition switching has schema and index-alignment prerequisites; an incompatible index can block the metadata operation.
A primary key uniquely identifies each row and provides a reference target; its underlying index strategy is a separate design choice.
A 64-bit integer provides a much larger identifier range; relationships and clients must accept the chosen type.
A database returns structured metadata and developers are manually concatenating JSON string fragments
Which SQL design or implementation decision most directly addresses this requirement?
JSON_OBJECT produces correctly structured JSON property/value pairs and avoids manual quoting errors.
JSON_VALUE reads scalar values at a specified JSON path; non-scalar fragments need a different interface.
JSON membership testing asks whether a value is contained in the target JSON expression rather than extracting one scalar only.
Window aggregates retain detail rows while computing group-level results, unlike GROUP BY which collapses rows.
A sanitization task must replace multiple formatting variants in an incoming text column
Which SQL design or implementation decision most directly addresses this requirement?
Regular-expression replacement handles matching text patterns and should be tested for unintended matches.
LAG retrieves a preceding row from a window without a self-join, respecting the defined partition and order.
Window numbering can select one row per logical partition while a deterministic secondary sort resolves equal timestamps.
Regex splitting can turn patterned text delimiters into row values for relational processing.
A sales team needs a correlated per-parent subquery that returns several ordered child rows
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
APPLY evaluates a right-side table expression per outer row and OUTER APPLY retains parents with no matches.
Edit distance measures changes required to transform a string and must not be confused with semantic meaning.
Jaro-Winkler style similarity rewards matching character patterns and helps with transpositions but cannot prove identity.
LEAD returns a later row in an ordered window and avoids complicated self-joins.
An order query must return top two line items for each order based on quantity
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
APPLY evaluates a right-side table expression per outer row and OUTER APPLY retains parents with no matches.
LEAD returns a later row in an ordered window and avoids complicated self-joins.
JSON membership testing asks whether a value is contained in the target JSON expression rather than extracting one scalar only.
OPENJSON shreds objects or arrays into rows and typed columns when a schema is supplied.
A prompt includes SQL rows concatenated as free-form text and the model misreads column boundaries
Which SQL design or implementation decision most directly addresses this requirement?
Structured JSON preserves named fields and reduces ambiguity compared with ad hoc delimited text.
Throttling and transient errors require carefully bounded retry; unbounded retries can exhaust database resources.
Excess context raises cost, latency and distraction; selective retrieval improves the model's usable evidence.
Source metadata supports provenance checks and keeps generated statements linked to authorized records.
A text field stores multiple tokens separated by flexible whitespace and punctuation
Which SQL design or implementation decision most directly addresses this requirement?
Regex splitting can turn patterned text delimiters into row values for relational processing.
DENSE_RANK retains equal ranks for ties while the next distinct value advances by one.
OPENJSON shreds objects or arrays into rows and typed columns when a schema is supplied.
NOT EXISTS handles absence checks without the nullable-operand pitfalls that can affect NOT IN.
Please check your mailbox for a message from support@examlabs.com and follow the directions.