Question 110
A complex API repeatedly needs the same parameterized multi-row result set in a join. Which result distinguishes a successful implementation from a cosmetic change?
Explanation
Correct Answer
An inline TVF exposes a composable table expression whereas a scalar UDF returns one value. The observation “Calling the function in a relational query returns the expected multiple rows efficiently” directly confirms the chosen action worked for this situation: A complex API repeatedly needs the same parameterized multi-row result set in a join.
Incorrect Answers
Table-valued parameters support multirow input to stored procedures without building unsafe dynamic SQL. This observation would not establish that the required result occurred for A complex API repeatedly needs the same parameterized multi-row result set in a join. The confirming test is: Calling the function in a relational query returns the expected multiple rows efficiently.
A standard view stores query definition rather than a separately refreshed result set. This observation would not establish that the required result occurred for A complex API repeatedly needs the same parameterized multi-row result set in a join. The confirming test is: Calling the function in a relational query returns the expected multiple rows efficiently.
A CTE is a named subquery scoped to a single following DML statement, not an automatic materialized table. This observation would not establish that the required result occurred for A complex API repeatedly needs the same parameterized multi-row result set in a join. The confirming test is: Calling the function in a relational query returns the expected multiple rows efficiently.