DP-800 Premium File
- 101 Questions & Answers
- Last Update: Nov 12, 2026
An MCP tool list includes a write-capable SQL operation that the developer only needs for schema lookup
Which SQL design or implementation decision most directly addresses this requirement?
Model Context Protocol tools amplify backend permissions and should be least-privilege for AI workflows.
AI suggestions can contain incorrect assumptions or unsafe migrations and are not self-approving change tickets.
Secrets in repository configuration can be leaked or copied; managed credentials reduce exposure and support rotation.
Generated SQL must meet normal secure-coding requirements; a model does not sanitize input automatically.
A tuning report claims success after one atypical test executed without realistic row volumes
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Performance changes need controlled before-and-after measurement because cache, concurrency and statistics distort comparisons.
Efficient row identification can shorten lock holding; excess indexes can slow writes and require balanced tuning.
Improving estimates, ordering or indexing can reduce tempdb spills and prevent large grants from crowding other queries.
SQL may abort one deadlock participant; retries can succeed but must not repeat non-idempotent side effects.
A database on Azure storage needs encryption at rest even if an underlying disk is stolen
Which SQL design or implementation decision most directly addresses this requirement?
TDE encrypts database files and backups at rest but does not prevent authorized SQL queries from reading plaintext.
Deterministic encryption enables equality comparisons for matching plaintexts but reveals equality patterns and is less private than randomized encryption.
RLS applies row filters in SQL based on security context, reducing reliance on each client remembering tenant WHERE clauses.
Overprivileged built-in roles broaden the blast radius of compromises and accidental statements.
A new order table needs generated keys but must not assume every numeric value is consecutive
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.
A 64-bit integer provides a much larger identifier range; relationships and clients must accept the chosen type.
Checking JSON validity before promotion reduces malformed documents but does not replace application-level schema validation.
External tables expose remote data through SQL metadata, but performance, supported formats and security depend on the source.
A high-throughput API procedure returns thousands of extra row-count messages between results
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
NOCOUNT suppresses DONEINPROC row-count chatter without changing @@ROWCOUNT semantics.
An explicit transaction and consistent failure policy enforce atomicity across multiple statements.
Stored procedure execution can reduce direct table grants but still needs review of ownership, dynamic SQL, and execution context.
Views can serve as a restricted interface but must be combined with appropriate permissions and row filtering.
A migrated SQL Server workload requires transparent database-file encryption with centralized key management
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
TDE encrypts database files and backups at rest but does not prevent authorized SQL queries from reading plaintext.
Server-side column encryption is different from Always Encrypted: the engine may decrypt for authorized server operations.
Endpoint convenience does not replace user authentication and data access enforcement in API and SQL layers.
Randomized encryption gives stronger pattern protection at the cost of limiting server-side comparisons.
A service constructs a small API response with named fields directly from SQL expressions
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
JSON_OBJECT produces correctly structured JSON property/value pairs and avoids manual quoting errors.
Window numbering can select one row per logical partition while a deterministic secondary sort resolves equal timestamps.
Normalized edit similarity can be easier to compare across lengths than raw edit operations, though thresholds must be tuned.
OPENJSON shreds objects or arrays into rows and typed columns when a schema is supplied.
A prompt-generated answer changes structured dates and amounts while rephrasing SQL results
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
LLMs are not authoritative for arithmetic or source-of-truth values; database computations should remain deterministic.
Model APIs return structured envelopes with status and content fields, which must not be forwarded blindly.
Retrieval-augmented prompts must not bypass database access controls through backend service identity.
Cross-boundary model processing can violate residency or contractual restrictions even when SQL itself is secured.
A sales report shows categories ranked consecutively even when values tie
Which SQL design or implementation decision most directly addresses this requirement?
DENSE_RANK retains equal ranks for ties while the next distinct value advances by one.
JSON_VALUE reads scalar values at a specified JSON path; non-scalar fragments need a different interface.
REGEXP_LIKE evaluates a regex match, including anchors that constrain the whole input rather than just a substring.
Regular-expression replacement handles matching text patterns and should be tested for unintended matches.
A developer proposes a side-effecting stored procedure inside a scalar function expression
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
T-SQL user-defined functions have side-effect and statement restrictions that differ from stored procedures.
Views centralize a logical query definition without storing an independent copy of rows by default.
Uncontrolled trigger nesting can cause excess DML, recursion failures, and transactional contention.
Inline TVFs return tabular results and can be optimized into the calling query, unlike a procedure result set.
A SQL workload calls an AI model endpoint and code contains a static API key
After the team applies the intended design, which observation would most directly verify that the specific requirement was met?
Identity-based model calls reduce secret sprawl and allow endpoint permissions to be scoped and revoked.
Information classification guides which columns require stricter access, masking, encryption and auditing.
RLS predicates must receive authenticated tenant context and connection pooling can retain session state unless managed.
Server-side column encryption is different from Always Encrypted: the engine may decrypt for authorized server operations.
Please check your mailbox for a message from support@examlabs.com and follow the directions.