Learn. Practice. Feel prepared.
Elasticsearch Objective Questions and Answers - Set 2
This Elasticsearch quiz contains carefully curated objective questions with correct answers and clear explanations. It is designed for developers, backend engineers, and interview preparation, covering indexing, querying, aggregation, scaling, and performance optimization techniques. This is part 2 of the series.
Practice Elasticsearch MCQs with Detailed Explanations
Answer at least 12 questions to submit and verify answers.
16 What happens if you index a document with an existing ID? Medium
Correct answer:
Updated/Replaced
Elasticsearch replaces the existing document with the new one.
17 Which feature enables near real-time search? High
Correct answer:
Refresh interval
Refresh interval determines how frequently indexed data becomes searchable.
18 What is a mapping in Elasticsearch? Medium
Correct answer:
Schema definition
Mapping defines field types and structure of documents.
19 Which field type is analyzed by default? Medium
Correct answer:
text
Text fields are analyzed by default for full-text search.
20 What does 'doc_values' help with? High
Correct answer:
Aggregation and sorting
Doc values store field data on disk for efficient sorting and aggregations.
21 Which query is best for numeric ranges? Easy
Correct answer:
range
Range query is used for filtering numeric/date ranges.
22 What is a cluster in Elasticsearch? Easy
Correct answer:
Collection of nodes
A cluster is a group of nodes working together.
23 Which node type manages cluster state? Medium
Correct answer:
Master node
Master node manages cluster metadata and state.
24 What is the purpose of ingest pipelines? Medium
Correct answer:
Preprocess documents
Ingest pipelines transform documents before indexing.
25 Which aggregation calculates average value? Easy
Correct answer:
avg
Avg aggregation computes average over numeric fields.
26 What is index alias used for? High
Correct answer:
Virtual index name
Alias provides abstraction for index names and supports zero-downtime reindexing.
27 Which query boosts relevance score? High
Correct answer:
function_score
Function score query allows custom scoring logic.
28 What is reindex API used for? Medium
Correct answer:
Copy data between indices
Reindex API copies documents from one index to another.
29 Which feature supports autocomplete? High
Correct answer:
completion suggester
Completion suggester is optimized for fast autocomplete functionality.
30 What is the purpose of scoring in Elasticsearch? Medium
Correct answer:
Rank relevance
Scoring determines how relevant documents are to a query.