Courseiva

AI0-001 AI Infrastructure and Technologies Practice Question

A retail analytics team is building a retrieval-augmented generation assistant over product manuals. They need a vector index that supports fast approximate nearest neighbor search and can be updated as new manuals are published without rebuilding the entire index. Which TWO components should they use to meet these requirements? (Choose two.)

⚠ Common exam trap

The trap here is assuming that any database capable of storing arrays can serve nearest neighbor queries efficiently, when only ANN-capable vector stores provide the required search speed.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

A dedicated vector database such as Milvus or Pinecone that supports incremental upserts and ANN indexes like HNSW.

A working retrieval pipeline needs embeddings to represent manual chunks semantically and a vector store that indexes those embeddings for fast approximate similarity search while allowing incremental additions. Combining an embedding model with a vector database that supports upserts and HNSW-style indexes satisfies both the speed and the update-without-rebuild requirements.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    A columnar analytics warehouse that stores embeddings as arrays for SQL aggregation.

    Why it's wrong here

    Analytics warehouses excel at scanning and aggregating large structured datasets, but they lack native ANN indexing for high-dimensional similarity queries. Storing embeddings as arrays and computing distances in SQL forces brute-force comparison, which scales poorly as the manual corpus grows and cannot meet interactive retrieval latency for the assistant.

  • ✗

    A message queue that streams manual PDFs directly into the index without transformation.

    Why it's wrong here

    A message queue can decouple ingestion from indexing and absorb bursts, but it does not produce embeddings or perform similarity search. Streaming raw PDFs into a vector index is meaningless because the index stores vectors, not documents. This option addresses throughput concerns but leaves the actual retrieval requirement unmet.

  • ✓

    A dedicated vector database such as Milvus or Pinecone that supports incremental upserts and ANN indexes like HNSW.

    Why this is correct

    Vector databases are built for embedding storage and similarity search, and they expose ANN index types such as HNSW that trade a small recall loss for large speed gains. Crucially, they support upserting individual vectors, so newly published manuals can be added without rebuilding the whole collection, which is exactly what the team needs.

  • ✗

    A relational database with B-tree indexes on the manual text column.

    Why it's wrong here

    B-tree indexes accelerate exact matches and range scans on scalar values, not similarity between high-dimensional embedding vectors. Nearest neighbor queries over embeddings cannot be served by a B-tree, so this option would require full scans and would not deliver the fast approximate search the assistant depends on for low-latency retrieval.

  • ✓

    An embedding model that converts each manual chunk into a dense vector before insertion.

    Why this is correct

    Retrieval-augmented generation compares the query embedding against stored chunk embeddings, so the manuals must first be encoded into dense vectors by an embedding model. Without this step there are no vectors to index or search. The model defines the semantic space in which similarity is measured, making it a required component of the pipeline.

About these practice questions

One of 962 original AI0-001 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official CompTIA exam blueprint

This AI0-001 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI0-001 exam.