Question 160
A stored procedure passes DECIMAL prices as unquoted strings with locale commas and model summaries misstate values. What maintenance or governance control BEST reduces recurrence of this problem?
Explanation
Correct Answer
Compare model output to authoritative SQL totals. This guards against recurrence because JSON encoding preserves numeric representation better than locale-dependent concatenation. The direct remediation is: Serialize numeric SQL types as valid JSON numbers with explicit unit metadata.
Incorrect Answers
Enforce outbound allowlists and unit tests for fields. The current task instead requires this action: compare model output to authoritative SQL totals.
Keep business arithmetic outside uncontrolled model generation. The current task instead requires this action: compare model output to authoritative SQL totals.
Log safe diagnostics and maintain circuit-breaker policy. The current task instead requires this action: compare model output to authoritative SQL totals.