GENERATIVE-AI-ENGINEER-ASSOCIATE practice question 12 of 15

A Generative Al Engineer is helping a cinema extend its website's chat bot to be able to respond to questions about specific showtimes for movies…

Full set: 61 questions
A Generative Al Engineer is helping a cinema extend its website's chat bot to be able to respond to questions about specific showtimes for movies currently playing at their local theater. They already have the location of the user provided by location services to their agent, and a Delta table which is continually updated with the latest showtime information by location. They want to implement this new capability In their RAG application. Which option will do this with the least effort and in the most performant way?
Answer options
A: Create a Feature Serving Endpoint from a FeatureSpec that references an online store synced from the Delta table. Query the Feature Serving Endpoint as part of the agent logic / tool implementation. Correct answer
B: Query the Delta table directly via a SQL query constructed from the user's input using a text-to-SQL LLM in the agent logic / tool
C: implementation. Write the Delta table contents to a text column.then embed those texts using an embedding model and store these in the vector index Look up the information based on the embedding as part of the agent logic / tool implementation.
D: Set up a task in Databricks Workflows to write the information in the Delta table periodically to an external database such as MySQL and query the information from there as part of the agent logic / tool implementation.
Correct Answer:
A. Create a Feature Serving Endpoint from a FeatureSpec that references an online store synced from the Delta table. Query the Feature Serving Endpoint as part of the agent logic / tool implementation.
Explanation

Databricks Feature Serving is the optimal solution for this use case. It is specifically designed to provide low-latency, real-time access to features (like movie showtimes) stored in Delta tables for applications like chatbots. By defining a FeatureSpec and creating a serving endpoint, the system automatically syncs the data to a high-performance online store. This endpoint can then be easily integrated as a tool within the RAG agent's logic. This approach is the most performant due to the optimized online store lookup and requires the least effort as it leverages a managed, purpose-built service within the Databricks platform, avoiding complex custom implementations or external infrastructure.

Why Incorrect

B: Using a text-to-SQL LLM adds unnecessary complexity, latency from the LLM inference, and potential security risks. It is less performant and more effort than a direct API call. C: Vector search is designed for semantic similarity on unstructured text, not for precise, filtered lookups of structured data like showtimes. This is a misapplication of the technology. D: This option introduces external infrastructure (MySQL) and the overhead of managing a separate database and a data synchronization pipeline, which is significantly more effort than using the integrated Feature Serving. ---

References

1. Databricks Official Documentation, "What is Databricks Feature Serving?": This document states, "Databricks Feature Serving makes features in the Databricks platform available to models or applications deployed outside of Databricks... providing a high-availability, low-latency service for serving features." It explicitly mentions RAG applications as a primary use case: "For RAG applications, the serving endpoint can retrieve features from a vector store." While it mentions vector stores, it also serves from any Delta table, and its core purpose is low-latency serving, which is key to the question.

2. Databricks Official Documentation, "Create feature serving endpoints": This guide details the process of creating an endpoint using a FeatureSpec. The simplicity of the FeatureSpec configuration, which directly references the source Delta table and primary keys, supports the "least effort" claim. The documentation notes its suitability for "online applications that require low latency."

3. Databricks Official Documentation, "Agent framework on Databricks": This page describes how RAG agents can be equipped with tools to interact with external systems. It states, "Tools are functions that an agent can learn to use... For example, a tool can query a knowledge base, a database, or any other API." A Feature Serving endpoint provides exactly this kind of API for the agent to query structured data, fitting perfectly into the described architecture.

Scroll to Top