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.