Databricks Generative AI Engineer Associate · 14% practice allocation

Databricks Generative AI Engineer Associate: Design applications Practice Questions

5 free sample questions from the Design applications domain, with answers and explanations. The full Generative AI Engineer Associate bank has 250 questions across 6 domains. Questions are scenario-based and written from the official Databricks exam guide.

1.

A business analyst asks you to build a feature that reads lengthy quarterly earnings reports and produces a two-paragraph executive summary. Which model task type best matches this requirement?

  • A. Text summarization✓ Correct
  • B. Text classification
  • C. Conversational chat
  • D. Named-entity extraction
Explanation

Text summarization is the model task specifically designed to condense long documents into shorter, coherent representations—exactly what is needed for an executive summary of earnings reports. Text classification assigns a label to input text rather than condensing it. Named-entity extraction identifies specific entities (names, dates, organizations) rather than producing a summary. Conversational chat is designed for interactive, multi-turn dialogue, not for batch document condensation.

2.

A generative AI engineer is designing a prompt for a legal document review tool. The model must identify whether a clause violates any of three specific compliance rules. The engineer includes three worked examples in the prompt, each showing a clause, the reasoning process, and the final verdict. Which combination of techniques does this prompt use?

  • A. Few-shot and chain-of-thought prompting✓ Correct
  • B. Zero-shot and retrieval-augmented generation
  • C. Chain-of-thought and retrieval-augmented generation
  • D. Fine-tuning and zero-shot prompting
Explanation

Including three worked examples makes this few-shot prompting; showing the reasoning process within each example is chain-of-thought prompting. Together, few-shot CoT is one of the most effective prompting strategies for complex classification and reasoning tasks. Zero-shot would mean no examples are provided, which contradicts the scenario. RAG involves retrieving external documents at inference time—there is no retrieval step described. Fine-tuning modifies model weights through training, which is distinct from in-context prompting techniques.

3.

A data scientist wants a large language model to classify customer support tickets into one of five predefined categories without providing any labeled examples in the prompt. Which prompting strategy is being used?

  • A. Chain-of-thought prompting
  • B. Zero-shot prompting✓ Correct
  • C. Retrieval-augmented generation
  • D. Few-shot prompting
Explanation

Zero-shot prompting asks the model to perform a task using only the task description and input, with no labeled examples provided. Few-shot prompting would require providing example input-output pairs in the prompt. Chain-of-thought prompting guides the model through explicit reasoning steps. RAG augments the prompt with retrieved external documents, which is unrelated to the labeling/examples dimension of prompting.

4.

A team is defining quality requirements for a new LLM application before development begins. The application will generate personalized workout plans based on user health data. Which TWO of the following are examples of well-defined, measurable quality requirements appropriate to specify at the design stage? (Select TWO)

  • A. The model should produce high-quality and relevant workout recommendations for each user.
  • B. At least 90% of generated plans must be validated as medically safe by a certified fitness domain expert evaluation rubric applied during testing.✓ Correct
  • C. The application must never recommend exercises that exceed the user's stated fitness level, enforced by a post-generation safety filter that flags and blocks non-compliant plans.✓ Correct
  • D. The LLM should be accurate and avoid harmful outputs whenever possible.
  • E. Response latency must feel fast enough for users to remain engaged during the plan generation experience.
Explanation

Correct (B & C): (B) is measurable: it specifies a numeric threshold (90%), an evaluation method (expert rubric), and a testing phase—making it actionable for engineers to design and validate against. (C) is measurable: it defines a specific safety constraint (no exercises above stated fitness level), an enforcement mechanism (post-generation filter), and a clear pass/fail criterion (flagged and blocked). Together they reflect best practice for defining quality and guardrail requirements before engineering begins. (A) is wrong: 'high-quality and relevant' is vague—it specifies no metric, threshold, or evaluation method, making it untestable. (D) is wrong: 'accurate and avoid harmful outputs whenever possible' is aspirational and unmeasurable; it provides no criteria for determining whether the requirement is met. (E) is wrong: 'feel fast enough' is subjective with no numeric target (e.g., p95 latency < 3 seconds); it cannot be tested or verified as stated.

5.

An ML engineer is evaluating whether to fine-tune a foundation model or use prompt engineering for a new task. Which TWO scenarios most strongly favor fine-tuning over prompting?

  • A. The desired output format is a highly specific, company-proprietary JSON schema that the base model never produces correctly despite detailed prompt instructions✓ Correct
  • B. The task requires the model to have up-to-date knowledge of events from the past two weeks
  • C. The task involves thousands of production calls per day, and including lengthy few-shot examples significantly increases token costs✓ Correct
  • D. The knowledge needed to answer questions is stored in an internal document repository
  • E. The task is a standard summarization task that the base model already performs well on
Explanation

Fine-tuning is favored when (A) the base model cannot learn the desired behavior from prompt examples alone—such as a proprietary output schema—because fine-tuning bakes that behavior into the weights; and (C) when at scale, long few-shot prompts become prohibitively expensive, since a fine-tuned model can produce the same quality output with a much shorter prompt. Real-time knowledge from the past two weeks is better served by RAG or tool use, since fine-tuning still produces a static snapshot. An internal document repository suggests RAG, not fine-tuning. A task the base model already handles well requires neither fine-tuning nor complex prompting.

Test yourself across every Generative AI Engineer Associate domain

The free Generative AI Engineer Associate practice test mixes about 20 questions weighted like the exam. The full 250-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Design applications study guide (Generative AI Engineer Associate) →

Other Generative AI Engineer Associate domains

← All Databricks Generative AI Engineer Associate study resources