Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

Certified Generative AI Engineer Associate

Practice questions for the Certified Generative AI Engineer Associate certification exam.

4.6★★★★★(238 ratings)
16,102 studentsIntermediate
This course covers everything you need to pass the Certified Generative AI Engineer Associate (CERTIFIED-GENERATIVE-AI-ENGINEER-ASSOCIATE) exam. Each part of this course contains real exam questions taken from the actual exam pool, with hint answers to guide your study. Practice with these questions to build confidence and master the topics needed for certification success.

What you'll learn

  • Master the core concepts for CERTIFIED-GENERATIVE-AI-ENGINEER-ASSOCIATE certification
  • Practice with real exam-style questions
  • Understand platform services and architectures covered in CERTIFIED-GENERATIVE-AI-ENGINEER-ASSOCIATE
  • Build confidence through timed practice exams
  • Learn from detailed hint answers and explanations
  • Pass the official CERTIFIED-GENERATIVE-AI-ENGINEER-ASSOCIATE certification exam on your first try

CERTIFIED-GENERATIVE-AI-ENGINEER-ASSOCIATE

Lectures1
Questions55
Duration30 week
Students16,102

$20.00

Full Free Question Bank (55 Questions)

Certified Generative AI Engineer Associate (CERTIFIED-GENERATIVE-AI-ENGINEER-ASSOCIATE) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Question #1Part 1Evaluation and Monitoring

A Generative AI Engineer is testing parameters to configure an agent in Mosaic Agent Framework. However, they are having difficulty getting the agent to return relevant information with the following configuration: ![Question Image](https://cdn.examcademy.com/images/questions/1783899511059-t07u1may.png) Which error is responsible for the issue?

AThe prompt does not parse the user's input vars
BThe prompt does not set the retriever schema
CThe prompt does not list available agents for the LLM to call
DThe prompt is not wrapped in ChatModel
Question #2Part 1Governance

A Generative AI Engineer is building an LLM application that interacts with users to deliver personalized movie recommendations. Given the possibility of malicious user inputs, which technique would be most effective for safeguarding the application?

AReduce the time that the users can interact with the LLM
BIncrease the amount of compute that powers the LLM to process input faster
CAsk the LLM to remind the user that the input is malicious but continue the conversation with the user
DImplement a safety filter that detects any harmful inputs and ask the LLM to respond that it is unable to assist
Question #3Part 1Assembling and Deploying Applications

A Generative AI Engineer is developing a RAG application to answer employee questions about company policies. What steps are required to build and deploy this RAG application?

AIngest documents from a source -> Index the documents and saves to Vector Search -> User submits queries against an LLM -> LLM retrieves relevant documents -> Evaluate model -> LLM generates a response -> Deploy it using Model Serving
BUser submits queries against an LLM -> Ingest documents from a source -> Index the documents and save to Vector Search -> LLM retrieves relevant documents -> LLM generates a response -> Evaluate model -> Deploy it using Model Serving
CIngest documents from a source -> Index the documents and save to Vector Search -> Evaluate model -> Deploy it using Model Serving -> User submits queries against an LLM -> LLM retrieves relevant documents -> LLM generates a response
DIngest documents from a source -> Index the documents and save to Vector Search -> User submits queries against an LLM -> LLM retrieves relevant documents -> LLM generates a response -> Evaluate model -> Deploy it using Model Serving
Question #4Part 1Governance

A Generative AI Engineer is developing a production-ready LLM system that responds directly to customers. The solution uses the Foundation Model API through provisioned throughput. They are concerned that the LLM might produce a toxic or otherwise unsafe response. They also want to accomplish this with the least effort. Which approach accomplishes this?

AAsk users to report unsafe responses
BHost Llama Guard on Foundation Model API and use it to detect unsafe responses.
CAdd some LLM calls to their chain to detect unsafe content before returning text
DAdd a regex expression on inputs and outputs to detect unsafe responses.
Question #5Part 1Data Preparation

A Generative AI Engineer is creating a RAG application that will depend on context retrieved from source documents currently stored as PDFs. These PDFs may include both text and images. They want to build the solution with the fewest lines of code. Which Python package should be used to extract text from the source documents?

Aflask
Bbeautifulsoup
Cunstructured
Dnumpy
Question #6Part 1Data PreparationSelect 2

A Generative AI Engineer is building a RAG system for their company to support internal document Q&A on structured HR policies, but the returned answers are often incomplete and unstructured. The retriever appears not to return all relevant context. The Generative AI Engineer has tried different embedding and response-generation LLMs, but results did not improve. Which **TWO** options could improve response quality? *(Choose two.)*

AAdd the section header as a prefix to chunks
BSplit the document by sentence
CUse a larger embedding model
DIncrease the document chunk size
EFine tune the response generation model
Question #7Part 1Design Applications

A company operates a typical customer-facing, RAG-enabled chatbot on its website. ![Question Image](https://cdn.examcademy.com/images/questions/1783877704465-by3yllyo.png) Using the diagram above as a reference, select the correct sequence of components that a user’s questions pass through before the final output is returned.

A1.embedding model, 2.vector search, 3.context-augmented prompt, 4.response-generating LLM
B1.context-augmented prompt, 2.vector search, 3.embedding model, 4.response-generating LLM
C1.response-generating LLM, 2.vector search, 3.context-augmented prompt, 4.embedding model
D1.response-generating LLM, 2.context-augmented prompt, 3.vector search, 4.embedding model
Question #8Part 1Application Development

A Generative AI Engineer wants an LLM to parse and extract the following information: date, sender email, and order ID. The output must be formatted as JSON. Here is a sample email: ![Question Image](https://cdn.examcademy.com/images/questions/1783892883937-t89zfpmy.png) They need a prompt that extracts and returns the required information in JSON with the highest level of output accuracy. Which prompt accomplishes this?

AYou will receive customer emails and need to extract date, sender email, and order ID. Return the extracted information in a human-readable format.
BYou will receive customer emails and need to extract date, sender email, and order ID. Return the extracted information in JSON format.
CYou will receive customer emails and need to extract date, sender email, and order ID. Return the extracted information in JSON format. Here’s an example: {"date":"April 16, 2024", "sender_email":"[email protected]", "order_id":"RE987D"}
DYou will receive customer emails and need to extract date, sender email, and order IYou should return the date, sender email, and order ID information in JSON format.
Question #9Part 1Design Applications

A Generative AI Engineer must design an LLM pipeline for multi-stage reasoning that uses external tools. To do this effectively, the LLM needs to plan and adapt its actions while carrying out complex reasoning tasks. Which approach accomplishes this?

ATrain the LLM to generate a single, comprehensive response without interacting with any external tools, relying solely on its pre-trained knowledge.
BUse a Chain-of-Thought (CoT) prompting technique to guide the LLM through a series of reasoning steps, then manually input the results from external tools for the final answer.
CImplement a framework like ReAct, which allows the LLM to generate reasoning traces and perform task-specific actions that leverage external tools if necessary.
DEncourage the LLM to make multiple API calls in sequence without planning or structuring the calls, allowing the LLM to decide when and how to use external tools spontaneously.
Question #10Part 1Governance

A Generative AI Engineer is developing a system that will answer questions about news topics that are currently unfolding. Accordingly, it retrieves information from several sources, including articles and social-media posts. They are concerned that toxic social-media posts could cause the system to produce toxic outputs. Which guardrail will limit toxic outputs?

AReduce the amount of context items the system will include in consideration for its response.
BUse only approved social media and news accounts to prevent unexpected toxic data from getting to the LLM.
CLog all LLM system responses and perform a batch toxicity analysis monthly.
DImplement rate limiting.
Question #11Part 1Evaluation and Monitoring

A Generative Al Engineer is developing a system that will answer questions about the latest stock-news articles. Which option willNOThelp ensure that the outputs are relevant to financial news?

AImplement a comprehensive guardrail framework that includes policies for content filters tailored to the finance sector.
BIncrease the compute to improve processing speed of questions to allow greater relevancy analysis
CImplement a profanity filter to screen out offensive language.
DIncorporate manual reviews to correct any problematic outputs prior to sending to the users
Question #12Part 1Application Development

A Generative AI Engineer interacts with an instruction-following LLM trained on customer calls that inquire about product availability. The LLM must return “Success” when the product is available and “Fail” when it is not. Which prompt enables the engineer to correctly obtain call-classification labels?

AYou are a helpful assistant that reads customer call transcripts. Walk through the transcript and think step-by-step if the customer’s inquiries are addressed successfully. Answer “Success” if yes; otherwise, answer “Fail”.
BYou will be given a customer call transcript where the customer asks about product availability. Classify the call as “Success” if the product is available and “Fail” if the product is unavailable.
CYou will be given a customer call transcript where the customer asks about product availability. The outputs are either “Success” or “Fail”. Format the output in JSON, for example: {"call_id": "123", "label": "Succes"}.
DYou will be given a customer call transcript. Answer “Success” if the customer call has been resolved successfully. Answer “Fail” if the call is redirected or if the question is not resolved.
Question #13Part 1Data Preparation

A Generative AI Engineer has developed scalable PySpark code to ingest unstructured PDF documents and split them into chunks in preparation for storage in a Databricks Vector Search index. At present, the dataframe has two columns: the original filename as a string and an array of text chunks from that document. Which set of steps should the Generative AI Engineer take to store the chunks in a format ready for ingestion by Databricks Vector Search?

AUse PySpark’s autoloader to apply a UDF across all chunks, formatting them in a JSON structure for Vector Search ingestion.
BFlatten the dataframe to one chunk per row, create a unique identifier for each row, and enable change feed on the output Delta table.
CUtilize the original filename as the unique identifier and save the dataframe as is.
DCreate a unique identifier for each document, flatten the dataframe to one chunk per row and save to an output Delta table.
Question #14Part 1Data Preparation

A Generative AI Engineer needs to build an LLM application that can understand medical documents, including recently published ones. They want to choose an open model available on Hugging Face’s model hub. Which step is the most appropriate for selecting an LLM?

APick any model in the Mistral family, as Mistral models are good with all types of use cases
BSelect a model based on the highest number of downloads, as this indicates popularity, reliability, and general suitability
CSelect a model that is most recently uploaded, as this indicates the model is the newest and highly likely to be the most performant
DCheck for the model and training data description to identify if the model is trained on any medical data.
Question #15Part 1Assembling and Deploying Applications

A Generative AI Engineer has built an LLM application using the pay-per-token Foundation Model API. Now that the application is ready for deployment, they want to ensure that the model endpoint can handle high volumes of incoming production requests. What should the Generative AI Engineer consider?

ASwitch to using External Models instead
BThrottle the incoming batch of requests manually to avoid rate limiting issues
CChange to a model with a fewer number of parameters in order to reduce hardware constraint issues
DDeploy the model using provisioned throughput as it comes with performance guarantees
Question #16Part 1Design Applications

A Generative AI Engineer is developing an LLM-based application with a critical transcription (speech-to-text) task. Application speed is essential to its success. Which open Generative AI model should be used?

ADBRX
BMPT-30B-Instruct
CLlama-2-70b-chat-hf
Dwhisper-large-v3 (1.6B)
Question #17Part 1Governance

A Generative AI Engineer is building a conversational chatbot, based on a large language model (LLM), to help users with insurance-related inquiries. To keep the chatbot focused and comply with company policy, it must not answer questions about politics. Instead, for political inquiries, it should return this standard message: > “Sorry, I cannot answer that. I am a chatbot that can only answer questions around insurance.” Which type of framework should be implemented to address this?

ASafety Guardrail
BSecurity Guardrail
CContextual Guardrail
DCompliance Guardrail
Question #18Part 1GovernanceSelect 2

A Generative AI Engineer is deploying a customer-facing, fine-tuned LLM to the company’s public website. Because the company made a large investment in fine-tuning this model and the tuning data is proprietary, they are concerned about model inversion attacks. Which Databricks AI Security Framework (DASF) risk-mitigation strategies below are most relevant to this scenario?

AImplement AI guardrails to allow users to configure and enforce compliance
BLeverage Databricks access control lists (ACLs) to configure permissions for accessing models
CUse secure model features with Databricks Feature Store
DApply attribute-based access controls (ABAC) to limit unauthorized access
Question #19Part 1Evaluation and Monitoring

A Generative AI Engineer is creating a chatbot for a gaming company to engage users on its platform while they play online video games. Which metric would help increase user engagement and retention on the platform?

ARandomness
BDiversity of responses
CLack of relevance
DRepetition of responses
Question #20Part 1Governance

All of the following are Python APIs used to query Databricks foundation models. When working in an interactive notebook, which library doesnotautomatically use the current session credentials?

AOpenAI client
BREST API via requests library
CMLflow Deployments SDK
DDatabricks Python SDK
Question #21Part 1Governance

A Generative AI Engineer is tasked with improving RAG quality by addressing inflammatory outputs. Which action would be most effective for mitigating offensive text outputs?

AIncrease the frequency of upstream data updates
BInform the user of the expected RAG behavior
CRestrict access to the data sources to a limited number of users
DCurate upstream data properly that includes manual review before it is fed into the RAG system
Question #22Part 1Evaluation and Monitoring

Which indicator should be considered when evaluating the safety of LLM outputs through qualitative assessment of responses for a translation use case?

AThe ability to generate responses in code
BThe similarity to the previous language
CThe latency of the response and the length of text generated
DThe accuracy and relevance of the responses
Question #23Part 1Application Development

A Generative AI Engineer must build an LLM application that excels at code generation. They need to choose a model specifically trained for generating code. Which model would most likely provide the best out-of-the-box results?

ACodeLlama-34b-Instruct-hf
BMixtral-8x7B-v0.1
CLlama-2-70b-hf
Dmpt-7b-8k-instruct
Question #24Part 1Assembling and Deploying Applications

A Generative AI Engineer has already trained an LLM on Databricks, and it is now ready to be deployed. Which of the following steps correctly describes the easiest process for deploying a model on Databricks?

ALog the model as a pickle object, upload the object to Unity Catalog Volume, register it to Unity Catalog using MLflow, and start a serving endpoint
BLog the model using MLflow during training, directly register the model to Unity Catalog using the MLflow API, and start a serving endpoint
CSave the model along with its dependencies in a local directory, build the Docker image, and run the Docker container
DWrap the LLM’s prediction function into a Flask application and serve using Gunicorn
Question #25Part 1Design Applications

A Generative AI Engineer is building an LLM-powered application that requires access to current news articles and stock prices. The design requires using stock prices stored in Delta tables and locating the latest relevant news articles through internet search. How should the Generative AI Engineer design the LLM system?

AUse an LLM to summarize the latest news articles and lookup stock tickers from the summaries to find stock prices.
BQuery the Delta table for volatile stock prices and use an LLM to generate a search query to investigate potential causes of the stock volatility.
CDownload and store news articles and stock price information in a vector store. Use a RAG architecture to retrieve and generate at runtime.
DCreate an agent with tools for SQL querying of Delta tables and web searching, provide retrieved values to an LLM for generation of response.
Question #26Part 1Design Applications

A Generative AI Engineer is working with a retail company that wants to improve its customer experience by automatically handling frequent customer inquiries. They are developing an LLM-powered AI solution that should improve response times while preserving a personalized interaction. They want to define the appropriate input and LLM task for this purpose. Which input/output pair accomplishes this?

AInput: Customer service chat logs; Output: Group the chat logs by users, followed by summarizing each user’s interactions, then respond
BInput: Customer service chat logs; Output: Find the answers to similar questions and respond with a summary
CInput: Customer reviews; Output: Classify review sentiment
DInput: Customer reviews; Output: Group the reviews by users and aggregate per-user average rating, then respond
Question #27Part 1Assembling and Deploying ApplicationsSelect 2

An AI developer team wants to fine-tune an open-weight model for exceptional performance in a code-generation use case. They are trying to select the best model to begin with. They want to minimize model-hosting costs and are using Hugging Face model cards and Spaces to explore models. Which **TWO** model attributes and metrics should the team focus on for their selection? *(Choose two.)*

ABig Code Models Leaderboard
BNumber of model parameters
CMTEB Leaderboard
DChatbot Arena Leaderboard
ENumber of model downloads last month
Question #28Part 1Data Preparation

A Generative AI Engineer is creating a RAG application that will use context retrieved from source documents currently stored in HTML format. They want to build the solution with the fewest possible lines of code. Which Python package should be used to extract text from the source documents?

Apytesseract
Bnumpy
Cpypdf2
Dbeautifulsoup
Question #29Part 1Design Applications

A Generative AI Engineer has reviewed issues with their company’s LLM-based question-answering assistant and determined that a technique called prompt chaining could help address some performance concerns. However, before recommending it to the team, they must clearly explain how it works and how it can benefit the question-answering assistant. Which explanation do they give the team?

AIt allows you to break down complex tasks into multiple independent subtasks. This enables the assistant to generate more comprehensive and accurate responses.
BIt allows you to reduce the latency of your applications. By having multiple chains participating in the response as a chain, you increase the rate at which the response is generated.
CIt allows you to decrease the effort involved in crafting a prompt. Chains make it possible to reuse prompt text across multiple different use cases.
DIt reduces the average cost of a typical request. Chains make more efficient use of the tokens produced to generate higher quality responses with fewer tokens.
Question #30Part 1Design Applications

A Generative AI Engineer is configuring Databricks Vector Search to look up news articles by topic within 10 days of a specified date. An example query could be: “Tell me about monster truck news around January 5th 1992”. They want to accomplish this with the least effort. How should they configure their Vector Search index to support this use case?

ACreate separate indexes by topic and add a classifier model to appropriately pick the best index.
BInclude metadata columns for article date and topic to support metadata filtering.
CPass the query directly to the vector search index and return the best articles.
DSplit articles by 10 day blocks and return the block closest to the query.
Question #31Part 1Evaluation and Monitoring

A Generative AI Engineer has a provisioned-throughput model-serving endpoint in a RAG application and wants to monitor the endpoint’s incoming requests and outgoing responses. Which Databricks feature should they use?

AAutoML
BVector Search
CInference Tables
DFeature Serving
Question #32Part 1Design Applications

A team wants to provide a code-generation model as an assistant to its software developers. It must support multiple programming languages, with quality as the primary objective. Which Databricks Foundation Model API or Marketplace-available model would be the best fit?

ALlama2-70b
BBGE-large
CMPT-7b
DCodeLlama-34B
Question #33Part 1Application Development

A Generative AI Engineer I is using the following code to test setting up a vector store: Assuming they plan to use Databricks-managed embeddings with the default embedding model, which logical function call should come next?

Avsc.get_index()
Bvsc.create_delta_sync_index()
Cvsc.create_direct_access_index()
Dvsc.similarity_search()
Question #34Part 1Data Preparation

A Generative AI Engineer is developing a RAG application that answers questions about internal documents for the company SnoPen AI. The source documents can contain a substantial amount of irrelevant material, such as advertisements, sports news, entertainment news, or content concerning other companies. Which approach is recommended when building a RAG application to filter irrelevant information?

AKeep all articles because the RAG application needs to understand non-company content to avoid answering questions about them.
BInclude in the system prompt that any information it sees will be about SnoPenAI, even if no data filtering is performed.
CInclude in the system prompt that the application is not supposed to answer any questions unrelated to SnoPen AI.
DConsolidate all SnoPen AI related documents into a single chunk in the vector database.
Question #35Part 1Evaluation and Monitoring

A Generative AI Engineer has built a RAG application that helps employees retrieve answers from an internal knowledge base, such as Confluence pages or Google Drive. The prototype is working and has received positive feedback from internal company testers. The Generative AI Engineer now wants to formally assess the system’s performance and determine where to focus efforts to improve it further. How should the Generative AI Engineer evaluate the system?

AUse cosine similarity score to comprehensively evaluate the quality of the final generated answers.
BCurate a dataset that can test the retrieval and generation components of the system separately. Use MLflow’s built in evaluation metrics to perform the evaluation on the retrieval and generation components.
CBenchmark multiple LLMs with the same data and pick the best LLM for the job.
DUse an LLM-as-a-judge to evaluate the quality of the final answers generated.
Question #36Part 1Data PreparationSelect 2

A Generative AI Engineer has built a RAG application to find answers to questions about a series of fantasy novels posed on the author’s web forum. The fantasy-novel text is chunked and embedded in a vector store with metadata (page number, chapter number, book title), retrieved using the user’s query, and supplied to an LLM to generate a response. The Generative AI Engineer used intuition to select the chunking strategy and its associated configurations, but now wants to choose the best values more methodically. Which TWO strategies should the Generative AI Engineer use to optimize the chunking strategy and parameters? (Choose two.)

AChange embedding models and compare performance.
BAdd a classifier for user queries that predicts which book will best contain the answer. Use this to filter retrieval.
CChoose an appropriate evaluation metric (such as recall or NDCG) and experiment with changes in the chunking strategy, such as splitting chunks by paragraphs or chapters. Choose the strategy that gives the best performance metric.
DPass known questions and best answers to an LLM and instruct the LLM to provide the best token count. Use a summary statistic (mean, median, etc.) of the best token counts to choose chunk size.
ECreate an LLM-as-a-judge metric to evaluate how well previous questions are answered by the most appropriate chunk. Optimize the chunking parameters based upon the values of the metric.
Question #37Part 1Evaluation and Monitoring

A Generative AI Engineer has developed a RAG application that helps employees interpret HR documentation. The prototype is now functioning and has received positive feedback from internal company testers. The Generative AI Engineer now wants to formally assess the system’s performance and identify where to concentrate efforts to further improve it. How should the Generative AI Engineer evaluate the system?

AUse ROUGE score to comprehensively evaluate the quality of the final generated answers.
BUse an LLM-as-a-judge to evaluate the quality of the final answers generated.
CCurate a dataset that can test the retrieval and generation components of the system separately. Use MLflow’s built in evaluation metrics to perform the evaluation on the retrieval and generation components.
DBenchmark multiple LLMs with the same data and pick the best LLM for the job.
Question #38Part 1Assembling and Deploying Applications

A Generative AI Engineer is prepared to deploy an LLM application built with Foundation Model APIs. They want to follow security best practices for production scenarios. Which authentication method should they select?

AUse OAuth machine-to-machine authentication
BUse an access token belonging to service principals
CUse an access token belonging to any workspace user
DUse a frequently rotated access token belonging to either a workspace user or a service principal
Question #39Part 1Application Development

A Generative AI Engineer uses an LLM to classify species of edible mushrooms from text descriptions of particular features. The model produces accurate test responses, and the Generative AI Engineer is confident they have the correct list of possible labels, but its output often includes extra reasoning when they want to return only the label and no additional text. What action should they take to elicit the desired behavior from this LLM?

AUse few shot prompting to instruct the model on expected output format
BUse zero shot prompting to instruct the model on expected output format
CUse zero shot chain-of-thought prompting to prevent a verbose output format
DUse a system prompt to instruct the model to be succinct in its answer
Question #40Part 1Evaluation and Monitoring

A Generative AI Engineer at an automotive company wants to build a question-answering chatbot that helps customers answer specific questions about their vehicles. They have: - A catalog containing hundreds of thousands of cars manufactured since the 1960s - Historical searches, including user queries and successful matches - Descriptions of their own cars in multiple languages They have already chosen an open-source LLM and created a test set of user queries. They need to discard techniques that will not help them build the chatbot. Which technique do they discard?

ASetting chunk size to match the model's context window to maximize coverage
BImplementing metadata filtering based on car models and years
CFine-tuning an embedding model on automotive terminology
DAdding few-shot examples for response generation
Question #41Part 1Design Applications

A Generative Al Engineer is building an LLM-based application. The documents used by its retriever have been chunked to a maximum of 512 tokens each. The Generative Al Engineer knows that cost and latency matter more than quality for this application. Several context-length levels are available. Which option will meet their need?

Acontext length 514; smallest model is 0.44GB and embedding dimension 768
Bcontext length 2048: smallest model is 11GB and embedding dimension 2560
Ccontext length 32768: smallest model is 14GB and embedding dimension 4096
Dcontext length 512: smallest model is 0.13GB and embedding dimension 384
Question #42Part 1Data Preparation

A Generative AI Engineer at a legal firm is creating a RAG system to analyze historical legal case precedents. The system must process millions of plain-text court opinions and legal documents, already organized by time and topic, to follow how interpretations of particular laws have changed over time. Which chunking method should the engineer choose?

AImplement windowed summarization with overlapping chunks.
BImplement a hierarchical tree structure, like RAPTOR, to group similar legal concepts.
CImplement paragraph level embeddings with each chunk.
DImplement sentence level embeddings with each chunk tagged with the time to enable metadata filtering.
Question #43Part 1Governance

A Generative AI Engineer prototyping an LLM system accidentally sent thousands of inference queries to a Foundation Model endpoint over the weekend. They want to act to prevent this from happening unintentionally again in the future. What action should they take?

AUse prompt engineering to instruct the LLM endpoints to refuse too many subsequent queries.
BRequire that all development code which interfaces with a Foundation Model endpoint must be reviewed by a Staff level engineer before execution.
CBuild a pyfunc model which proxies to the Foundation Model endpoint and add throttling within the pyfune model.
DConfigure rate limiting on the Foundation Model endpoints.
Question #44Part 1Design Applications

A Generative AI Engineer is building an LLM system that retrieves news articles from the year 1918 that are relevant to a user's query, then summarizes them. The engineer has observed that the summaries are well generated, but they frequently also contain an undesired explanation of how the summary was produced. Which change could the Generative AI Engineer make to mitigate this issue?

ASplit the LLM output by newline characters to truncate away the summarization explanation.
BTune the chunk size of news articles or experiment with different embedding models.
CRevisit their document ingestion logic, ensuring that the news articles are being ingested properly.
DProvide few shot examples of desired output format to the system and/or user prompt.
Question #45Part 1Evaluation and Monitoring

A Generative AI Engineer has developed an LLM-based system that automatically translates user text between two languages. They now want to benchmark multiple LLMs for this task and select the best one. They have an evaluation set containing known, high-quality translation examples. They want to assess each LLM with the evaluation set using an efficient metric. Which metric should they select for this evaluation?

ABLEU metric
BNDCG metric
CROUGE metric
DRECALL metric
Question #46Part 1Evaluation and Monitoring

A Generative AI Engineer has just deployed an LLM application at a digital marketing company to help answer customer-service inquiries. Which metric should the engineer monitor for the customer-service LLM application in production?

ANumber of customer inquiries processed per unit of time
BEnergy usage per query
CFinal perplexity scores for the training of the model
DHuggingFace Leaderboard values for the base LLM
Question #47Part 1Assembling and Deploying Applications

A Generative AI Engineer built an LLM application using the provisioned-throughput Foundation Model API. Now that the application is ready for deployment, they realize that their request volume is not high enough to create their own provisioned-throughput endpoint. They want to select a strategy that provides the best cost-effectiveness for the application. What strategy should the Generative AI Engineer use?

ASwitch to using External Models instead
BDeploy the model using pay-per-token throughput as it comes with cost guarantees
CChange to a model with a fewer number of parameters in order to reduce hardware constraint issues
DThrottle the incoming batch of requests manually to avoid rate limiting issues
Question #48Part 1Evaluation and Monitoring

A team uses Mosaic AI Vector Search to retrieve documents for its Retrieval-Augmented Generation (RAG) pipeline. A search query returns five relevant documents, with the first three included in the prompt as context. An Agent Evaluation performance assessment shows that certain lower-ranked retrieved documents receive higher context-relevancy scores than documents ranked above them. Which option should the team consider to optimize this workflow?

AUse a reranker to order the documents based on the relevance scores.
BModify the prompt to instruct the LLM to order the documents based on the relevance scores.
CUse a different embedding model for computing document embeddings.
DIncrease the number of documents added to the prompt to improve context relevance.
Question #49Part 1Design Applications

A Generative AI Engineer wants to create an LLM-based solution that helps a restaurant improve the online customer experience for bookings by automatically addressing common customer inquiries. The solution aims to reduce escalations to human support and phone calls while preserving a personalized interaction. To design it, the Generative AI Engineer must define the LLM's input data and the task it will perform. Which input/output pair would support this goal?

AInput: Online chat logs; Output: Group the chat logs by users, followed by summarizing each user’s interactions
BInput: Online chat logs; Output: Buttons that represent choices for booking details
CInput: Customer reviews; Output: Classify review sentiment
DInput: Online chat logs; Output: Cancellation options
Question #50Part 1Application Development

A Generative AI Engineer is testing a basic prompt template in LangChain with the code below but receives an error. Assuming the API key is correctly defined, what change must the Generative AI Engineer make to fix the chain?

AB.
CD.
Question #51Part 1Design Applications

A Generative AI Engineer has received the following business requirements for an external chatbot. The chatbot must determine the types of questions users ask and route them to appropriate models for answers. For example, one user might ask for details about an upcoming event. Another user might ask about buying tickets for a specific event. What is an ideal workflow for this chatbot?

AThe chatbot should only look at previous event information
BThere should be two different chatbots handling different types of user queries.
CThe chatbot should be implemented as a multi-step LLM workflow. First, identify the type of question asked, then route the question to the appropriate model. If it’s an upcoming event question, send the query to a text-to-SQL model. If it’s about ticket purchasing, the customer should be redirected to a payment platform.
DThe chatbot should only process payments
Question #52Part 1Design Applications

A Generative AI Engineer is building a customer support bot that must respond differently to an end user according to the sentiment in their initial message. For example, if an end user’s message is angry, the bot should attempt to de-escalate their negative sentiments while resolving the customer query. They want to ensure the approach follows best practices. Which approach accomplishes this?

AUse an encoder-only LLM model to both detect sentiment and generate replies based upon the detected sentiment.
BImplement a RAG architecture for how to respond to users depending on detected sentiment.
CUse linear regression model to classify sentiment and feed the result to a system prompt for the LLM to respond.
DCreate a chain which first uses an LLM to classify sentiment, then changes system prompt for the customer interaction LLM based upon the initial customer query sentiment.
Question #53Part 1Data PreparationSelect 2

After replacing the response-generating LLM in a RAG pipeline from GPT-4 with a company self-hosted model that has a shorter context length, the Generative AI Engineer receives the following error: ![Question Image](https://cdn.examcademy.com/images/questions/1783878872122-7uutd134.png) Which TWO solutions should the Generative AI Engineer implement without changing the response-generating model? (Choose two.)

AUse a smaller embedding model to generate embeddings
BReduce the maximum output tokens of the new model
CDecrease the chunk size of embedded documents
DReduce the number of records retrieved from the vector database
ERetrain the response generating model using ALiBi
Question #54Part 1Evaluation and Monitoring

A Generative AI Engineer has a provisioned-throughput model-serving endpoint within a RAG application and wants to monitor the endpoint’s incoming requests and outgoing responses. The current solution places a microservice between the endpoint and the user interface to write logs to a remote server. Which Databricks feature should they use instead to perform the same task?

AVector Search
BLakeview
CDBSQL
DInference Tables
Question #55Part 1Design Applications

A Generative AI Engineer is developing an LLM that generates article summaries as a type of poem, such as a haiku, from article content. However, the LLM’s initial output does not match the intended tone or style. Which approach will **NOT** improve the LLM’s response so that it achieves the desired result?

AProvide the LLM with a prompt that explicitly instructs it to generate text in the desired tone and style
BUse a neutralizer to normalize the tone and style of the underlying documents
CInclude few-shot examples in the prompt to the LLM
DFine-tune the LLM on a dataset of desired tone and style

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!