1Z0-1127-25 Practice Question: Building LLM Applications with RAG and Vector Search
Exhibit
Refer to the exhibit.
document index mapping:
{
"settings": {
"index": {
"knn": true,
"knn.space_type": "cosinesimil"
}
},
"mappings": {
"properties": {
"content_embedding": {
"type": "knn_vector",
"dimension": 768,
"method": {
"name": "hnsw",
"engine": "faiss",
"space_type": "l2"
}
},
"metadata": {
"type": "object"
}
}
}
}An engineer configured the above index mapping for vector search. When performing a k-NN search, the results are unexpected. What is the most likely issue?
⚠ Common exam trap
Oracle often tests the nuance that OpenSearch requires consistency between index-level and mapping-level space_type settings, a detail that candidates overlook because they assume only the mapping-level setting matters.
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
✓
The space type at the index level and mapping level are mismatched.
OpenSearch requires the space type to be consistently defined at both the index-level settings (method.parameters.space_type) and the field-level mapping (space_type). A mismatch between these two causes the k-NN search to behave unexpectedly, as the engine uses the index-level setting for distance computation while the mapping-level setting may be used for validation or other purposes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The space type 'cosinesimil' is not supported; it should be 'cosine'.
Why it's wrong here
'cosinesimil' is valid.
- ✗
The dimension 768 does not match the embedding model's output dimension.
Why it's wrong here
768 is a common dimension.
- ✗
The mapping uses 'knn_vector' type with 'faiss' engine, which is incompatible.
Why it's wrong here
faiss is a supported engine.
- ✓
The space type at the index level and mapping level are mismatched.
Why this is correct
Mismatch causes incorrect distance calculations.
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.