Question 140
A bulk status update activates an auditing trigger that performs unintended self-updates. What measurement or test best demonstrates that the requirement is satisfied?
Explanation
Correct Answer
Trigger recursion and row-at-a-time assumptions can create performance and correctness failures. The observation “A batch update changes each intended row once and emits exactly the expected audit effects” directly confirms the chosen action worked for this situation: A bulk status update activates an auditing trigger that performs unintended self-updates.
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 bulk status update activates an auditing trigger that performs unintended self-updates. The confirming test is: A batch update changes each intended row once and emits exactly the expected audit effects.
Suppressing SQL errors conceals failed transactions; THROW propagates a meaningful failure. This observation would not establish that the required result occurred for A bulk status update activates an auditing trigger that performs unintended self-updates. The confirming test is: A batch update changes each intended row once and emits exactly the expected audit effects.
JSON membership functions compare structured content, not formatting-dependent text substrings. This observation would not establish that the required result occurred for A bulk status update activates an auditing trigger that performs unintended self-updates. The confirming test is: A batch update changes each intended row once and emits exactly the expected audit effects.