
DatabricksCertified Generative AI Engineer Associate
Domain 1Objective 1
Design a Prompt That Elicits a Specifically Formatted Response GENERATIVE-AI-ENGINEER-ASSOCIATE Practice Questions (Page 3)
Part of the Section 1: Design Applications domain, which makes up ~19% of our current practice bank. Databricks does not publish an official question count, but from its 90-minute exam (~35–60 total, ~7–11 in this domain), expect 1–2 from this objective — we provide 20 practice questions to prepare you well beyond it. (estimate)
20questions here
4free pages
6concepts
Questions 11–15
- 11
Which prompt component is most effective for teaching a model a specific output format through examples?
Select an answer first - 12
A team is using a model to extract product information from web pages. The output must be a JSON object with fields `product_name` (string), `price` (number), and `in_stock` (boolean). The model sometimes returns `price` as a string like '$19.99' or `in_stock` as 'yes' instead of `true`. Which prompt addition is most effective in enforcing the correct data types?
Select an answer first - 13
A company is deploying a chat application where users ask questions about internal documents. The application must always return answers in a specific JSON structure with fields `answer` and `source_documents`. The team has a single prompt template that includes both the formatting rules and the user's question. They notice that when users phrase their questions in unusual ways, the model sometimes forgets the JSON format. What is the best way to make the formatting rules more robust?
Select an answer first - 14
A data engineering team uses a Databricks notebook to extract invoice details from unstructured email text. They need the model to return each invoice's vendor name, invoice number, and total amount so the output can be directly parsed by a downstream Python script using the `json` module. The team has already tried a simple prompt like 'Extract the invoice details from this email' but the model returns inconsistent plain-text responses. Which prompt modification is most likely to produce the required output?
Select an answer first - 15
In a prompt-based application, where should the instruction 'Always respond in JSON format' be placed to apply to all user requests?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Databricks. “GENERATIVE-AI-ENGINEER-ASSOCIATE” is a trademark of its owner, used for identification only.