LLMs and vectors in data pipelines: DEA-C01 study notes and practice questions
What to know about LLMs and vectors in data pipelines for the DEA-C01 exam, from the Data Ingestion and Transformation domain (34% of the exam guide), then 1 free question to test it. Part of the DEA-C01 study guide.
An insurance company keeps about 40,000 policy documents as PDF and Word files in Amazon S3. Claims agents will use an assistant built on Amazon Bedrock that answers questions from these documents, and documents are added, changed or removed every day.
The data engineering team must chunk the documents, create embeddings, store them in a vector store and bring the index up to date each night. It wants the least custom code, and unchanged documents must not be processed again.
Which solution meets these requirements?
Choose one answer.
AA. Write an AWS Glue job that splits every document, calls an embeddings model for each chunk, and overwrites a DynamoDB table each night.
BB. Create a Bedrock knowledge base with the S3 bucket as its data source and a vector store, and start a data source sync each night.
CC. Fine-tune a foundation model on the documents each week, so the assistant answers from what the model learned rather than from a vector store.
DD. Have a Lambda function read the full text of the relevant files from S3 at question time and place all of it in the model prompt.
Show the answer and explanation
Answer: B
A. Wrong: The team would write and maintain the chunking and embedding code, and the job reprocesses every document each night. DynamoDB also does not offer vector similarity search for the assistant's lookups.
C. Wrong: Fine-tuning is model training, which is outside this data pipeline's scope, and a weekly run leaves daily changes out of the answers. It also retrains on every document each time.
D. Wrong: Without an index, the function cannot tell which documents are relevant, and whole documents quickly exceed prompt limits and raise cost. The option skips the chunking and embedding the team was asked to build.
Explanation
Retrieval for a generative AI assistant needs documents chunked, embedded and stored in a vector store, then kept current. A Bedrock knowledge base does all of this from an S3 data source, and each sync handles only added, modified or deleted documents. Custom embedding jobs, fine-tuning and whole-document prompts add code, miss updates or skip the vector index.
The nightly sync chunks and embeds new policy documents, so agents' questions retrieve current text.
Want more on LLMs and vectors in data pipelines? The 5 full-length practice sets have 5 more LLMs and vectors in data pipelines questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →