🔥 3-day streak
Databricks Certified Generative AI Engineer Associate46 / 145
Question 46 of 145

A Generative AI Engineer is building an invoice-processing application that calls a Databricks Foundation Model API endpoint (a chat model that supports structured outputs). The application must receive strictly valid JSON matching a fixed schema (vendor, invoice_number, total_amount) so it can be inserted directly into a Delta table without post-parsing failures. The team has already tried adding 'respond only in JSON' to the prompt but occasionally gets responses wrapped in markdown code fences or with explanatory prose. Which approach most reliably guarantees schema-conformant output from the endpoint?

Reviewed for accuracy · Report an issueNext question