Courseiva

AI0-001 Implementing AI Solutions Practice Question

A developer is building a RAG system and needs to choose a similarity metric for retrieving document chunks. The embedding model they use produces normalized vectors (unit vectors). Which similarity metric is equivalent to cosine similarity in this case?

⚠ Common exam trap

AI0-001 often tests the mathematical equivalence between dot product and cosine similarity for normalized vectors, trapping candidates who assume Euclidean distance is the natural equivalent because both measure 'closeness'.

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 (unit-length) vectors, the dot product equals the cosine of the angle between them, because the magnitudes are both 1. Cosine similarity is defined as the dot product divided by the product of magnitudes; when magnitudes are 1, the denominator is 1, so dot product and cosine similarity are mathematically identical. This makes dot product the correct equivalent metric.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Jaccard similarity

    Why it's wrong here

    Jaccard similarity compares set overlap of binary presence, ignoring vector direction and magnitude entirely, so it cannot equal cosine similarity on dense unit vectors. Jaccard is correct for token or shingle sets, such as deduplicating near-identical documents, not for embedding-based chunk retrieval.

  • ✗

    Euclidean distance

    Why it's wrong here

    Euclidean distance is a distance metric, not directly equivalent to cosine similarity even for unit vectors.

  • ✗

    Manhattan distance

    Why it's wrong here

    Manhattan distance sums absolute coordinate differences and does not reduce to cosine similarity for unit vectors; it ranks differently. It is chosen when features are sparse or outliers should be dampened, such as L1-based retrieval over high-dimensional sparse representations, not for normalised dense embeddings.

  • ✓

    Dot product

    Why this is correct

    For unit-length vectors, the dot product equals the cosine of the angle between them, since both magnitudes are 1. Cosine similarity therefore reduces exactly to the dot product, making it the equivalent metric and computationally cheaper because no normalisation division is needed.

About these practice questions

This AI0-001 question is part of Courseiva's 962-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.