1Z0-1127-25 Practice Question: Building LLM Applications with RAG and Vector Search
Which TWO of the following are valid similarity metrics used in vector search?
⚠ Common exam trap
Oracle often tests the distinction between distance metrics (like Euclidean) and similarity metrics (like cosine), and candidates may mistakenly treat all distance-based measures as valid similarity metrics for vector search, overlooking that some are designed for strings or sets rather than continuous 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
✓
Cosine similarity
Cosine similarity measures the cosine of the angle between two vectors, focusing on orientation rather than magnitude. It is widely used in vector search for comparing embeddings because it effectively captures semantic similarity in high-dimensional spaces, such as those produced by LLMs.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Levenshtein distance
Why it's wrong here
Edit distance for strings.
- ✓
Cosine similarity
Why this is correct
Commonly used for normalized vectors.
- ✓
Euclidean distance
Why this is correct
Standard distance metric for vectors.
- ✗
Hamming distance
Why it's wrong here
Used for binary vectors, not typically for dense embeddings.
- ✗
Jaccard index
Why it's wrong here
Used for set similarity, not vector similarity.
Go deeper
Related to this question
About these practice questions
Courseiva writes every 1Z0-1127-25 question from scratch — 768 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 1Z0-1127-25 practice question is part of Courseiva's free Oracle 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 1Z0-1127-25 exam.