フリー問題

Developing AI-Enabled Database Solutions (DP-800) のフリー問題 2 / 20 問目

問題文

One monthly settlement query is far slower than every other query of similar size on the same server, and its plan runs on a single thread while the others run in parallel. The query calls a multistatement Transact-SQL scalar function once per row. Which statement identifies the root cause?

選択肢

  1. The scalar function is missing its own execution plan, so the engine reparses and reoptimizes it for every call.
  2. The function body contains several statements, and a multistatement function returns a single value declared in its RETURNS clause, which the engine must materialize for each row before the plan can go parallel.
  3. Transact-SQL user-defined functions in a query can only be executed on a single thread, so using one inhibits parallel query processing for that query.
  4. The query lacks statistics on the function's argument, so the optimizer cannot estimate a degree of parallelism.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。