Question 210
A SQL query needs to aggregate child invoice IDs into a JSON array per customer. Which verification finding is most specific to this scenario?
Explanation
Correct Answer
JSON array aggregation preserves JSON structure rather than emitting unsafe concatenated text. The observation “Each customer response contains a syntactically valid array with the right members” directly confirms the chosen action worked for this situation: A SQL query needs to aggregate child invoice IDs into a JSON array per customer.
Incorrect Answers
OPENJSON exposes elements as rows and explicit schema maps document fields into SQL types. This observation would not establish that the required result occurred for A SQL query needs to aggregate child invoice IDs into a JSON array per customer. The confirming test is: Each customer response contains a syntactically valid array with the right members.
Regular-expression matching expresses pattern validation more precisely than broad LIKE wildcards. This observation would not establish that the required result occurred for A SQL query needs to aggregate child invoice IDs into a JSON array per customer. The confirming test is: Each customer response contains a syntactically valid array with the right members.
Rowstore B-tree indexes suit selective transactional operations better than bulk-column analytical access in this workload. This observation would not establish that the required result occurred for A SQL query needs to aggregate child invoice IDs into a JSON array per customer. The confirming test is: Each customer response contains a syntactically valid array with the right members.