Courseiva
Implementing AI SolutionsmediumMultiple ChoiceObjective-mapped

AI0-001 Implementing AI Solutions Practice Question

A developer is implementing a RAG system and needs to choose a similarity metric for retrieving document chunks. The embedding model produces normalized vectors. Which metric is computationally efficient and equivalent to cosine similarity for normalized vectors?

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

Dot product

For normalized vectors, dot product is equivalent to cosine similarity and is faster to compute.

Answer analysis

Option-by-option breakdown

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

  • Euclidean distance

    Why it's wrong here

    Euclidean distance is not equivalent to cosine similarity even for normalized vectors; it measures magnitude differences.

  • Hamming distance

    Why it's wrong here

    Hamming distance is used for categorical or binary data, not for real-valued embeddings.

  • Manhattan distance

    Why it's wrong here

    Manhattan distance is a different metric; it does not correspond to cosine similarity.

  • Dot product

    Why this is correct

    When vectors are unit normalized, dot product equals cosine similarity, and it is computationally efficient.

About these practice questions

One of 754 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 by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

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.