← All practice questions
QUESTION 100 OF 245Domain: Prompt Engineering & Structured Output
You use tool_use with a strict JSON schema for extraction. What does this NOT protect against?
Show answer and explanation
Answer: C
Schemas guarantee shape/syntax, not correctness. A value can be valid JSON yet wrong — e.g., items that don't sum, or a value in the wrong field. Those need semantic validation.
schema صرف شکل اور بناوٹ کی ضمانت دیتا ہے، درستی کی نہیں۔ کوئی قدر درست JSON ہو کر بھی غلط ہو سکتی ہے — مثلاً جوڑ نہ ملے، یا قدر غلط خانے میں ہو۔ ان کے لیے مطلب کی جانچ (semantic) الگ سے چاہیے۔
One practice question a week
Get a new exam-style question with a clear explanation in your inbox. Free, no spam, unsubscribe any time.
We only use your email for these updates. See our privacy policy.