Question 230
A report needs to remove a known sensitive token pattern embedded in notes. What observable outcome proves the recommendation worked?
Explanation
Correct Answer
REGEXP_REPLACE substitutes pattern matches and requires explicit tests for greediness and escaping. The observation “The sample set shows all intended token instances replaced and nonmatches preserved” directly confirms the chosen action worked for this situation: A report needs to remove a known sensitive token pattern embedded in notes.
Incorrect Answers
JSON membership functions compare structured content, not formatting-dependent text substrings. This observation would not establish that the required result occurred for A report needs to remove a known sensitive token pattern embedded in notes. The confirming test is: The sample set shows all intended token instances replaced and nonmatches preserved.
LAG reads a preceding row within a partition without a self-join for each row. This observation would not establish that the required result occurred for A report needs to remove a known sensitive token pattern embedded in notes. The confirming test is: The sample set shows all intended token instances replaced and nonmatches preserved.
Columnstore organizes and compresses columns for analytic scans but can cost more for some OLTP mutations. This observation would not establish that the required result occurred for A report needs to remove a known sensitive token pattern embedded in notes. The confirming test is: The sample set shows all intended token instances replaced and nonmatches preserved.