FEFreeExamDumps.in

DP-800 Practice Questions — Page 2

A procedure must accept optional filters for region, product category, and date range without introducing SQL injection risk.

Which implementation should you recommend?

  • A.Use dynamic SQL built with string concatenation from user input.
  • B.Use sp_executesql with parameterized inputs.
  • C.Store all filters in a screenshot for manual review.
  • D.Create one procedure per possible filter combination only.

A reporting query calls reusable business logic that returns a filtered rowset for each request.

Which object should you recommend?

  • A.An inline table-valued function
  • B.A server-level login
  • C.A backup policy
  • D.A full-text catalog

A reporting solution needs to reuse a pricing rule across many queries. The rule must be composable inside SELECT statements and must not require repeated code in each report.

Which object should you create?

  • A.A SQL Agent job
  • B.An inline table-valued function or scalar function depending on the output requirement
  • C.A DDL trigger
  • D.A temporary table in every report session

An ETL package depends on predictable return codes and output values from a stored procedure.

Which design should you recommend?

  • A.Define stable output parameters and documented return behavior.
  • B.Return different column shapes on each execution.
  • C.Write messages only to PRINT statements.
  • D.Hide errors from the caller.

A JSON payload from an application contains nested order items that must be split into relational rows during ingestion.

Which feature should you use?

  • A.OPENJSON with a schema definition
  • B.xp_cmdshell
  • C.A login trigger
  • D.A linked server to Excel

A hierarchy of managers and employees must be queried to return each employee's full reporting path. The depth of the hierarchy can vary over time.

Which technique should you use?

  • A.A recursive common table expression
  • B.A CHECK constraint
  • C.A persisted computed column with hard-coded levels
  • D.A scalar function that returns a random path

A payments workflow must prevent lost updates when multiple sessions edit the same rows concurrently.

Which action should you recommend?

  • A.Choose an isolation level and locking strategy that protects concurrent updates.
  • B.Disable all transactions.
  • C.Allow last writer wins without checks.
  • D.Move payment records to flat files.

A procedure joins a base table to a function that returns top related rows for each input row.

Which operator is most appropriate?

  • A.APPLY
  • B.PIVOT
  • C.UNPIVOT
  • D.BACKUP

A query must combine two result sets while removing duplicate rows.

Which operator should you use?

  • A.UNION
  • B.CROSS JOIN
  • C.TRUNCATE TABLE
  • D.DBCC CHECKDB

A row-by-row cursor updates summary data for thousands of accounts and is becoming a bottleneck.

Which action should you recommend?

  • A.Rewrite the operation as a set-based UPDATE or MERGE alternative.
  • B.Add more nested cursors.
  • C.Move the logic to manual spreadsheet edits.
  • D.Disable indexes on every table permanently.