CCDV-F practice › Prompt & Context Engineering · Question 83 of 92
Prompt & Context Engineering
Model output occasionally arrives as valid JSON wrapped in a sentence of prose. What handles this correctly?
Show answer and explanation
Answer: B — Extract the JSON block, validate against a schema, and retry with the error fed back
All three steps matter: extraction handles the prose, schema validation catches structural deviations a successful parse would miss, and feeding the error back gives the retry something to correct.
Keep going
More Prompt & Context Engineering questions
- A long session shows rising cost, slower responses, and details being missed that are…
- In a long-running chat, the assistant starts ignoring formatting instructions given at…
- A pipeline calls a JSON parser directly on model output and crashes whenever the model…
- An instruction only sometimes applies — like a special discount policy only for orders…
- A model reliably follows a format on 3 worked examples in training conversations but…