Question 910
A stored procedure passes DECIMAL prices as unquoted strings with locale commas and model summaries misstate values. Which technical reason BEST explains the proposed correction?
Explanation
Correct Answer
JSON encoding preserves numeric representation better than locale-dependent concatenation. This explains why the corrective action is to serialize numeric SQL types as valid JSON numbers with explicit unit metadata. Confirm the diagnosis when an API test reads amounts with correct decimal interpretation.
Incorrect Answers
Data minimization reduces prompt exposure and cost without losing relevant context. The actual technical constraint is that JSON encoding preserves numeric representation better than locale-dependent concatenation.
Context-window constraints and cost require bounded prompt construction. The actual technical constraint is that JSON encoding preserves numeric representation better than locale-dependent concatenation.
Rate limiting is often transient and should not erase durable database work. The actual technical constraint is that JSON encoding preserves numeric representation better than locale-dependent concatenation.