Databricks Generative AI Engineer Associate Practice Exam Questions and Answers – Part 5/6

Practice for the Databricks Certified Generative AI Engineer Associate exam with 14 exam-style practice questions, instant answer reveals, and concise explanations of every correct answer. Topics include: A Generative AI Engineer is building an LLM-powered application where documents used by the retriever are chunked into s. Follow @CertPunch and visit certpunch.com for more certification practice exams and study content.

Prefer hands-on? Take this round as an interactive practice test — answer every question, get instant feedback, and see your score: Start the Databricks Certified Generative AI Engineer Associate practice test →

What you will practice

  • A Generative AI Engineer is building an LLM-powered application where documents used by the retriever are chu…
  • A Generative AI Engineer is designing a system to recommend the most suitable employee for newly defined proj…
  • A Generative AI Engineer is responsible for enhancing the quality of a RAG system by reducing offensive or in…
  • A Generative AI Engineer is developing an application that uses a language model. The documents for the retri…
  • A Generative AI Engineer at an electronics company has deployed a RAG (Retrieval-Augmented Generation) applic…
  • What is an effective way to preprocess prompts using custom code before sending them to a large language mode…

Answers and explanations

Tap a question to expand the answer and the exam reasoning. Try to commit to your own pick first.

Q1. A Generative AI Engineer is building an LLM-powered application where documents used by the retriever are chunked into segments of up to 512 tokens. Since the application prioritizes low latency and cost over response quality, the engineer…

Answer: A. A. Context length 512: smallest model size is 0.13 GB with embedding dimension 384

Choosing the 512 context length model with the smallest footprint keeps latency and compute costs minimized for chunked retrieval. The other options waste memory and compute by providing unnecessary context limits and larger embedding dimensions for the given chunk size.

Q2. A Generative AI Engineer is designing a system to recommend the most suitable employee for newly defined projects. The employee is selected from a large pool of team members. The selection needs to consider the employee's availability duri…

Answer: D. D. Create a tool that finds available team members for the given project dates. Embed team member profiles in a vector store and use the project description to search and filter for the best-matched team members who are available.

Option D is correct because embedding employee profiles into a vector store and filtering by availability combines structured metadata filtering with unstructured semantic search. This approach efficiently scales compared to keyword matching or brute-force similarity scoring. Remember that Vector Search natively handles hybrid queries.

Q3. A Generative AI Engineer is responsible for enhancing the quality of a RAG system by reducing offensive or inappropriate outputs. What would be the most effective method to minimize the risk of generating harmful or inflammatory text?

Answer: D. D. Carefully curate the upstream data, including performing manual reviews before incorporating it into the RAG system.

Option D is correct because carefully curating upstream data prevents offensive or inflammatory content from ever entering the retrieval pipeline. Simply refreshing data or notifying users does not actively reduce harmful outputs at the source. Remember that strong guardrails rely heavily on data quality and curation.

Q4. A Generative AI Engineer is developing an application that uses a language model. The documents for the retrieval system have been divided into chunks, each with a maximum of 512 tokens. Since the focus for this application is on reducing…

Answer: D. D. Context length of 512; the smallest model size is 0.13GB, with an embedding dimension of 384.

Option D is correct because choosing the smallest model size and matching context length directly minimizes compute cost and latency. Since the application prioritizes speed over quality, larger models and context windows introduce unnecessary computational overhead. Always align resource selection with strict application constraints.

Q5. A Generative AI Engineer at an electronics company has deployed a RAG (Retrieval-Augmented Generation) application that allows customers to ask questions about the company's products. However, users have reported that the responses sometim…

Answer: A. A. Evaluate the quality of the context being retrieved.

Option A is correct because evaluating retrieved context isolates the root cause of irrelevant responses before modifying the language model. If the system retrieves the wrong documents, even the best model will fail to answer correctly. Always debug the retrieval step first when facing relevance issues.

Q6. What is an effective way to preprocess prompts using custom code before sending them to a large language model (LLM)? A. Directly alter the internal architecture of the LLM to incorporate preprocessing steps. B. Avoid using custom code for…

Answer: D. D. Create an MLflow PyFunc model that includes a separate function for processing the prompts.

Creating an MLflow PyFunc model is the correct choice because it modularizes and wraps your custom preprocessing logic seamlessly for model serving. For the exam, avoid options suggesting internal model architecture changes, as large language models are treated as fixed inference endpoints.

Q7. A Generative AI Engineer is developing a system that will provide answers based on the latest stock news articles. Which of the following will NOT contribute to ensuring that the outputs are relevant to financial news? A. Establish a compr…

Answer: B. B. Enhance the computing resources to boost the processing speed of questions, allowing for better relevance analysis.

Enhancing computing resources is the correct answer because increasing processing speed or throughput does not inherently improve the topical relevance of the generated outputs. Relevance is achieved through domain guardrails and manual reviews, whereas compute simply makes existing pipelines run faster.

Q8. A Generative AI Engineer has successfully ingested unstructured documents and divided them into chunks based on document sections. They want to store these chunks in a Vector Search index. The current dataframe has two columns: (i) the ori…

Answer: B. B. Flatten the dataframe so that each chunk is in its own row, create a unique identifier for each row, and save it to a Delta table.

Flattening the dataframe so each chunk is an independent row is correct because vector search indexes require granular text segments to perform accurate similarity searches. Avoid storing data as independent JSON files, as Delta tables provide the necessary querying, indexing, and scalability foundation.

Q9. A Generative AI Engineer is building a multilingual chatbot to assist global customers. The system needs to dynamically identify the user's language, retrieve the correct localized context from the vector store, and respond fluently in the…

Answer: B. B. Use a universal multilingual embedding model and apply metadata-based filtering during retrieval to select language-matched chunks

A universal multilingual embedding model maps different languages into a shared space, while metadata filters restrict retrieval to the correct language. For the exam, remember that engine-level metadata filtering in Vector Search prevents irrelevant chunks from polluting the context window.

Q10. A Generative AI Engineer is creating a batch inference workflow that processes legal documents nightly. Each document is passed to a chain that extracts key clauses and summarizes them. The goal is to scale the pipeline, track usage, and s…

Answer: B. B. Use Databricks ai_query() within a PySpark job to apply the LLM across rows in parallel and log inference results

Using the ai_query function within a PySpark job applies the LLM across rows in parallel, scaling effortlessly for batch workloads. Synchronous REST calls via Model Serving are meant for real-time requests and lack inherent distributed batch parallelism.

Q11. A Generative AI Engineer is developing a GenAI assistant to help internal legal teams navigate regulatory guidelines. Some of the documents include personally identifiable information (PII), and others are under restrictive licenses. The c…

Answer: B. B. Use masking techniques during chunking to redact PII and enforce license-aware filtering during retrieval

Masking PII during chunking and enforcing license-aware filtering during retrieval guarantees sensitive data never reaches the model. Relying on prompt instructions is a soft guardrail, whereas engine-level metadata filters provide a hard, reliable boundary.

Q12. A Generative AI Engineer is developing a RAG application for customer support. The application uses product manuals, chat logs, and user-generated content as part of the knowledge base. During a security audit, concerns are raised about th…

Answer: B. B. Apply content filtering during retrieval to exclude toxic language before passing chunks to the model

Applying content filtering during retrieval excludes toxic language before the model receives the context, preserving safe, useful data. Removing all chat logs sacrifices valuable coverage, while relying on the foundation model risks quoting toxic text verbatim.

Q13. A Generative AI Engineer deployed a multilingual RAG application in production. After two weeks, the product team notices inconsistent performance across languages and slower response times during peak hours. Additionally, the LLM API usag…

Answer: A. A. Track latency by language using inference tables and set hard limits on total token count per request

Tracking latency by language using inference tables and setting hard limits on total token count per request addresses both issues. For the exam, remember that Databricks inference tables provide granular telemetry for performance debugging, while max_tokens limits directly control generative costs.

Q14. A Generative AI Engineer is attempting to store 150 million embeddings in a vector database that supports a maximum of 100 million. Which TWO strategies could the engineer use to reduce the total number of embeddings stored?

Answer: A,B. A. Increase the document chunk size || B. Reduce the overlap between chunks

Increasing the document chunk size and reducing the overlap between chunks both directly reduce the total number of generated vectors. Remember that switching to a smaller embedding model only reduces vector dimensionality and memory footprint, not the actual embedding count.

More Databricks Certified Generative AI Engineer Associate drills and other practice exams are on @CertPunch. New rounds drop every few days at certpunch.com.

Scroll to Top