Bird
0
0

What is the main purpose of setting number_of_shards in an Elasticsearch index?

easy🧠 Conceptual Q11 of 15
Elasticsearch - Index Management
What is the main purpose of setting number_of_shards in an Elasticsearch index?
ATo define the size of the index
BTo create backup copies of data
CTo split data into parts for faster searching
DTo set the maximum number of documents
Step-by-Step Solution
Solution:
  1. Step 1: Understand shards role

    Shards divide the index data into smaller parts to allow parallel searching.
  2. Step 2: Differentiate shards from replicas

    Replicas are copies for safety, not for splitting data.
  3. Final Answer:

    To split data into parts for faster searching -> Option C
  4. Quick Check:

    Shards = split data for speed [OK]
Quick Trick: Shards split data, replicas copy data [OK]
Common Mistakes:
MISTAKES
  • Confusing shards with replicas
  • Thinking shards create backups
  • Assuming shards set index size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes