Question 140
An API expects a single relational row converted into a JSON object with named fields. Following remediation, what safeguard BEST prevents a repeat of this specific failure?
Explanation
Correct Answer
Pin feature availability to the deployed SQL engine. This guards against recurrence because JSON_OBJECT constructs a JSON object from typed expressions instead of fragile string concatenation. The direct remediation is: Use JSON_OBJECT with explicit key/value expressions where supported.
Incorrect Answers
Index frequently filtered paths only after measured need. The current task instead requires this action: pin feature availability to the deployed SQL engine.
Keep review logs and a reversible merge mechanism. The current task instead requires this action: pin feature availability to the deployed SQL engine.
Use selective indexes on the correlated join key. The current task instead requires this action: pin feature availability to the deployed SQL engine.