Pre-Winter Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: force70

Pass the Databricks Generative AI Engineer Databricks-Generative-AI-Engineer-Associate Questions and answers with CertsForce

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

A Generative AI Engineer is testing a simple prompt template in LangChain using the code below, but is getting an error:

Python

from langchain.chains import LLMChain

from langchain_community.llms import OpenAI

from langchain_core.prompts import PromptTemplate

prompt_template = " Tell me a {adjective} joke "

prompt = PromptTemplate(input_variables=[ " adjective " ], template=prompt_template)

# ... (Error-prone section)

Assuming the API key was properly defined, what change does the Generative AI Engineer need to make to fix their chain?

Options:

A.

(Incorrect structure)


B.

(Incorrect structure)


C.

prompt_template = " Tell me a {adjective} joke "

prompt = PromptTemplate(input_variables=[ " adjective " ], template=prompt_template)

llm = OpenAI()

llm_chain = LLMChain(prompt=prompt, llm=llm)

llm_chain.generate([{ " adjective " : " funny " }])


D.

(Incorrect structure)


Expert Solution
Questions # 12:

A Generative AI Engineer has been asked to build an LLM-based question-answering application. The application should take into account new documents that are frequently published. The engineer wants to build this application with the least cost and least development effort and have it operate at the lowest cost possible.

Which combination of chaining components and configuration meets these requirements?

Options:

A.

For the application a prompt, a retriever, and an LLM are required. The retriever output is inserted into the prompt which is given to the LLM to generate answers.


B.

The LLM needs to be frequently with the new documents in order to provide most up-to-date answers.


C.

For the question-answering application, prompt engineering and an LLM are required to generate answers.


D.

For the application a prompt, an agent and a fine-tuned LLM are required. The agent is used by the LLM to retrieve relevant content that is inserted into the prompt which is given to the LLM to generate answers.


Expert Solution
Questions # 13:

A Generative AI Engineer is implementing a supervisor agent and two specialist agents in Databricks: a Sales Analyst for revenue questions and an HR Analyst for staff questions. Each specialist must retrieve data only from its own governed domain, and the engineer wants to preserve that separation using Databricks-native data access for each agent rather than building custom retrieval logic.

What should the engineer implement?

Options:

A.

Create separate Knowledge Assistants for Sales and HR and have each specialist retrieve from the corresponding assistant.


B.

Create two separate Genie Spaces for Sales and HR, each scoped to its own governed datasets, and have each specialist agent call the appropriate Space through the API.


C.

Create a shared Genie Space over both domains, but use distinct service principals and Unity Catalog grants for each specialist agent’s API access.


D.

Create a single Genie Space over both domains and rely on the supervisor agent to route only sales questions to the Sales Analyst and HR questions to the HR Analyst.


Expert Solution
Questions # 14:

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?

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.


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.


Expert Solution
Questions # 15:

A Generative AI Engineer is building an interactive catalog for a company’s inventory system that allows users to search for any item using a plain-text description. There are currently about 17,000 items, and new items are not frequently added. They need a solution that will be the most cost-effective and easy for the company to maintain.

Which solution should the engineer choose?

Options:

A.

Storage-optimized vector search with a Direct Vector Access index, triggered sync.


B.

Standard vector search with Databricks-managed embeddings and a Delta Sync index, continuous sync.


C.

Standard vector search with self-managed embeddings and a Delta Sync index, continuous sync.


D.

Standard vector search with Databricks-managed embeddings and a Delta Sync index, triggered sync.


Expert Solution
Questions # 16:

A Generative Al Engineer interfaces with an LLM with prompt/response behavior that has been trained on customer calls inquiring about product availability. The LLM is designed to output “In Stock” if the product is available or only the term “Out of Stock” if not.

Which prompt will work to allow the engineer to respond to call classification labels correctly?

Options:

A.

Respond with “In Stock” if the customer asks for a product.


B.

You will be given a customer call transcript where the customer asks about product availability. The outputs are either “In Stock” or “Out of Stock”. Format the output in JSON, for example: {“call_id”: “123”, “label”: “In Stock”}.


C.

Respond with “Out of Stock” if the customer asks for a product.


D.

You will be given a customer call transcript where the customer inquires about product availability. Respond with “In Stock” if the product is available or “Out of Stock” if not.


Expert Solution
Questions # 17:

Which TWO chain components are required for building a basic LLM-enabled chat application that includes conversational capabilities, knowledge retrieval, and contextual memory?

Options:

A.

(Q)


B.

Vector Stores


C.

Conversation Buffer Memory


D.

External tools


E.

Chat loaders


F.

React Components


Expert Solution
Questions # 18:

Which of the following statements accurately identifies differences between the evaluation phase and the monitoring phase in the Generative AI application lifecycle within Databricks?

Options:

A.

The evaluation phase uses Mosaic AI Agent Evaluation and an evaluation dataset to assess an agent’s performance metrics and traces, while the monitoring phase relies on inference tables as source data for creating a metrics profile.


B.

The evaluation phase logs and traces live API calls in production, while the monitoring phase runs metrics on inference tables containing those traces.


C.

The evaluation phase ensures the agent’s responses comply with business rules in production, whereas the monitoring phase is focused on SLA and performance metrics.


D.

The evaluation phase uses all inference history to assess agent performance and readiness for production, while the monitoring phase uses only new inference-table records to monitor performance.


Expert Solution
Questions # 19:

A Generative AI Engineer is designing an LLM-powered live sports commentary platform. The platform provides real-time updates and LLM-generated analyses for any users who would like to have live summaries, rather than reading a series of potentially outdated news articles.

Which tool below will give the platform access to real-time data for generating game analyses based on the latest game scores?

Options:

A.

DatabrickslQ


B.

Foundation Model APIs


C.

Feature Serving


D.

AutoML


Expert Solution
Questions # 20:

A Generative Al Engineer is tasked with developing a RAG application that will help a small internal group of experts at their company answer specific questions, augmented by an internal knowledge base. They want the best possible quality in the answers, and neither latency nor throughput is a huge concern given that the user group is small and they’re willing to wait for the best answer. The topics are sensitive in nature and the data is highly confidential and so, due to regulatory requirements, none of the information is allowed to be transmitted to third parties.

Which model meets all the Generative Al Engineer’s needs in this situation?

Options:

A.

Dolly 1.5B


B.

OpenAI GPT-4


C.

BGE-large


D.

Llama2-70B


Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions