Home / GenAI Engineer practice test / Assembling and Deploying Applications / Question

Databricks Generative AI Engineer Associate · free practice question

A company wants its employees to engage with an HR policy assistant, powered by Retrieval Augmented Generation (RAG), directly within Slack, their primary…

Exam-style question on Assembling and Deploying Applications from the free GenAI Engineer practice test, with the answer and a full explanation below.

Updated November 11, 2026

Assembling and Deploying Applications

A company wants its employees to engage with an HR policy assistant, powered by Retrieval Augmented Generation (RAG), directly within Slack, their primary communication platform. Considering an AI agent hosted on Databricks, what is the MOST EFFECTIVE method to integrate this agent and make it available in Slack?

  1. ABuild a Slack app with the Bolt SDK that calls the Model Serving REST API using a service principal token kept in a secret
  2. BHost the agent as a Hugging Face Space and post its web link in the company's Slack channels for employees to open
  3. CExpose the agent through a public AWS Lambda function URL without authentication and point a Slack slash command at it
  4. DUse Slack's native LLM connector to link the workspace to Unity Catalog so that Slack queries the governed data directly
Answer & explanation

Correct answer: A

WHY A: The standard pattern for integrating a Databricks Model Serving endpoint with Slack is: (1) create a Slack App/Bot using Slack Bolt (Python SDK), (2) on each incoming Slack message, call the Databricks endpoint's REST API (OpenAI-compatible chat completion endpoint) with the user's message, (3) return the response to the Slack thread. The service principal token is stored securely as an environment variable in the bot's hosting environment (Databricks Apps, cloud function, or container) and never hardcoded.

WHY NOT B: Hugging Face Spaces host independent model demos and require the model to be deployed on Hugging Face infrastructure. This would mean migrating the agent out of Databricks and losing Unity Catalog governance, Vector Search integration, and Databricks authentication, and a web link is not an in-Slack experience.

WHY NOT C: A public unauthenticated endpoint exposes the HR policy assistant to arbitrary internet traffic. HR data queries must be authenticated to prevent unauthorized access to company policies.

WHY NOT D: Slack does not have a native LLM connector or plugin that can directly query Unity Catalog tables or Model Serving endpoints. Databricks endpoints are accessed via REST API, not through a Slack-native protocol.

Take the full GenAI Engineer practice test free →

Would you pass today?

This question is one of 45 in the free, timed Databricks Generative AI Engineer Associate practice test. Take it and get a section-by-section score.

Start the free test →