Courseiva
Application Development →mediumMultiple Choice

Databricks-GenAI-Assoc Application Development Practice Question

A developer is using Databricks AI Functions to extract structured information from a large set of customer reviews stored in a Delta table. They want to apply a prompt to each review and store the results in a new column. Which function should they use?

⚠ Common exam trap

The trap here is assuming there is a dedicated ai_extract() function, when in fact ai_query() is the correct general-purpose function for custom prompts.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

ai_query()

Databricks AI Functions provide SQL-native access to generative AI models. ai_query() is the general-purpose function that accepts a prompt and a model endpoint, making it ideal for custom extraction tasks. It can be used in a SELECT statement to process each row and write the output to a new column. Other functions like ai_summarize and ai_classify are specialized and do not offer the same flexibility for structured extraction.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    ai_query()

    Why this is correct

    ai_query() is a Databricks AI Function that allows you to run a prompt against a column of data in a SQL query. It sends the text to a specified model endpoint and returns the model's response, which can be stored in a new column. This is exactly suited for applying a prompt to each review in a Delta table.

  • ✗

    ai_summarize()

    Why it's wrong here

    ai_summarize() is designed specifically to summarize text, not to extract arbitrary structured information based on a custom prompt. While it could produce a summary, it does not allow the flexibility of a custom prompt for extraction tasks. It is a specialized function, not a general-purpose query function.

  • ✗

    ai_extract()

    Why it's wrong here

    ai_extract() is not a standard Databricks AI Function. While extraction is the goal, the correct function to use is ai_query() with a custom prompt. This option is a distractor that sounds plausible but does not exist in the Databricks AI Functions suite.

  • ✗

    ai_classify()

    Why it's wrong here

    ai_classify() is used for classifying text into predefined categories. It is not intended for extracting structured information like entities or attributes. While classification could be part of extraction, it does not support the open-ended prompt required here. It is a narrower function.

About these practice questions

This Databricks-GenAI-Assoc question is part of Courseiva's 330-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Databricks exam blueprint

This Databricks-GenAI-Assoc practice question is part of Courseiva's free Databricks certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Databricks-GenAI-Assoc exam.